Lines Matching full:phys
283 phys_addr_t phys; in xen_swiotlb_alloc_coherent() local
288 * pseudo-phys memory layout has nothing to do with the in xen_swiotlb_alloc_coherent()
314 phys = *dma_handle; in xen_swiotlb_alloc_coherent()
315 dev_addr = xen_phys_to_bus(phys); in xen_swiotlb_alloc_coherent()
317 !range_straddles_page_boundary(phys, size)) in xen_swiotlb_alloc_coherent()
320 if (xen_create_contiguous_region(phys, order, in xen_swiotlb_alloc_coherent()
322 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent()
336 phys_addr_t phys; in xen_swiotlb_free_coherent() local
344 phys = xen_bus_to_phys(dev_addr); in xen_swiotlb_free_coherent()
350 range_straddles_page_boundary(phys, size)) && in xen_swiotlb_free_coherent()
352 xen_destroy_contiguous_region(phys, order); in xen_swiotlb_free_coherent()
354 xen_free_coherent_pages(hwdev, size, vaddr, (dma_addr_t)phys, attrs); in xen_swiotlb_free_coherent()
369 phys_addr_t map, phys = page_to_phys(page) + offset; in xen_swiotlb_map_page() local
370 dma_addr_t dev_addr = xen_phys_to_bus(phys); in xen_swiotlb_map_page()
379 !range_straddles_page_boundary(phys, size) && in xen_swiotlb_map_page()
380 !xen_arch_need_swiotlb(dev, phys, dev_addr) && in xen_swiotlb_map_page()
389 map = swiotlb_tbl_map_single(dev, start_dma_addr, phys, in xen_swiotlb_map_page()
394 phys = map; in xen_swiotlb_map_page()
408 xen_dma_sync_for_device(dev, dev_addr, phys, size, dir); in xen_swiotlb_map_page()