Lines Matching full:cmds
50 /* has cmd already been added to parent rb's submit.cmds table? */
58 * Note that bos and cmds are tracked by the parent ringbuffer, since
67 DECLARE_ARRAY(struct drm_msm_gem_submit_cmd, cmds);
74 /* should have matching entries in submit.cmds: */
75 DECLARE_ARRAY(struct msm_cmd *, cmds);
80 * Note that this is different from msm_ringbuffer::cmds (which
81 * shadows msm_ringbuffer::submit::cmds for tracking submit ioctl
252 /* Ensure that submit has corresponding entry in cmds table for the
256 * the cmds table)
271 * - target cmd has never been added to submit.cmds in get_cmd()
280 cmd = &msm_ring->submit.cmds[i]; in get_cmd()
292 i = APPEND(&msm_ring->submit, cmds); in get_cmd()
293 APPEND(msm_ring, cmds); in get_cmd()
294 msm_ring->cmds[i] = target_cmd; in get_cmd()
295 cmd = &msm_ring->submit.cmds[i]; in get_cmd()
344 struct msm_cmd *msm_cmd = msm_ring->cmds[i]; in flush_reset()
404 struct drm_msm_gem_submit_cmd *cmd = &msm_ring->submit.cmds[i]; in dump_submit()
444 struct msm_cmd *msm_cmd = msm_ring->cmds[i]; in handle_stateobj_relocs()
445 struct drm_msm_gem_submit_cmd *cmd = &msm_ring->submit.cmds[i]; in handle_stateobj_relocs()
447 if (msm_ring->cmds[i]->ring == stateobj) in handle_stateobj_relocs()
487 struct msm_cmd *msm_cmd = msm_ring->cmds[i]; in msm_ringbuffer_flush()
503 cmd = &msm_ring->submit.cmds[i]; in msm_ringbuffer_flush()
508 /* needs to be after get_cmd() as that could create bos/cmds table: */ in msm_ringbuffer_flush()
511 req.cmds = VOID2U64(msm_ring->submit.cmds), in msm_ringbuffer_flush()
524 struct msm_cmd *msm_cmd = msm_ring->cmds[i]; in msm_ringbuffer_flush()
535 struct drm_msm_gem_submit_cmd *cmd = &msm_ring->submit.cmds[i]; in msm_ringbuffer_flush()
536 struct msm_cmd *msm_cmd = msm_ring->cmds[i]; in msm_ringbuffer_flush()
633 * done get_cmd() to add it to the cmds table). But in this case, in msm_ringbuffer_emit_reloc_ring()
674 free(msm_ring->submit.cmds); in msm_ringbuffer_destroy()
677 free(msm_ring->cmds); in msm_ringbuffer_destroy()