Lines Matching refs:xef
1998 if (vm->xef) in vm_destroy_work_func()
1999 xe_file_put(vm->xef); in vm_destroy_work_func()
2012 struct xe_vm *xe_vm_lookup(struct xe_file *xef, u32 id) in xe_vm_lookup() argument
2016 mutex_lock(&xef->vm.lock); in xe_vm_lookup()
2017 vm = xa_load(&xef->vm.xa, id); in xe_vm_lookup()
2020 mutex_unlock(&xef->vm.lock); in xe_vm_lookup()
2060 struct xe_file *xef = to_xe_file(file); in xe_vm_create_ioctl() local
2116 vm->xef = xe_file_get(xef); in xe_vm_create_ioctl()
2121 xe_drm_client_add_bo(vm->xef->client, vm->pt_root[id]->bo); in xe_vm_create_ioctl()
2129 err = xa_alloc(&xef->vm.xa, &id, vm, xa_limit_32b, GFP_KERNEL); in xe_vm_create_ioctl()
2147 struct xe_file *xef = to_xe_file(file); in xe_vm_destroy_ioctl() local
2156 mutex_lock(&xef->vm.lock); in xe_vm_destroy_ioctl()
2157 vm = xa_load(&xef->vm.xa, args->vm_id); in xe_vm_destroy_ioctl()
2163 xa_erase(&xef->vm.xa, args->vm_id); in xe_vm_destroy_ioctl()
2164 mutex_unlock(&xef->vm.lock); in xe_vm_destroy_ioctl()
3521 struct xe_file *xef = to_xe_file(file); in xe_vm_bind_ioctl() local
3536 vm = xe_vm_lookup(xef, args->vm_id); in xe_vm_bind_ioctl()
3545 q = xe_exec_queue_lookup(xef, args->exec_queue_id); in xe_vm_bind_ioctl()
3635 err = xe_sync_entry_parse(xe, xef, &syncs[num_syncs], in xe_vm_bind_ioctl()