Lines Matching refs:phys
266 phys_addr_t phys; in xen_swiotlb_alloc_coherent() local
297 phys = dma_to_phys(hwdev, *dma_handle); in xen_swiotlb_alloc_coherent()
298 dev_addr = xen_phys_to_dma(hwdev, phys); in xen_swiotlb_alloc_coherent()
300 !range_straddles_page_boundary(phys, size)) in xen_swiotlb_alloc_coherent()
303 if (xen_create_contiguous_region(phys, order, in xen_swiotlb_alloc_coherent()
305 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent()
320 phys_addr_t phys; in xen_swiotlb_free_coherent() local
329 phys = xen_dma_to_phys(hwdev, dev_addr); in xen_swiotlb_free_coherent()
340 range_straddles_page_boundary(phys, size)) && in xen_swiotlb_free_coherent()
342 xen_destroy_contiguous_region(phys, order); in xen_swiotlb_free_coherent()
344 xen_free_coherent_pages(hwdev, size, vaddr, phys_to_dma(hwdev, phys), in xen_swiotlb_free_coherent()
360 phys_addr_t map, phys = page_to_phys(page) + offset; in xen_swiotlb_map_page() local
361 dma_addr_t dev_addr = xen_phys_to_dma(dev, phys); in xen_swiotlb_map_page()
370 !range_straddles_page_boundary(phys, size) && in xen_swiotlb_map_page()
371 !xen_arch_need_swiotlb(dev, phys, dev_addr) && in xen_swiotlb_map_page()
380 map = swiotlb_tbl_map_single(dev, phys, size, size, dir, attrs); in xen_swiotlb_map_page()
384 phys = map; in xen_swiotlb_map_page()
399 arch_sync_dma_for_device(phys, size, dir); in xen_swiotlb_map_page()