Lines Matching refs:job
33 struct amdgpu_job *job = to_amdgpu_job(sched_job); in amdgpu_sched_dependency() local
34 return amdgpu_sync_get_fence(&job->ibs->sync); in amdgpu_sched_dependency()
40 struct amdgpu_job *job; in amdgpu_sched_run_job() local
47 job = to_amdgpu_job(sched_job); in amdgpu_sched_run_job()
48 trace_amdgpu_sched_run_job(job); in amdgpu_sched_run_job()
49 r = amdgpu_ib_schedule(job->adev, job->num_ibs, job->ibs, job->owner); in amdgpu_sched_run_job()
55 fence = job->ibs[job->num_ibs - 1].fence; in amdgpu_sched_run_job()
59 if (job->free_job) in amdgpu_sched_run_job()
60 job->free_job(job); in amdgpu_sched_run_job()
62 kfree(job); in amdgpu_sched_run_job()
81 struct amdgpu_job *job = in amdgpu_sched_ib_submit_kernel_helper() local
83 if (!job) in amdgpu_sched_ib_submit_kernel_helper()
85 job->base.sched = &ring->sched; in amdgpu_sched_ib_submit_kernel_helper()
86 job->base.s_entity = &adev->kernel_ctx.rings[ring->idx].entity; in amdgpu_sched_ib_submit_kernel_helper()
87 job->base.s_fence = amd_sched_fence_create(job->base.s_entity, owner); in amdgpu_sched_ib_submit_kernel_helper()
88 if (!job->base.s_fence) { in amdgpu_sched_ib_submit_kernel_helper()
89 kfree(job); in amdgpu_sched_ib_submit_kernel_helper()
92 *f = fence_get(&job->base.s_fence->base); in amdgpu_sched_ib_submit_kernel_helper()
94 job->adev = adev; in amdgpu_sched_ib_submit_kernel_helper()
95 job->ibs = ibs; in amdgpu_sched_ib_submit_kernel_helper()
96 job->num_ibs = num_ibs; in amdgpu_sched_ib_submit_kernel_helper()
97 job->owner = owner; in amdgpu_sched_ib_submit_kernel_helper()
98 job->free_job = free_job; in amdgpu_sched_ib_submit_kernel_helper()
99 amd_sched_entity_push_job(&job->base); in amdgpu_sched_ib_submit_kernel_helper()