Lines Matching refs:paddr
380 int is_swiotlb_buffer(phys_addr_t paddr) in is_swiotlb_buffer() argument
382 return paddr >= io_tlb_start && paddr < io_tlb_end; in is_swiotlb_buffer()
656 phys_addr_t paddr = map_single(hwdev, 0, size, DMA_FROM_DEVICE); in swiotlb_alloc_coherent() local
657 if (paddr == SWIOTLB_MAP_ERROR) in swiotlb_alloc_coherent()
660 ret = phys_to_virt(paddr); in swiotlb_alloc_coherent()
661 dev_addr = phys_to_dma(hwdev, paddr); in swiotlb_alloc_coherent()
670 swiotlb_tbl_unmap_single(hwdev, paddr, in swiotlb_alloc_coherent()
687 phys_addr_t paddr = dma_to_phys(hwdev, dev_addr); in swiotlb_free_coherent() local
690 if (!is_swiotlb_buffer(paddr)) in swiotlb_free_coherent()
694 swiotlb_tbl_unmap_single(hwdev, paddr, size, DMA_TO_DEVICE); in swiotlb_free_coherent()
779 phys_addr_t paddr = dma_to_phys(hwdev, dev_addr); in unmap_single() local
783 if (is_swiotlb_buffer(paddr)) { in unmap_single()
784 swiotlb_tbl_unmap_single(hwdev, paddr, size, dir); in unmap_single()
797 dma_mark_clean(phys_to_virt(paddr), size); in unmap_single()
823 phys_addr_t paddr = dma_to_phys(hwdev, dev_addr); in swiotlb_sync_single() local
827 if (is_swiotlb_buffer(paddr)) { in swiotlb_sync_single()
828 swiotlb_tbl_sync_single(hwdev, paddr, size, dir, target); in swiotlb_sync_single()
835 dma_mark_clean(phys_to_virt(paddr), size); in swiotlb_sync_single()
880 phys_addr_t paddr = sg_phys(sg); in swiotlb_map_sg_attrs() local
881 dma_addr_t dev_addr = phys_to_dma(hwdev, paddr); in swiotlb_map_sg_attrs()