Lines Matching refs:virt
1383 dma_addr_t dma_addr, void *virt, in debug_dma_alloc_coherent() argument
1391 if (unlikely(virt == NULL)) in debug_dma_alloc_coherent()
1395 if (!is_vmalloc_addr(virt) && !virt_addr_valid(virt)) in debug_dma_alloc_coherent()
1404 entry->offset = offset_in_page(virt); in debug_dma_alloc_coherent()
1409 if (is_vmalloc_addr(virt)) in debug_dma_alloc_coherent()
1410 entry->pfn = vmalloc_to_pfn(virt); in debug_dma_alloc_coherent()
1412 entry->pfn = page_to_pfn(virt_to_page(virt)); in debug_dma_alloc_coherent()
1418 void *virt, dma_addr_t addr) in debug_dma_free_coherent() argument
1423 .offset = offset_in_page(virt), in debug_dma_free_coherent()
1430 if (!is_vmalloc_addr(virt) && !virt_addr_valid(virt)) in debug_dma_free_coherent()
1433 if (is_vmalloc_addr(virt)) in debug_dma_free_coherent()
1434 ref.pfn = vmalloc_to_pfn(virt); in debug_dma_free_coherent()
1436 ref.pfn = page_to_pfn(virt_to_page(virt)); in debug_dma_free_coherent()