Lines Matching refs:se_cmd
47 static int tcm_loop_queue_status(struct se_cmd *se_cmd);
52 static int tcm_loop_check_stop_free(struct se_cmd *se_cmd) in tcm_loop_check_stop_free() argument
54 return transport_generic_free_cmd(se_cmd, 0); in tcm_loop_check_stop_free()
57 static void tcm_loop_release_cmd(struct se_cmd *se_cmd) in tcm_loop_release_cmd() argument
59 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_release_cmd()
100 struct se_cmd *se_cmd = &tl_cmd->tl_se_cmd; in tcm_loop_submission_work() local
135 se_cmd->prot_pto = true; in tcm_loop_submission_work()
144 se_cmd->tag = tl_cmd->sc_cmd_tag; in tcm_loop_submission_work()
145 rc = target_submit_cmd_map_sgls(se_cmd, tl_nexus->se_sess, sc->cmnd, in tcm_loop_submission_work()
197 struct se_cmd *se_cmd; in tcm_loop_issue_tmr() local
218 se_cmd = &tl_cmd->tl_se_cmd; in tcm_loop_issue_tmr()
221 rc = target_submit_tmr(se_cmd, se_sess, tl_cmd->tl_sense_buf, lun, in tcm_loop_issue_tmr()
227 ret = se_cmd->se_tmr_req->response; in tcm_loop_issue_tmr()
228 target_put_sess_cmd(se_cmd); in tcm_loop_issue_tmr()
525 static int tcm_loop_get_cmd_state(struct se_cmd *se_cmd) in tcm_loop_get_cmd_state() argument
527 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_get_cmd_state()
533 static int tcm_loop_write_pending(struct se_cmd *se_cmd) in tcm_loop_write_pending() argument
544 target_execute_cmd(se_cmd); in tcm_loop_write_pending()
549 struct se_cmd *se_cmd, u8 scsi_status) in tcm_loop_queue_data_or_status() argument
551 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_queue_data_or_status()
558 if (se_cmd->sense_buffer && in tcm_loop_queue_data_or_status()
559 ((se_cmd->se_cmd_flags & SCF_TRANSPORT_TASK_SENSE) || in tcm_loop_queue_data_or_status()
560 (se_cmd->se_cmd_flags & SCF_EMULATED_TASK_SENSE))) { in tcm_loop_queue_data_or_status()
562 memcpy(sc->sense_buffer, se_cmd->sense_buffer, in tcm_loop_queue_data_or_status()
570 if ((se_cmd->se_cmd_flags & SCF_OVERFLOW_BIT) || in tcm_loop_queue_data_or_status()
571 (se_cmd->se_cmd_flags & SCF_UNDERFLOW_BIT)) in tcm_loop_queue_data_or_status()
572 scsi_set_resid(sc, se_cmd->residual_count); in tcm_loop_queue_data_or_status()
577 static int tcm_loop_queue_data_in(struct se_cmd *se_cmd) in tcm_loop_queue_data_in() argument
579 return tcm_loop_queue_data_or_status(__func__, se_cmd, SAM_STAT_GOOD); in tcm_loop_queue_data_in()
582 static int tcm_loop_queue_status(struct se_cmd *se_cmd) in tcm_loop_queue_status() argument
585 se_cmd, se_cmd->scsi_status); in tcm_loop_queue_status()
588 static void tcm_loop_queue_tm_rsp(struct se_cmd *se_cmd) in tcm_loop_queue_tm_rsp() argument
590 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_queue_tm_rsp()
597 static void tcm_loop_aborted_task(struct se_cmd *se_cmd) in tcm_loop_aborted_task() argument