Lines Matching refs:job

60 static void submit_gathers(struct host1x_job *job)  in submit_gathers()  argument
62 struct host1x_cdma *cdma = &job->channel->cdma; in submit_gathers()
65 for (i = 0; i < job->num_gathers; i++) { in submit_gathers()
66 struct host1x_job_gather *g = &job->gathers[i]; in submit_gathers()
74 static inline void synchronize_syncpt_base(struct host1x_job *job) in synchronize_syncpt_base() argument
76 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); in synchronize_syncpt_base()
77 struct host1x_syncpt *sp = host->syncpt + job->syncpt_id; in synchronize_syncpt_base()
83 host1x_cdma_push(&job->channel->cdma, in synchronize_syncpt_base()
90 static int channel_submit(struct host1x_job *job) in channel_submit() argument
92 struct host1x_channel *ch = job->channel; in channel_submit()
94 u32 user_syncpt_incrs = job->syncpt_incrs; in channel_submit()
101 sp = host->syncpt + job->syncpt_id; in channel_submit()
103 job->num_gathers, job->num_relocs, in channel_submit()
104 job->num_waitchk, job->syncpt_id, in channel_submit()
105 job->syncpt_incrs); in channel_submit()
108 prev_max = job->syncpt_end = host1x_syncpt_read_max(sp); in channel_submit()
123 err = host1x_cdma_begin(&ch->cdma, job); in channel_submit()
129 if (job->serialize) { in channel_submit()
137 host1x_class_host_wait_syncpt(job->syncpt_id, in channel_submit()
143 synchronize_syncpt_base(job); in channel_submit()
147 job->syncpt_end = syncval; in channel_submit()
150 if (job->class) in channel_submit()
152 host1x_opcode_setclass(job->class, 0, 0), in channel_submit()
155 submit_gathers(job); in channel_submit()
158 host1x_cdma_end(&ch->cdma, job); in channel_submit()
163 err = host1x_intr_add_action(host, job->syncpt_id, syncval, in channel_submit()