Lines Matching refs:sched_job
96 #define to_drm_sched_job(sched_job) \ argument
97 container_of((sched_job), struct drm_sched_job, queue_node)
1175 struct drm_sched_job *sched_job; in drm_sched_run_job_work() local
1186 sched_job = drm_sched_entity_pop_job(entity); in drm_sched_run_job_work()
1187 if (!sched_job) { in drm_sched_run_job_work()
1193 s_fence = sched_job->s_fence; in drm_sched_run_job_work()
1195 atomic_add(sched_job->credits, &sched->credit_count); in drm_sched_run_job_work()
1196 drm_sched_job_begin(sched_job); in drm_sched_run_job_work()
1198 trace_drm_run_job(sched_job, entity); in drm_sched_run_job_work()
1199 fence = sched->ops->run_job(sched_job); in drm_sched_run_job_work()
1207 r = dma_fence_add_callback(fence, &sched_job->cb, in drm_sched_run_job_work()
1210 drm_sched_job_done(sched_job, fence->error); in drm_sched_run_job_work()
1214 drm_sched_job_done(sched_job, IS_ERR(fence) ? in drm_sched_run_job_work()