Lines Matching refs:mcmd
236 struct qla_tgt_mgmt_cmd *mcmd = container_of(work, in tcm_qla2xxx_complete_mcmd() local
239 transport_generic_free_cmd(&mcmd->se_cmd, 0); in tcm_qla2xxx_complete_mcmd()
247 static void tcm_qla2xxx_free_mcmd(struct qla_tgt_mgmt_cmd *mcmd) in tcm_qla2xxx_free_mcmd() argument
249 if (!mcmd) in tcm_qla2xxx_free_mcmd()
251 INIT_WORK(&mcmd->free_work, tcm_qla2xxx_complete_mcmd); in tcm_qla2xxx_free_mcmd()
252 queue_work(tcm_qla2xxx_free_wq, &mcmd->free_work); in tcm_qla2xxx_free_mcmd()
339 struct qla_tgt_mgmt_cmd *mcmd = container_of(se_cmd, in tcm_qla2xxx_release_cmd() local
341 qlt_free_mcmd(mcmd); in tcm_qla2xxx_release_cmd()
585 static int tcm_qla2xxx_handle_tmr(struct qla_tgt_mgmt_cmd *mcmd, u64 lun, in tcm_qla2xxx_handle_tmr() argument
588 struct fc_port *sess = mcmd->sess; in tcm_qla2xxx_handle_tmr()
589 struct se_cmd *se_cmd = &mcmd->se_cmd; in tcm_qla2xxx_handle_tmr()
627 return target_submit_tmr(se_cmd, sess->se_sess, NULL, lun, mcmd, in tcm_qla2xxx_handle_tmr()
740 struct qla_tgt_mgmt_cmd *mcmd = container_of(se_cmd, in tcm_qla2xxx_queue_tm_rsp() local
744 mcmd, se_tmr->function, se_tmr->response); in tcm_qla2xxx_queue_tm_rsp()
751 mcmd->fc_tm_rsp = FC_TM_SUCCESS; in tcm_qla2xxx_queue_tm_rsp()
754 mcmd->fc_tm_rsp = FC_TM_BAD_CMD; in tcm_qla2xxx_queue_tm_rsp()
757 mcmd->fc_tm_rsp = FC_TM_REJECT; in tcm_qla2xxx_queue_tm_rsp()
761 mcmd->fc_tm_rsp = FC_TM_FAILED; in tcm_qla2xxx_queue_tm_rsp()
768 qlt_xmit_tm_rsp(mcmd); in tcm_qla2xxx_queue_tm_rsp()