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