Lines Matching refs:cmd
351 struct drm_tegra_submit_cmd_gather_uptr *cmd, in submit_job_add_gather() argument
358 if (cmd->reserved[0] || cmd->reserved[1] || cmd->reserved[2]) { in submit_job_add_gather()
364 if (cmd->words > 16383) { in submit_job_add_gather()
369 if (check_add_overflow(*offset, cmd->words, &next_offset)) { in submit_job_add_gather()
380 cmd->words, job_data, class)) { in submit_job_add_gather()
385 host1x_job_add_gather(job, &bo->base, cmd->words, *offset * 4); in submit_job_add_gather()
428 struct drm_tegra_submit_cmd *cmd = &cmds[i]; in submit_create_job() local
430 if (cmd->flags) { in submit_create_job()
436 if (cmd->type == DRM_TEGRA_SUBMIT_CMD_GATHER_UPTR) { in submit_create_job()
437 err = submit_job_add_gather(job, context, &cmd->gather_uptr, bo, in submit_create_job()
441 } else if (cmd->type == DRM_TEGRA_SUBMIT_CMD_WAIT_SYNCPT) { in submit_create_job()
442 if (cmd->wait_syncpt.reserved[0] || cmd->wait_syncpt.reserved[1]) { in submit_create_job()
448 host1x_job_add_wait(job, cmd->wait_syncpt.id, cmd->wait_syncpt.value, in submit_create_job()
450 } else if (cmd->type == DRM_TEGRA_SUBMIT_CMD_WAIT_SYNCPT_RELATIVE) { in submit_create_job()
451 if (cmd->wait_syncpt.reserved[0] || cmd->wait_syncpt.reserved[1]) { in submit_create_job()
457 if (cmd->wait_syncpt.id != args->syncpt.id) { in submit_create_job()
463 host1x_job_add_wait(job, cmd->wait_syncpt.id, cmd->wait_syncpt.value, in submit_create_job()