Lines Matching refs:mcmd
262 struct qla_tgt_mgmt_cmd *mcmd = container_of(work, in tcm_qla2xxx_complete_mcmd() local
265 transport_generic_free_cmd(&mcmd->se_cmd, 0); in tcm_qla2xxx_complete_mcmd()
273 static void tcm_qla2xxx_free_mcmd(struct qla_tgt_mgmt_cmd *mcmd) in tcm_qla2xxx_free_mcmd() argument
275 INIT_WORK(&mcmd->free_work, tcm_qla2xxx_complete_mcmd); in tcm_qla2xxx_free_mcmd()
276 queue_work(tcm_qla2xxx_free_wq, &mcmd->free_work); in tcm_qla2xxx_free_mcmd()
332 struct qla_tgt_mgmt_cmd *mcmd = container_of(se_cmd, in tcm_qla2xxx_release_cmd() local
334 qlt_free_mcmd(mcmd); in tcm_qla2xxx_release_cmd()
553 static int tcm_qla2xxx_handle_tmr(struct qla_tgt_mgmt_cmd *mcmd, uint32_t lun, in tcm_qla2xxx_handle_tmr() argument
556 struct qla_tgt_sess *sess = mcmd->sess; in tcm_qla2xxx_handle_tmr()
557 struct se_cmd *se_cmd = &mcmd->se_cmd; in tcm_qla2xxx_handle_tmr()
559 return target_submit_tmr(se_cmd, sess->se_sess, NULL, lun, mcmd, in tcm_qla2xxx_handle_tmr()
642 struct qla_tgt_mgmt_cmd *mcmd = container_of(se_cmd, in tcm_qla2xxx_queue_tm_rsp() local
646 mcmd, se_tmr->function, se_tmr->response); in tcm_qla2xxx_queue_tm_rsp()
653 mcmd->fc_tm_rsp = FC_TM_SUCCESS; in tcm_qla2xxx_queue_tm_rsp()
656 mcmd->fc_tm_rsp = FC_TM_BAD_CMD; in tcm_qla2xxx_queue_tm_rsp()
659 mcmd->fc_tm_rsp = FC_TM_REJECT; in tcm_qla2xxx_queue_tm_rsp()
663 mcmd->fc_tm_rsp = FC_TM_FAILED; in tcm_qla2xxx_queue_tm_rsp()
670 qlt_xmit_tm_rsp(mcmd); in tcm_qla2xxx_queue_tm_rsp()