Lines Matching refs:phys
302 phys_addr_t phys; in xen_swiotlb_alloc_coherent() local
330 phys = *dma_handle; in xen_swiotlb_alloc_coherent()
331 dev_addr = xen_phys_to_bus(phys); in xen_swiotlb_alloc_coherent()
333 !range_straddles_page_boundary(phys, size)) in xen_swiotlb_alloc_coherent()
336 if (xen_create_contiguous_region(phys, order, in xen_swiotlb_alloc_coherent()
338 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent()
352 phys_addr_t phys; in xen_swiotlb_free_coherent() local
360 phys = xen_bus_to_phys(dev_addr); in xen_swiotlb_free_coherent()
363 range_straddles_page_boundary(phys, size)) in xen_swiotlb_free_coherent()
364 xen_destroy_contiguous_region(phys, order); in xen_swiotlb_free_coherent()
366 xen_free_coherent_pages(hwdev, size, vaddr, (dma_addr_t)phys, attrs); in xen_swiotlb_free_coherent()
383 phys_addr_t map, phys = page_to_phys(page) + offset; in xen_swiotlb_map_page() local
384 dma_addr_t dev_addr = xen_phys_to_bus(phys); in xen_swiotlb_map_page()
393 !range_straddles_page_boundary(phys, size) && in xen_swiotlb_map_page()
394 !xen_arch_need_swiotlb(dev, phys, dev_addr) && in xen_swiotlb_map_page()
408 map = swiotlb_tbl_map_single(dev, start_dma_addr, phys, size, dir); in xen_swiotlb_map_page()