Lines Matching refs:phys
269 phys_addr_t phys; in xen_swiotlb_alloc_coherent() local
300 phys = dma_to_phys(hwdev, *dma_handle); in xen_swiotlb_alloc_coherent()
301 dev_addr = xen_phys_to_dma(hwdev, phys); in xen_swiotlb_alloc_coherent()
303 !range_straddles_page_boundary(phys, size)) in xen_swiotlb_alloc_coherent()
306 if (xen_create_contiguous_region(phys, order, in xen_swiotlb_alloc_coherent()
308 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent()
323 phys_addr_t phys; in xen_swiotlb_free_coherent() local
332 phys = xen_dma_to_phys(hwdev, dev_addr); in xen_swiotlb_free_coherent()
343 range_straddles_page_boundary(phys, size)) && in xen_swiotlb_free_coherent()
345 xen_destroy_contiguous_region(phys, order); in xen_swiotlb_free_coherent()
347 xen_free_coherent_pages(hwdev, size, vaddr, phys_to_dma(hwdev, phys), in xen_swiotlb_free_coherent()
363 phys_addr_t map, phys = page_to_phys(page) + offset; in xen_swiotlb_map_page() local
364 dma_addr_t dev_addr = xen_phys_to_dma(dev, phys); in xen_swiotlb_map_page()
373 !range_straddles_page_boundary(phys, size) && in xen_swiotlb_map_page()
374 !xen_arch_need_swiotlb(dev, phys, dev_addr) && in xen_swiotlb_map_page()
383 map = swiotlb_tbl_map_single(dev, phys, size, size, 0, dir, attrs); in xen_swiotlb_map_page()
387 phys = map; in xen_swiotlb_map_page()
402 arch_sync_dma_for_device(phys, size, dir); in xen_swiotlb_map_page()