Lines Matching defs:xef
160 if (q->xef)
161 xe_file_put(q->xef);
621 * Before releasing our ref to lrc and xef, accumulate our run ticks
625 if (q->xef && atomic_dec_and_test(&q->xef->exec_queue.pending_removal))
626 wake_up_var(&q->xef->exec_queue.pending_removal);
668 * @xef: Xe file private data
675 struct xe_exec_queue *xe_exec_queue_lookup(struct xe_file *xef, u32 id)
679 mutex_lock(&xef->exec_queue.lock);
680 q = xa_load(&xef->exec_queue.xa, id);
683 mutex_unlock(&xef->exec_queue.lock);
870 primary = xe_exec_queue_lookup(q->vm->xef, primary_id);
940 if (XE_IOCTL_DBG(xe, !q->vm->xef))
972 /* For queue creation time (!q->xef) setting, just store the priority value */
973 if (!q->xef) {
1026 struct xe_file *xef = to_xe_file(file);
1039 q = xe_exec_queue_lookup(xef, args->exec_queue_id);
1263 struct xe_file *xef = to_xe_file(file);
1303 vm = xe_vm_lookup(xef, args->vm_id);
1360 vm = xe_vm_lookup(xef, args->vm_id);
1412 q->xef = xe_file_get(xef);
1417 err = xa_alloc(&xef->exec_queue.xa, &id, q, xa_limit_32b, GFP_KERNEL);
1453 struct xe_file *xef = to_xe_file(file);
1461 q = xe_exec_queue_lookup(xef, args->exec_queue_id);
1542 if (!q->xef)
1558 q->xef->run_ticks[q->class] += (new_ts - old_ts) * q->width;
1600 struct xe_file *xef = to_xe_file(file);
1608 mutex_lock(&xef->exec_queue.lock);
1609 q = xa_erase(&xef->exec_queue.xa, args->exec_queue_id);
1611 atomic_inc(&xef->exec_queue.pending_removal);
1612 mutex_unlock(&xef->exec_queue.lock);