Lines Matching refs:tl_cmd

71 	struct tcm_loop_cmd *tl_cmd = container_of(se_cmd,  in tcm_loop_release_cmd()  local
74 kmem_cache_free(tcm_loop_cmd_cache, tl_cmd); in tcm_loop_release_cmd()
110 struct tcm_loop_cmd *tl_cmd = in tcm_loop_submission_work() local
112 struct se_cmd *se_cmd = &tl_cmd->tl_se_cmd; in tcm_loop_submission_work()
113 struct scsi_cmnd *sc = tl_cmd->sc; in tcm_loop_submission_work()
164 se_cmd->tag = tl_cmd->sc_cmd_tag; in tcm_loop_submission_work()
166 &tl_cmd->tl_sense_buf[0], tl_cmd->sc->device->lun, in tcm_loop_submission_work()
179 kmem_cache_free(tcm_loop_cmd_cache, tl_cmd); in tcm_loop_submission_work()
190 struct tcm_loop_cmd *tl_cmd; in tcm_loop_queuecommand() local
197 tl_cmd = kmem_cache_zalloc(tcm_loop_cmd_cache, GFP_ATOMIC); in tcm_loop_queuecommand()
198 if (!tl_cmd) { in tcm_loop_queuecommand()
205 tl_cmd->sc = sc; in tcm_loop_queuecommand()
206 tl_cmd->sc_cmd_tag = sc->request->tag; in tcm_loop_queuecommand()
207 INIT_WORK(&tl_cmd->work, tcm_loop_submission_work); in tcm_loop_queuecommand()
208 queue_work(tcm_loop_workqueue, &tl_cmd->work); in tcm_loop_queuecommand()
223 struct tcm_loop_cmd *tl_cmd = NULL; in tcm_loop_issue_tmr() local
237 tl_cmd = kmem_cache_zalloc(tcm_loop_cmd_cache, GFP_KERNEL); in tcm_loop_issue_tmr()
238 if (!tl_cmd) { in tcm_loop_issue_tmr()
250 se_cmd = &tl_cmd->tl_se_cmd; in tcm_loop_issue_tmr()
258 &tl_cmd->tl_sense_buf[0]); in tcm_loop_issue_tmr()
289 kmem_cache_free(tcm_loop_cmd_cache, tl_cmd); in tcm_loop_issue_tmr()
598 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_get_cmd_state() local
601 return tl_cmd->sc_cmd_state; in tcm_loop_get_cmd_state()
636 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_queue_data_in() local
638 struct scsi_cmnd *sc = tl_cmd->sc; in tcm_loop_queue_data_in()
654 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_queue_status() local
656 struct scsi_cmnd *sc = tl_cmd->sc; in tcm_loop_queue_status()