Lines Matching full:job
26 * xe_sched_job_get - get reference to XE schedule job
27 * @job: XE schedule job object
29 * Increment XE schedule job's reference count
31 static inline struct xe_sched_job *xe_sched_job_get(struct xe_sched_job *job) in xe_sched_job_get() argument
33 kref_get(&job->refcount); in xe_sched_job_get()
34 return job; in xe_sched_job_get()
38 * xe_sched_job_put - put reference to XE schedule job
39 * @job: XE schedule job object
41 * Decrement XE schedule job's reference count, call xe_sched_job_destroy when
44 static inline void xe_sched_job_put(struct xe_sched_job *job) in xe_sched_job_put() argument
46 kref_put(&job->refcount, xe_sched_job_destroy); in xe_sched_job_put()
49 void xe_sched_job_set_error(struct xe_sched_job *job, int error);
50 static inline bool xe_sched_job_is_error(struct xe_sched_job *job) in xe_sched_job_is_error() argument
52 return job->fence->error < 0; in xe_sched_job_is_error()
55 bool xe_sched_job_started(struct xe_sched_job *job);
56 bool xe_sched_job_completed(struct xe_sched_job *job);
58 void xe_sched_job_arm(struct xe_sched_job *job);
59 void xe_sched_job_push(struct xe_sched_job *job);
61 int xe_sched_job_last_fence_add_dep(struct xe_sched_job *job, struct xe_vm *vm);
62 void xe_sched_job_init_user_fence(struct xe_sched_job *job,
71 static inline u32 xe_sched_job_seqno(struct xe_sched_job *job) in xe_sched_job_seqno() argument
73 return job->fence ? job->fence->seqno : 0; in xe_sched_job_seqno()
76 static inline u32 xe_sched_job_lrc_seqno(struct xe_sched_job *job) in xe_sched_job_lrc_seqno() argument
78 return job->lrc_seqno; in xe_sched_job_lrc_seqno()
82 xe_sched_job_add_migrate_flush(struct xe_sched_job *job, u32 flags) in xe_sched_job_add_migrate_flush() argument
84 job->migrate_flush_flags = flags; in xe_sched_job_add_migrate_flush()
89 struct xe_sched_job_snapshot *xe_sched_job_snapshot_capture(struct xe_sched_job *job);
93 int xe_sched_job_add_deps(struct xe_sched_job *job, struct dma_resv *resv,