• Home
  • Raw
  • Download

Lines Matching refs:vha

106 qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp)  in qla2x00_mailbox_command()  argument
119 struct qla_hw_data *ha = vha->hw; in qla2x00_mailbox_command()
124 ql_dbg(ql_dbg_mbx, vha, 0x1000, "Entered %s.\n", __func__); in qla2x00_mailbox_command()
127 ql_log(ql_log_warn, vha, 0x1001, in qla2x00_mailbox_command()
132 if (vha->device_flags & DFLG_DEV_FAILED) { in qla2x00_mailbox_command()
133 ql_log(ql_log_warn, vha, 0x1002, in qla2x00_mailbox_command()
141 ql_log(ql_log_warn, vha, 0xd04e, in qla2x00_mailbox_command()
154 ql_log(ql_log_warn, vha, 0x1003, in qla2x00_mailbox_command()
162 ql_log(ql_log_warn, vha, 0x1004, in qla2x00_mailbox_command()
172 ql_log(ql_log_info, vha, 0x1005, in qla2x00_mailbox_command()
186 ql_log(ql_log_warn, vha, 0xd035, in qla2x00_mailbox_command()
189 vha->hw_err_cnt++; in qla2x00_mailbox_command()
196 ql_log(ql_log_warn, vha, 0xd035, in qla2x00_mailbox_command()
207 ql_dbg(ql_dbg_mbx, vha, 0x1006, in qla2x00_mailbox_command()
232 ql_dbg(ql_dbg_mbx, vha, 0x1111, in qla2x00_mailbox_command()
238 ql_dbg(ql_dbg_mbx, vha, 0x1112, in qla2x00_mailbox_command()
250 ql_dbg(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1117, in qla2x00_mailbox_command()
258 ql_dbg(ql_dbg_mbx, vha, 0x100f, in qla2x00_mailbox_command()
278 ql_dbg(ql_dbg_mbx, vha, 0x117a, in qla2x00_mailbox_command()
308 ql_log(ql_log_warn, vha, 0x1015, "cmd=0x%x, waited %d msecs\n", in qla2x00_mailbox_command()
311 ql_dbg(ql_dbg_mbx, vha, 0x1011, in qla2x00_mailbox_command()
321 ql_dbg(ql_dbg_mbx, vha, 0x1012, in qla2x00_mailbox_command()
323 vha->hw_err_cnt++; in qla2x00_mailbox_command()
360 ql_dbg(ql_dbg_mbx, vha, 0x1013, in qla2x00_mailbox_command()
370 ql_dbg(ql_dbg_mbx, vha, 0x1014, in qla2x00_mailbox_command()
386 ql_log(ql_log_warn, vha, 0xd048, in qla2x00_mailbox_command()
392 ql_dbg(ql_dbg_mbx, vha, 0x11ff, in qla2x00_mailbox_command()
403 ql_dbg(ql_dbg_mbx, vha, 0x1113, in qla2x00_mailbox_command()
408 ql_dbg(ql_dbg_mbx, vha, 0x1114, in qla2x00_mailbox_command()
432 ql_log(ql_log_warn, vha, 0xd04c, in qla2x00_mailbox_command()
437 vha->hw_err_cnt++; in qla2x00_mailbox_command()
442 ql_dbg(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1119, in qla2x00_mailbox_command()
445 vha->hw_err_cnt++; in qla2x00_mailbox_command()
447 ql_dump_regs(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1019); in qla2x00_mailbox_command()
450 if (!pci_channel_offline(vha->hw->pdev)) { in qla2x00_mailbox_command()
474 qla2xxx_dump_fw(vha); in qla2x00_mailbox_command()
486 ql_dbg(ql_dbg_mbx, vha, 0x101a, in qla2x00_mailbox_command()
498 ql_dbg(ql_dbg_mbx, vha, 0x101b, in qla2x00_mailbox_command()
501 if (!test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) && in qla2x00_mailbox_command()
502 !test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) && in qla2x00_mailbox_command()
503 !test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { in qla2x00_mailbox_command()
505 ql_dbg(ql_dbg_mbx, vha, 0x112a, in qla2x00_mailbox_command()
518 vha->hw_err_cnt++; in qla2x00_mailbox_command()
519 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); in qla2x00_mailbox_command()
520 qla2xxx_wake_dpc(vha); in qla2x00_mailbox_command()
524 ql_dbg(ql_dbg_mbx, vha, 0x101d, in qla2x00_mailbox_command()
527 if (!test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) && in qla2x00_mailbox_command()
528 !test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) && in qla2x00_mailbox_command()
529 !test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { in qla2x00_mailbox_command()
531 ql_dbg(ql_dbg_mbx, vha, 0x112b, in qla2x00_mailbox_command()
543 vha->hw_err_cnt++; in qla2x00_mailbox_command()
544 set_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags); in qla2x00_mailbox_command()
545 clear_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); in qla2x00_mailbox_command()
548 if (ha->isp_ops->abort_isp(vha) && in qla2x00_mailbox_command()
552 &vha->dpc_flags); in qla2x00_mailbox_command()
554 clear_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags); in qla2x00_mailbox_command()
555 ql_dbg(ql_dbg_mbx, vha, 0x101f, in qla2x00_mailbox_command()
568 ql_log(ql_log_info, vha, 0xd035, in qla2x00_mailbox_command()
575 vha->host_no, rval); in qla2x00_mailbox_command()
586 ql_dbg(ql_dbg_mbx, vha, 0x1198, in qla2x00_mailbox_command()
592 ql_dbg(ql_dbg_mbx, vha, 0x1206, in qla2x00_mailbox_command()
617 qla2x00_load_ram(scsi_qla_host_t *vha, dma_addr_t req_dma, uint32_t risc_addr, in qla2x00_load_ram() argument
621 struct qla_hw_data *ha = vha->hw; in qla2x00_load_ram()
625 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1022, in qla2x00_load_ram()
654 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_load_ram()
657 ql_dbg(ql_dbg_mbx, vha, 0x1023, in qla2x00_load_ram()
660 vha->hw_err_cnt++; in qla2x00_load_ram()
662 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1024, in qla2x00_load_ram()
688 qla2x00_execute_fw(scsi_qla_host_t *vha, uint32_t risc_addr) in qla2x00_execute_fw() argument
691 struct qla_hw_data *ha = vha->hw; in qla2x00_execute_fw()
698 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1025, in qla2x00_execute_fw()
732 vha->min_supported_speed = in qla2x00_execute_fw()
762 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_execute_fw()
769 ql_dbg(ql_dbg_async, vha, 0x1026, in qla2x00_execute_fw()
774 ql_dbg(ql_dbg_mbx, vha, 0x1026, in qla2x00_execute_fw()
776 vha->hw_err_cnt++; in qla2x00_execute_fw()
784 ql_dbg(ql_dbg_mbx, vha, 0x119a, in qla2x00_execute_fw()
786 ql_dbg(ql_dbg_mbx, vha, 0x1027, "exchanges=%x.\n", mcp->mb[1]); in qla2x00_execute_fw()
789 ql_dbg(ql_dbg_mbx, vha, 0x119b, "max_supported_speed=%s.\n", in qla2x00_execute_fw()
793 if (vha->min_supported_speed) { in qla2x00_execute_fw()
796 ql_dbg(ql_dbg_mbx, vha, 0x119c, in qla2x00_execute_fw()
808 ql_log(ql_log_info, vha, 0xffff, in qla2x00_execute_fw()
813 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1028, in qla2x00_execute_fw()
836 qla_get_exlogin_status(scsi_qla_host_t *vha, uint16_t *buf_sz, in qla_get_exlogin_status() argument
843 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x118f, in qla_get_exlogin_status()
854 rval = qla2x00_mailbox_command(vha, mcp); in qla_get_exlogin_status()
856 ql_dbg(ql_dbg_mbx, vha, 0x1115, "Failed=%x.\n", rval); in qla_get_exlogin_status()
861 ql_log(ql_log_info, vha, 0x1190, in qla_get_exlogin_status()
865 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1116, in qla_get_exlogin_status()
893 qla_set_exlogin_mem_cfg(scsi_qla_host_t *vha, dma_addr_t phys_addr) in qla_set_exlogin_mem_cfg() argument
898 struct qla_hw_data *ha = vha->hw; in qla_set_exlogin_mem_cfg()
900 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x111a, in qla_set_exlogin_mem_cfg()
916 rval = qla2x00_mailbox_command(vha, mcp); in qla_set_exlogin_mem_cfg()
918 ql_dbg(ql_dbg_mbx, vha, 0x111b, in qla_set_exlogin_mem_cfg()
922 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x118c, in qla_set_exlogin_mem_cfg()
946 qla_get_exchoffld_status(scsi_qla_host_t *vha, uint16_t *buf_sz, in qla_get_exchoffld_status() argument
953 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1019, in qla_get_exchoffld_status()
964 rval = qla2x00_mailbox_command(vha, mcp); in qla_get_exchoffld_status()
966 ql_dbg(ql_dbg_mbx, vha, 0x1155, "Failed=%x.\n", rval); in qla_get_exchoffld_status()
971 ql_log(ql_log_info, vha, 0x118e, in qla_get_exchoffld_status()
975 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1156, in qla_get_exchoffld_status()
1003 qla_set_exchoffld_mem_cfg(scsi_qla_host_t *vha) in qla_set_exchoffld_mem_cfg() argument
1008 struct qla_hw_data *ha = vha->hw; in qla_set_exchoffld_mem_cfg()
1010 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1157, in qla_set_exchoffld_mem_cfg()
1026 rval = qla2x00_mailbox_command(vha, mcp); in qla_set_exchoffld_mem_cfg()
1029 ql_dbg(ql_dbg_mbx, vha, 0x1158, "Failed=%x.\n", rval); in qla_set_exchoffld_mem_cfg()
1031 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1192, in qla_set_exchoffld_mem_cfg()
1055 qla2x00_get_fw_version(scsi_qla_host_t *vha) in qla2x00_get_fw_version() argument
1060 struct qla_hw_data *ha = vha->hw; in qla2x00_get_fw_version()
1062 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1029, in qla2x00_get_fw_version()
1068 if (IS_QLA81XX(vha->hw) || IS_QLA8031(ha) || IS_QLA8044(ha)) in qla2x00_get_fw_version()
1079 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_fw_version()
1088 if (IS_QLA2100(vha->hw) || IS_QLA2200(vha->hw)) in qla2x00_get_fw_version()
1093 if (IS_QLA81XX(vha->hw) || IS_QLA8031(vha->hw) || IS_QLA8044(ha)) { in qla2x00_get_fw_version()
1107 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1139, in qla2x00_get_fw_version()
1110 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x112f, in qla2x00_get_fw_version()
1115 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x118d, in qla2x00_get_fw_version()
1120 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1191, in qla2x00_get_fw_version()
1132 vha->flags.nvme_first_burst = 1; in qla2x00_get_fw_version()
1134 vha->flags.nvme_enabled = 1; in qla2x00_get_fw_version()
1135 ql_log(ql_log_info, vha, 0xd302, in qla2x00_get_fw_version()
1142 ql_log(ql_log_info, vha, 0xd302, in qla2x00_get_fw_version()
1145 vha->flags.nvme2_enabled = 1; in qla2x00_get_fw_version()
1151 ql_log(ql_log_info, vha, 0xffff, in qla2x00_get_fw_version()
1174 ql_log(ql_log_info, vha, 0xffff, in qla2x00_get_fw_version()
1185 ql_log(ql_log_info, vha, 0x11a3, "SCM in FW: %s\n", in qla2x00_get_fw_version()
1189 if (vha->flags.nvme2_enabled) { in qla2x00_get_fw_version()
1200 ql_dbg(ql_dbg_mbx, vha, 0x102a, "Failed=%x.\n", rval); in qla2x00_get_fw_version()
1203 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x102b, in qla2x00_get_fw_version()
1224 qla2x00_get_fw_options(scsi_qla_host_t *vha, uint16_t *fwopts) in qla2x00_get_fw_options() argument
1230 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x102c, in qla2x00_get_fw_options()
1238 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_fw_options()
1242 ql_dbg(ql_dbg_mbx, vha, 0x102d, "Failed=%x.\n", rval); in qla2x00_get_fw_options()
1249 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x102e, in qla2x00_get_fw_options()
1272 qla2x00_set_fw_options(scsi_qla_host_t *vha, uint16_t *fwopts) in qla2x00_set_fw_options() argument
1278 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x102f, in qla2x00_set_fw_options()
1287 if (IS_FWI2_CAPABLE(vha->hw)) { in qla2x00_set_fw_options()
1299 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_set_fw_options()
1305 ql_dbg(ql_dbg_mbx, vha, 0x1030, in qla2x00_set_fw_options()
1309 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1031, in qla2x00_set_fw_options()
1332 qla2x00_mbx_reg_test(scsi_qla_host_t *vha) in qla2x00_mbx_reg_test() argument
1338 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1032, in qla2x00_mbx_reg_test()
1353 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_mbx_reg_test()
1366 ql_dbg(ql_dbg_mbx, vha, 0x1033, "Failed=%x.\n", rval); in qla2x00_mbx_reg_test()
1367 vha->hw_err_cnt++; in qla2x00_mbx_reg_test()
1370 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1034, in qla2x00_mbx_reg_test()
1393 qla2x00_verify_checksum(scsi_qla_host_t *vha, uint32_t risc_addr) in qla2x00_verify_checksum() argument
1399 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1035, in qla2x00_verify_checksum()
1405 if (IS_FWI2_CAPABLE(vha->hw)) { in qla2x00_verify_checksum()
1418 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_verify_checksum()
1421 ql_dbg(ql_dbg_mbx, vha, 0x1036, in qla2x00_verify_checksum()
1422 "Failed=%x chm sum=%x.\n", rval, IS_FWI2_CAPABLE(vha->hw) ? in qla2x00_verify_checksum()
1425 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1037, in qla2x00_verify_checksum()
1451 qla2x00_issue_iocb_timeout(scsi_qla_host_t *vha, void *buffer, in qla2x00_issue_iocb_timeout() argument
1458 if (!vha->hw->flags.fw_started) in qla2x00_issue_iocb_timeout()
1461 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1038, in qla2x00_issue_iocb_timeout()
1474 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_issue_iocb_timeout()
1478 ql_dbg(ql_dbg_mbx, vha, 0x1039, "Failed=%x.\n", rval); in qla2x00_issue_iocb_timeout()
1484 IS_FWI2_CAPABLE(vha->hw) ? RF_MASK_24XX : RF_MASK; in qla2x00_issue_iocb_timeout()
1485 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x103a, in qla2x00_issue_iocb_timeout()
1494 qla2x00_issue_iocb(scsi_qla_host_t *vha, void *buffer, dma_addr_t phys_addr, in qla2x00_issue_iocb() argument
1497 return qla2x00_issue_iocb_timeout(vha, buffer, phys_addr, size, in qla2x00_issue_iocb()
1524 scsi_qla_host_t *vha = fcport->vha; in qla2x00_abort_command() local
1525 struct qla_hw_data *ha = vha->hw; in qla2x00_abort_command()
1529 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x103b, in qla2x00_abort_command()
1535 req = vha->req; in qla2x00_abort_command()
1561 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_abort_command()
1564 ql_dbg(ql_dbg_mbx, vha, 0x103c, "Failed=%x.\n", rval); in qla2x00_abort_command()
1566 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x103d, in qla2x00_abort_command()
1579 scsi_qla_host_t *vha; in qla2x00_abort_target() local
1581 vha = fcport->vha; in qla2x00_abort_target()
1583 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x103e, in qla2x00_abort_target()
1588 if (HAS_EXTENDED_IDS(vha->hw)) { in qla2x00_abort_target()
1595 mcp->mb[2] = vha->hw->loop_reset_delay; in qla2x00_abort_target()
1596 mcp->mb[9] = vha->vp_idx; in qla2x00_abort_target()
1601 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_abort_target()
1603 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x103f, in qla2x00_abort_target()
1608 rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, 0, in qla2x00_abort_target()
1611 ql_dbg(ql_dbg_mbx, vha, 0x1040, in qla2x00_abort_target()
1614 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1041, in qla2x00_abort_target()
1627 scsi_qla_host_t *vha; in qla2x00_lun_reset() local
1629 vha = fcport->vha; in qla2x00_lun_reset()
1631 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1042, in qla2x00_lun_reset()
1636 if (HAS_EXTENDED_IDS(vha->hw)) in qla2x00_lun_reset()
1642 mcp->mb[9] = vha->vp_idx; in qla2x00_lun_reset()
1647 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_lun_reset()
1649 ql_dbg(ql_dbg_mbx, vha, 0x1043, "Failed=%x.\n", rval); in qla2x00_lun_reset()
1653 rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, l, in qla2x00_lun_reset()
1656 ql_dbg(ql_dbg_mbx, vha, 0x1044, in qla2x00_lun_reset()
1659 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1045, in qla2x00_lun_reset()
1687 qla2x00_get_adapter_id(scsi_qla_host_t *vha, uint16_t *id, uint8_t *al_pa, in qla2x00_get_adapter_id() argument
1694 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1046, in qla2x00_get_adapter_id()
1698 mcp->mb[9] = vha->vp_idx; in qla2x00_get_adapter_id()
1701 if (IS_CNA_CAPABLE(vha->hw)) in qla2x00_get_adapter_id()
1703 if (IS_FWI2_CAPABLE(vha->hw)) in qla2x00_get_adapter_id()
1705 if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw)) in qla2x00_get_adapter_id()
1710 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_adapter_id()
1726 ql_dbg(ql_dbg_mbx, vha, 0x1047, "Failed=%x.\n", rval); in qla2x00_get_adapter_id()
1728 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1048, in qla2x00_get_adapter_id()
1731 if (IS_CNA_CAPABLE(vha->hw)) { in qla2x00_get_adapter_id()
1732 vha->fcoe_vlan_id = mcp->mb[9] & 0xfff; in qla2x00_get_adapter_id()
1733 vha->fcoe_fcf_idx = mcp->mb[10]; in qla2x00_get_adapter_id()
1734 vha->fcoe_vn_port_mac[5] = mcp->mb[11] >> 8; in qla2x00_get_adapter_id()
1735 vha->fcoe_vn_port_mac[4] = mcp->mb[11] & 0xff; in qla2x00_get_adapter_id()
1736 vha->fcoe_vn_port_mac[3] = mcp->mb[12] >> 8; in qla2x00_get_adapter_id()
1737 vha->fcoe_vn_port_mac[2] = mcp->mb[12] & 0xff; in qla2x00_get_adapter_id()
1738 vha->fcoe_vn_port_mac[1] = mcp->mb[13] >> 8; in qla2x00_get_adapter_id()
1739 vha->fcoe_vn_port_mac[0] = mcp->mb[13] & 0xff; in qla2x00_get_adapter_id()
1742 if (IS_FAWWN_CAPABLE(vha->hw)) { in qla2x00_get_adapter_id()
1744 vha->port_name[0] = MSB(mcp->mb[16]); in qla2x00_get_adapter_id()
1745 vha->port_name[1] = LSB(mcp->mb[16]); in qla2x00_get_adapter_id()
1746 vha->port_name[2] = MSB(mcp->mb[17]); in qla2x00_get_adapter_id()
1747 vha->port_name[3] = LSB(mcp->mb[17]); in qla2x00_get_adapter_id()
1748 vha->port_name[4] = MSB(mcp->mb[18]); in qla2x00_get_adapter_id()
1749 vha->port_name[5] = LSB(mcp->mb[18]); in qla2x00_get_adapter_id()
1750 vha->port_name[6] = MSB(mcp->mb[19]); in qla2x00_get_adapter_id()
1751 vha->port_name[7] = LSB(mcp->mb[19]); in qla2x00_get_adapter_id()
1752 fc_host_port_name(vha->host) = in qla2x00_get_adapter_id()
1753 wwn_to_u64(vha->port_name); in qla2x00_get_adapter_id()
1754 ql_dbg(ql_dbg_mbx, vha, 0x10ca, in qla2x00_get_adapter_id()
1756 wwn_to_u64(vha->port_name)); in qla2x00_get_adapter_id()
1760 if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw)) { in qla2x00_get_adapter_id()
1761 vha->bbcr = mcp->mb[15]; in qla2x00_get_adapter_id()
1763 ql_log(ql_log_info, vha, 0x11a4, in qla2x00_get_adapter_id()
1768 vha->hw->flags.scm_enabled = 1; in qla2x00_get_adapter_id()
1769 vha->scm_fabric_connection_flags |= in qla2x00_get_adapter_id()
1771 ql_log(ql_log_info, vha, 0x11a5, in qla2x00_get_adapter_id()
1797 qla2x00_get_retry_cnt(scsi_qla_host_t *vha, uint8_t *retry_cnt, uint8_t *tov, in qla2x00_get_retry_cnt() argument
1805 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1049, in qla2x00_get_retry_cnt()
1813 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_retry_cnt()
1817 ql_dbg(ql_dbg_mbx, vha, 0x104a, in qla2x00_get_retry_cnt()
1829 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x104b, in qla2x00_get_retry_cnt()
1854 qla2x00_init_firmware(scsi_qla_host_t *vha, uint16_t size) in qla2x00_init_firmware() argument
1859 struct qla_hw_data *ha = vha->hw; in qla2x00_init_firmware()
1861 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x104c, in qla2x00_init_firmware()
1889 if (ha->flags.scm_supported_f || vha->flags.nvme2_enabled) { in qla2x00_init_firmware()
1907 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_init_firmware()
1911 ql_dbg(ql_dbg_mbx, vha, 0x104d, in qla2x00_init_firmware()
1915 ql_dbg(ql_dbg_mbx, vha, 0x104d, "init_cb:\n"); in qla2x00_init_firmware()
1916 ql_dump_buffer(ql_dbg_init + ql_dbg_verbose, vha, in qla2x00_init_firmware()
1920 ql_dbg(ql_dbg_mbx, vha, 0x104d, "ex_init_cb:\n"); in qla2x00_init_firmware()
1921 ql_dump_buffer(ql_dbg_init + ql_dbg_verbose, vha, in qla2x00_init_firmware()
1927 ql_dbg(ql_dbg_mbx, vha, 0x119d, in qla2x00_init_firmware()
1930 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x104e, in qla2x00_init_firmware()
1955 qla2x00_get_port_database(scsi_qla_host_t *vha, fc_port_t *fcport, uint8_t opt) in qla2x00_get_port_database() argument
1963 struct qla_hw_data *ha = vha->hw; in qla2x00_get_port_database()
1965 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x104f, in qla2x00_get_port_database()
1971 ql_log(ql_log_warn, vha, 0x1050, in qla2x00_get_port_database()
1984 mcp->mb[9] = vha->vp_idx; in qla2x00_get_port_database()
2004 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_port_database()
2028 ql_dbg(ql_dbg_mbx, vha, 0x119a, in qla2x00_get_port_database()
2074 ql_dbg(ql_dbg_mbx, vha, 0x100a, in qla2x00_get_port_database()
2117 ql_dbg(ql_dbg_mbx, vha, 0x1052, in qla2x00_get_port_database()
2121 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1053, in qla2x00_get_port_database()
2129 qla24xx_get_port_database(scsi_qla_host_t *vha, u16 nport_handle, in qla24xx_get_port_database() argument
2137 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1115, in qla24xx_get_port_database()
2142 pdb_dma = dma_map_single(&vha->hw->pdev->dev, pdb, in qla24xx_get_port_database()
2145 ql_log(ql_log_warn, vha, 0x1116, "Failed to map dma buffer.\n"); in qla24xx_get_port_database()
2161 mcp->tov = vha->hw->login_timeout * 2; in qla24xx_get_port_database()
2162 rval = qla2x00_mailbox_command(vha, mcp); in qla24xx_get_port_database()
2165 ql_dbg(ql_dbg_mbx, vha, 0x111a, in qla24xx_get_port_database()
2169 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x111b, in qla24xx_get_port_database()
2173 dma_unmap_single(&vha->hw->pdev->dev, pdb_dma, in qla24xx_get_port_database()
2196 qla2x00_get_firmware_state(scsi_qla_host_t *vha, uint16_t *states) in qla2x00_get_firmware_state() argument
2201 struct qla_hw_data *ha = vha->hw; in qla2x00_get_firmware_state()
2203 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1054, in qla2x00_get_firmware_state()
2211 if (IS_FWI2_CAPABLE(vha->hw)) in qla2x00_get_firmware_state()
2217 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_firmware_state()
2221 if (IS_FWI2_CAPABLE(vha->hw)) { in qla2x00_get_firmware_state()
2231 ql_dbg(ql_dbg_mbx, vha, 0x1055, "Failed=%x.\n", rval); in qla2x00_get_firmware_state()
2235 ql_dbg(ql_dbg_mbx, vha, 0x119e, in qla2x00_get_firmware_state()
2238 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1056, in qla2x00_get_firmware_state()
2264 qla2x00_get_port_name(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t *name, in qla2x00_get_port_name() argument
2271 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1057, in qla2x00_get_port_name()
2275 mcp->mb[9] = vha->vp_idx; in qla2x00_get_port_name()
2277 if (HAS_EXTENDED_IDS(vha->hw)) { in qla2x00_get_port_name()
2288 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_port_name()
2292 ql_dbg(ql_dbg_mbx, vha, 0x1058, "Failed=%x.\n", rval); in qla2x00_get_port_name()
2306 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1059, in qla2x00_get_port_name()
2329 qla24xx_link_initialize(scsi_qla_host_t *vha) in qla24xx_link_initialize() argument
2335 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1152, in qla24xx_link_initialize()
2338 if (!IS_FWI2_CAPABLE(vha->hw) || IS_CNA_CAPABLE(vha->hw)) in qla24xx_link_initialize()
2343 if (vha->hw->operating_mode == LOOP) in qla24xx_link_initialize()
2353 rval = qla2x00_mailbox_command(vha, mcp); in qla24xx_link_initialize()
2356 ql_dbg(ql_dbg_mbx, vha, 0x1153, "Failed=%x.\n", rval); in qla24xx_link_initialize()
2358 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1154, in qla24xx_link_initialize()
2381 qla2x00_lip_reset(scsi_qla_host_t *vha) in qla2x00_lip_reset() argument
2387 ql_dbg(ql_dbg_disc, vha, 0x105a, in qla2x00_lip_reset()
2390 if (IS_CNA_CAPABLE(vha->hw)) { in qla2x00_lip_reset()
2396 } else if (IS_FWI2_CAPABLE(vha->hw)) { in qla2x00_lip_reset()
2400 mcp->mb[3] = vha->hw->loop_reset_delay; in qla2x00_lip_reset()
2405 if (HAS_EXTENDED_IDS(vha->hw)) { in qla2x00_lip_reset()
2412 mcp->mb[2] = vha->hw->loop_reset_delay; in qla2x00_lip_reset()
2418 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_lip_reset()
2422 ql_dbg(ql_dbg_mbx, vha, 0x105b, "Failed=%x.\n", rval); in qla2x00_lip_reset()
2425 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x105c, in qla2x00_lip_reset()
2451 qla2x00_send_sns(scsi_qla_host_t *vha, dma_addr_t sns_phys_address, in qla2x00_send_sns() argument
2458 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x105d, in qla2x00_send_sns()
2461 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x105e, in qla2x00_send_sns()
2463 vha->hw->retry_count, vha->hw->login_timeout, mcp->tov); in qla2x00_send_sns()
2475 mcp->tov = (vha->hw->login_timeout * 2) + (vha->hw->login_timeout / 2); in qla2x00_send_sns()
2476 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_send_sns()
2480 ql_dbg(ql_dbg_mbx, vha, 0x105f, in qla2x00_send_sns()
2485 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1060, in qla2x00_send_sns()
2493 qla24xx_login_fabric(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, in qla24xx_login_fabric() argument
2501 struct qla_hw_data *ha = vha->hw; in qla24xx_login_fabric()
2504 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1061, in qla24xx_login_fabric()
2507 if (vha->vp_idx && vha->qpair) in qla24xx_login_fabric()
2508 req = vha->qpair->req; in qla24xx_login_fabric()
2514 ql_log(ql_log_warn, vha, 0x1062, in qla24xx_login_fabric()
2531 lg->vp_index = vha->vp_idx; in qla24xx_login_fabric()
2532 rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0, in qla24xx_login_fabric()
2535 ql_dbg(ql_dbg_mbx, vha, 0x1063, in qla24xx_login_fabric()
2538 ql_dbg(ql_dbg_mbx, vha, 0x1064, in qla24xx_login_fabric()
2546 ql_dbg(ql_dbg_mbx, vha, 0x1065, in qla24xx_login_fabric()
2577 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1066, in qla24xx_login_fabric()
2629 qla2x00_login_fabric(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, in qla2x00_login_fabric() argument
2635 struct qla_hw_data *ha = vha->hw; in qla2x00_login_fabric()
2637 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1067, in qla2x00_login_fabric()
2655 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_login_fabric()
2681 ql_dbg(ql_dbg_mbx, vha, 0x1068, in qla2x00_login_fabric()
2686 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1069, in qla2x00_login_fabric()
2710 qla2x00_login_local_device(scsi_qla_host_t *vha, fc_port_t *fcport, in qla2x00_login_local_device() argument
2716 struct qla_hw_data *ha = vha->hw; in qla2x00_login_local_device()
2718 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x106a, in qla2x00_login_local_device()
2722 return qla24xx_login_fabric(vha, fcport->loop_id, in qla2x00_login_local_device()
2736 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_login_local_device()
2756 ql_dbg(ql_dbg_mbx, vha, 0x106b, in qla2x00_login_local_device()
2761 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x106c, in qla2x00_login_local_device()
2769 qla24xx_fabric_logout(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, in qla24xx_fabric_logout() argument
2775 struct qla_hw_data *ha = vha->hw; in qla24xx_fabric_logout()
2778 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x106d, in qla24xx_fabric_logout()
2783 ql_log(ql_log_warn, vha, 0x106e, in qla24xx_fabric_logout()
2788 req = vha->req; in qla24xx_fabric_logout()
2799 lg->vp_index = vha->vp_idx; in qla24xx_fabric_logout()
2800 rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0, in qla24xx_fabric_logout()
2803 ql_dbg(ql_dbg_mbx, vha, 0x106f, in qla24xx_fabric_logout()
2806 ql_dbg(ql_dbg_mbx, vha, 0x1070, in qla24xx_fabric_logout()
2811 ql_dbg(ql_dbg_mbx, vha, 0x1071, in qla24xx_fabric_logout()
2818 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1072, in qla24xx_fabric_logout()
2844 qla2x00_fabric_logout(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, in qla2x00_fabric_logout() argument
2851 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1073, in qla2x00_fabric_logout()
2856 if (HAS_EXTENDED_IDS(vha->hw)) { in qla2x00_fabric_logout()
2867 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_fabric_logout()
2871 ql_dbg(ql_dbg_mbx, vha, 0x1074, in qla2x00_fabric_logout()
2875 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1075, in qla2x00_fabric_logout()
2898 qla2x00_full_login_lip(scsi_qla_host_t *vha) in qla2x00_full_login_lip() argument
2904 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1076, in qla2x00_full_login_lip()
2908 mcp->mb[1] = IS_FWI2_CAPABLE(vha->hw) ? BIT_4 : 0; in qla2x00_full_login_lip()
2915 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_full_login_lip()
2919 ql_dbg(ql_dbg_mbx, vha, 0x1077, "Failed=%x.\n", rval); in qla2x00_full_login_lip()
2922 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1078, in qla2x00_full_login_lip()
2942 qla2x00_get_id_list(scsi_qla_host_t *vha, void *id_list, dma_addr_t id_list_dma, in qla2x00_get_id_list() argument
2949 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1079, in qla2x00_get_id_list()
2957 if (IS_FWI2_CAPABLE(vha->hw)) { in qla2x00_get_id_list()
2963 mcp->mb[9] = vha->vp_idx; in qla2x00_get_id_list()
2975 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_id_list()
2979 ql_dbg(ql_dbg_mbx, vha, 0x107a, "Failed=%x.\n", rval); in qla2x00_get_id_list()
2982 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x107b, in qla2x00_get_id_list()
3003 qla2x00_get_resource_cnts(scsi_qla_host_t *vha) in qla2x00_get_resource_cnts() argument
3005 struct qla_hw_data *ha = vha->hw; in qla2x00_get_resource_cnts()
3010 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x107c, in qla2x00_get_resource_cnts()
3021 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_resource_cnts()
3025 ql_dbg(ql_dbg_mbx, vha, 0x107d, in qla2x00_get_resource_cnts()
3028 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x107e, in qla2x00_get_resource_cnts()
3064 qla2x00_get_fcal_position_map(scsi_qla_host_t *vha, char *pos_map, in qla2x00_get_fcal_position_map() argument
3072 struct qla_hw_data *ha = vha->hw; in qla2x00_get_fcal_position_map()
3074 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x107f, in qla2x00_get_fcal_position_map()
3079 ql_log(ql_log_warn, vha, 0x1080, in qla2x00_get_fcal_position_map()
3094 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_fcal_position_map()
3097 ql_dbg(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1081, in qla2x00_get_fcal_position_map()
3100 ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x111d, in qla2x00_get_fcal_position_map()
3111 ql_dbg(ql_dbg_mbx, vha, 0x1082, "Failed=%x.\n", rval); in qla2x00_get_fcal_position_map()
3113 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1083, in qla2x00_get_fcal_position_map()
3134 qla2x00_get_link_status(scsi_qla_host_t *vha, uint16_t loop_id, in qla2x00_get_link_status() argument
3142 struct qla_hw_data *ha = vha->hw; in qla2x00_get_link_status()
3144 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1084, in qla2x00_get_link_status()
3170 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_link_status()
3174 ql_dbg(ql_dbg_mbx, vha, 0x1085, in qla2x00_get_link_status()
3179 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1086, in qla2x00_get_link_status()
3186 ql_dbg(ql_dbg_mbx, vha, 0x1087, "Failed=%x.\n", rval); in qla2x00_get_link_status()
3193 qla24xx_get_isp_stats(scsi_qla_host_t *vha, struct link_statistics *stats, in qla24xx_get_isp_stats() argument
3202 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1088, in qla24xx_get_isp_stats()
3212 mc.mb[9] = vha->vp_idx; in qla24xx_get_isp_stats()
3215 rval = qla24xx_send_mb_cmd(vha, &mc); in qla24xx_get_isp_stats()
3219 ql_dbg(ql_dbg_mbx, vha, 0x1089, in qla24xx_get_isp_stats()
3223 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x108a, in qla24xx_get_isp_stats()
3231 ql_dbg(ql_dbg_mbx, vha, 0x108b, "Failed=%x.\n", rval); in qla24xx_get_isp_stats()
3247 struct scsi_qla_host *vha = fcport->vha; in qla24xx_abort_command() local
3248 struct qla_hw_data *ha = vha->hw; in qla24xx_abort_command()
3249 struct req_que *req = vha->req; in qla24xx_abort_command()
3252 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x108c, in qla24xx_abort_command()
3276 ql_log(ql_log_warn, vha, 0x108d, in qla24xx_abort_command()
3289 abt->vp_index = fcport->vha->vp_idx; in qla24xx_abort_command()
3295 rval = qla2x00_issue_iocb(vha, abt, abt_dma, 0); in qla24xx_abort_command()
3297 ql_dbg(ql_dbg_mbx, vha, 0x108e, in qla24xx_abort_command()
3300 ql_dbg(ql_dbg_mbx, vha, 0x108f, in qla24xx_abort_command()
3305 ql_dbg(ql_dbg_mbx, vha, 0x1090, in qla24xx_abort_command()
3313 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1091, in qla24xx_abort_command()
3341 scsi_qla_host_t *vha; in __qla24xx_issue_tmf() local
3346 vha = fcport->vha; in __qla24xx_issue_tmf()
3347 ha = vha->hw; in __qla24xx_issue_tmf()
3348 req = vha->req; in __qla24xx_issue_tmf()
3350 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1092, in __qla24xx_issue_tmf()
3353 if (vha->vp_idx && vha->qpair) { in __qla24xx_issue_tmf()
3355 qpair = vha->qpair; in __qla24xx_issue_tmf()
3361 ql_log(ql_log_warn, vha, 0x1093, in __qla24xx_issue_tmf()
3375 tsk->p.tsk.vp_index = fcport->vha->vp_idx; in __qla24xx_issue_tmf()
3383 rval = qla2x00_issue_iocb(vha, tsk, tsk_dma, 0); in __qla24xx_issue_tmf()
3385 ql_dbg(ql_dbg_mbx, vha, 0x1094, in __qla24xx_issue_tmf()
3388 ql_dbg(ql_dbg_mbx, vha, 0x1095, in __qla24xx_issue_tmf()
3393 ql_dbg(ql_dbg_mbx, vha, 0x1096, in __qla24xx_issue_tmf()
3400 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1097, in __qla24xx_issue_tmf()
3405 ql_dbg(ql_dbg_mbx, vha, 0x1098, in __qla24xx_issue_tmf()
3413 rval2 = qla2x00_marker(vha, ha->base_qpair, fcport->loop_id, l, in __qla24xx_issue_tmf()
3416 ql_dbg(ql_dbg_mbx, vha, 0x1099, in __qla24xx_issue_tmf()
3419 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x109a, in __qla24xx_issue_tmf()
3431 struct qla_hw_data *ha = fcport->vha->hw; in qla24xx_abort_target()
3442 struct qla_hw_data *ha = fcport->vha->hw; in qla24xx_lun_reset()
3451 qla2x00_system_error(scsi_qla_host_t *vha) in qla2x00_system_error() argument
3456 struct qla_hw_data *ha = vha->hw; in qla2x00_system_error()
3461 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x109b, in qla2x00_system_error()
3469 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_system_error()
3472 ql_dbg(ql_dbg_mbx, vha, 0x109c, "Failed=%x.\n", rval); in qla2x00_system_error()
3474 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x109d, in qla2x00_system_error()
3482 qla2x00_write_serdes_word(scsi_qla_host_t *vha, uint16_t addr, uint16_t data) in qla2x00_write_serdes_word() argument
3488 if (!IS_QLA25XX(vha->hw) && !IS_QLA2031(vha->hw) && in qla2x00_write_serdes_word()
3489 !IS_QLA27XX(vha->hw) && !IS_QLA28XX(vha->hw)) in qla2x00_write_serdes_word()
3492 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1182, in qla2x00_write_serdes_word()
3497 if (IS_QLA2031(vha->hw)) in qla2x00_write_serdes_word()
3507 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_write_serdes_word()
3510 ql_dbg(ql_dbg_mbx, vha, 0x1183, in qla2x00_write_serdes_word()
3513 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1184, in qla2x00_write_serdes_word()
3521 qla2x00_read_serdes_word(scsi_qla_host_t *vha, uint16_t addr, uint16_t *data) in qla2x00_read_serdes_word() argument
3527 if (!IS_QLA25XX(vha->hw) && !IS_QLA2031(vha->hw) && in qla2x00_read_serdes_word()
3528 !IS_QLA27XX(vha->hw) && !IS_QLA28XX(vha->hw)) in qla2x00_read_serdes_word()
3531 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1185, in qla2x00_read_serdes_word()
3541 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_read_serdes_word()
3543 if (IS_QLA2031(vha->hw)) in qla2x00_read_serdes_word()
3549 ql_dbg(ql_dbg_mbx, vha, 0x1186, in qla2x00_read_serdes_word()
3552 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1187, in qla2x00_read_serdes_word()
3560 qla8044_write_serdes_word(scsi_qla_host_t *vha, uint32_t addr, uint32_t data) in qla8044_write_serdes_word() argument
3566 if (!IS_QLA8044(vha->hw)) in qla8044_write_serdes_word()
3569 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x11a0, in qla8044_write_serdes_word()
3582 rval = qla2x00_mailbox_command(vha, mcp); in qla8044_write_serdes_word()
3585 ql_dbg(ql_dbg_mbx, vha, 0x11a1, in qla8044_write_serdes_word()
3588 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1188, in qla8044_write_serdes_word()
3596 qla8044_read_serdes_word(scsi_qla_host_t *vha, uint32_t addr, uint32_t *data) in qla8044_read_serdes_word() argument
3602 if (!IS_QLA8044(vha->hw)) in qla8044_read_serdes_word()
3605 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1189, in qla8044_read_serdes_word()
3616 rval = qla2x00_mailbox_command(vha, mcp); in qla8044_read_serdes_word()
3621 ql_dbg(ql_dbg_mbx, vha, 0x118a, in qla8044_read_serdes_word()
3624 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x118b, in qla8044_read_serdes_word()
3641 qla2x00_set_serdes_params(scsi_qla_host_t *vha, uint16_t sw_em_1g, in qla2x00_set_serdes_params() argument
3648 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x109e, in qla2x00_set_serdes_params()
3660 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_set_serdes_params()
3664 ql_dbg(ql_dbg_mbx, vha, 0x109f, in qla2x00_set_serdes_params()
3668 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a0, in qla2x00_set_serdes_params()
3676 qla2x00_stop_firmware(scsi_qla_host_t *vha) in qla2x00_stop_firmware() argument
3682 if (!IS_FWI2_CAPABLE(vha->hw)) in qla2x00_stop_firmware()
3685 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a1, in qla2x00_stop_firmware()
3694 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_stop_firmware()
3697 ql_dbg(ql_dbg_mbx, vha, 0x10a2, "Failed=%x.\n", rval); in qla2x00_stop_firmware()
3701 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a3, in qla2x00_stop_firmware()
3709 qla2x00_enable_eft_trace(scsi_qla_host_t *vha, dma_addr_t eft_dma, in qla2x00_enable_eft_trace() argument
3716 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a4, in qla2x00_enable_eft_trace()
3719 if (!IS_FWI2_CAPABLE(vha->hw)) in qla2x00_enable_eft_trace()
3722 if (unlikely(pci_channel_offline(vha->hw->pdev))) in qla2x00_enable_eft_trace()
3737 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_enable_eft_trace()
3739 ql_dbg(ql_dbg_mbx, vha, 0x10a5, in qla2x00_enable_eft_trace()
3743 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a6, in qla2x00_enable_eft_trace()
3751 qla2x00_disable_eft_trace(scsi_qla_host_t *vha) in qla2x00_disable_eft_trace() argument
3757 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a7, in qla2x00_disable_eft_trace()
3760 if (!IS_FWI2_CAPABLE(vha->hw)) in qla2x00_disable_eft_trace()
3763 if (unlikely(pci_channel_offline(vha->hw->pdev))) in qla2x00_disable_eft_trace()
3772 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_disable_eft_trace()
3774 ql_dbg(ql_dbg_mbx, vha, 0x10a8, in qla2x00_disable_eft_trace()
3778 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a9, in qla2x00_disable_eft_trace()
3786 qla2x00_enable_fce_trace(scsi_qla_host_t *vha, dma_addr_t fce_dma, in qla2x00_enable_fce_trace() argument
3793 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10aa, in qla2x00_enable_fce_trace()
3796 if (!IS_QLA25XX(vha->hw) && !IS_QLA81XX(vha->hw) && in qla2x00_enable_fce_trace()
3797 !IS_QLA83XX(vha->hw) && !IS_QLA27XX(vha->hw) && in qla2x00_enable_fce_trace()
3798 !IS_QLA28XX(vha->hw)) in qla2x00_enable_fce_trace()
3801 if (unlikely(pci_channel_offline(vha->hw->pdev))) in qla2x00_enable_fce_trace()
3820 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_enable_fce_trace()
3822 ql_dbg(ql_dbg_mbx, vha, 0x10ab, in qla2x00_enable_fce_trace()
3826 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ac, in qla2x00_enable_fce_trace()
3839 qla2x00_disable_fce_trace(scsi_qla_host_t *vha, uint64_t *wr, uint64_t *rd) in qla2x00_disable_fce_trace() argument
3845 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ad, in qla2x00_disable_fce_trace()
3848 if (!IS_FWI2_CAPABLE(vha->hw)) in qla2x00_disable_fce_trace()
3851 if (unlikely(pci_channel_offline(vha->hw->pdev))) in qla2x00_disable_fce_trace()
3862 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_disable_fce_trace()
3864 ql_dbg(ql_dbg_mbx, vha, 0x10ae, in qla2x00_disable_fce_trace()
3868 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10af, in qla2x00_disable_fce_trace()
3887 qla2x00_get_idma_speed(scsi_qla_host_t *vha, uint16_t loop_id, in qla2x00_get_idma_speed() argument
3894 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b0, in qla2x00_get_idma_speed()
3897 if (!IS_IIDMA_CAPABLE(vha->hw)) in qla2x00_get_idma_speed()
3903 mcp->mb[9] = vha->vp_idx; in qla2x00_get_idma_speed()
3908 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_idma_speed()
3918 ql_dbg(ql_dbg_mbx, vha, 0x10b1, "Failed=%x.\n", rval); in qla2x00_get_idma_speed()
3920 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b2, in qla2x00_get_idma_speed()
3930 qla2x00_set_idma_speed(scsi_qla_host_t *vha, uint16_t loop_id, in qla2x00_set_idma_speed() argument
3937 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b3, in qla2x00_set_idma_speed()
3940 if (!IS_IIDMA_CAPABLE(vha->hw)) in qla2x00_set_idma_speed()
3947 mcp->mb[9] = vha->vp_idx; in qla2x00_set_idma_speed()
3952 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_set_idma_speed()
3962 ql_dbg(ql_dbg_mbx, vha, 0x10b4, in qla2x00_set_idma_speed()
3965 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b5, in qla2x00_set_idma_speed()
3973 qla24xx_report_id_acquisition(scsi_qla_host_t *vha, in qla24xx_report_id_acquisition() argument
3976 struct qla_hw_data *ha = vha->hw; in qla24xx_report_id_acquisition()
3983 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b6, in qla24xx_report_id_acquisition()
3997 ql_dbg(ql_dbg_async, vha, 0x10b7, in qla24xx_report_id_acquisition()
4001 ql_dbg(ql_dbg_async, vha, 0x10b8, in qla24xx_report_id_acquisition()
4006 qlt_update_host_map(vha, id); in qla24xx_report_id_acquisition()
4010 ql_dbg(ql_dbg_async, vha, 0x10b9, in qla24xx_report_id_acquisition()
4016 ql_dbg(ql_dbg_async, vha, 0x5075, in qla24xx_report_id_acquisition()
4020 ql_dbg(ql_dbg_async, vha, 0x5075, in qla24xx_report_id_acquisition()
4022 vha->port_name); in qla24xx_report_id_acquisition()
4027 spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); in qla24xx_report_id_acquisition()
4028 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla24xx_report_id_acquisition()
4033 if (wwn_to_u64(vha->port_name) > in qla24xx_report_id_acquisition()
4035 vha->d_id.b24 = 0; in qla24xx_report_id_acquisition()
4036 vha->d_id.b.al_pa = 1; in qla24xx_report_id_acquisition()
4040 ql_dbg(ql_dbg_async, vha, 0x5075, in qla24xx_report_id_acquisition()
4042 vha->d_id.b24, id.b24); in qla24xx_report_id_acquisition()
4044 ql_dbg(ql_dbg_async, vha, 0x5075, in qla24xx_report_id_acquisition()
4050 fcport = qla2x00_find_fcport_by_wwpn(vha, in qla24xx_report_id_acquisition()
4052 spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); in qla24xx_report_id_acquisition()
4062 fcport->login_retry = vha->hw->login_retry_count; in qla24xx_report_id_acquisition()
4064 if (vha->flags.nvme_enabled) in qla24xx_report_id_acquisition()
4067 if (wwn_to_u64(vha->port_name) > in qla24xx_report_id_acquisition()
4075 &vha->dpc_flags); in qla24xx_report_id_acquisition()
4084 qla24xx_post_newsess_work(vha, &id, in qla24xx_report_id_acquisition()
4093 set_bit(N2N_LOGIN_NEEDED, &vha->dpc_flags); in qla24xx_report_id_acquisition()
4108 vha->flags.bbcr_enable = (rptid_entry->u.f1.bbcr & 0xf) != 0; in qla24xx_report_id_acquisition()
4113 if (qla_ini_mode_enabled(vha) && in qla24xx_report_id_acquisition()
4117 memcpy(vha->port_name, in qla24xx_report_id_acquisition()
4122 qlt_update_host_map(vha, id); in qla24xx_report_id_acquisition()
4125 set_bit(REGISTER_FC4_NEEDED, &vha->dpc_flags); in qla24xx_report_id_acquisition()
4126 set_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags); in qla24xx_report_id_acquisition()
4130 ql_dbg(ql_dbg_mbx, vha, 0x10ba, in qla24xx_report_id_acquisition()
4159 set_bit(VP_DPC_NEEDED, &vha->dpc_flags); in qla24xx_report_id_acquisition()
4160 qla2xxx_wake_dpc(vha); in qla24xx_report_id_acquisition()
4162 ql_dbg(ql_dbg_async, vha, 0x505f, in qla24xx_report_id_acquisition()
4167 ql_dbg(ql_dbg_async, vha, 0x5075, in qla24xx_report_id_acquisition()
4174 vha->d_id.b.domain = rptid_entry->port_id[2]; in qla24xx_report_id_acquisition()
4175 vha->d_id.b.area = rptid_entry->port_id[1]; in qla24xx_report_id_acquisition()
4176 vha->d_id.b.al_pa = rptid_entry->port_id[0]; in qla24xx_report_id_acquisition()
4180 qlt_update_vp_map(vha, SET_AL_PA); in qla24xx_report_id_acquisition()
4183 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla24xx_report_id_acquisition()
4188 fcport = qla2x00_find_fcport_by_wwpn(vha, in qla24xx_report_id_acquisition()
4192 fcport->login_retry = vha->hw->login_retry_count; in qla24xx_report_id_acquisition()
4231 qla24xx_modify_vp_config(scsi_qla_host_t *vha) in qla24xx_modify_vp_config() argument
4236 struct qla_hw_data *ha = vha->hw; in qla24xx_modify_vp_config()
4241 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10bb, in qla24xx_modify_vp_config()
4246 ql_log(ql_log_warn, vha, 0x10bc, in qla24xx_modify_vp_config()
4255 vpmod->vp_index1 = vha->vp_idx; in qla24xx_modify_vp_config()
4258 qlt_modify_vp_config(vha, vpmod); in qla24xx_modify_vp_config()
4260 memcpy(vpmod->node_name_idx1, vha->node_name, WWN_SIZE); in qla24xx_modify_vp_config()
4261 memcpy(vpmod->port_name_idx1, vha->port_name, WWN_SIZE); in qla24xx_modify_vp_config()
4266 ql_dbg(ql_dbg_mbx, vha, 0x10bd, in qla24xx_modify_vp_config()
4269 ql_dbg(ql_dbg_mbx, vha, 0x10be, in qla24xx_modify_vp_config()
4274 ql_dbg(ql_dbg_mbx, vha, 0x10bf, in qla24xx_modify_vp_config()
4280 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10c0, in qla24xx_modify_vp_config()
4282 fc_vport_set_state(vha->fc_vport, FC_VPORT_INITIALIZING); in qla24xx_modify_vp_config()
4311 qla2x00_send_change_request(scsi_qla_host_t *vha, uint16_t format, in qla2x00_send_change_request() argument
4318 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10c7, in qla2x00_send_change_request()
4328 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_send_change_request()
4341 qla2x00_dump_ram(scsi_qla_host_t *vha, dma_addr_t req_dma, uint32_t addr, in qla2x00_dump_ram() argument
4348 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1009, in qla2x00_dump_ram()
4351 if (MSW(addr) || IS_FWI2_CAPABLE(vha->hw)) { in qla2x00_dump_ram()
4366 if (IS_FWI2_CAPABLE(vha->hw)) { in qla2x00_dump_ram()
4378 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_dump_ram()
4381 ql_dbg(ql_dbg_mbx, vha, 0x1008, in qla2x00_dump_ram()
4384 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1007, in qla2x00_dump_ram()
4400 qla84xx_verify_chip(struct scsi_qla_host *vha, uint16_t *status) in qla84xx_verify_chip() argument
4407 struct qla_hw_data *ha = vha->hw; in qla84xx_verify_chip()
4409 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10c8, in qla84xx_verify_chip()
4431 ql_dbg(ql_dbg_mbx + ql_dbg_buffer, vha, 0x111c, in qla84xx_verify_chip()
4433 ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x111e, in qla84xx_verify_chip()
4436 rval = qla2x00_issue_iocb_timeout(vha, mn, mn_dma, 0, 120); in qla84xx_verify_chip()
4438 ql_dbg(ql_dbg_mbx, vha, 0x10cb, in qla84xx_verify_chip()
4443 ql_dbg(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1110, in qla84xx_verify_chip()
4445 ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1118, in qla84xx_verify_chip()
4451 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ce, in qla84xx_verify_chip()
4457 ql_dbg(ql_dbg_mbx, vha, 0x10cf, in qla84xx_verify_chip()
4465 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d0, in qla84xx_verify_chip()
4482 ql_dbg(ql_dbg_mbx, vha, 0x10d1, in qla84xx_verify_chip()
4485 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d2, in qla84xx_verify_chip()
4493 qla25xx_init_req_que(struct scsi_qla_host *vha, struct req_que *req) in qla25xx_init_req_que() argument
4499 struct qla_hw_data *ha = vha->hw; in qla25xx_init_req_que()
4504 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d3, in qla25xx_init_req_que()
4553 rval = qla2x00_mailbox_command(vha, mcp); in qla25xx_init_req_que()
4555 ql_dbg(ql_dbg_mbx, vha, 0x10d4, in qla25xx_init_req_que()
4558 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d5, in qla25xx_init_req_que()
4566 qla25xx_init_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp) in qla25xx_init_rsp_que() argument
4572 struct qla_hw_data *ha = vha->hw; in qla25xx_init_rsp_que()
4577 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d6, in qla25xx_init_rsp_que()
4625 rval = qla2x00_mailbox_command(vha, mcp); in qla25xx_init_rsp_que()
4627 ql_dbg(ql_dbg_mbx, vha, 0x10d7, in qla25xx_init_rsp_que()
4630 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d8, in qla25xx_init_rsp_que()
4638 qla81xx_idc_ack(scsi_qla_host_t *vha, uint16_t *mb) in qla81xx_idc_ack() argument
4644 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d9, in qla81xx_idc_ack()
4653 rval = qla2x00_mailbox_command(vha, mcp); in qla81xx_idc_ack()
4656 ql_dbg(ql_dbg_mbx, vha, 0x10da, in qla81xx_idc_ack()
4659 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10db, in qla81xx_idc_ack()
4667 qla81xx_fac_get_sector_size(scsi_qla_host_t *vha, uint32_t *sector_size) in qla81xx_fac_get_sector_size() argument
4673 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10dc, in qla81xx_fac_get_sector_size()
4676 if (!IS_QLA81XX(vha->hw) && !IS_QLA83XX(vha->hw) && in qla81xx_fac_get_sector_size()
4677 !IS_QLA27XX(vha->hw) && !IS_QLA28XX(vha->hw)) in qla81xx_fac_get_sector_size()
4686 rval = qla2x00_mailbox_command(vha, mcp); in qla81xx_fac_get_sector_size()
4689 ql_dbg(ql_dbg_mbx, vha, 0x10dd, in qla81xx_fac_get_sector_size()
4693 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10de, in qla81xx_fac_get_sector_size()
4702 qla81xx_fac_do_write_enable(scsi_qla_host_t *vha, int enable) in qla81xx_fac_do_write_enable() argument
4708 if (!IS_QLA81XX(vha->hw) && !IS_QLA83XX(vha->hw) && in qla81xx_fac_do_write_enable()
4709 !IS_QLA27XX(vha->hw) && !IS_QLA28XX(vha->hw)) in qla81xx_fac_do_write_enable()
4712 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10df, in qla81xx_fac_do_write_enable()
4722 rval = qla2x00_mailbox_command(vha, mcp); in qla81xx_fac_do_write_enable()
4725 ql_dbg(ql_dbg_mbx, vha, 0x10e0, in qla81xx_fac_do_write_enable()
4729 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e1, in qla81xx_fac_do_write_enable()
4737 qla81xx_fac_erase_sector(scsi_qla_host_t *vha, uint32_t start, uint32_t finish) in qla81xx_fac_erase_sector() argument
4743 if (!IS_QLA81XX(vha->hw) && !IS_QLA83XX(vha->hw) && in qla81xx_fac_erase_sector()
4744 !IS_QLA27XX(vha->hw) && !IS_QLA28XX(vha->hw)) in qla81xx_fac_erase_sector()
4747 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e2, in qla81xx_fac_erase_sector()
4760 rval = qla2x00_mailbox_command(vha, mcp); in qla81xx_fac_erase_sector()
4763 ql_dbg(ql_dbg_mbx, vha, 0x10e3, in qla81xx_fac_erase_sector()
4767 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e4, in qla81xx_fac_erase_sector()
4775 qla81xx_fac_semaphore_access(scsi_qla_host_t *vha, int lock) in qla81xx_fac_semaphore_access() argument
4780 struct qla_hw_data *ha = vha->hw; in qla81xx_fac_semaphore_access()
4786 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e2, in qla81xx_fac_semaphore_access()
4796 rval = qla2x00_mailbox_command(vha, mcp); in qla81xx_fac_semaphore_access()
4799 ql_dbg(ql_dbg_mbx, vha, 0x10e3, in qla81xx_fac_semaphore_access()
4803 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e4, in qla81xx_fac_semaphore_access()
4811 qla81xx_restart_mpi_firmware(scsi_qla_host_t *vha) in qla81xx_restart_mpi_firmware() argument
4817 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e5, in qla81xx_restart_mpi_firmware()
4825 rval = qla2x00_mailbox_command(vha, mcp); in qla81xx_restart_mpi_firmware()
4828 ql_dbg(ql_dbg_mbx, vha, 0x10e6, in qla81xx_restart_mpi_firmware()
4832 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e7, in qla81xx_restart_mpi_firmware()
4840 qla82xx_set_driver_version(scsi_qla_host_t *vha, char *version) in qla82xx_set_driver_version() argument
4848 struct qla_hw_data *ha = vha->hw; in qla82xx_set_driver_version()
4853 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x117b, in qla82xx_set_driver_version()
4873 rval = qla2x00_mailbox_command(vha, mcp); in qla82xx_set_driver_version()
4876 ql_dbg(ql_dbg_mbx, vha, 0x117c, in qla82xx_set_driver_version()
4879 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x117d, in qla82xx_set_driver_version()
4887 qla25xx_set_driver_version(scsi_qla_host_t *vha, char *version) in qla25xx_set_driver_version() argument
4896 struct qla_hw_data *ha = vha->hw; in qla25xx_set_driver_version()
4902 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x117e, in qla25xx_set_driver_version()
4907 ql_log(ql_log_warn, vha, 0x117f, in qla25xx_set_driver_version()
4930 rval = qla2x00_mailbox_command(vha, mcp); in qla25xx_set_driver_version()
4933 ql_dbg(ql_dbg_mbx, vha, 0x1180, in qla25xx_set_driver_version()
4936 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1181, in qla25xx_set_driver_version()
4946 qla24xx_get_port_login_templ(scsi_qla_host_t *vha, dma_addr_t buf_dma, in qla24xx_get_port_login_templ() argument
4954 if (!IS_FWI2_CAPABLE(vha->hw)) in qla24xx_get_port_login_templ()
4957 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1159, in qla24xx_get_port_login_templ()
4971 rval = qla2x00_mailbox_command(vha, mcp); in qla24xx_get_port_login_templ()
4974 ql_dbg(ql_dbg_mbx, vha, 0x115a, in qla24xx_get_port_login_templ()
4977 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x115b, in qla24xx_get_port_login_templ()
4989 qla25xx_set_els_cmds_supported(scsi_qla_host_t *vha) in qla25xx_set_els_cmds_supported() argument
4999 struct qla_hw_data *ha = vha->hw; in qla25xx_set_els_cmds_supported()
5005 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1197, in qla25xx_set_els_cmds_supported()
5011 ql_log(ql_log_warn, vha, 0x7101, in qla25xx_set_els_cmds_supported()
5047 rval = qla2x00_mailbox_command(vha, mcp); in qla25xx_set_els_cmds_supported()
5050 ql_dbg(ql_dbg_mbx, vha, 0x118d, in qla25xx_set_els_cmds_supported()
5053 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x118c, in qla25xx_set_els_cmds_supported()
5064 qla2x00_read_asic_temperature(scsi_qla_host_t *vha, uint16_t *temp) in qla2x00_read_asic_temperature() argument
5070 if (!IS_FWI2_CAPABLE(vha->hw)) in qla2x00_read_asic_temperature()
5073 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1159, in qla2x00_read_asic_temperature()
5082 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_read_asic_temperature()
5086 ql_dbg(ql_dbg_mbx, vha, 0x115a, in qla2x00_read_asic_temperature()
5089 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x115b, in qla2x00_read_asic_temperature()
5097 qla2x00_read_sfp(scsi_qla_host_t *vha, dma_addr_t sfp_dma, uint8_t *sfp, in qla2x00_read_sfp() argument
5103 struct qla_hw_data *ha = vha->hw; in qla2x00_read_sfp()
5105 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e8, in qla2x00_read_sfp()
5127 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_read_sfp()
5133 ql_dbg(ql_dbg_mbx, vha, 0x10e9, in qla2x00_read_sfp()
5140 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ea, in qla2x00_read_sfp()
5148 qla2x00_write_sfp(scsi_qla_host_t *vha, dma_addr_t sfp_dma, uint8_t *sfp, in qla2x00_write_sfp() argument
5154 struct qla_hw_data *ha = vha->hw; in qla2x00_write_sfp()
5156 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10eb, in qla2x00_write_sfp()
5181 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_write_sfp()
5184 ql_dbg(ql_dbg_mbx, vha, 0x10ec, in qla2x00_write_sfp()
5187 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ed, in qla2x00_write_sfp()
5195 qla2x00_get_xgmac_stats(scsi_qla_host_t *vha, dma_addr_t stats_dma, in qla2x00_get_xgmac_stats() argument
5202 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ee, in qla2x00_get_xgmac_stats()
5205 if (!IS_CNA_CAPABLE(vha->hw)) in qla2x00_get_xgmac_stats()
5218 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_xgmac_stats()
5221 ql_dbg(ql_dbg_mbx, vha, 0x10ef, in qla2x00_get_xgmac_stats()
5225 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f0, in qla2x00_get_xgmac_stats()
5236 qla2x00_get_dcbx_params(scsi_qla_host_t *vha, dma_addr_t tlv_dma, in qla2x00_get_dcbx_params() argument
5243 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f1, in qla2x00_get_dcbx_params()
5246 if (!IS_CNA_CAPABLE(vha->hw)) in qla2x00_get_dcbx_params()
5260 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_dcbx_params()
5263 ql_dbg(ql_dbg_mbx, vha, 0x10f2, in qla2x00_get_dcbx_params()
5267 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f3, in qla2x00_get_dcbx_params()
5275 qla2x00_read_ram_word(scsi_qla_host_t *vha, uint32_t risc_addr, uint32_t *data) in qla2x00_read_ram_word() argument
5281 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f4, in qla2x00_read_ram_word()
5284 if (!IS_FWI2_CAPABLE(vha->hw)) in qla2x00_read_ram_word()
5294 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_read_ram_word()
5296 ql_dbg(ql_dbg_mbx, vha, 0x10f5, in qla2x00_read_ram_word()
5299 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f6, in qla2x00_read_ram_word()
5308 qla2x00_loopback_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq, in qla2x00_loopback_test() argument
5315 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f7, in qla2x00_loopback_test()
5344 if (IS_CNA_CAPABLE(vha->hw)) in qla2x00_loopback_test()
5352 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_loopback_test()
5355 ql_dbg(ql_dbg_mbx, vha, 0x10f8, in qla2x00_loopback_test()
5360 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f9, in qla2x00_loopback_test()
5370 qla2x00_echo_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq, in qla2x00_echo_test() argument
5376 struct qla_hw_data *ha = vha->hw; in qla2x00_echo_test()
5378 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10fa, in qla2x00_echo_test()
5386 mcp->mb[2] = vha->fcoe_fcf_idx; in qla2x00_echo_test()
5417 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_echo_test()
5420 ql_dbg(ql_dbg_mbx, vha, 0x10fb, in qla2x00_echo_test()
5424 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10fc, in qla2x00_echo_test()
5434 qla84xx_reset_chip(scsi_qla_host_t *vha, uint16_t enable_diagnostic) in qla84xx_reset_chip() argument
5440 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10fd, in qla84xx_reset_chip()
5449 rval = qla2x00_mailbox_command(vha, mcp); in qla84xx_reset_chip()
5452 ql_dbg(ql_dbg_mbx, vha, 0x10fe, "Failed=%x.\n", rval); in qla84xx_reset_chip()
5454 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ff, in qla84xx_reset_chip()
5461 qla2x00_write_ram_word(scsi_qla_host_t *vha, uint32_t risc_addr, uint32_t data) in qla2x00_write_ram_word() argument
5467 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1100, in qla2x00_write_ram_word()
5470 if (!IS_FWI2_CAPABLE(vha->hw)) in qla2x00_write_ram_word()
5482 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_write_ram_word()
5484 ql_dbg(ql_dbg_mbx, vha, 0x1101, in qla2x00_write_ram_word()
5488 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1102, in qla2x00_write_ram_word()
5496 qla81xx_write_mpi_register(scsi_qla_host_t *vha, uint16_t *mb) in qla81xx_write_mpi_register() argument
5501 struct qla_hw_data *ha = vha->hw; in qla81xx_write_mpi_register()
5506 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1103, in qla81xx_write_mpi_register()
5547 ql_dbg(ql_dbg_mbx, vha, 0x1104, in qla81xx_write_mpi_register()
5550 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1105, in qla81xx_write_mpi_register()
5559 qla2x00_set_data_rate(scsi_qla_host_t *vha, uint16_t mode) in qla2x00_set_data_rate() argument
5564 struct qla_hw_data *ha = vha->hw; in qla2x00_set_data_rate()
5567 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1106, in qla2x00_set_data_rate()
5584 ql_log(ql_log_warn, vha, 0x1199, in qla2x00_set_data_rate()
5601 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_set_data_rate()
5603 ql_dbg(ql_dbg_mbx, vha, 0x1107, in qla2x00_set_data_rate()
5607 ql_dbg(ql_dbg_mbx, vha, 0x1179, in qla2x00_set_data_rate()
5610 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1108, in qla2x00_set_data_rate()
5618 qla2x00_get_data_rate(scsi_qla_host_t *vha) in qla2x00_get_data_rate() argument
5623 struct qla_hw_data *ha = vha->hw; in qla2x00_get_data_rate()
5625 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1106, in qla2x00_get_data_rate()
5639 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_get_data_rate()
5641 ql_dbg(ql_dbg_mbx, vha, 0x1107, in qla2x00_get_data_rate()
5649 ql_log(ql_log_info, vha, 0x11a2, in qla2x00_get_data_rate()
5653 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1108, in qla2x00_get_data_rate()
5663 qla81xx_get_port_config(scsi_qla_host_t *vha, uint16_t *mb) in qla81xx_get_port_config() argument
5668 struct qla_hw_data *ha = vha->hw; in qla81xx_get_port_config()
5670 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1109, in qla81xx_get_port_config()
5682 rval = qla2x00_mailbox_command(vha, mcp); in qla81xx_get_port_config()
5685 ql_dbg(ql_dbg_mbx, vha, 0x110a, in qla81xx_get_port_config()
5691 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x110b, in qla81xx_get_port_config()
5698 qla81xx_set_port_config(scsi_qla_host_t *vha, uint16_t *mb) in qla81xx_set_port_config() argument
5704 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x110c, in qla81xx_set_port_config()
5714 rval = qla2x00_mailbox_command(vha, mcp); in qla81xx_set_port_config()
5717 ql_dbg(ql_dbg_mbx, vha, 0x110d, in qla81xx_set_port_config()
5720 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x110e, in qla81xx_set_port_config()
5728 qla24xx_set_fcp_prio(scsi_qla_host_t *vha, uint16_t loop_id, uint16_t priority, in qla24xx_set_fcp_prio() argument
5734 struct qla_hw_data *ha = vha->hw; in qla24xx_set_fcp_prio()
5736 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x110f, in qla24xx_set_fcp_prio()
5749 mcp->mb[9] = vha->vp_idx; in qla24xx_set_fcp_prio()
5754 rval = qla2x00_mailbox_command(vha, mcp); in qla24xx_set_fcp_prio()
5763 ql_dbg(ql_dbg_mbx, vha, 0x10cd, "Failed=%x.\n", rval); in qla24xx_set_fcp_prio()
5765 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10cc, in qla24xx_set_fcp_prio()
5773 qla2x00_get_thermal_temp(scsi_qla_host_t *vha, uint16_t *temp) in qla2x00_get_thermal_temp() argument
5776 struct qla_hw_data *ha = vha->hw; in qla2x00_get_thermal_temp()
5780 ql_dbg(ql_dbg_mbx, vha, 0x1150, in qla2x00_get_thermal_temp()
5788 rval = qla2x00_read_sfp(vha, 0, &byte, in qla2x00_get_thermal_temp()
5795 rval = qla2x00_read_sfp(vha, 0, &byte, in qla2x00_get_thermal_temp()
5800 ql_dbg(ql_dbg_mbx, vha, 0x10c9, in qla2x00_get_thermal_temp()
5806 *temp = qla82xx_read_temperature(vha); in qla2x00_get_thermal_temp()
5810 *temp = qla8044_read_temperature(vha); in qla2x00_get_thermal_temp()
5815 rval = qla2x00_read_asic_temperature(vha, temp); in qla2x00_get_thermal_temp()
5820 qla82xx_mbx_intr_enable(scsi_qla_host_t *vha) in qla82xx_mbx_intr_enable() argument
5823 struct qla_hw_data *ha = vha->hw; in qla82xx_mbx_intr_enable()
5827 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1017, in qla82xx_mbx_intr_enable()
5842 rval = qla2x00_mailbox_command(vha, mcp); in qla82xx_mbx_intr_enable()
5844 ql_dbg(ql_dbg_mbx, vha, 0x1016, in qla82xx_mbx_intr_enable()
5847 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x100e, in qla82xx_mbx_intr_enable()
5855 qla82xx_mbx_intr_disable(scsi_qla_host_t *vha) in qla82xx_mbx_intr_disable() argument
5858 struct qla_hw_data *ha = vha->hw; in qla82xx_mbx_intr_disable()
5862 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x100d, in qla82xx_mbx_intr_disable()
5877 rval = qla2x00_mailbox_command(vha, mcp); in qla82xx_mbx_intr_disable()
5879 ql_dbg(ql_dbg_mbx, vha, 0x100c, in qla82xx_mbx_intr_disable()
5882 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x100b, in qla82xx_mbx_intr_disable()
5890 qla82xx_md_get_template_size(scsi_qla_host_t *vha) in qla82xx_md_get_template_size() argument
5892 struct qla_hw_data *ha = vha->hw; in qla82xx_md_get_template_size()
5897 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x111f, in qla82xx_md_get_template_size()
5912 rval = qla2x00_mailbox_command(vha, mcp); in qla82xx_md_get_template_size()
5916 ql_dbg(ql_dbg_mbx, vha, 0x1120, in qla82xx_md_get_template_size()
5921 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1121, in qla82xx_md_get_template_size()
5925 ql_dbg(ql_dbg_mbx, vha, 0x1122, in qla82xx_md_get_template_size()
5934 qla82xx_md_get_template(scsi_qla_host_t *vha) in qla82xx_md_get_template() argument
5936 struct qla_hw_data *ha = vha->hw; in qla82xx_md_get_template()
5941 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1123, in qla82xx_md_get_template()
5947 ql_log(ql_log_warn, vha, 0x1124, in qla82xx_md_get_template()
5969 rval = qla2x00_mailbox_command(vha, mcp); in qla82xx_md_get_template()
5972 ql_dbg(ql_dbg_mbx, vha, 0x1125, in qla82xx_md_get_template()
5977 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1126, in qla82xx_md_get_template()
5983 qla8044_md_get_template(scsi_qla_host_t *vha) in qla8044_md_get_template() argument
5985 struct qla_hw_data *ha = vha->hw; in qla8044_md_get_template()
5991 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0xb11f, in qla8044_md_get_template()
5997 ql_log(ql_log_warn, vha, 0xb11b, in qla8044_md_get_template()
6021 rval = qla2x00_mailbox_command(vha, mcp); in qla8044_md_get_template()
6024 ql_dbg(ql_dbg_mbx, vha, 0xb11c, in qla8044_md_get_template()
6030 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0xb11d, in qla8044_md_get_template()
6038 qla81xx_set_led_config(scsi_qla_host_t *vha, uint16_t *led_cfg) in qla81xx_set_led_config() argument
6041 struct qla_hw_data *ha = vha->hw; in qla81xx_set_led_config()
6048 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1133, in qla81xx_set_led_config()
6069 rval = qla2x00_mailbox_command(vha, mcp); in qla81xx_set_led_config()
6071 ql_dbg(ql_dbg_mbx, vha, 0x1134, in qla81xx_set_led_config()
6074 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1135, in qla81xx_set_led_config()
6082 qla81xx_get_led_config(scsi_qla_host_t *vha, uint16_t *led_cfg) in qla81xx_get_led_config() argument
6085 struct qla_hw_data *ha = vha->hw; in qla81xx_get_led_config()
6092 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1136, in qla81xx_get_led_config()
6105 rval = qla2x00_mailbox_command(vha, mcp); in qla81xx_get_led_config()
6107 ql_dbg(ql_dbg_mbx, vha, 0x1137, in qla81xx_get_led_config()
6118 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1138, in qla81xx_get_led_config()
6126 qla82xx_mbx_beacon_ctl(scsi_qla_host_t *vha, int enable) in qla82xx_mbx_beacon_ctl() argument
6129 struct qla_hw_data *ha = vha->hw; in qla82xx_mbx_beacon_ctl()
6136 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1127, in qla82xx_mbx_beacon_ctl()
6151 rval = qla2x00_mailbox_command(vha, mcp); in qla82xx_mbx_beacon_ctl()
6153 ql_dbg(ql_dbg_mbx, vha, 0x1128, in qla82xx_mbx_beacon_ctl()
6156 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1129, in qla82xx_mbx_beacon_ctl()
6164 qla83xx_wr_reg(scsi_qla_host_t *vha, uint32_t reg, uint32_t data) in qla83xx_wr_reg() argument
6167 struct qla_hw_data *ha = vha->hw; in qla83xx_wr_reg()
6174 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1130, in qla83xx_wr_reg()
6187 rval = qla2x00_mailbox_command(vha, mcp); in qla83xx_wr_reg()
6190 ql_dbg(ql_dbg_mbx, vha, 0x1131, in qla83xx_wr_reg()
6193 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1132, in qla83xx_wr_reg()
6201 qla2x00_port_logout(scsi_qla_host_t *vha, struct fc_port *fcport) in qla2x00_port_logout() argument
6204 struct qla_hw_data *ha = vha->hw; in qla2x00_port_logout()
6209 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x113b, in qla2x00_port_logout()
6215 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x113c, in qla2x00_port_logout()
6226 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_port_logout()
6228 ql_dbg(ql_dbg_mbx, vha, 0x113d, in qla2x00_port_logout()
6231 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x113e, in qla2x00_port_logout()
6238 qla83xx_rd_reg(scsi_qla_host_t *vha, uint32_t reg, uint32_t *data) in qla83xx_rd_reg() argument
6243 struct qla_hw_data *ha = vha->hw; in qla83xx_rd_reg()
6249 ql_dbg(ql_dbg_mbx, vha, 0x114b, "Entered %s.\n", __func__); in qla83xx_rd_reg()
6259 rval = qla2x00_mailbox_command(vha, mcp); in qla83xx_rd_reg()
6262 ql_dbg(ql_dbg_mbx, vha, 0x114c, in qla83xx_rd_reg()
6274 ql_dbg(ql_dbg_mbx, vha, 0x1141, in qla83xx_rd_reg()
6282 ql_dbg(ql_dbg_mbx, vha, 0x1142, "Done %s.\n", __func__); in qla83xx_rd_reg()
6289 qla83xx_restart_nic_firmware(scsi_qla_host_t *vha) in qla83xx_restart_nic_firmware() argument
6294 struct qla_hw_data *ha = vha->hw; in qla83xx_restart_nic_firmware()
6299 ql_dbg(ql_dbg_mbx, vha, 0x1143, "Entered %s.\n", __func__); in qla83xx_restart_nic_firmware()
6306 rval = qla2x00_mailbox_command(vha, mcp); in qla83xx_restart_nic_firmware()
6309 ql_dbg(ql_dbg_mbx, vha, 0x1144, in qla83xx_restart_nic_firmware()
6312 qla2xxx_dump_fw(vha); in qla83xx_restart_nic_firmware()
6314 ql_dbg(ql_dbg_mbx, vha, 0x1145, "Done %s.\n", __func__); in qla83xx_restart_nic_firmware()
6321 qla83xx_access_control(scsi_qla_host_t *vha, uint16_t options, in qla83xx_access_control() argument
6328 struct qla_hw_data *ha = vha->hw; in qla83xx_access_control()
6333 ql_dbg(ql_dbg_mbx, vha, 0x1146, "Entered %s.\n", __func__); in qla83xx_access_control()
6350 rval = qla2x00_mailbox_command(vha, mcp); in qla83xx_access_control()
6353 ql_dbg(ql_dbg_mbx, vha, 0x1147, in qla83xx_access_control()
6357 qla2xxx_dump_fw(vha); in qla83xx_access_control()
6362 ql_dbg(ql_dbg_mbx, vha, 0x1148, in qla83xx_access_control()
6365 ql_dbg(ql_dbg_mbx, vha, 0x1149, in qla83xx_access_control()
6368 ql_dbg(ql_dbg_mbx, vha, 0x114a, "Done %s.\n", __func__); in qla83xx_access_control()
6375 qla2x00_dump_mctp_data(scsi_qla_host_t *vha, dma_addr_t req_dma, uint32_t addr, in qla2x00_dump_mctp_data() argument
6382 if (!IS_MCTP_CAPABLE(vha->hw)) in qla2x00_dump_mctp_data()
6385 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x114f, in qla2x00_dump_mctp_data()
6407 rval = qla2x00_mailbox_command(vha, mcp); in qla2x00_dump_mctp_data()
6410 ql_dbg(ql_dbg_mbx, vha, 0x114e, in qla2x00_dump_mctp_data()
6413 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x114d, in qla2x00_dump_mctp_data()
6421 qla26xx_dport_diagnostics(scsi_qla_host_t *vha, in qla26xx_dport_diagnostics() argument
6429 if (!IS_QLA83XX(vha->hw) && !IS_QLA27XX(vha->hw) && in qla26xx_dport_diagnostics()
6430 !IS_QLA28XX(vha->hw)) in qla26xx_dport_diagnostics()
6433 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x119f, in qla26xx_dport_diagnostics()
6436 dd_dma = dma_map_single(&vha->hw->pdev->dev, in qla26xx_dport_diagnostics()
6438 if (dma_mapping_error(&vha->hw->pdev->dev, dd_dma)) { in qla26xx_dport_diagnostics()
6439 ql_log(ql_log_warn, vha, 0x1194, "Failed to map dma buffer.\n"); in qla26xx_dport_diagnostics()
6457 rval = qla2x00_mailbox_command(vha, mcp); in qla26xx_dport_diagnostics()
6460 ql_dbg(ql_dbg_mbx, vha, 0x1195, "Failed=%x.\n", rval); in qla26xx_dport_diagnostics()
6462 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1196, in qla26xx_dport_diagnostics()
6466 dma_unmap_single(&vha->hw->pdev->dev, dd_dma, in qla26xx_dport_diagnostics()
6485 int qla24xx_send_mb_cmd(struct scsi_qla_host *vha, mbx_cmd_t *mcp) in qla24xx_send_mb_cmd() argument
6491 if (!vha->hw->flags.fw_started) in qla24xx_send_mb_cmd()
6495 sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL); in qla24xx_send_mb_cmd()
6504 qla2x00_init_async_sp(sp, qla2x00_get_async_timeout(vha) + 2, in qla24xx_send_mb_cmd()
6511 ql_dbg(ql_dbg_mbx, vha, 0x1018, in qla24xx_send_mb_cmd()
6517 ql_dbg(ql_dbg_mbx, vha, 0x113f, "MB:%s hndl %x submitted\n", in qla24xx_send_mb_cmd()
6526 ql_dbg(ql_dbg_mbx, vha, 0x1140, "%s: %s Timeout. %x.\n", in qla24xx_send_mb_cmd()
6530 ql_dbg(ql_dbg_mbx, vha, 0x119d, "%s: %s done.\n", in qla24xx_send_mb_cmd()
6534 ql_dbg(ql_dbg_mbx, vha, 0x119e, "%s: %s Failed. %x.\n", in qla24xx_send_mb_cmd()
6550 int qla24xx_gpdb_wait(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt) in qla24xx_gpdb_wait() argument
6555 struct qla_hw_data *ha = vha->hw; in qla24xx_gpdb_wait()
6558 if (!vha->hw->flags.fw_started) in qla24xx_gpdb_wait()
6563 ql_log(ql_log_warn, vha, 0xd047, in qla24xx_gpdb_wait()
6575 mc.mb[9] = vha->vp_idx; in qla24xx_gpdb_wait()
6578 rval = qla24xx_send_mb_cmd(vha, &mc); in qla24xx_gpdb_wait()
6580 ql_dbg(ql_dbg_mbx, vha, 0x1193, in qla24xx_gpdb_wait()
6585 rval = __qla24xx_parse_gpdb(vha, fcport, pd); in qla24xx_gpdb_wait()
6587 ql_dbg(ql_dbg_mbx, vha, 0x1197, "%s: %8phC done\n", in qla24xx_gpdb_wait()
6597 int __qla24xx_parse_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport, in __qla24xx_parse_gpdb() argument
6604 if (NVME_TARGET(vha->hw, fcport)) { in __qla24xx_parse_gpdb()
6614 ql_dbg(ql_dbg_mbx, vha, 0x119a, in __qla24xx_parse_gpdb()
6639 ql_dbg(ql_dbg_disc, vha, 0x2062, in __qla24xx_parse_gpdb()
6645 if (NVME_TARGET(vha->hw, fcport)) { in __qla24xx_parse_gpdb()
6677 int qla24xx_gidlist_wait(struct scsi_qla_host *vha, in qla24xx_gidlist_wait() argument
6683 if (!vha->hw->flags.fw_started) in qla24xx_gidlist_wait()
6693 mc.mb[9] = vha->vp_idx; in qla24xx_gidlist_wait()
6695 rval = qla24xx_send_mb_cmd(vha, &mc); in qla24xx_gidlist_wait()
6697 ql_dbg(ql_dbg_mbx, vha, 0x119b, in qla24xx_gidlist_wait()
6701 ql_dbg(ql_dbg_mbx, vha, 0x119c, in qla24xx_gidlist_wait()
6708 int qla27xx_set_zio_threshold(scsi_qla_host_t *vha, uint16_t value) in qla27xx_set_zio_threshold() argument
6714 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1200, in qla27xx_set_zio_threshold()
6726 rval = qla2x00_mailbox_command(vha, mcp); in qla27xx_set_zio_threshold()
6728 ql_dbg(ql_dbg_mbx, vha, 0x1201, "%s %x\n", in qla27xx_set_zio_threshold()
6734 int qla27xx_get_zio_threshold(scsi_qla_host_t *vha, uint16_t *value) in qla27xx_get_zio_threshold() argument
6740 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1203, in qla27xx_get_zio_threshold()
6751 rval = qla2x00_mailbox_command(vha, mcp); in qla27xx_get_zio_threshold()
6755 ql_dbg(ql_dbg_mbx, vha, 0x1205, "%s %x\n", in qla27xx_get_zio_threshold()
6762 qla2x00_read_sfp_dev(struct scsi_qla_host *vha, char *buf, int count) in qla2x00_read_sfp_dev() argument
6764 struct qla_hw_data *ha = vha->hw; in qla2x00_read_sfp_dev()
6783 rval = qla2x00_read_sfp(vha, phys_addr, sfp_data, in qla2x00_read_sfp_dev()
6786 ql_log(ql_log_warn, vha, 0x706d, in qla2x00_read_sfp_dev()
6813 int qla24xx_res_count_wait(struct scsi_qla_host *vha, in qla24xx_res_count_wait() argument
6819 if (!vha->hw->flags.fw_started) in qla24xx_res_count_wait()
6825 rval = qla24xx_send_mb_cmd(vha, &mc); in qla24xx_res_count_wait()
6827 ql_dbg(ql_dbg_mbx, vha, 0xffff, in qla24xx_res_count_wait()
6835 ql_dbg(ql_dbg_mbx, vha, 0xffff, in qla24xx_res_count_wait()
6842 int qla28xx_secure_flash_update(scsi_qla_host_t *vha, uint16_t opts, in qla28xx_secure_flash_update() argument
6865 rval = qla2x00_mailbox_command(vha, mcp); in qla28xx_secure_flash_update()
6868 ql_dbg(ql_dbg_mbx, vha, 0xffff, "%s(%ld): failed rval 0x%x, %x %x %x", in qla28xx_secure_flash_update()
6869 __func__, vha->host_no, rval, mcp->mb[0], mcp->mb[1], in qla28xx_secure_flash_update()
6876 int qla2xxx_write_remote_register(scsi_qla_host_t *vha, uint32_t addr, in qla2xxx_write_remote_register() argument
6883 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e8, in qla2xxx_write_remote_register()
6895 rval = qla2x00_mailbox_command(vha, mcp); in qla2xxx_write_remote_register()
6898 ql_dbg(ql_dbg_mbx, vha, 0x10e9, in qla2xxx_write_remote_register()
6901 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ea, in qla2xxx_write_remote_register()
6908 int qla2xxx_read_remote_register(scsi_qla_host_t *vha, uint32_t addr, in qla2xxx_read_remote_register() argument
6915 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e8, in qla2xxx_read_remote_register()
6925 rval = qla2x00_mailbox_command(vha, mcp); in qla2xxx_read_remote_register()
6930 ql_dbg(ql_dbg_mbx, vha, 0x10e9, in qla2xxx_read_remote_register()
6933 ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ea, in qla2xxx_read_remote_register()
6941 ql26xx_led_config(scsi_qla_host_t *vha, uint16_t options, uint16_t *led) in ql26xx_led_config() argument
6943 struct qla_hw_data *ha = vha->hw; in ql26xx_led_config()
6951 ql_dbg(ql_dbg_mbx, vha, 0x7070, "Entered %s (options=%x).\n", in ql26xx_led_config()
6976 rval = qla2x00_mailbox_command(vha, mcp); in ql26xx_led_config()
6978 ql_dbg(ql_dbg_mbx, vha, 0x7071, "Failed %s %x (mb=%x,%x)\n", in ql26xx_led_config()
6985 ql_dbg(ql_dbg_mbx, vha, 0x7072, "Done %s\n", __func__); in ql26xx_led_config()
6990 ql_dbg(ql_dbg_mbx, vha, 0x7073, "Done %s (led=%x,%x,%x)\n", in ql26xx_led_config()
7004 void qla_no_op_mb(struct scsi_qla_host *vha) in qla_no_op_mb() argument
7016 rval = qla2x00_mailbox_command(vha, mcp); in qla_no_op_mb()
7019 ql_dbg(ql_dbg_async, vha, 0x7071, in qla_no_op_mb()