Lines Matching full:mb

349 	uint16_t	mb[8];  in qla2100_intr_handler()  local
393 mb[0] = RD_MAILBOX_REG(ha, reg, 0); in qla2100_intr_handler()
394 if (mb[0] > 0x3fff && mb[0] < 0x8000) { in qla2100_intr_handler()
395 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler()
397 } else if (mb[0] > 0x7fff && mb[0] < 0xc000) { in qla2100_intr_handler()
398 mb[1] = RD_MAILBOX_REG(ha, reg, 1); in qla2100_intr_handler()
399 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2100_intr_handler()
400 mb[3] = RD_MAILBOX_REG(ha, reg, 3); in qla2100_intr_handler()
401 qla2x00_async_event(vha, rsp, mb); in qla2100_intr_handler()
406 mb[0]); in qla2100_intr_handler()
463 uint16_t mb[8]; in qla2300_intr_handler() local
526 mb[0] = MSW(stat); in qla2300_intr_handler()
527 mb[1] = RD_MAILBOX_REG(ha, reg, 1); in qla2300_intr_handler()
528 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2300_intr_handler()
529 mb[3] = RD_MAILBOX_REG(ha, reg, 3); in qla2300_intr_handler()
530 qla2x00_async_event(vha, rsp, mb); in qla2300_intr_handler()
536 mb[0] = MBA_CMPLT_1_16BIT; in qla2300_intr_handler()
537 mb[1] = MSW(stat); in qla2300_intr_handler()
538 qla2x00_async_event(vha, rsp, mb); in qla2300_intr_handler()
541 mb[0] = MBA_SCSI_COMPLETION; in qla2300_intr_handler()
542 mb[1] = MSW(stat); in qla2300_intr_handler()
543 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2300_intr_handler()
544 qla2x00_async_event(vha, rsp, mb); in qla2300_intr_handler()
610 uint16_t cnt, timeout, mb[QLA_IDC_ACK_REGS]; in qla81xx_idc_event() local
621 mb[cnt] = rd_reg_word(wptr); in qla81xx_idc_event()
626 event[aen & 0xff], mb[0], mb[1], mb[2], mb[3], in qla81xx_idc_event()
627 mb[4], mb[5], mb[6]); in qla81xx_idc_event()
631 if (mb[1] >> 15) { in qla81xx_idc_event()
647 rval = qla2x00_post_idc_ack_work(vha, mb); in qla81xx_idc_event()
682 qla83xx_handle_8200_aen(scsi_qla_host_t *vha, uint16_t *mb) in qla83xx_handle_8200_aen() argument
688 * mb[0] = AEN code in qla83xx_handle_8200_aen()
689 * mb[1] = AEN Reason code in qla83xx_handle_8200_aen()
690 * mb[2] = LSW of Peg-Halt Status-1 Register in qla83xx_handle_8200_aen()
691 * mb[6] = MSW of Peg-Halt Status-1 Register in qla83xx_handle_8200_aen()
692 * mb[3] = LSW of Peg-Halt Status-2 register in qla83xx_handle_8200_aen()
693 * mb[7] = MSW of Peg-Halt Status-2 register in qla83xx_handle_8200_aen()
694 * mb[4] = IDC Device-State Register value in qla83xx_handle_8200_aen()
695 * mb[5] = IDC Driver-Presence Register value in qla83xx_handle_8200_aen()
697 ql_dbg(ql_dbg_async, vha, 0x506b, "AEN Code: mb[0] = 0x%x AEN reason: " in qla83xx_handle_8200_aen()
698 "mb[1] = 0x%x PH-status1: mb[2] = 0x%x PH-status1: mb[6] = 0x%x.\n", in qla83xx_handle_8200_aen()
699 mb[0], mb[1], mb[2], mb[6]); in qla83xx_handle_8200_aen()
700 ql_dbg(ql_dbg_async, vha, 0x506c, "PH-status2: mb[3] = 0x%x " in qla83xx_handle_8200_aen()
701 "PH-status2: mb[7] = 0x%x Device-State: mb[4] = 0x%x " in qla83xx_handle_8200_aen()
702 "Drv-Presence: mb[5] = 0x%x.\n", mb[3], mb[7], mb[4], mb[5]); in qla83xx_handle_8200_aen()
704 if (mb[1] & (IDC_PEG_HALT_STATUS_CHANGE | IDC_NIC_FW_REPORTED_FAILURE | in qla83xx_handle_8200_aen()
710 if (mb[1] & IDC_PEG_HALT_STATUS_CHANGE) { in qla83xx_handle_8200_aen()
716 * (LSW = mb[2], MSW = mb[6]) in qla83xx_handle_8200_aen()
724 * (LSW = mb[3], MSW = mb[7]) in qla83xx_handle_8200_aen()
726 protocol_engine_id = (mb[2] & 0xff); in qla83xx_handle_8200_aen()
727 fw_err_code = (((mb[2] & 0xff00) >> 8) | in qla83xx_handle_8200_aen()
728 ((mb[6] & 0x1fff) << 8)); in qla83xx_handle_8200_aen()
729 err_level = ((mb[6] & 0xe000) >> 13); in qla83xx_handle_8200_aen()
735 "Register: 0x%x%x.\n", mb[7], mb[3]); in qla83xx_handle_8200_aen()
754 if (mb[1] & IDC_NIC_FW_REPORTED_FAILURE) { in qla83xx_handle_8200_aen()
764 * (LSW = mb[2], MSW = mb[6]) in qla83xx_handle_8200_aen()
792 peg_fw_state = (mb[2] & 0x00ff); in qla83xx_handle_8200_aen()
793 nw_interface_link_up = ((mb[2] & 0x0100) >> 8); in qla83xx_handle_8200_aen()
794 nw_interface_signal_detect = ((mb[2] & 0x0200) >> 9); in qla83xx_handle_8200_aen()
795 sfp_status = ((mb[2] & 0x0c00) >> 10); in qla83xx_handle_8200_aen()
796 htbt_counter = ((mb[2] & 0x7000) >> 12); in qla83xx_handle_8200_aen()
797 htbt_monitor_enable = ((mb[2] & 0x8000) >> 15); in qla83xx_handle_8200_aen()
798 sfp_additional_info = (mb[6] & 0x0003); in qla83xx_handle_8200_aen()
799 sfp_multirate = ((mb[6] & 0x0004) >> 2); in qla83xx_handle_8200_aen()
800 sfp_tx_fault = ((mb[6] & 0x0008) >> 3); in qla83xx_handle_8200_aen()
801 link_speed = ((mb[6] & 0x0070) >> 4); in qla83xx_handle_8200_aen()
802 dcbx_status = ((mb[6] & 0x7000) >> 12); in qla83xx_handle_8200_aen()
824 if (mb[1] & IDC_HEARTBEAT_FAILURE) { in qla83xx_handle_8200_aen()
833 if (mb[1] & IDC_DEVICE_STATE_CHANGE) { in qla83xx_handle_8200_aen()
835 "IDC Device-State changed = 0x%x.\n", mb[4]); in qla83xx_handle_8200_aen()
1045 qla27xx_handle_8200_aen(scsi_qla_host_t *vha, uint16_t *mb) in qla27xx_handle_8200_aen() argument
1053 mb[1] & BIT_8 ? "" : " not", in qla27xx_handle_8200_aen()
1054 mb[0], mb[1], mb[2], mb[3]); in qla27xx_handle_8200_aen()
1056 if ((mb[1] & BIT_8) == 0) in qla27xx_handle_8200_aen()
1253 * @mb: Mailbox registers (0 - 3)
1256 qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb) in qla2x00_async_event() argument
1272 mb[0], mb[1], mb[2], mb[3]); in qla2x00_async_event()
1280 switch (mb[0]) { in qla2x00_async_event()
1282 handles[0] = make_handle(mb[2], mb[1]); in qla2x00_async_event()
1286 handles[0] = mb[1]; in qla2x00_async_event()
1288 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1291 handles[0] = mb[1]; in qla2x00_async_event()
1292 handles[1] = mb[2]; in qla2x00_async_event()
1294 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1297 handles[0] = mb[1]; in qla2x00_async_event()
1298 handles[1] = mb[2]; in qla2x00_async_event()
1299 handles[2] = mb[3]; in qla2x00_async_event()
1301 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1304 handles[0] = mb[1]; in qla2x00_async_event()
1305 handles[1] = mb[2]; in qla2x00_async_event()
1306 handles[2] = mb[3]; in qla2x00_async_event()
1309 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1312 handles[0] = mb[1]; in qla2x00_async_event()
1313 handles[1] = mb[2]; in qla2x00_async_event()
1314 handles[2] = mb[3]; in qla2x00_async_event()
1318 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1321 handles[0] = make_handle(mb[2], mb[1]); in qla2x00_async_event()
1325 mb[0] = MBA_SCSI_COMPLETION; in qla2x00_async_event()
1331 switch (mb[0]) { in qla2x00_async_event()
1364 mb[1], mb[2], mb[3], m[0], m[1], m[2], m[3]); in qla2x00_async_event()
1368 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1378 if (mb[1] == 0 && mb[2] == 0) { in qla2x00_async_event()
1392 } else if (mb[1] == 0) { in qla2x00_async_event()
1404 "ISP Request Transfer Error (%x).\n", mb[1]); in qla2x00_async_event()
1413 "ISP Response Transfer Error (%x).\n", mb[1]); in qla2x00_async_event()
1422 "Asynchronous WAKEUP_THRES (%x).\n", mb[1]); in qla2x00_async_event()
1427 "LOOP INIT ERROR (%x).\n", mb[1]); in qla2x00_async_event()
1435 "LIP occurred (%x).\n", mb[1]); in qla2x00_async_event()
1452 qla2x00_post_aen_work(vha, FCH_EVT_LIP, mb[1]); in qla2x00_async_event()
1459 ha->link_data_rate = mb[1]; in qla2x00_async_event()
1466 if (mb[2] & BIT_0) in qla2x00_async_event()
1493 mb[1], mb[2], mb[3], mbx); in qla2x00_async_event()
1534 "LIP reset occurred (%x).\n", mb[1]); in qla2x00_async_event()
1551 qla2x00_post_aen_work(vha, FCH_EVT_LIPRESET, mb[1]); in qla2x00_async_event()
1564 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1604 "Configuration change detected: value=%x.\n", mb[1]); in qla2x00_async_event()
1628 * mb[1] = N_Port handle of changed port in qla2x00_async_event()
1630 * mb[2] = New login state in qla2x00_async_event()
1632 * mb[3] = LSB is vp_idx, 0xff = all vps in qla2x00_async_event()
1640 ((mb[1] == 0xffff && (mb[3] & 0xff) != 0xff) || in qla2x00_async_event()
1641 (mb[1] != 0xffff)) && vha->vp_idx != (mb[3] & 0xff)) in qla2x00_async_event()
1644 if (mb[2] == 0x7) { in qla2x00_async_event()
1647 mb[1] == 0xffff ? "unavailable" : "logout", in qla2x00_async_event()
1648 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1650 if (mb[1] == 0xffff) in qla2x00_async_event()
1653 if (mb[1] == NPH_SNS_LID(ha)) { in qla2x00_async_event()
1664 if (mb[1] == handle_cnt) { in qla2x00_async_event()
1671 fcport = qla2x00_find_fcport_by_loopid(vha, mb[1]); in qla2x00_async_event()
1717 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1723 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1741 if (ha->flags.npiv_supported && vha->vp_idx != (mb[3] & 0xff)) in qla2x00_async_event()
1746 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1748 rscn_entry = ((mb[1] & 0xff) << 16) | mb[2]; in qla2x00_async_event()
1759 rscn_entry = ((mb[1] & 0x3ff) << 16) | mb[2]; in qla2x00_async_event()
1779 mb[1] != QLA_CON_PRIMITIVE_RECEIVED) in qla2x00_async_event()
1782 if (mb[2] == QLA_CONGESTION_ARB_WARNING) { in qla2x00_async_event()
1784 "Congestion Warning %04x %04x.\n", mb[1], mb[2]); in qla2x00_async_event()
1785 } else if (mb[2] == QLA_CONGESTION_ARB_ALARM) { in qla2x00_async_event()
1787 "Congestion Alarm %04x %04x.\n", mb[1], mb[2]); in qla2x00_async_event()
1804 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1810 "Trace Notification -- %04x %04x.\n", mb[1], mb[2]); in qla2x00_async_event()
1816 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1819 switch (mb[1]) { in qla2x00_async_event()
1823 mb[2], mb[3]); in qla2x00_async_event()
1826 ha->cs84xx->op_fw_version = mb[3] << 16 | mb[2]; in qla2x00_async_event()
1832 ha->cs84xx->diag_fw_version = mb[3] << 16 | mb[2]; in qla2x00_async_event()
1838 ha->cs84xx->diag_fw_version = mb[3] << 16 | mb[2]; in qla2x00_async_event()
1847 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1854 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1859 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1864 mb[1], mb[2], mb[3]); in qla2x00_async_event()
1868 mb[4] = rd_reg_word(&reg24->mailbox4); in qla2x00_async_event()
1869 if (((mb[2] & 0x7fff) == MBC_PORT_RESET || in qla2x00_async_event()
1870 (mb[2] & 0x7fff) == MBC_SET_PORT_CONFIG) && in qla2x00_async_event()
1871 (mb[4] & INTERNAL_LOOPBACK_MASK) != 0) { in qla2x00_async_event()
1890 qla81xx_idc_event(vha, mb[0], mb[1]); in qla2x00_async_event()
1896 qla27xx_handle_8200_aen(vha, mb); in qla2x00_async_event()
1898 mb[4] = rd_reg_word(&reg24->mailbox4); in qla2x00_async_event()
1899 mb[5] = rd_reg_word(&reg24->mailbox5); in qla2x00_async_event()
1900 mb[6] = rd_reg_word(&reg24->mailbox6); in qla2x00_async_event()
1901 mb[7] = rd_reg_word(&reg24->mailbox7); in qla2x00_async_event()
1902 qla83xx_handle_8200_aen(vha, mb); in qla2x00_async_event()
1906 mb[0], mb[1], mb[2], mb[3]); in qla2x00_async_event()
1911 if ((mb[1] & 0xF) == AEN_DONE_DIAG_TEST_WITH_NOERR || in qla2x00_async_event()
1912 (mb[1] & 0xF) == AEN_DONE_DIAG_TEST_WITH_ERR) in qla2x00_async_event()
1916 mb[0], mb[1], mb[2], mb[3]); in qla2x00_async_event()
1917 memcpy(vha->dport_data, mb, sizeof(vha->dport_data)); in qla2x00_async_event()
1923 uint result = mb[1] >> 0 & 0x3; in qla2x00_async_event()
1924 uint type = mb[1] >> 6 & 0x3; in qla2x00_async_event()
1925 uint sw = mb[1] >> 15 & 0x1; in qla2x00_async_event()
1935 uint reason = mb[2] >> 0 & 0xf; in qla2x00_async_event()
1936 uint phase = mb[2] >> 12 & 0xf; in qla2x00_async_event()
1947 display_Laser_info(vha, mb[1], mb[2], mb[3]); in qla2x00_async_event()
1949 "TEMPERATURE ALERT: %04x %04x %04x\n", mb[1], mb[2], mb[3]); in qla2x00_async_event()
1954 "Transceiver Insertion: %04x\n", mb[1]); in qla2x00_async_event()
1965 mb[0], mb[1], mb[2], mb[3]); in qla2x00_async_event()
1968 qlt_async_event(mb[0], vha, mb); in qla2x00_async_event()
1971 qla2x00_alert_all_vps(rsp, mb); in qla2x00_async_event()
2186 sz = min(ARRAY_SIZE(pkt->mb), ARRAY_SIZE(sp->u.iocb_cmd.u.mbx.in_mb)); in qla24xx_mbx_iocb_entry()
2189 si->u.mbx.in_mb[i] = pkt->mb[i]; in qla24xx_mbx_iocb_entry()
4231 uint16_t mb[8]; in qla24xx_intr_handler() local
4284 mb[0] = MSW(stat); in qla24xx_intr_handler()
4285 mb[1] = rd_reg_word(&reg->mailbox1); in qla24xx_intr_handler()
4286 mb[2] = rd_reg_word(&reg->mailbox2); in qla24xx_intr_handler()
4287 mb[3] = rd_reg_word(&reg->mailbox3); in qla24xx_intr_handler()
4288 qla2x00_async_event(vha, rsp, mb); in qla24xx_intr_handler()
4365 uint16_t mb[8]; in qla24xx_msix_default() local
4414 mb[0] = MSW(stat); in qla24xx_msix_default()
4415 mb[1] = rd_reg_word(&reg->mailbox1); in qla24xx_msix_default()
4416 mb[2] = rd_reg_word(&reg->mailbox2); in qla24xx_msix_default()
4417 mb[3] = rd_reg_word(&reg->mailbox3); in qla24xx_msix_default()
4418 qla2x00_async_event(vha, rsp, mb); in qla24xx_msix_default()