Lines Matching refs:paddr
83 static inline dma_addr_t xen_phys_to_bus(phys_addr_t paddr) in xen_phys_to_bus() argument
85 unsigned long mfn = pfn_to_mfn(PFN_DOWN(paddr)); in xen_phys_to_bus()
88 dma |= paddr & ~PAGE_MASK; in xen_phys_to_bus()
97 phys_addr_t paddr = dma; in xen_bus_to_phys() local
99 paddr |= baddr & ~PAGE_MASK; in xen_bus_to_phys()
101 return paddr; in xen_bus_to_phys()
143 phys_addr_t paddr; in is_xen_swiotlb_buffer() local
150 paddr = PFN_PHYS(pfn); in is_xen_swiotlb_buffer()
151 return paddr >= virt_to_phys(xen_io_tlb_start) && in is_xen_swiotlb_buffer()
152 paddr < virt_to_phys(xen_io_tlb_end); in is_xen_swiotlb_buffer()
446 phys_addr_t paddr = xen_bus_to_phys(dev_addr); in xen_unmap_single() local
454 swiotlb_tbl_unmap_single(hwdev, paddr, size, dir); in xen_unmap_single()
467 dma_mark_clean(phys_to_virt(paddr), size); in xen_unmap_single()
493 phys_addr_t paddr = xen_bus_to_phys(dev_addr); in xen_swiotlb_sync_single() local
502 swiotlb_tbl_sync_single(hwdev, paddr, size, dir, target); in xen_swiotlb_sync_single()
510 dma_mark_clean(phys_to_virt(paddr), size); in xen_swiotlb_sync_single()
556 phys_addr_t paddr = sg_phys(sg); in xen_swiotlb_map_sg_attrs() local
557 dma_addr_t dev_addr = xen_phys_to_bus(paddr); in xen_swiotlb_map_sg_attrs()
560 xen_arch_need_swiotlb(hwdev, PFN_DOWN(paddr), PFN_DOWN(dev_addr)) || in xen_swiotlb_map_sg_attrs()
562 range_straddles_page_boundary(paddr, sg->length)) { in xen_swiotlb_map_sg_attrs()
588 xen_dma_map_page(hwdev, pfn_to_page(paddr >> PAGE_SHIFT), in xen_swiotlb_map_sg_attrs()
590 paddr & ~PAGE_MASK, in xen_swiotlb_map_sg_attrs()