Lines Matching refs:args

150 			 struct drm_pvr_job *args)
155 if (args->flags & ~DRM_PVR_SUBMIT_JOB_GEOM_CMD_FLAGS_MASK)
166 args->cmd_stream, args->cmd_stream_len);
172 cmd->flags = convert_geom_flags(args->flags);
179 struct drm_pvr_job *args)
184 if (args->flags & ~DRM_PVR_SUBMIT_JOB_FRAG_CMD_FLAGS_MASK)
193 job->fw_ccb_cmd_type = (args->flags & DRM_PVR_SUBMIT_JOB_FRAG_CMD_PARTIAL_RENDER) ?
197 args->cmd_stream, args->cmd_stream_len);
203 cmd->flags = convert_frag_flags(args->flags);
223 struct drm_pvr_job *args)
228 if (args->flags & ~DRM_PVR_SUBMIT_JOB_COMPUTE_CMD_FLAGS_MASK)
236 args->cmd_stream, args->cmd_stream_len);
242 cmd->flags = convert_compute_flags(args->flags);
259 struct drm_pvr_job *args)
264 if (args->flags & ~DRM_PVR_SUBMIT_JOB_TRANSFER_CMD_FLAGS_MASK)
272 args->cmd_stream, args->cmd_stream_len);
278 cmd->flags = convert_transfer_flags(args->flags);
284 struct drm_pvr_job *args)
286 switch (args->type) {
288 return pvr_geom_job_fw_cmd_init(job, args);
291 return pvr_frag_job_fw_cmd_init(job, args);
294 return pvr_compute_job_fw_cmd_init(job, args);
297 return pvr_transfer_job_fw_cmd_init(job, args);
412 struct drm_pvr_job *args)
417 if (!args->cmd_stream || !args->cmd_stream_len)
420 if (args->type != DRM_PVR_JOB_TYPE_GEOMETRY &&
421 args->type != DRM_PVR_JOB_TYPE_FRAGMENT &&
422 (args->hwrt.set_handle || args->hwrt.data_index))
430 job->type = args->type;
437 job->ctx = pvr_context_lookup(pvr_file, args->context_handle);
443 if (args->hwrt.set_handle) {
444 job->hwrt = pvr_hwrt_data_lookup(pvr_file, args->hwrt.set_handle,
445 args->hwrt.data_index);
452 err = pvr_job_fw_cmd_init(job, args);
483 * the appropriate sync_ops args, which will be copied in.
486 * @job_args: Job args array copied from user.
698 * @args: Ioctl args.
711 struct drm_pvr_ioctl_submit_jobs_args *args)
720 if (!args->jobs.count)
723 err = PVR_UOBJ_GET_ARRAY(job_args, &args->jobs);
727 job_data = kvmalloc_array(args->jobs.count, sizeof(*job_data),
734 err = pvr_job_data_init(pvr_dev, pvr_file, job_args, &args->jobs.count,
739 jobs_alloced = args->jobs.count;
753 err = prepare_job_syncs_for_each(pvr_file, job_data, &args->jobs.count,
758 err = prepare_job_resvs_for_each(&exec, job_data, args->jobs.count);
762 err = pvr_jobs_link_geom_frag(job_data, &args->jobs.count);
769 update_job_resvs_for_each(job_data, args->jobs.count);
770 push_jobs(job_data, args->jobs.count);