Lines Matching full:job
24 * xe_sched_job_get - get reference to XE schedule job
25 * @job: XE schedule job object
27 * Increment XE schedule job's reference count
29 static inline struct xe_sched_job *xe_sched_job_get(struct xe_sched_job *job) in xe_sched_job_get() argument
31 kref_get(&job->refcount); in xe_sched_job_get()
32 return job; in xe_sched_job_get()
36 * xe_sched_job_put - put reference to XE schedule job
37 * @job: XE schedule job object
39 * Decrement XE schedule job's reference count, call xe_sched_job_destroy when
42 static inline void xe_sched_job_put(struct xe_sched_job *job) in xe_sched_job_put() argument
44 kref_put(&job->refcount, xe_sched_job_destroy); in xe_sched_job_put()
47 void xe_sched_job_set_error(struct xe_sched_job *job, int error);
48 static inline bool xe_sched_job_is_error(struct xe_sched_job *job) in xe_sched_job_is_error() argument
50 return job->fence->error < 0; in xe_sched_job_is_error()
53 bool xe_sched_job_started(struct xe_sched_job *job);
54 bool xe_sched_job_completed(struct xe_sched_job *job);
56 void xe_sched_job_arm(struct xe_sched_job *job);
57 void xe_sched_job_push(struct xe_sched_job *job);
59 int xe_sched_job_last_fence_add_dep(struct xe_sched_job *job, struct xe_vm *vm);
67 static inline u32 xe_sched_job_seqno(struct xe_sched_job *job) in xe_sched_job_seqno() argument
69 return job->fence->seqno; in xe_sched_job_seqno()
73 xe_sched_job_add_migrate_flush(struct xe_sched_job *job, u32 flags) in xe_sched_job_add_migrate_flush() argument
75 job->migrate_flush_flags = flags; in xe_sched_job_add_migrate_flush()