Lines Matching refs:scratch_pt

989 			vgpu->gtt.scratch_pt[cur_pt_type].page_mfn)  in ppgtt_invalidate_spt_by_shadow_entry()
1013 if (!pfn || pfn == vgpu->gtt.scratch_pt[type].page_mfn) in ppgtt_invalidate_pte()
1394 vgpu->gtt.scratch_pt[spt->shadow_page.type].page_mfn) in ppgtt_handle_guest_entry_removal()
1665 vgpu->gtt.scratch_pt[type].page_mfn); in ppgtt_handle_guest_write_page_table()
1672 vgpu->gtt.scratch_pt[type].page_mfn); in ppgtt_handle_guest_write_page_table()
1676 vgpu->gtt.scratch_pt[type].page_mfn); in ppgtt_handle_guest_write_page_table()
1784 ops->set_pfn(&se, vgpu->gtt.scratch_pt[type].page_mfn); in ppgtt_handle_guest_write_page_table_bytes()
2423 void *scratch_pt; in alloc_scratch_pages() local
2432 scratch_pt = (void *)get_zeroed_page(GFP_KERNEL); in alloc_scratch_pages()
2433 if (!scratch_pt) { in alloc_scratch_pages()
2438 daddr = dma_map_page(dev, virt_to_page(scratch_pt), 0, 4096, DMA_BIDIRECTIONAL); in alloc_scratch_pages()
2441 __free_page(virt_to_page(scratch_pt)); in alloc_scratch_pages()
2444 gtt->scratch_pt[type].page_mfn = in alloc_scratch_pages()
2446 gtt->scratch_pt[type].page = virt_to_page(scratch_pt); in alloc_scratch_pages()
2448 vgpu->id, type, gtt->scratch_pt[type].page_mfn); in alloc_scratch_pages()
2463 ops->set_pfn(&se, gtt->scratch_pt[type - 1].page_mfn); in alloc_scratch_pages()
2473 ops->set_entry(scratch_pt, &se, i, false, 0, vgpu); in alloc_scratch_pages()
2486 if (vgpu->gtt.scratch_pt[i].page != NULL) { in release_scratch_page_tree()
2487 daddr = (dma_addr_t)(vgpu->gtt.scratch_pt[i].page_mfn << in release_scratch_page_tree()
2490 __free_page(vgpu->gtt.scratch_pt[i].page); in release_scratch_page_tree()
2491 vgpu->gtt.scratch_pt[i].page = NULL; in release_scratch_page_tree()
2492 vgpu->gtt.scratch_pt[i].page_mfn = 0; in release_scratch_page_tree()