Lines Matching refs:safe
57 void *safe; member
138 buf->safe = dma_pool_alloc(pool->pool, GFP_ATOMIC, in alloc_safe_buffer()
141 buf->safe = dma_alloc_coherent(dev, size, &buf->safe_dma_addr, in alloc_safe_buffer()
145 if (buf->safe == NULL) { in alloc_safe_buffer()
200 dma_pool_free(buf->pool->pool, buf->safe, buf->safe_dma_addr); in free_safe_buffer()
202 dma_free_coherent(device_info->dev, buf->size, buf->safe, in free_safe_buffer()
263 buf->safe, buf->safe_dma_addr); in map_single()
267 __func__, ptr, buf->safe, size); in map_single()
268 memcpy(buf->safe, ptr, size); in map_single()
282 buf->safe, buf->safe_dma_addr); in unmap_single()
290 __func__, buf->safe, ptr, size); in unmap_single()
291 memcpy(ptr, buf->safe, size); in unmap_single()
382 buf->safe, buf->safe_dma_addr); in __dmabounce_sync_for_cpu()
388 __func__, buf->safe + off, buf->ptr + off, sz); in __dmabounce_sync_for_cpu()
389 memcpy(buf->ptr + off, buf->safe + off, sz); in __dmabounce_sync_for_cpu()
422 buf->safe, buf->safe_dma_addr); in __dmabounce_sync_for_device()
428 __func__,buf->ptr + off, buf->safe + off, sz); in __dmabounce_sync_for_device()
429 memcpy(buf->safe + off, buf->ptr + off, sz); in __dmabounce_sync_for_device()