Lines Matching refs:ptr
51 void *ptr; member
107 alloc_safe_buffer(struct dmabounce_device_info *device_info, void *ptr, in alloc_safe_buffer() argument
116 __func__, ptr, size, dir); in alloc_safe_buffer()
132 buf->ptr = ptr; in alloc_safe_buffer()
245 static inline dma_addr_t map_single(struct device *dev, void *ptr, size_t size, in map_single() argument
254 buf = alloc_safe_buffer(device_info, ptr, size, dir); in map_single()
257 __func__, ptr); in map_single()
262 __func__, buf->ptr, virt_to_dma(dev, buf->ptr), in map_single()
267 __func__, ptr, buf->safe, size); in map_single()
268 memcpy(buf->safe, ptr, size); in map_single()
281 __func__, buf->ptr, virt_to_dma(dev, buf->ptr), in unmap_single()
287 void *ptr = buf->ptr; in unmap_single() local
290 __func__, buf->safe, ptr, size); in unmap_single()
291 memcpy(ptr, buf->safe, size); in unmap_single()
298 __cpuc_flush_dcache_area(ptr, size); in unmap_single()
381 __func__, buf->ptr, virt_to_dma(dev, buf->ptr), off, 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()
421 __func__, buf->ptr, virt_to_dma(dev, buf->ptr), off, 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()