Lines Matching refs:mb
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()
594 uint16_t cnt, timeout, mb[QLA_IDC_ACK_REGS]; in qla81xx_idc_event() local
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()
631 rval = qla2x00_post_idc_ack_work(vha, mb); in qla81xx_idc_event()
666 qla83xx_handle_8200_aen(scsi_qla_host_t *vha, uint16_t *mb) in qla83xx_handle_8200_aen() argument
683 mb[0], mb[1], mb[2], mb[6]); 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()
694 if (mb[1] & IDC_PEG_HALT_STATUS_CHANGE) { 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()
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()
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()
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()
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()
1137 handles[0] = mb[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()
1176 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1182 switch (mb[0]) { 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()
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()
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()
1387 "LIP reset occurred (%x).\n", mb[1]); in qla2x00_async_event()
1404 qla2x00_post_aen_work(vha, FCH_EVT_LIPRESET, mb[1]); in qla2x00_async_event()
1417 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1457 "Configuration change detected: value=%x.\n", mb[1]); in qla2x00_async_event()
1493 ((mb[1] == 0xffff && (mb[3] & 0xff) != 0xff) || in qla2x00_async_event()
1494 (mb[1] != 0xffff)) && vha->vp_idx != (mb[3] & 0xff)) in qla2x00_async_event()
1497 if (mb[2] == 0x7) { in qla2x00_async_event()
1500 mb[1] == 0xffff ? "unavailable" : "logout", in qla2x00_async_event()
1501 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1503 if (mb[1] == 0xffff) in qla2x00_async_event()
1506 if (mb[1] == NPH_SNS_LID(ha)) { in qla2x00_async_event()
1517 if (mb[1] == handle_cnt) { in qla2x00_async_event()
1524 fcport = qla2x00_find_fcport_by_loopid(vha, mb[1]); in qla2x00_async_event()
1570 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1576 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1594 if (ha->flags.npiv_supported && vha->vp_idx != (mb[3] & 0xff)) in qla2x00_async_event()
1599 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1601 rscn_entry = ((mb[1] & 0xff) << 16) | mb[2]; in qla2x00_async_event()
1612 rscn_entry = ((mb[1] & 0x3ff) << 16) | mb[2]; in qla2x00_async_event()
1632 mb[1] != QLA_CON_PRIMITIVE_RECEIVED) in qla2x00_async_event()
1635 if (mb[2] == QLA_CONGESTION_ARB_WARNING) { in qla2x00_async_event()
1637 "Congestion Warning %04x %04x.\n", mb[1], mb[2]); in qla2x00_async_event()
1638 } else if (mb[2] == QLA_CONGESTION_ARB_ALARM) { in qla2x00_async_event()
1640 "Congestion Alarm %04x %04x.\n", mb[1], mb[2]); in qla2x00_async_event()
1657 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1663 "Trace Notification -- %04x %04x.\n", mb[1], mb[2]); in qla2x00_async_event()
1669 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1672 switch (mb[1]) { in qla2x00_async_event()
1676 mb[2], mb[3]); in qla2x00_async_event()
1679 ha->cs84xx->op_fw_version = mb[3] << 16 | mb[2]; in qla2x00_async_event()
1685 ha->cs84xx->diag_fw_version = mb[3] << 16 | mb[2]; in qla2x00_async_event()
1691 ha->cs84xx->diag_fw_version = mb[3] << 16 | mb[2]; in qla2x00_async_event()
1700 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1707 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1712 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1717 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1721 mb[4] = rd_reg_word(®24->mailbox4); in qla2x00_async_event()
1722 if (((mb[2] & 0x7fff) == MBC_PORT_RESET || in qla2x00_async_event()
1723 (mb[2] & 0x7fff) == MBC_SET_PORT_CONFIG) && in qla2x00_async_event()
1724 (mb[4] & INTERNAL_LOOPBACK_MASK) != 0) { in qla2x00_async_event()
1743 qla81xx_idc_event(vha, mb[0], mb[1]); in qla2x00_async_event()
1749 qla27xx_handle_8200_aen(vha, mb); in qla2x00_async_event()
1751 mb[4] = rd_reg_word(®24->mailbox4); in qla2x00_async_event()
1752 mb[5] = rd_reg_word(®24->mailbox5); in qla2x00_async_event()
1753 mb[6] = rd_reg_word(®24->mailbox6); in qla2x00_async_event()
1754 mb[7] = rd_reg_word(®24->mailbox7); in qla2x00_async_event()
1755 qla83xx_handle_8200_aen(vha, mb); in qla2x00_async_event()
1759 mb[0], mb[1], mb[2], mb[3]); in qla2x00_async_event()
1766 mb[0], mb[1], mb[2], mb[3]); in qla2x00_async_event()
1767 memcpy(vha->dport_data, mb, sizeof(vha->dport_data)); in qla2x00_async_event()
1773 uint result = mb[1] >> 0 & 0x3; in qla2x00_async_event()
1774 uint type = mb[1] >> 6 & 0x3; in qla2x00_async_event()
1775 uint sw = mb[1] >> 15 & 0x1; in qla2x00_async_event()
1785 uint reason = mb[2] >> 0 & 0xf; in qla2x00_async_event()
1786 uint phase = mb[2] >> 12 & 0xf; in qla2x00_async_event()
1797 "TEMPERATURE ALERT: %04x %04x %04x\n", mb[1], mb[2], mb[3]); in qla2x00_async_event()
1802 "Transceiver Insertion: %04x\n", mb[1]); in qla2x00_async_event()
1813 mb[0], mb[1], mb[2], mb[3]); in qla2x00_async_event()
1816 qlt_async_event(mb[0], vha, mb); in qla2x00_async_event()
1819 qla2x00_alert_all_vps(rsp, mb); in qla2x00_async_event()
2019 sz = min(ARRAY_SIZE(pkt->mb), ARRAY_SIZE(sp->u.iocb_cmd.u.mbx.in_mb)); in qla24xx_mbx_iocb_entry()
2022 si->u.mbx.in_mb[i] = pkt->mb[i]; in qla24xx_mbx_iocb_entry()
4012 uint16_t mb[8]; in qla24xx_intr_handler() local
4065 mb[0] = MSW(stat); in qla24xx_intr_handler()
4066 mb[1] = rd_reg_word(®->mailbox1); in qla24xx_intr_handler()
4067 mb[2] = rd_reg_word(®->mailbox2); in qla24xx_intr_handler()
4068 mb[3] = rd_reg_word(®->mailbox3); in qla24xx_intr_handler()
4069 qla2x00_async_event(vha, rsp, mb); in qla24xx_intr_handler()
4146 uint16_t mb[8]; in qla24xx_msix_default() local
4195 mb[0] = MSW(stat); in qla24xx_msix_default()
4196 mb[1] = rd_reg_word(®->mailbox1); in qla24xx_msix_default()
4197 mb[2] = rd_reg_word(®->mailbox2); in qla24xx_msix_default()
4198 mb[3] = rd_reg_word(®->mailbox3); in qla24xx_msix_default()
4199 qla2x00_async_event(vha, rsp, mb); in qla24xx_msix_default()