Lines Matching full:job

45  * @guilty: atomic_t set to 1 when a job on this queue
130 /* Return true if entity could provide a job. */
195 struct drm_sched_job *job = container_of(wrk, typeof(*job), work); in drm_sched_entity_kill_jobs_work() local
197 drm_sched_fence_finished(job->s_fence); in drm_sched_entity_kill_jobs_work()
198 WARN_ON(job->s_fence->parent); in drm_sched_entity_kill_jobs_work()
199 job->sched->ops->free_job(job); in drm_sched_entity_kill_jobs_work()
207 struct drm_sched_job *job = container_of(cb, struct drm_sched_job, in drm_sched_entity_kill_jobs_cb() local
211 INIT_WORK(&job->work, drm_sched_entity_kill_jobs_work); in drm_sched_entity_kill_jobs_cb()
212 schedule_work(&job->work); in drm_sched_entity_kill_jobs_cb()
216 drm_sched_job_dependency(struct drm_sched_job *job, in drm_sched_job_dependency() argument
219 if (!xa_empty(&job->dependencies)) in drm_sched_job_dependency()
220 return xa_erase(&job->dependencies, job->last_dependency++); in drm_sched_job_dependency()
222 if (job->sched->ops->dependency) in drm_sched_job_dependency()
223 return job->sched->ops->dependency(job, entity); in drm_sched_job_dependency()
230 struct drm_sched_job *job; in drm_sched_entity_kill_jobs() local
234 while ((job = to_drm_sched_job(spsc_queue_pop(&entity->job_queue)))) { in drm_sched_entity_kill_jobs()
235 struct drm_sched_fence *s_fence = job->s_fence; in drm_sched_entity_kill_jobs()
238 while ((f = drm_sched_job_dependency(job, entity))) { in drm_sched_entity_kill_jobs()
248 * not even have chance to submit it's first job to HW in drm_sched_entity_kill_jobs()
252 drm_sched_entity_kill_jobs_cb(NULL, &job->finish_cb); in drm_sched_entity_kill_jobs()
258 &job->finish_cb, in drm_sched_entity_kill_jobs()
261 drm_sched_entity_kill_jobs_cb(NULL, &job->finish_cb); in drm_sched_entity_kill_jobs()
274 * If there are potentially job still in flight or getting newly queued
383 * Fence is a scheduled/finished fence from a job in drm_sched_entity_add_dependency_cb()
478 /* stay on the same engine if the previous job hasn't finished */ in drm_sched_entity_select_rq()
496 * drm_sched_entity_push_job - Submit a job to the entity's job queue
497 * @sched_job: job to submit
499 * Note: To guarantee that the order of insertion to queue matches the job's
516 /* first job wakes up scheduler */ in drm_sched_entity_push_job()