Lines Matching full:job
17 #include "../job.h"
82 static void submit_gathers(struct host1x_job *job, u32 job_syncpt_base) in submit_gathers() argument
84 struct host1x_cdma *cdma = &job->channel->cdma; in submit_gathers()
86 struct device *dev = job->channel->dev; in submit_gathers()
91 for (i = 0; i < job->num_cmds; i++) { in submit_gathers()
92 struct host1x_job_cmd *cmd = &job->cmds[i]; in submit_gathers()
132 static inline void synchronize_syncpt_base(struct host1x_job *job) in synchronize_syncpt_base() argument
134 struct host1x_syncpt *sp = job->syncpt; in synchronize_syncpt_base()
141 host1x_cdma_push(&job->channel->cdma, in synchronize_syncpt_base()
162 static int channel_submit(struct host1x_job *job) in channel_submit() argument
164 struct host1x_channel *ch = job->channel; in channel_submit()
165 struct host1x_syncpt *sp = job->syncpt; in channel_submit()
166 u32 user_syncpt_incrs = job->syncpt_incrs; in channel_submit()
174 job->num_cmds, job->num_relocs, in channel_submit()
175 job->syncpt->id, job->syncpt_incrs); in channel_submit()
178 prev_max = job->syncpt_end = host1x_syncpt_read_max(sp); in channel_submit()
195 err = host1x_cdma_begin(&ch->cdma, job); in channel_submit()
201 if (job->serialize) { in channel_submit()
204 * previous job to finish before this one can commence. in channel_submit()
209 host1x_class_host_wait_syncpt(job->syncpt->id, in channel_submit()
215 synchronize_syncpt_base(job); in channel_submit()
221 job->syncpt_end = syncval; in channel_submit()
224 if (job->class) in channel_submit()
226 host1x_opcode_setclass(job->class, 0, 0), in channel_submit()
229 submit_gathers(job, syncval - user_syncpt_incrs); in channel_submit()
232 host1x_cdma_end(&ch->cdma, job); in channel_submit()
239 completed_waiter, &job->waiter); in channel_submit()