Lines Matching refs:phys
303 phys_addr_t phys; in xen_swiotlb_alloc_coherent() local
334 phys = *dma_handle; in xen_swiotlb_alloc_coherent()
335 dev_addr = xen_phys_to_bus(phys); in xen_swiotlb_alloc_coherent()
337 !range_straddles_page_boundary(phys, size)) in xen_swiotlb_alloc_coherent()
340 if (xen_create_contiguous_region(phys, order, in xen_swiotlb_alloc_coherent()
342 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent()
356 phys_addr_t phys; in xen_swiotlb_free_coherent() local
367 phys = xen_bus_to_phys(dev_addr); in xen_swiotlb_free_coherent()
370 range_straddles_page_boundary(phys, size)) in xen_swiotlb_free_coherent()
371 xen_destroy_contiguous_region(phys, order); in xen_swiotlb_free_coherent()
373 xen_free_coherent_pages(hwdev, size, vaddr, (dma_addr_t)phys, attrs); in xen_swiotlb_free_coherent()
390 phys_addr_t map, phys = page_to_phys(page) + offset; in xen_swiotlb_map_page() local
391 dma_addr_t dev_addr = xen_phys_to_bus(phys); in xen_swiotlb_map_page()
400 !range_straddles_page_boundary(phys, size) && in xen_swiotlb_map_page()
401 !xen_arch_need_swiotlb(dev, PFN_DOWN(phys), PFN_DOWN(dev_addr)) && in xen_swiotlb_map_page()
415 map = swiotlb_tbl_map_single(dev, start_dma_addr, phys, size, dir); in xen_swiotlb_map_page()