• Home
  • Raw
  • Download

Lines Matching refs:mcmd

667 static int qlt_reset(struct scsi_qla_host *vha, void *iocb, int mcmd)  in qlt_reset()  argument
687 switch (mcmd) { in qlt_reset()
689 mcmd = QLA_TGT_NEXUS_LOSS; in qlt_reset()
692 mcmd = QLA_TGT_ABORT_ALL; in qlt_reset()
701 mcmd, __func__); in qlt_reset()
724 mcmd, loop_id); in qlt_reset()
726 return qlt_issue_task_mgmt(sess, 0, mcmd, iocb, QLA24XX_MGMT_SEND_NACK); in qlt_reset()
1547 struct qla_tgt_mgmt_cmd *mcmd; in __qlt_24xx_handle_abts() local
1583 mcmd = mempool_alloc(qla_tgt_mgmt_cmd_mempool, GFP_ATOMIC); in __qlt_24xx_handle_abts()
1584 if (mcmd == NULL) { in __qlt_24xx_handle_abts()
1590 memset(mcmd, 0, sizeof(*mcmd)); in __qlt_24xx_handle_abts()
1592 mcmd->sess = sess; in __qlt_24xx_handle_abts()
1593 memcpy(&mcmd->orig_iocb.abts, abts, sizeof(mcmd->orig_iocb.abts)); in __qlt_24xx_handle_abts()
1594 mcmd->reset_count = vha->hw->chip_reset; in __qlt_24xx_handle_abts()
1596 rc = ha->tgt.tgt_ops->handle_tmr(mcmd, lun, TMR_ABORT_TASK, in __qlt_24xx_handle_abts()
1602 mempool_free(mcmd, qla_tgt_mgmt_cmd_mempool); in __qlt_24xx_handle_abts()
1687 struct qla_tgt_mgmt_cmd *mcmd, uint32_t resp_code) in qlt_24xx_send_task_mgmt_ctio() argument
1689 struct atio_from_isp *atio = &mcmd->orig_iocb.atio; in qlt_24xx_send_task_mgmt_ctio()
1712 ctio->nport_handle = mcmd->sess->loop_id; in qlt_24xx_send_task_mgmt_ctio()
1733 void qlt_free_mcmd(struct qla_tgt_mgmt_cmd *mcmd) in qlt_free_mcmd() argument
1735 mempool_free(mcmd, qla_tgt_mgmt_cmd_mempool); in qlt_free_mcmd()
1740 void qlt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *mcmd) in qlt_xmit_tm_rsp() argument
1742 struct scsi_qla_host *vha = mcmd->sess->vha; in qlt_xmit_tm_rsp()
1748 mcmd, mcmd->fc_tm_rsp, mcmd->flags); in qlt_xmit_tm_rsp()
1752 if (!vha->flags.online || mcmd->reset_count != ha->chip_reset) { in qlt_xmit_tm_rsp()
1760 mcmd->reset_count, ha->chip_reset); in qlt_xmit_tm_rsp()
1761 ha->tgt.tgt_ops->free_mcmd(mcmd); in qlt_xmit_tm_rsp()
1766 if (mcmd->flags == QLA24XX_MGMT_SEND_NACK) in qlt_xmit_tm_rsp()
1767 qlt_send_notify_ack(vha, &mcmd->orig_iocb.imm_ntfy, in qlt_xmit_tm_rsp()
1770 if (mcmd->orig_iocb.atio.u.raw.entry_type == ABTS_RECV_24XX) in qlt_xmit_tm_rsp()
1771 qlt_24xx_send_abts_resp(vha, &mcmd->orig_iocb.abts, in qlt_xmit_tm_rsp()
1772 mcmd->fc_tm_rsp, false); in qlt_xmit_tm_rsp()
1774 qlt_24xx_send_task_mgmt_ctio(vha, mcmd, in qlt_xmit_tm_rsp()
1775 mcmd->fc_tm_rsp); in qlt_xmit_tm_rsp()
1785 ha->tgt.tgt_ops->free_mcmd(mcmd); in qlt_xmit_tm_rsp()
4048 struct qla_tgt_mgmt_cmd *mcmd; in qlt_issue_task_mgmt() local
4053 mcmd = mempool_alloc(qla_tgt_mgmt_cmd_mempool, GFP_ATOMIC); in qlt_issue_task_mgmt()
4054 if (!mcmd) { in qlt_issue_task_mgmt()
4061 memset(mcmd, 0, sizeof(*mcmd)); in qlt_issue_task_mgmt()
4062 mcmd->sess = sess; in qlt_issue_task_mgmt()
4065 memcpy(&mcmd->orig_iocb.imm_ntfy, iocb, in qlt_issue_task_mgmt()
4066 sizeof(mcmd->orig_iocb.imm_ntfy)); in qlt_issue_task_mgmt()
4068 mcmd->tmr_func = fn; in qlt_issue_task_mgmt()
4069 mcmd->flags = flags; in qlt_issue_task_mgmt()
4070 mcmd->reset_count = vha->hw->chip_reset; in qlt_issue_task_mgmt()
4136 mempool_free(mcmd, qla_tgt_mgmt_cmd_mempool); in qlt_issue_task_mgmt()
4140 res = ha->tgt.tgt_ops->handle_tmr(mcmd, lun, tmr_func, 0); in qlt_issue_task_mgmt()
4145 mempool_free(mcmd, qla_tgt_mgmt_cmd_mempool); in qlt_issue_task_mgmt()
4195 struct qla_tgt_mgmt_cmd *mcmd; in __qlt_abort_task() local
4199 mcmd = mempool_alloc(qla_tgt_mgmt_cmd_mempool, GFP_ATOMIC); in __qlt_abort_task()
4200 if (mcmd == NULL) { in __qlt_abort_task()
4206 memset(mcmd, 0, sizeof(*mcmd)); in __qlt_abort_task()
4208 mcmd->sess = sess; in __qlt_abort_task()
4209 memcpy(&mcmd->orig_iocb.imm_ntfy, iocb, in __qlt_abort_task()
4210 sizeof(mcmd->orig_iocb.imm_ntfy)); in __qlt_abort_task()
4214 mcmd->reset_count = vha->hw->chip_reset; in __qlt_abort_task()
4216 rc = ha->tgt.tgt_ops->handle_tmr(mcmd, unpacked_lun, TMR_ABORT_TASK, in __qlt_abort_task()
4222 mempool_free(mcmd, qla_tgt_mgmt_cmd_mempool); in __qlt_abort_task()