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()
334 struct qla_tgt_mgmt_cmd *mcmd = container_of(se_cmd, in tcm_qla2xxx_release_cmd() local
336 qlt_free_mcmd(mcmd); in tcm_qla2xxx_release_cmd()
571 static int tcm_qla2xxx_handle_tmr(struct qla_tgt_mgmt_cmd *mcmd, u64 lun, in tcm_qla2xxx_handle_tmr() argument
574 struct fc_port *sess = mcmd->sess; in tcm_qla2xxx_handle_tmr()
575 struct se_cmd *se_cmd = &mcmd->se_cmd; in tcm_qla2xxx_handle_tmr()
615 return target_submit_tmr(se_cmd, sess->se_sess, NULL, lun, mcmd, in tcm_qla2xxx_handle_tmr()
737 struct qla_tgt_mgmt_cmd *mcmd = container_of(se_cmd, in tcm_qla2xxx_queue_tm_rsp() local
741 mcmd, se_tmr->function, se_tmr->response); in tcm_qla2xxx_queue_tm_rsp()
748 mcmd->fc_tm_rsp = FC_TM_SUCCESS; in tcm_qla2xxx_queue_tm_rsp()
751 mcmd->fc_tm_rsp = FC_TM_BAD_CMD; in tcm_qla2xxx_queue_tm_rsp()
754 mcmd->fc_tm_rsp = FC_TM_REJECT; in tcm_qla2xxx_queue_tm_rsp()
758 mcmd->fc_tm_rsp = FC_TM_FAILED; in tcm_qla2xxx_queue_tm_rsp()
765 qlt_xmit_tm_rsp(mcmd); in tcm_qla2xxx_queue_tm_rsp()