Lines Matching defs:args
181 struct drm_tegra_channel_submit *args)
186 if (args->gather_data_words == 0) {
191 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, ©_len)) {
214 if (copy_from_user(bo->gather_data, u64_to_user_ptr(args->gather_data_ptr), copy_len)) {
221 bo->gather_data_words = args->gather_data_words;
258 struct drm_tegra_channel_submit *args,
266 bufs = alloc_copy_user_array(u64_to_user_ptr(args->bufs_ptr), args->num_bufs,
273 mappings = kcalloc(args->num_bufs, sizeof(*mappings), GFP_KERNEL);
280 for (i = 0; i < args->num_bufs; i++) {
328 struct xarray *syncpoints, struct drm_tegra_channel_submit *args)
332 if (args->syncpt.flags) {
338 sp = xa_load(syncpoints, args->syncpt.id);
345 job->syncpt_incrs = args->syncpt.increments;
394 struct drm_tegra_channel_submit *args, struct tegra_drm_submit_data *job_data,
405 cmds = alloc_copy_user_array(u64_to_user_ptr(args->cmds_ptr), args->num_cmds,
412 job = host1x_job_alloc(context->channel, args->num_cmds, 0, true);
419 err = submit_get_syncpt(context, job, syncpoints, args);
427 for (i = 0; i < args->num_cmds; i++) {
457 if (cmd->wait_syncpt.id != args->syncpt.id) {
513 struct drm_tegra_channel_submit *args = data;
524 context = xa_load(&fpriv->contexts, args->context);
528 current->comm, args->context);
532 if (args->syncobj_in) {
535 err = drm_syncobj_find_fence(file, args->syncobj_in, 0, 0, &fence);
537 SUBMIT_ERR(context, "invalid syncobj_in '%#x'", args->syncobj_in);
549 if (args->syncobj_out) {
550 syncobj = drm_syncobj_find(file, args->syncobj_out);
552 SUBMIT_ERR(context, "invalid syncobj_out '%#x'", args->syncobj_out);
559 err = submit_copy_gather_data(&bo, drm->dev, context, args);
571 err = submit_process_bufs(context, bo, args, job_data);
576 job = submit_create_job(context, bo, args, job_data, &fpriv->syncpoints);
646 args->syncpt.value = job->syncpt_end;