| /linux/drivers/gpu/drm/scheduler/ |
| H A D | sched_entity.c | 469 struct drm_sched_job *sched_job) in drm_sched_entity_add_dependency_cb() argument 501 trace_drm_sched_job_unschedulable(sched_job, entity->dependency); in drm_sched_entity_add_dependency_cb() 535 struct drm_sched_job *sched_job; in drm_sched_entity_pop_job() local 537 sched_job = drm_sched_entity_queue_peek(entity); in drm_sched_entity_pop_job() 538 if (!sched_job) in drm_sched_entity_pop_job() 542 drm_sched_job_dependency(sched_job, entity))) { in drm_sched_entity_pop_job() 543 if (drm_sched_entity_add_dependency_cb(entity, sched_job)) in drm_sched_entity_pop_job() 549 dma_fence_set_error(&sched_job->s_fence->finished, -ECANCELED); in drm_sched_entity_pop_job() 553 dma_fence_get(&sched_job->s_fence->finished)); in drm_sched_entity_pop_job() 571 sched_job->entity = NULL; in drm_sched_entity_pop_job() [all …]
|
| /linux/drivers/gpu/drm/scheduler/tests/ |
| H A D | mock_scheduler.c | 166 static struct dma_fence *mock_sched_run_job(struct drm_sched_job *sched_job) in mock_sched_run_job() argument 169 drm_sched_to_mock_sched(sched_job->sched); in mock_sched_run_job() 170 struct drm_mock_sched_job *job = drm_sched_job_to_mock_job(sched_job); in mock_sched_run_job() 217 mock_sched_timedout_job(struct drm_sched_job *sched_job) in mock_sched_timedout_job() argument 219 struct drm_mock_scheduler *sched = drm_sched_to_mock_sched(sched_job->sched); in mock_sched_timedout_job() 220 struct drm_mock_sched_job *job = drm_sched_job_to_mock_job(sched_job); in mock_sched_timedout_job() 238 drm_sched_job_cleanup(sched_job); in mock_sched_timedout_job() 244 static void mock_sched_free_job(struct drm_sched_job *sched_job) in mock_sched_free_job() argument 246 struct drm_mock_sched_job *job = drm_sched_job_to_mock_job(sched_job); in mock_sched_free_job() 249 drm_sched_job_cleanup(sched_job); in mock_sched_free_job() [all …]
|
| /linux/drivers/gpu/drm/etnaviv/ |
| H A D | etnaviv_sched.h | 14 struct etnaviv_gem_submit *to_etnaviv_submit(struct drm_sched_job *sched_job) in to_etnaviv_submit() argument 16 return container_of(sched_job, struct etnaviv_gem_submit, sched_job); in to_etnaviv_submit()
|
| H A D | etnaviv_gem.h | 93 struct drm_sched_job sched_job; member
|
| /linux/drivers/accel/rocket/ |
| H A D | rocket_job.c | 25 to_rocket_job(struct drm_sched_job *sched_job) in to_rocket_job() argument 27 return container_of(sched_job, struct rocket_job, base); in to_rocket_job() 272 static void rocket_job_free(struct drm_sched_job *sched_job) in rocket_job_free() argument 274 struct rocket_job *job = to_rocket_job(sched_job); in rocket_job_free() 276 drm_sched_job_cleanup(sched_job); in rocket_job_free() 294 static struct dma_fence *rocket_job_run(struct drm_sched_job *sched_job) in rocket_job_run() argument 296 struct rocket_job *job = to_rocket_job(sched_job); in rocket_job_run() 298 struct rocket_core *core = sched_to_core(rdev, sched_job->sched); in rocket_job_run() 397 static enum drm_gpu_sched_stat rocket_job_timedout(struct drm_sched_job *sched_job) in rocket_job_timedout() argument 399 struct rocket_job *job = to_rocket_job(sched_job); in rocket_job_timedout() [all …]
|
| /linux/drivers/accel/ethosu/ |
| H A D | ethosu_job.c | 25 static struct ethosu_job *to_ethosu_job(struct drm_sched_job *sched_job) in to_ethosu_job() argument 27 return container_of(sched_job, struct ethosu_job, base); in to_ethosu_job() 184 static void ethosu_job_free(struct drm_sched_job *sched_job) in ethosu_job_free() argument 186 struct ethosu_job *job = to_ethosu_job(sched_job); in ethosu_job_free() 188 drm_sched_job_cleanup(sched_job); in ethosu_job_free() 212 static struct dma_fence *ethosu_job_run(struct drm_sched_job *sched_job) in ethosu_job_run() argument 214 struct ethosu_job *job = to_ethosu_job(sched_job); in ethosu_job_run()
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_sched.h | 13 #define to_nouveau_job(sched_job) \ argument 14 container_of((sched_job), struct nouveau_job, base)
|
| /linux/drivers/accel/amdxdna/ |
| H A D | aie2_ctx.c | 387 aie2_sched_job_run(struct drm_sched_job *sched_job) in aie2_sched_job_run() argument 389 struct amdxdna_sched_job *job = drm_job_to_xdna_job(sched_job); in aie2_sched_job_run() 395 trace_xdna_job(sched_job, hwctx->name, "job run", in aie2_sched_job_run() 447 trace_xdna_job(sched_job, hwctx->name, "sent to device", in aie2_sched_job_run() 453 static void aie2_sched_job_free(struct drm_sched_job *sched_job) in aie2_sched_job_free() argument 455 struct amdxdna_sched_job *job = drm_job_to_xdna_job(sched_job); in aie2_sched_job_free() 459 trace_xdna_job(sched_job, hwctx->name, "job free", in aie2_sched_job_free() 464 drm_sched_job_cleanup(sched_job); in aie2_sched_job_free() 469 aie2_sched_job_timedout(struct drm_sched_job *sched_job) in aie2_sched_job_timedout() argument 471 struct amdxdna_sched_job *job = drm_job_to_xdna_job(sched_job); in aie2_sched_job_timedout() [all …]
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_queue.c | 562 pvr_queue_prepare_job(struct drm_sched_job *sched_job, in pvr_queue_prepare_job() argument 565 struct pvr_job *job = container_of(sched_job, struct pvr_job, base); in pvr_queue_prepare_job() 747 static struct dma_fence *pvr_queue_run_job(struct drm_sched_job *sched_job) in pvr_queue_run_job() argument 749 struct pvr_job *job = container_of(sched_job, struct pvr_job, base); in pvr_queue_run_job() 923 static void pvr_queue_free_job(struct drm_sched_job *sched_job) in pvr_queue_free_job() argument 925 struct pvr_job *job = container_of(sched_job, struct pvr_job, base); in pvr_queue_free_job() 927 drm_sched_job_cleanup(sched_job); in pvr_queue_free_job()
|
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_mmu.c | 2768 panthor_vm_bind_run_job(struct drm_sched_job *sched_job) in panthor_vm_bind_run_job() argument 2770 struct panthor_vm_bind_job *job = container_of(sched_job, struct panthor_vm_bind_job, base); in panthor_vm_bind_run_job() 2802 void panthor_vm_bind_job_put(struct drm_sched_job *sched_job) in panthor_vm_bind_job_put() argument 2805 container_of(sched_job, struct panthor_vm_bind_job, base); in panthor_vm_bind_job_put() 2807 if (sched_job) in panthor_vm_bind_job_put() 2812 panthor_vm_bind_free_job(struct drm_sched_job *sched_job) in panthor_vm_bind_free_job() argument 2815 container_of(sched_job, struct panthor_vm_bind_job, base); in panthor_vm_bind_free_job() 2817 drm_sched_job_cleanup(sched_job); in panthor_vm_bind_free_job() 2826 panthor_vm_bind_timedout_job(struct drm_sched_job *sched_job) in panthor_vm_bind_timedout_job() argument 3105 struct drm_sched_job *sched_job) in panthor_vm_bind_job_prepare_resvs() argument [all …]
|
| H A D | panthor_sched.c | 3312 queue_run_job(struct drm_sched_job *sched_job) in queue_run_job() argument 3314 struct panthor_job *job = container_of(sched_job, struct panthor_job, base); in queue_run_job() 3413 queue_timedout_job(struct drm_sched_job *sched_job) in queue_timedout_job() argument 3415 struct panthor_job *job = container_of(sched_job, struct panthor_job, base); in queue_timedout_job() 3447 static void queue_free_job(struct drm_sched_job *sched_job) in queue_free_job() argument 3449 panthor_job_put(sched_job); in queue_free_job() 3943 struct drm_sched_job *panthor_job_get(struct drm_sched_job *sched_job) in panthor_job_get() argument 3945 if (sched_job) { in panthor_job_get() 3946 struct panthor_job *job = container_of(sched_job, struct panthor_job, base); in panthor_job_get() 3951 return sched_job; in panthor_job_get() [all …]
|