Lines Matching refs:dev_addr

805 	dma_addr_t dev_addr = phys_to_dma(dev, phys);  in swiotlb_map_page()  local
813 if (dma_capable(dev, dev_addr, size) && swiotlb_force != SWIOTLB_FORCE) in swiotlb_map_page()
814 return dev_addr; in swiotlb_map_page()
816 trace_swiotlb_bounced(dev, dev_addr, size, swiotlb_force); in swiotlb_map_page()
825 dev_addr = __phys_to_dma(dev, map); in swiotlb_map_page()
828 if (dma_capable(dev, dev_addr, size)) in swiotlb_map_page()
829 return dev_addr; in swiotlb_map_page()
845 static void unmap_single(struct device *hwdev, dma_addr_t dev_addr, in unmap_single() argument
849 phys_addr_t paddr = dma_to_phys(hwdev, dev_addr); in unmap_single()
870 void swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, in swiotlb_unmap_page() argument
874 unmap_single(hwdev, dev_addr, size, dir, attrs); in swiotlb_unmap_page()
888 swiotlb_sync_single(struct device *hwdev, dma_addr_t dev_addr, in swiotlb_sync_single() argument
892 phys_addr_t paddr = dma_to_phys(hwdev, dev_addr); in swiotlb_sync_single()
908 swiotlb_sync_single_for_cpu(struct device *hwdev, dma_addr_t dev_addr, in swiotlb_sync_single_for_cpu() argument
911 swiotlb_sync_single(hwdev, dev_addr, size, dir, SYNC_FOR_CPU); in swiotlb_sync_single_for_cpu()
915 swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr, in swiotlb_sync_single_for_device() argument
918 swiotlb_sync_single(hwdev, dev_addr, size, dir, SYNC_FOR_DEVICE); in swiotlb_sync_single_for_device()
948 dma_addr_t dev_addr = phys_to_dma(hwdev, paddr); in swiotlb_map_sg_attrs() local
951 !dma_capable(hwdev, dev_addr, sg->length)) { in swiotlb_map_sg_attrs()
966 sg->dma_address = dev_addr; in swiotlb_map_sg_attrs()