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 bfn = pfn_to_bfn(XEN_PFN_DOWN(paddr)); in xen_phys_to_bus()
88 dma |= paddr & ~XEN_PAGE_MASK; in xen_phys_to_bus()
97 phys_addr_t paddr = dma; in xen_bus_to_phys() local
99 paddr |= baddr & ~XEN_PAGE_MASK; in xen_bus_to_phys()
101 return paddr; in xen_bus_to_phys()
143 phys_addr_t paddr = XEN_PFN_PHYS(xen_pfn); in is_xen_swiotlb_buffer() local
149 if (pfn_valid(PFN_DOWN(paddr))) { in is_xen_swiotlb_buffer()
150 return paddr >= virt_to_phys(xen_io_tlb_start) && in is_xen_swiotlb_buffer()
151 paddr < virt_to_phys(xen_io_tlb_end); in is_xen_swiotlb_buffer()
439 phys_addr_t paddr = xen_bus_to_phys(dev_addr); in xen_unmap_single() local
447 swiotlb_tbl_unmap_single(hwdev, paddr, size, dir); in xen_unmap_single()
460 dma_mark_clean(phys_to_virt(paddr), size); in xen_unmap_single()
486 phys_addr_t paddr = xen_bus_to_phys(dev_addr); in xen_swiotlb_sync_single() local
495 swiotlb_tbl_sync_single(hwdev, paddr, size, dir, target); in xen_swiotlb_sync_single()
503 dma_mark_clean(phys_to_virt(paddr), size); in xen_swiotlb_sync_single()
549 phys_addr_t paddr = sg_phys(sg); in xen_swiotlb_map_sg_attrs() local
550 dma_addr_t dev_addr = xen_phys_to_bus(paddr); in xen_swiotlb_map_sg_attrs()
553 xen_arch_need_swiotlb(hwdev, paddr, dev_addr) || in xen_swiotlb_map_sg_attrs()
555 range_straddles_page_boundary(paddr, sg->length)) { in xen_swiotlb_map_sg_attrs()
581 xen_dma_map_page(hwdev, pfn_to_page(paddr >> PAGE_SHIFT), in xen_swiotlb_map_sg_attrs()
583 paddr & ~PAGE_MASK, in xen_swiotlb_map_sg_attrs()