Lines Matching refs:pt_root
1611 for (i = MAX_HUGEPTE_LEVEL; i < vm->pt_root[id]->level; i++) { in xe_vm_create_scratch()
1634 if (!vm->pt_root[id]) in xe_vm_free_scratch()
1637 for (i = MAX_HUGEPTE_LEVEL; i < vm->pt_root[id]->level; ++i) in xe_vm_free_scratch()
1743 vm->pt_root[id] = xe_pt_create(vm, tile, xe->info.vm_max_level); in xe_vm_create()
1744 if (IS_ERR(vm->pt_root[id])) { in xe_vm_create()
1745 err = PTR_ERR(vm->pt_root[id]); in xe_vm_create()
1746 vm->pt_root[id] = NULL; in xe_vm_create()
1753 if (!vm->pt_root[id]) in xe_vm_create()
1768 if (!vm->pt_root[id]) in xe_vm_create()
1771 xe_pt_populate_empty(tile, vm, vm->pt_root[id]); in xe_vm_create()
1781 if (!vm->pt_root[id]) in xe_vm_create()
1849 if (vm->pt_root[id]) in xe_vm_close()
1850 xe_pt_clear(xe, vm->pt_root[id]); in xe_vm_close()
1931 if (vm->pt_root[id]) { in xe_vm_close_and_put()
1932 xe_pt_destroy(vm->pt_root[id], vm->flags, NULL); in xe_vm_close_and_put()
1933 vm->pt_root[id] = NULL; in xe_vm_close_and_put()
1992 XE_WARN_ON(vm->pt_root[id]); in vm_destroy_work_func()
2027 return vm->pt_ops->pde_encode_bo(vm->pt_root[tile->id]->bo, 0, in xe_vm_pdp4_descriptor()
2120 if (vm->pt_root[id]) in xe_vm_create_ioctl()
2121 xe_drm_client_add_bo(vm->xef->client, vm->pt_root[id]->bo); in xe_vm_create_ioctl()
2125 args->reserved[0] = xe_bo_main_addr(vm->pt_root[0]->bo, XE_PAGE_SIZE); in xe_vm_create_ioctl()
3095 if (vm->pt_root[id] && !list_empty(&q->multi_gt_list)) in vm_ops_setup_tile_args()