Lines Matching refs:job
341 struct host1x_job *job; in tegra_drm_submit() local
348 job = host1x_job_alloc(context->channel, args->num_cmdbufs, in tegra_drm_submit()
350 if (!job) in tegra_drm_submit()
353 job->num_relocs = args->num_relocs; in tegra_drm_submit()
354 job->num_waitchk = args->num_waitchks; in tegra_drm_submit()
355 job->client = (u32)args->context; in tegra_drm_submit()
356 job->class = context->client->base.class; in tegra_drm_submit()
357 job->serialize = true; in tegra_drm_submit()
374 host1x_job_add_gather(job, bo, cmdbuf.words, cmdbuf.offset); in tegra_drm_submit()
381 err = host1x_reloc_copy_from_user(&job->relocarray[num_relocs], in tegra_drm_submit()
388 if (copy_from_user(job->waitchk, waitchks, in tegra_drm_submit()
400 job->is_addr_reg = context->client->ops->is_addr_reg; in tegra_drm_submit()
401 job->syncpt_incrs = syncpt.incrs; in tegra_drm_submit()
402 job->syncpt_id = syncpt.id; in tegra_drm_submit()
403 job->timeout = 10000; in tegra_drm_submit()
406 job->timeout = args->timeout; in tegra_drm_submit()
408 err = host1x_job_pin(job, context->client->base.dev); in tegra_drm_submit()
412 err = host1x_job_submit(job); in tegra_drm_submit()
416 args->fence = job->syncpt_end; in tegra_drm_submit()
418 host1x_job_put(job); in tegra_drm_submit()
422 host1x_job_unpin(job); in tegra_drm_submit()
424 host1x_job_put(job); in tegra_drm_submit()