Lines Matching defs:job
17 #include "../job.h"
50 static void submit_gathers(struct host1x_job *job)
52 struct host1x_cdma *cdma = &job->channel->cdma;
54 struct device *dev = job->channel->dev;
58 for (i = 0; i < job->num_gathers; i++) {
59 struct host1x_job_gather *g = &job->gathers[i];
87 static inline void synchronize_syncpt_base(struct host1x_job *job)
89 struct host1x *host = dev_get_drvdata(job->channel->dev->parent);
90 struct host1x_syncpt *sp = host->syncpt + job->syncpt_id;
97 host1x_cdma_push(&job->channel->cdma,
118 static int channel_submit(struct host1x_job *job)
120 struct host1x_channel *ch = job->channel;
122 u32 user_syncpt_incrs = job->syncpt_incrs;
129 sp = host->syncpt + job->syncpt_id;
131 job->num_gathers, job->num_relocs,
132 job->syncpt_id, job->syncpt_incrs);
135 prev_max = job->syncpt_end = host1x_syncpt_read_max(sp);
152 err = host1x_cdma_begin(&ch->cdma, job);
158 if (job->serialize) {
161 * previous job to finish before this one can commence.
166 host1x_class_host_wait_syncpt(job->syncpt_id,
172 synchronize_syncpt_base(job);
178 job->syncpt_end = syncval;
181 if (job->class)
183 host1x_opcode_setclass(job->class, 0, 0),
186 submit_gathers(job);
189 host1x_cdma_end(&ch->cdma, job);