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()
326 struct qla_tgt_mgmt_cmd *mcmd = container_of(se_cmd, in tcm_qla2xxx_release_cmd() local
328 qlt_free_mcmd(mcmd); in tcm_qla2xxx_release_cmd()
530 static int tcm_qla2xxx_handle_tmr(struct qla_tgt_mgmt_cmd *mcmd, uint32_t lun, in tcm_qla2xxx_handle_tmr() argument
533 struct qla_tgt_sess *sess = mcmd->sess; in tcm_qla2xxx_handle_tmr()
534 struct se_cmd *se_cmd = &mcmd->se_cmd; in tcm_qla2xxx_handle_tmr()
536 return target_submit_tmr(se_cmd, sess->se_sess, NULL, lun, mcmd, in tcm_qla2xxx_handle_tmr()
605 struct qla_tgt_mgmt_cmd *mcmd = container_of(se_cmd, in tcm_qla2xxx_queue_tm_rsp() local
609 mcmd, se_tmr->function, se_tmr->response); in tcm_qla2xxx_queue_tm_rsp()
616 mcmd->fc_tm_rsp = FC_TM_SUCCESS; in tcm_qla2xxx_queue_tm_rsp()
619 mcmd->fc_tm_rsp = FC_TM_BAD_CMD; in tcm_qla2xxx_queue_tm_rsp()
622 mcmd->fc_tm_rsp = FC_TM_REJECT; in tcm_qla2xxx_queue_tm_rsp()
626 mcmd->fc_tm_rsp = FC_TM_FAILED; in tcm_qla2xxx_queue_tm_rsp()
633 qlt_xmit_tm_rsp(mcmd); in tcm_qla2xxx_queue_tm_rsp()