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()
657 phys_addr_t paddr = map_single(hwdev, 0, size, DMA_FROM_DEVICE); in swiotlb_alloc_coherent() local
658 if (paddr == SWIOTLB_MAP_ERROR) in swiotlb_alloc_coherent()
661 ret = phys_to_virt(paddr); in swiotlb_alloc_coherent()
662 dev_addr = phys_to_dma(hwdev, paddr); in swiotlb_alloc_coherent()
671 swiotlb_tbl_unmap_single(hwdev, paddr, in swiotlb_alloc_coherent()
695 phys_addr_t paddr = dma_to_phys(hwdev, dev_addr); in swiotlb_free_coherent() local
698 if (!is_swiotlb_buffer(paddr)) in swiotlb_free_coherent()
702 swiotlb_tbl_unmap_single(hwdev, paddr, size, DMA_TO_DEVICE); in swiotlb_free_coherent()
787 phys_addr_t paddr = dma_to_phys(hwdev, dev_addr); in unmap_single() local
791 if (is_swiotlb_buffer(paddr)) { in unmap_single()
792 swiotlb_tbl_unmap_single(hwdev, paddr, size, dir); in unmap_single()
805 dma_mark_clean(phys_to_virt(paddr), size); in unmap_single()
831 phys_addr_t paddr = dma_to_phys(hwdev, dev_addr); in swiotlb_sync_single() local
835 if (is_swiotlb_buffer(paddr)) { in swiotlb_sync_single()
836 swiotlb_tbl_sync_single(hwdev, paddr, size, dir, target); in swiotlb_sync_single()
843 dma_mark_clean(phys_to_virt(paddr), size); in swiotlb_sync_single()
888 phys_addr_t paddr = sg_phys(sg); in swiotlb_map_sg_attrs() local
889 dma_addr_t dev_addr = phys_to_dma(hwdev, paddr); in swiotlb_map_sg_attrs()