Lines Matching defs:tl_cmd
59 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd,
62 kmem_cache_free(tcm_loop_cmd_cache, tl_cmd);
98 struct tcm_loop_cmd *tl_cmd =
100 struct se_cmd *se_cmd = &tl_cmd->tl_se_cmd;
101 struct scsi_cmnd *sc = tl_cmd->sc;
144 se_cmd->tag = tl_cmd->sc_cmd_tag;
146 &tl_cmd->tl_sense_buf[0], tl_cmd->sc->device->lun,
159 kmem_cache_free(tcm_loop_cmd_cache, tl_cmd);
169 struct tcm_loop_cmd *tl_cmd;
176 tl_cmd = kmem_cache_zalloc(tcm_loop_cmd_cache, GFP_ATOMIC);
177 if (!tl_cmd) {
183 tl_cmd->sc = sc;
184 tl_cmd->sc_cmd_tag = sc->request->tag;
185 INIT_WORK(&tl_cmd->work, tcm_loop_submission_work);
186 queue_work(tcm_loop_workqueue, &tl_cmd->work);
200 struct tcm_loop_cmd *tl_cmd;
212 tl_cmd = kmem_cache_zalloc(tcm_loop_cmd_cache, GFP_KERNEL);
213 if (!tl_cmd)
216 init_completion(&tl_cmd->tmr_done);
218 se_cmd = &tl_cmd->tl_se_cmd;
221 rc = target_submit_tmr(se_cmd, se_sess, tl_cmd->tl_sense_buf, lun,
226 wait_for_completion(&tl_cmd->tmr_done);
234 kmem_cache_free(tcm_loop_cmd_cache, tl_cmd);
528 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd,
531 return tl_cmd->sc_cmd_state;
552 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd,
554 struct scsi_cmnd *sc = tl_cmd->sc;
591 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd,
595 complete(&tl_cmd->tmr_done);