Lines Matching refs:sched

12 int xe_sched_init(struct xe_gpu_scheduler *sched,
20 void xe_sched_fini(struct xe_gpu_scheduler *sched);
22 void xe_sched_submission_start(struct xe_gpu_scheduler *sched);
23 void xe_sched_submission_stop(struct xe_gpu_scheduler *sched);
25 void xe_sched_submission_resume_tdr(struct xe_gpu_scheduler *sched);
27 void xe_sched_add_msg(struct xe_gpu_scheduler *sched,
29 void xe_sched_add_msg_locked(struct xe_gpu_scheduler *sched,
32 static inline void xe_sched_msg_lock(struct xe_gpu_scheduler *sched) in xe_sched_msg_lock() argument
34 spin_lock(&sched->base.job_list_lock); in xe_sched_msg_lock()
37 static inline void xe_sched_msg_unlock(struct xe_gpu_scheduler *sched) in xe_sched_msg_unlock() argument
39 spin_unlock(&sched->base.job_list_lock); in xe_sched_msg_unlock()
42 static inline void xe_sched_stop(struct xe_gpu_scheduler *sched) in xe_sched_stop() argument
44 drm_sched_stop(&sched->base, NULL); in xe_sched_stop()
47 static inline void xe_sched_tdr_queue_imm(struct xe_gpu_scheduler *sched) in xe_sched_tdr_queue_imm() argument
49 drm_sched_tdr_queue_imm(&sched->base); in xe_sched_tdr_queue_imm()
52 static inline void xe_sched_resubmit_jobs(struct xe_gpu_scheduler *sched) in xe_sched_resubmit_jobs() argument
54 drm_sched_resubmit_jobs(&sched->base); in xe_sched_resubmit_jobs()
63 static inline void xe_sched_add_pending_job(struct xe_gpu_scheduler *sched, in xe_sched_add_pending_job() argument
66 spin_lock(&sched->base.job_list_lock); in xe_sched_add_pending_job()
67 list_add(&job->drm.list, &sched->base.pending_list); in xe_sched_add_pending_job()
68 spin_unlock(&sched->base.job_list_lock); in xe_sched_add_pending_job()
72 struct xe_sched_job *xe_sched_first_pending_job(struct xe_gpu_scheduler *sched) in xe_sched_first_pending_job() argument
74 return list_first_entry_or_null(&sched->base.pending_list, in xe_sched_first_pending_job()
80 struct xe_gpu_scheduler *sched) in xe_sched_entity_init() argument
83 (struct drm_gpu_scheduler **)&sched, in xe_sched_entity_init()