Lines Matching refs:sched_job
33 #define to_drm_sched_job(sched_job) \ argument
34 container_of((sched_job), struct drm_sched_job, queue_node)
407 struct drm_sched_job *sched_job; in drm_sched_entity_pop_job() local
409 sched_job = to_drm_sched_job(spsc_queue_peek(&entity->job_queue)); in drm_sched_entity_pop_job()
410 if (!sched_job) in drm_sched_entity_pop_job()
414 drm_sched_job_dependency(sched_job, entity))) { in drm_sched_entity_pop_job()
415 trace_drm_sched_job_wait_dep(sched_job, entity->dependency); in drm_sched_entity_pop_job()
423 dma_fence_set_error(&sched_job->s_fence->finished, -ECANCELED); in drm_sched_entity_pop_job()
427 entity->last_scheduled = dma_fence_get(&sched_job->s_fence->finished); in drm_sched_entity_pop_job()
437 return sched_job; in drm_sched_entity_pop_job()
492 void drm_sched_entity_push_job(struct drm_sched_job *sched_job) in drm_sched_entity_push_job() argument
494 struct drm_sched_entity *entity = sched_job->entity; in drm_sched_entity_push_job()
497 trace_drm_sched_job(sched_job, entity); in drm_sched_entity_push_job()
500 first = spsc_queue_push(&entity->job_queue, &sched_job->queue_node); in drm_sched_entity_push_job()