Lines Matching refs:submit_cmd
467 struct drm_msm_gem_submit_cmd submit_cmd; in msm_ioctl_gem_submit() local
469 u64_to_user_ptr(args->cmds + (i * sizeof(submit_cmd))); in msm_ioctl_gem_submit()
473 ret = copy_from_user(&submit_cmd, userptr, sizeof(submit_cmd)); in msm_ioctl_gem_submit()
480 switch (submit_cmd.type) { in msm_ioctl_gem_submit()
486 DRM_ERROR("invalid type: %08x\n", submit_cmd.type); in msm_ioctl_gem_submit()
491 ret = submit_bo(submit, submit_cmd.submit_idx, in msm_ioctl_gem_submit()
496 if (submit_cmd.size % 4) { in msm_ioctl_gem_submit()
498 submit_cmd.size); in msm_ioctl_gem_submit()
503 if ((submit_cmd.size + submit_cmd.submit_offset) >= in msm_ioctl_gem_submit()
505 DRM_ERROR("invalid cmdstream size: %u\n", submit_cmd.size); in msm_ioctl_gem_submit()
510 submit->cmd[i].type = submit_cmd.type; in msm_ioctl_gem_submit()
511 submit->cmd[i].size = submit_cmd.size / 4; in msm_ioctl_gem_submit()
512 submit->cmd[i].iova = iova + submit_cmd.submit_offset; in msm_ioctl_gem_submit()
513 submit->cmd[i].idx = submit_cmd.submit_idx; in msm_ioctl_gem_submit()
518 ret = submit_reloc(submit, msm_obj, submit_cmd.submit_offset, in msm_ioctl_gem_submit()
519 submit_cmd.nr_relocs, submit_cmd.relocs); in msm_ioctl_gem_submit()