Lines Matching refs:safe
56 void *safe; member
137 buf->safe = dma_pool_alloc(pool->pool, GFP_ATOMIC, in alloc_safe_buffer()
140 buf->safe = dma_alloc_coherent(dev, size, &buf->safe_dma_addr, in alloc_safe_buffer()
144 if (buf->safe == NULL) { in alloc_safe_buffer()
199 dma_pool_free(buf->pool->pool, buf->safe, buf->safe_dma_addr); in free_safe_buffer()
201 dma_free_coherent(device_info->dev, buf->size, buf->safe, in free_safe_buffer()
263 buf->safe, buf->safe_dma_addr); in map_single()
268 __func__, ptr, buf->safe, size); in map_single()
269 memcpy(buf->safe, ptr, size); in map_single()
284 buf->safe, buf->safe_dma_addr); in unmap_single()
293 __func__, buf->safe, ptr, size); in unmap_single()
294 memcpy(ptr, buf->safe, size); in unmap_single()
385 buf->safe, buf->safe_dma_addr); in __dmabounce_sync_for_cpu()
391 __func__, buf->safe + off, buf->ptr + off, sz); in __dmabounce_sync_for_cpu()
392 memcpy(buf->ptr + off, buf->safe + off, sz); in __dmabounce_sync_for_cpu()
425 buf->safe, buf->safe_dma_addr); in __dmabounce_sync_for_device()
431 __func__,buf->ptr + off, buf->safe + off, sz); in __dmabounce_sync_for_device()
432 memcpy(buf->safe + off, buf->ptr + off, sz); in __dmabounce_sync_for_device()