Lines Matching refs:dir
552 enum dma_data_direction dir) in swiotlb_bounce() argument
603 if (dir == DMA_TO_DEVICE) in swiotlb_bounce()
614 } else if (dir == DMA_TO_DEVICE) { in swiotlb_bounce()
768 unsigned int alloc_align_mask, enum dma_data_direction dir, in swiotlb_tbl_map_single() argument
872 size_t mapping_size, enum dma_data_direction dir, in swiotlb_tbl_unmap_single() argument
879 (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL)) in swiotlb_tbl_unmap_single()
886 size_t size, enum dma_data_direction dir) in swiotlb_sync_single_for_device() argument
888 if (dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL) in swiotlb_sync_single_for_device()
891 BUG_ON(dir != DMA_FROM_DEVICE); in swiotlb_sync_single_for_device()
895 size_t size, enum dma_data_direction dir) in swiotlb_sync_single_for_cpu() argument
897 if (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) in swiotlb_sync_single_for_cpu()
900 BUG_ON(dir != DMA_TO_DEVICE); in swiotlb_sync_single_for_cpu()
908 enum dma_data_direction dir, unsigned long attrs) in swiotlb_map() argument
915 swiotlb_addr = swiotlb_tbl_map_single(dev, paddr, size, size, 0, dir, in swiotlb_map()
923 swiotlb_tbl_unmap_single(dev, swiotlb_addr, size, dir, in swiotlb_map()
932 arch_sync_dma_for_device(swiotlb_addr, size, dir); in swiotlb_map()