Lines Matching refs:job

138 		  struct panfrost_job *job)  in panfrost_lookup_bos()  argument
145 job->bo_count = args->bo_handle_count; in panfrost_lookup_bos()
147 if (!job->bo_count) in panfrost_lookup_bos()
152 job->bo_count, &job->bos); in panfrost_lookup_bos()
156 job->mappings = kvmalloc_array(job->bo_count, in panfrost_lookup_bos()
159 if (!job->mappings) in panfrost_lookup_bos()
162 for (i = 0; i < job->bo_count; i++) { in panfrost_lookup_bos()
165 bo = to_panfrost_bo(job->bos[i]); in panfrost_lookup_bos()
173 job->mappings[i] = mapping; in panfrost_lookup_bos()
196 struct panfrost_job *job) in panfrost_copy_in_sync() argument
230 ret = drm_sched_job_add_dependency(&job->base, fence); in panfrost_copy_in_sync()
248 struct panfrost_job *job; in panfrost_ioctl_submit() local
263 job = kzalloc(sizeof(*job), GFP_KERNEL); in panfrost_ioctl_submit()
264 if (!job) { in panfrost_ioctl_submit()
269 kref_init(&job->refcount); in panfrost_ioctl_submit()
271 job->pfdev = pfdev; in panfrost_ioctl_submit()
272 job->jc = args->jc; in panfrost_ioctl_submit()
273 job->requirements = args->requirements; in panfrost_ioctl_submit()
274 job->flush_id = panfrost_gpu_get_latest_flush_id(pfdev); in panfrost_ioctl_submit()
275 job->mmu = file_priv->mmu; in panfrost_ioctl_submit()
277 slot = panfrost_job_get_slot(job); in panfrost_ioctl_submit()
279 ret = drm_sched_job_init(&job->base, in panfrost_ioctl_submit()
285 ret = panfrost_copy_in_sync(dev, file, args, job); in panfrost_ioctl_submit()
289 ret = panfrost_lookup_bos(dev, file, args, job); in panfrost_ioctl_submit()
293 ret = panfrost_job_push(job); in panfrost_ioctl_submit()
299 drm_syncobj_replace_fence(sync_out, job->render_done_fence); in panfrost_ioctl_submit()
303 drm_sched_job_cleanup(&job->base); in panfrost_ioctl_submit()
305 panfrost_job_put(job); in panfrost_ioctl_submit()