Lines Matching refs:direction
461 enum dma_data_direction direction; in dma_buf_ioctl() local
476 direction = DMA_FROM_DEVICE; in dma_buf_ioctl()
479 direction = DMA_TO_DEVICE; in dma_buf_ioctl()
482 direction = DMA_BIDIRECTIONAL; in dma_buf_ioctl()
489 ret = dma_buf_end_cpu_access(dmabuf, direction); in dma_buf_ioctl()
491 ret = dma_buf_begin_cpu_access(dmabuf, direction); in dma_buf_ioctl()
792 enum dma_data_direction direction) in __map_dma_buf() argument
797 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); in __map_dma_buf()
807 direction); in __map_dma_buf()
998 enum dma_data_direction direction) in __unmap_dma_buf() argument
1003 attach->dmabuf->ops->unmap_dma_buf(attach, sg_table, direction); in __unmap_dma_buf()
1113 enum dma_data_direction direction) in dma_buf_map_attachment() argument
1130 if (attach->dir != direction && in dma_buf_map_attachment()
1145 sg_table = __map_dma_buf(attach, direction); in dma_buf_map_attachment()
1155 attach->dir = direction; in dma_buf_map_attachment()
1190 enum dma_data_direction direction) in dma_buf_map_attachment_unlocked() argument
1200 sg_table = dma_buf_map_attachment(attach, direction); in dma_buf_map_attachment_unlocked()
1219 enum dma_data_direction direction) in dma_buf_unmap_attachment() argument
1231 __unmap_dma_buf(attach, sg_table, direction); in dma_buf_unmap_attachment()
1251 enum dma_data_direction direction) in dma_buf_unmap_attachment_unlocked() argument
1259 dma_buf_unmap_attachment(attach, sg_table, direction); in dma_buf_unmap_attachment_unlocked()
1370 enum dma_data_direction direction) in __dma_buf_begin_cpu_access() argument
1372 bool write = (direction == DMA_BIDIRECTIONAL || in __dma_buf_begin_cpu_access()
1373 direction == DMA_TO_DEVICE); in __dma_buf_begin_cpu_access()
1406 enum dma_data_direction direction) in dma_buf_begin_cpu_access() argument
1416 ret = dmabuf->ops->begin_cpu_access(dmabuf, direction); in dma_buf_begin_cpu_access()
1423 ret = __dma_buf_begin_cpu_access(dmabuf, direction); in dma_buf_begin_cpu_access()
1442 enum dma_data_direction direction) in dma_buf_end_cpu_access() argument
1451 ret = dmabuf->ops->end_cpu_access(dmabuf, direction); in dma_buf_end_cpu_access()