Lines Matching +full:1 +full:mb

92 	rsp_els->entry_count = 1;  in qla24xx_process_abts()
121 abts_rsp->entry_count = 1; in qla24xx_process_abts()
127 abts_rsp->d_id[1] = abts->s_id[1]; in qla24xx_process_abts()
131 abts_rsp->s_id[1] = abts->d_id[1]; in qla24xx_process_abts()
138 abts_rsp->f_ctl[1] = fctl >> 8 & 0xff; in qla24xx_process_abts()
333 uint16_t mb[8]; in qla2100_intr_handler() local
377 mb[0] = RD_MAILBOX_REG(ha, reg, 0); in qla2100_intr_handler()
378 if (mb[0] > 0x3fff && mb[0] < 0x8000) { in qla2100_intr_handler()
379 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler()
381 } else if (mb[0] > 0x7fff && mb[0] < 0xc000) { in qla2100_intr_handler()
382 mb[1] = RD_MAILBOX_REG(ha, reg, 1); in qla2100_intr_handler()
383 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2100_intr_handler()
384 mb[3] = RD_MAILBOX_REG(ha, reg, 3); in qla2100_intr_handler()
385 qla2x00_async_event(vha, rsp, mb); in qla2100_intr_handler()
390 mb[0]); in qla2100_intr_handler()
447 uint16_t mb[8]; in qla2300_intr_handler() local
510 mb[0] = MSW(stat); in qla2300_intr_handler()
511 mb[1] = RD_MAILBOX_REG(ha, reg, 1); in qla2300_intr_handler()
512 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2300_intr_handler()
513 mb[3] = RD_MAILBOX_REG(ha, reg, 3); in qla2300_intr_handler()
514 qla2x00_async_event(vha, rsp, mb); in qla2300_intr_handler()
520 mb[0] = MBA_CMPLT_1_16BIT; in qla2300_intr_handler()
521 mb[1] = MSW(stat); in qla2300_intr_handler()
522 qla2x00_async_event(vha, rsp, mb); in qla2300_intr_handler()
525 mb[0] = MBA_SCSI_COMPLETION; in qla2300_intr_handler()
526 mb[1] = MSW(stat); in qla2300_intr_handler()
527 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2300_intr_handler()
528 qla2x00_async_event(vha, rsp, mb); in qla2300_intr_handler()
560 mboxes = (1ULL << ha->mbx_count) - 1; in qla2x00_mbx_completion()
567 ha->flags.mbox_int = 1; in qla2x00_mbx_completion()
569 mboxes >>= 1; in qla2x00_mbx_completion()
570 wptr = MAILBOX_REG(ha, reg, 1); in qla2x00_mbx_completion()
572 for (cnt = 1; cnt < ha->mbx_count; cnt++) { in qla2x00_mbx_completion()
581 mboxes >>= 1; in qla2x00_mbx_completion()
594 uint16_t cnt, timeout, mb[QLA_IDC_ACK_REGS]; in qla81xx_idc_event() local
600 wptr = &reg82->mailbox_out[1]; in qla81xx_idc_event()
605 mb[cnt] = rd_reg_word(wptr); in qla81xx_idc_event()
610 event[aen & 0xff], mb[0], mb[1], mb[2], mb[3], in qla81xx_idc_event()
611 mb[4], mb[5], mb[6]); in qla81xx_idc_event()
615 if (mb[1] >> 15) { in qla81xx_idc_event()
616 vha->hw->flags.idc_compl_status = 1; in qla81xx_idc_event()
631 rval = qla2x00_post_idc_ack_work(vha, mb); in qla81xx_idc_event()
651 "1", "2", "?", "4", "8", "16", "32", "64", "10" in qla2x00_get_link_speed_str()
653 #define QLA_LAST_SPEED (ARRAY_SIZE(link_speeds) - 1) in qla2x00_get_link_speed_str()
666 qla83xx_handle_8200_aen(scsi_qla_host_t *vha, uint16_t *mb) in qla83xx_handle_8200_aen() argument
672 * mb[0] = AEN code in qla83xx_handle_8200_aen()
673 * mb[1] = AEN Reason code in qla83xx_handle_8200_aen()
674 * mb[2] = LSW of Peg-Halt Status-1 Register in qla83xx_handle_8200_aen()
675 * mb[6] = MSW of Peg-Halt Status-1 Register in qla83xx_handle_8200_aen()
676 * mb[3] = LSW of Peg-Halt Status-2 register in qla83xx_handle_8200_aen()
677 * mb[7] = MSW of Peg-Halt Status-2 register in qla83xx_handle_8200_aen()
678 * mb[4] = IDC Device-State Register value in qla83xx_handle_8200_aen()
679 * mb[5] = IDC Driver-Presence Register value in qla83xx_handle_8200_aen()
681 ql_dbg(ql_dbg_async, vha, 0x506b, "AEN Code: mb[0] = 0x%x AEN reason: " in qla83xx_handle_8200_aen()
682 "mb[1] = 0x%x PH-status1: mb[2] = 0x%x PH-status1: mb[6] = 0x%x.\n", in qla83xx_handle_8200_aen()
683 mb[0], mb[1], mb[2], mb[6]); in qla83xx_handle_8200_aen()
684 ql_dbg(ql_dbg_async, vha, 0x506c, "PH-status2: mb[3] = 0x%x " in qla83xx_handle_8200_aen()
685 "PH-status2: mb[7] = 0x%x Device-State: mb[4] = 0x%x " in qla83xx_handle_8200_aen()
686 "Drv-Presence: mb[5] = 0x%x.\n", mb[3], mb[7], mb[4], mb[5]); in qla83xx_handle_8200_aen()
688 if (mb[1] & (IDC_PEG_HALT_STATUS_CHANGE | IDC_NIC_FW_REPORTED_FAILURE | in qla83xx_handle_8200_aen()
690 ha->flags.nic_core_hung = 1; in qla83xx_handle_8200_aen()
694 if (mb[1] & IDC_PEG_HALT_STATUS_CHANGE) { in qla83xx_handle_8200_aen()
699 * - PEG-Halt Status-1 Register: in qla83xx_handle_8200_aen()
700 * (LSW = mb[2], MSW = mb[6]) in qla83xx_handle_8200_aen()
708 * (LSW = mb[3], MSW = mb[7]) in qla83xx_handle_8200_aen()
710 protocol_engine_id = (mb[2] & 0xff); in qla83xx_handle_8200_aen()
711 fw_err_code = (((mb[2] & 0xff00) >> 8) | in qla83xx_handle_8200_aen()
712 ((mb[6] & 0x1fff) << 8)); in qla83xx_handle_8200_aen()
713 err_level = ((mb[6] & 0xe000) >> 13); in qla83xx_handle_8200_aen()
714 ql_log(ql_log_warn, vha, 0x5061, "PegHalt Status-1 " in qla83xx_handle_8200_aen()
719 "Register: 0x%x%x.\n", mb[7], mb[3]); in qla83xx_handle_8200_aen()
738 if (mb[1] & IDC_NIC_FW_REPORTED_FAILURE) { in qla83xx_handle_8200_aen()
748 * (LSW = mb[2], MSW = mb[6]) in qla83xx_handle_8200_aen()
776 peg_fw_state = (mb[2] & 0x00ff); in qla83xx_handle_8200_aen()
777 nw_interface_link_up = ((mb[2] & 0x0100) >> 8); in qla83xx_handle_8200_aen()
778 nw_interface_signal_detect = ((mb[2] & 0x0200) >> 9); in qla83xx_handle_8200_aen()
779 sfp_status = ((mb[2] & 0x0c00) >> 10); in qla83xx_handle_8200_aen()
780 htbt_counter = ((mb[2] & 0x7000) >> 12); in qla83xx_handle_8200_aen()
781 htbt_monitor_enable = ((mb[2] & 0x8000) >> 15); in qla83xx_handle_8200_aen()
782 sfp_additional_info = (mb[6] & 0x0003); in qla83xx_handle_8200_aen()
783 sfp_multirate = ((mb[6] & 0x0004) >> 2); in qla83xx_handle_8200_aen()
784 sfp_tx_fault = ((mb[6] & 0x0008) >> 3); in qla83xx_handle_8200_aen()
785 link_speed = ((mb[6] & 0x0070) >> 4); in qla83xx_handle_8200_aen()
786 dcbx_status = ((mb[6] & 0x7000) >> 12); in qla83xx_handle_8200_aen()
808 if (mb[1] & IDC_HEARTBEAT_FAILURE) { in qla83xx_handle_8200_aen()
817 if (mb[1] & IDC_DEVICE_STATE_CHANGE) { in qla83xx_handle_8200_aen()
819 "IDC Device-State changed = 0x%x.\n", mb[4]); in qla83xx_handle_8200_aen()
842 ret = 1; in qla2x00_is_a_vp_did()
900 qla27xx_handle_8200_aen(scsi_qla_host_t *vha, uint16_t *mb) in qla27xx_handle_8200_aen() argument
908 mb[1] & BIT_8 ? "" : " not", in qla27xx_handle_8200_aen()
909 mb[0], mb[1], mb[2], mb[3]); in qla27xx_handle_8200_aen()
911 if ((mb[1] & BIT_8) == 0) in qla27xx_handle_8200_aen()
922 ha->isp_ops->mpi_fw_dump(vha, 1); in qla27xx_handle_8200_aen()
941 if (atomic_inc_return(&vha->default_item.in_use) == 1) { in qla24xx_alloc_purex_item()
1108 * @mb: Mailbox registers (0 - 3)
1111 qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb) in qla2x00_async_event() argument
1131 switch (mb[0]) { in qla2x00_async_event()
1133 handles[0] = make_handle(mb[2], mb[1]); in qla2x00_async_event()
1134 handle_cnt = 1; in qla2x00_async_event()
1137 handles[0] = mb[1]; in qla2x00_async_event()
1138 handle_cnt = 1; in qla2x00_async_event()
1139 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1142 handles[0] = mb[1]; in qla2x00_async_event()
1143 handles[1] = mb[2]; in qla2x00_async_event()
1145 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1148 handles[0] = mb[1]; in qla2x00_async_event()
1149 handles[1] = mb[2]; in qla2x00_async_event()
1150 handles[2] = mb[3]; in qla2x00_async_event()
1152 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1155 handles[0] = mb[1]; in qla2x00_async_event()
1156 handles[1] = mb[2]; in qla2x00_async_event()
1157 handles[2] = mb[3]; in qla2x00_async_event()
1160 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1163 handles[0] = mb[1]; in qla2x00_async_event()
1164 handles[1] = mb[2]; in qla2x00_async_event()
1165 handles[2] = mb[3]; in qla2x00_async_event()
1169 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1172 handles[0] = make_handle(mb[2], mb[1]); in qla2x00_async_event()
1173 handles[1] = make_handle(RD_MAILBOX_REG(ha, reg, 7), in qla2x00_async_event()
1176 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1182 switch (mb[0]) { in qla2x00_async_event()
1209 m[1] = rd_reg_word(&reg24->mailbox5); in qla2x00_async_event()
1215 mb[1], mb[2], mb[3], m[0], m[1], m[2], m[3]); in qla2x00_async_event()
1219 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1223 ha->isp_ops->mpi_fw_dump(vha, 1); in qla2x00_async_event()
1229 if (mb[1] == 0 && mb[2] == 0) { in qla2x00_async_event()
1243 } else if (mb[1] == 0) { in qla2x00_async_event()
1255 "ISP Request Transfer Error (%x).\n", mb[1]); in qla2x00_async_event()
1264 "ISP Response Transfer Error (%x).\n", mb[1]); in qla2x00_async_event()
1273 "Asynchronous WAKEUP_THRES (%x).\n", mb[1]); in qla2x00_async_event()
1278 "LOOP INIT ERROR (%x).\n", mb[1]); in qla2x00_async_event()
1283 ha->flags.lip_ae = 1; in qla2x00_async_event()
1286 "LIP occurred (%x).\n", mb[1]); in qla2x00_async_event()
1303 qla2x00_post_aen_work(vha, FCH_EVT_LIP, mb[1]); in qla2x00_async_event()
1310 ha->link_data_rate = mb[1]; in qla2x00_async_event()
1317 if (mb[2] & BIT_0) in qla2x00_async_event()
1344 mb[1], mb[2], mb[3], mbx); in qla2x00_async_event()
1385 "LIP reset occurred (%x).\n", mb[1]); in qla2x00_async_event()
1402 qla2x00_post_aen_work(vha, FCH_EVT_LIPRESET, mb[1]); in qla2x00_async_event()
1415 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1455 "Configuration change detected: value=%x.\n", mb[1]); in qla2x00_async_event()
1479 * mb[1] = N_Port handle of changed port in qla2x00_async_event()
1481 * mb[2] = New login state in qla2x00_async_event()
1483 * mb[3] = LSB is vp_idx, 0xff = all vps in qla2x00_async_event()
1491 ((mb[1] == 0xffff && (mb[3] & 0xff) != 0xff) || in qla2x00_async_event()
1492 (mb[1] != 0xffff)) && vha->vp_idx != (mb[3] & 0xff)) in qla2x00_async_event()
1495 if (mb[2] == 0x7) { in qla2x00_async_event()
1498 mb[1] == 0xffff ? "unavailable" : "logout", in qla2x00_async_event()
1499 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1501 if (mb[1] == 0xffff) in qla2x00_async_event()
1504 if (mb[1] == NPH_SNS_LID(ha)) { in qla2x00_async_event()
1515 if (mb[1] == handle_cnt) { in qla2x00_async_event()
1522 fcport = qla2x00_find_fcport_by_loopid(vha, mb[1]); in qla2x00_async_event()
1568 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1574 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1592 if (ha->flags.npiv_supported && vha->vp_idx != (mb[3] & 0xff)) in qla2x00_async_event()
1597 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1599 rscn_entry = ((mb[1] & 0xff) << 16) | mb[2]; in qla2x00_async_event()
1610 rscn_entry = ((mb[1] & 0x3ff) << 16) | mb[2]; in qla2x00_async_event()
1630 mb[1] != QLA_CON_PRIMITIVE_RECEIVED) in qla2x00_async_event()
1633 if (mb[2] == QLA_CONGESTION_ARB_WARNING) { in qla2x00_async_event()
1635 "Congestion Warning %04x %04x.\n", mb[1], mb[2]); in qla2x00_async_event()
1636 } else if (mb[2] == QLA_CONGESTION_ARB_ALARM) { in qla2x00_async_event()
1638 "Congestion Alarm %04x %04x.\n", mb[1], mb[2]); in qla2x00_async_event()
1655 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1661 "Trace Notification -- %04x %04x.\n", mb[1], mb[2]); in qla2x00_async_event()
1667 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1670 switch (mb[1]) { in qla2x00_async_event()
1674 mb[2], mb[3]); in qla2x00_async_event()
1677 ha->cs84xx->op_fw_version = mb[3] << 16 | mb[2]; in qla2x00_async_event()
1683 ha->cs84xx->diag_fw_version = mb[3] << 16 | mb[2]; in qla2x00_async_event()
1689 ha->cs84xx->diag_fw_version = mb[3] << 16 | mb[2]; in qla2x00_async_event()
1690 ha->cs84xx->fw_update = 1; in qla2x00_async_event()
1698 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1705 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1710 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1715 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1719 mb[4] = rd_reg_word(&reg24->mailbox4); in qla2x00_async_event()
1720 if (((mb[2] & 0x7fff) == MBC_PORT_RESET || in qla2x00_async_event()
1721 (mb[2] & 0x7fff) == MBC_SET_PORT_CONFIG) && in qla2x00_async_event()
1722 (mb[4] & INTERNAL_LOOPBACK_MASK) != 0) { in qla2x00_async_event()
1741 qla81xx_idc_event(vha, mb[0], mb[1]); in qla2x00_async_event()
1747 qla27xx_handle_8200_aen(vha, mb); in qla2x00_async_event()
1749 mb[4] = rd_reg_word(&reg24->mailbox4); in qla2x00_async_event()
1750 mb[5] = rd_reg_word(&reg24->mailbox5); in qla2x00_async_event()
1751 mb[6] = rd_reg_word(&reg24->mailbox6); in qla2x00_async_event()
1752 mb[7] = rd_reg_word(&reg24->mailbox7); in qla2x00_async_event()
1753 qla83xx_handle_8200_aen(vha, mb); in qla2x00_async_event()
1757 mb[0], mb[1], mb[2], mb[3]); in qla2x00_async_event()
1762 if ((mb[1] & 0xF) == AEN_DONE_DIAG_TEST_WITH_NOERR || in qla2x00_async_event()
1763 (mb[1] & 0xF) == AEN_DONE_DIAG_TEST_WITH_ERR) in qla2x00_async_event()
1767 mb[0], mb[1], mb[2], mb[3]); in qla2x00_async_event()
1768 memcpy(vha->dport_data, mb, sizeof(vha->dport_data)); in qla2x00_async_event()
1774 uint result = mb[1] >> 0 & 0x3; in qla2x00_async_event()
1775 uint type = mb[1] >> 6 & 0x3; in qla2x00_async_event()
1776 uint sw = mb[1] >> 15 & 0x1; in qla2x00_async_event()
1786 uint reason = mb[2] >> 0 & 0xf; in qla2x00_async_event()
1787 uint phase = mb[2] >> 12 & 0xf; in qla2x00_async_event()
1791 phase >> 1); in qla2x00_async_event()
1798 "TEMPERATURE ALERT: %04x %04x %04x\n", mb[1], mb[2], mb[3]); in qla2x00_async_event()
1803 "Transceiver Insertion: %04x\n", mb[1]); in qla2x00_async_event()
1814 mb[0], mb[1], mb[2], mb[3]); in qla2x00_async_event()
1817 qlt_async_event(mb[0], vha, mb); in qla2x00_async_event()
1820 qla2x00_alert_all_vps(rsp, mb); in qla2x00_async_event()
1928 data[1] = lio->u.logio.flags & SRB_LOGIN_RETRIED ? in qla2x00_mbx_iocb_entry()
1971 data[1] = le16_to_cpu(mbx->mb1); in qla2x00_mbx_iocb_entry()
2020 sz = min(ARRAY_SIZE(pkt->mb), ARRAY_SIZE(sp->u.iocb_cmd.u.mbx.in_mb)); in qla24xx_mbx_iocb_entry()
2023 si->u.mbx.in_mb[i] = pkt->mb[i]; in qla24xx_mbx_iocb_entry()
2132 int res, logit = 1; in qla24xx_els_ct_entry()
2147 fw_status[1] = le32_to_cpu(((struct els_sts_entry_24xx *)pkt)->error_subcode_1); in qla24xx_els_ct_entry()
2165 e->d_id[2], e->d_id[1], e->d_id[0], in qla24xx_els_ct_entry()
2216 els->u.els_plogi.fw_status[1] = cpu_to_le32(fw_status[1]); in qla24xx_els_ct_entry()
2231 __func__, e->s_id[0], e->s_id[2], e->s_id[1], in qla24xx_els_ct_entry()
2232 e->d_id[2], e->d_id[1], e->d_id[0]); in qla24xx_els_ct_entry()
2257 "subcode 1=0x%x subcode 2=0x%x bytes=0x%x %02x%02x%02x -> %02x%02x%02x\n", in qla24xx_els_ct_entry()
2258 fw_status[1], fw_status[2], in qla24xx_els_ct_entry()
2261 e->s_id[0], e->s_id[2], e->s_id[1], in qla24xx_els_ct_entry()
2262 e->d_id[2], e->d_id[1], e->d_id[0]); in qla24xx_els_ct_entry()
2275 "subcode 1=0x%x subcode 2=0x%x bytes=0x%x %02x%02x%02x -> %02x%02x%02x\n", in qla24xx_els_ct_entry()
2276 fw_status[1], fw_status[2], in qla24xx_els_ct_entry()
2279 e->s_id[0], e->s_id[2], e->s_id[1], in qla24xx_els_ct_entry()
2280 e->d_id[2], e->d_id[1], e->d_id[0]); in qla24xx_els_ct_entry()
2302 "error subcode 1=0x%x error subcode 2=0x%x total_byte = 0x%x.\n", in qla24xx_els_ct_entry()
2303 type, sp->handle, comp_status, fw_status[1], fw_status[2], in qla24xx_els_ct_entry()
2308 "error subcode 1=0x%x error subcode 2=0x%x.\n", in qla24xx_els_ct_entry()
2341 int logit = 1; in qla24xx_logio_entry()
2353 data[1] = lio->u.logio.flags & SRB_LOGIN_RETRIED ? in qla24xx_logio_entry()
2380 lio->u.logio.iop[1] = in qla24xx_logio_entry()
2381 le32_to_cpu(logio->io_parameter[1]); in qla24xx_logio_entry()
2388 lio->u.logio.iop[1] = le32_to_cpu(logio->io_parameter[5]); in qla24xx_logio_entry()
2412 iop[1] = le32_to_cpu(logio->io_parameter[1]); in qla24xx_logio_entry()
2414 lio->u.logio.iop[1] = iop[1]; in qla24xx_logio_entry()
2418 data[1] = LSW(iop[1]); in qla24xx_logio_entry()
2426 if (iop[1] == 0x0606) { in qla24xx_logio_entry()
2462 le32_to_cpu(logio->io_parameter[1])); in qla24xx_logio_entry()
2469 le32_to_cpu(logio->io_parameter[1])); in qla24xx_logio_entry()
2576 logit = 1; in qla24xx_nvme_iocb_entry()
2604 logit = 1; in qla24xx_nvme_iocb_entry()
2615 WARN_ONCE(1, "Unexpected response payload length %u.\n", in qla24xx_nvme_iocb_entry()
2638 logit = 1; in qla24xx_nvme_iocb_entry()
2899 * For type 0,1,2: app tag is all 'f's in qla2x00_handle_dif_error()
2908 blocks_done = e_ref_tag - (uint32_t)lba_s + 1; in qla2x00_handle_dif_error()
2930 j = blocks_done - k - 1; in qla2x00_handle_dif_error()
2939 return 1; in qla2x00_handle_dif_error()
2955 scsi_build_sense(cmd, 1, ILLEGAL_REQUEST, 0x10, 0x1); in qla2x00_handle_dif_error()
2957 return 1; in qla2x00_handle_dif_error()
2962 scsi_build_sense(cmd, 1, ILLEGAL_REQUEST, 0x10, 0x3); in qla2x00_handle_dif_error()
2964 return 1; in qla2x00_handle_dif_error()
2969 scsi_build_sense(cmd, 1, ILLEGAL_REQUEST, 0x10, 0x2); in qla2x00_handle_dif_error()
2971 return 1; in qla2x00_handle_dif_error()
2974 return 1; in qla2x00_handle_dif_error()
3025 thread_id = bsg_request->rqst_data.h_vendor.vendor_cmd[1]; in qla25xx_process_bidir_status_iocb()
3151 int logit = 1; in qla2x00_status_entry()
3414 logit = 1; in qla2x00_status_entry()
3582 * return : 1=allow further error analysis. 0=no additional error analysis.
3631 return 1; in qla2x00_error_entry()
3655 mboxes = (1ULL << ha->mbx_count) - 1; in qla24xx_mbx_completion()
3662 ha->flags.mbox_int = 1; in qla24xx_mbx_completion()
3664 mboxes >>= 1; in qla24xx_mbx_completion()
3667 for (cnt = 1; cnt < ha->mbx_count; cnt++) { in qla24xx_mbx_completion()
3671 mboxes >>= 1; in qla24xx_mbx_completion()
3729 if (pkt->entry_count == 1) in qla_chk_cont_iocb_avail()
3734 start_pkt_ring_index = rsp->length - 1; in qla_chk_cont_iocb_avail()
3736 start_pkt_ring_index = rsp->ring_index - 1; in qla_chk_cont_iocb_avail()
3773 rsp->qpair->rcv_intr = 1; in qla24xx_process_response_queue()
3847 qlt_24xx_process_atio_queue(vha, 1); in qla24xx_process_response_queue()
4029 uint16_t mb[8]; in qla24xx_intr_handler() local
4082 mb[0] = MSW(stat); in qla24xx_intr_handler()
4083 mb[1] = rd_reg_word(&reg->mailbox1); in qla24xx_intr_handler()
4084 mb[2] = rd_reg_word(&reg->mailbox2); in qla24xx_intr_handler()
4085 mb[3] = rd_reg_word(&reg->mailbox3); in qla24xx_intr_handler()
4086 qla2x00_async_event(vha, rsp, mb); in qla24xx_intr_handler()
4107 if (unlikely(IS_QLA83XX(ha) && (ha->pdev->revision == 1))) in qla24xx_intr_handler()
4163 uint16_t mb[8]; in qla24xx_msix_default() local
4212 mb[0] = MSW(stat); in qla24xx_msix_default()
4213 mb[1] = rd_reg_word(&reg->mailbox1); in qla24xx_msix_default()
4214 mb[2] = rd_reg_word(&reg->mailbox2); in qla24xx_msix_default()
4215 mb[3] = rd_reg_word(&reg->mailbox3); in qla24xx_msix_default()
4216 qla2x00_async_event(vha, rsp, mb); in qla24xx_msix_default()
4354 ha->max_req_queues = ha->msix_count - 1; in qla24xx_enable_msix()
4356 /* ATIOQ needs 1 vector. That's 1 less QPair */ in qla24xx_enable_msix()
4362 ha->max_qpairs = ha->max_req_queues - 1; in qla24xx_enable_msix()
4377 ha->flags.msix_enabled = 1; in qla24xx_enable_msix()
4405 qentry->have_irq = 1; in qla24xx_enable_msix()
4406 qentry->in_use = 1; in qla24xx_enable_msix()
4421 qentry->in_use = 1; in qla24xx_enable_msix()
4425 qentry->have_irq = 1; in qla24xx_enable_msix()
4441 ha->mqenable = 1; in qla24xx_enable_msix()
4512 ret = pci_alloc_irq_vectors(ha->pdev, 1, 1, PCI_IRQ_MSI); in qla2x00_request_irqs()
4516 ha->flags.msi_enabled = 1; in qla2x00_request_irqs()
4537 ha->flags.mr_intr_valid = 1; in qla2x00_request_irqs()
4607 msix->have_irq = 1; in qla25xx_request_irq()