Lines Matching refs:xef
47 if (q->xef)
48 xe_file_put(q->xef);
294 * Before releasing our ref to lrc and xef, accumulate our run ticks
298 if (q->xef && atomic_dec_and_test(&q->xef->exec_queue.pending_removal))
299 wake_up_var(&q->xef->exec_queue.pending_removal);
333 struct xe_exec_queue *xe_exec_queue_lookup(struct xe_file *xef, u32 id)
337 mutex_lock(&xef->exec_queue.lock);
338 q = xa_load(&xef->exec_queue.xa, id);
341 mutex_unlock(&xef->exec_queue.lock);
585 struct xe_file *xef = to_xe_file(file);
657 vm = xe_vm_lookup(xef, args->vm_id);
696 q->xef = xe_file_get(xef);
699 err = xa_alloc(&xef->exec_queue.xa, &id, q, xa_limit_32b, GFP_KERNEL);
718 struct xe_file *xef = to_xe_file(file);
726 q = xe_exec_queue_lookup(xef, args->exec_queue_id);
826 if (!q->xef)
842 q->xef->run_ticks[q->class] += (new_ts - old_ts) * q->width;
874 struct xe_file *xef = to_xe_file(file);
882 mutex_lock(&xef->exec_queue.lock);
883 q = xa_erase(&xef->exec_queue.xa, args->exec_queue_id);
885 atomic_inc(&xef->exec_queue.pending_removal);
886 mutex_unlock(&xef->exec_queue.lock);