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)
54 return transport_generic_free_cmd(se_cmd, 0);
57 static void tcm_loop_release_cmd(struct se_cmd *se_cmd)
59 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd,
100 struct se_cmd *se_cmd = &tl_cmd->tl_se_cmd;
135 se_cmd->prot_pto = true;
144 se_cmd->tag = tl_cmd->sc_cmd_tag;
145 rc = target_submit_cmd_map_sgls(se_cmd, tl_nexus->se_sess, sc->cmnd,
197 struct se_cmd *se_cmd;
218 se_cmd = &tl_cmd->tl_se_cmd;
221 rc = target_submit_tmr(se_cmd, se_sess, tl_cmd->tl_sense_buf, lun,
227 ret = se_cmd->se_tmr_req->response;
228 target_put_sess_cmd(se_cmd);
526 static int tcm_loop_get_cmd_state(struct se_cmd *se_cmd)
528 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd,
534 static int tcm_loop_write_pending(struct se_cmd *se_cmd)
539 * memory, and memory has already been mapped to struct se_cmd->t_mem_list
545 target_execute_cmd(se_cmd);
550 struct se_cmd *se_cmd, u8 scsi_status)
552 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd,
559 if (se_cmd->sense_buffer &&
560 ((se_cmd->se_cmd_flags & SCF_TRANSPORT_TASK_SENSE) ||
561 (se_cmd->se_cmd_flags & SCF_EMULATED_TASK_SENSE))) {
563 memcpy(sc->sense_buffer, se_cmd->sense_buffer,
571 if ((se_cmd->se_cmd_flags & SCF_OVERFLOW_BIT) ||
572 (se_cmd->se_cmd_flags & SCF_UNDERFLOW_BIT))
573 scsi_set_resid(sc, se_cmd->residual_count);
578 static int tcm_loop_queue_data_in(struct se_cmd *se_cmd)
580 return tcm_loop_queue_data_or_status(__func__, se_cmd, SAM_STAT_GOOD);
583 static int tcm_loop_queue_status(struct se_cmd *se_cmd)
586 se_cmd, se_cmd->scsi_status);
589 static void tcm_loop_queue_tm_rsp(struct se_cmd *se_cmd)
591 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd,
598 static void tcm_loop_aborted_task(struct se_cmd *se_cmd)