vha 24 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 26 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 60 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 62 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 74 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x705d, vha 75 drivers/scsi/qla2xxx/qla_attr.c "Firmware dump cleared on (%ld).\n", vha->host_no); vha 78 drivers/scsi/qla2xxx/qla_attr.c qla82xx_md_free(vha); vha 79 drivers/scsi/qla2xxx/qla_attr.c qla82xx_md_prep(vha); vha 88 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x705e, vha 90 drivers/scsi/qla2xxx/qla_attr.c vha->host_no); vha 94 drivers/scsi/qla2xxx/qla_attr.c qla2x00_alloc_fw_dump(vha); vha 99 drivers/scsi/qla2xxx/qla_attr.c qla82xx_set_reset_owner(vha); vha 103 drivers/scsi/qla2xxx/qla_attr.c qla82xx_set_reset_owner(vha); vha 106 drivers/scsi/qla2xxx/qla_attr.c qla2x00_system_error(vha); vha 111 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x705b, vha 114 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x709d, vha 120 drivers/scsi/qla2xxx/qla_attr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 125 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x70c1, vha 126 drivers/scsi/qla2xxx/qla_attr.c "MCTP dump cleared on (%ld).\n", vha->host_no); vha 133 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x70c2, vha 135 drivers/scsi/qla2xxx/qla_attr.c vha->host_no); vha 157 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 159 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 167 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 179 drivers/scsi/qla2xxx/qla_attr.c qla28xx_get_aux_images(vha, &active_regions); vha 183 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->read_optrom(vha, ha->nvram, faddr << 2, ha->nvram_size); vha 197 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 199 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 229 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_wait_for_hba_online(vha) != QLA_SUCCESS) { vha 230 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x705f, vha 236 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 242 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->write_nvram(vha, buf, ha->nvram_base, count); vha 243 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->read_nvram(vha, ha->nvram, ha->nvram_base, vha 247 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x7060, vha 250 drivers/scsi/qla2xxx/qla_attr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 251 drivers/scsi/qla2xxx/qla_attr.c qla2xxx_wake_dpc(vha); vha 252 drivers/scsi/qla2xxx/qla_attr.c qla2x00_wait_for_chip_reset(vha); vha 272 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 274 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 296 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 298 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 334 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 336 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 356 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 369 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x7061, vha 388 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7062, vha 397 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_wait_for_hba_online(vha) != QLA_SUCCESS) { vha 398 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7063, vha 404 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x7064, vha 408 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->read_optrom(vha, ha->optrom_buffer, vha 447 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7065, vha 459 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7066, vha 468 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x7067, vha 479 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_wait_for_hba_online(vha) != QLA_SUCCESS) { vha 480 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7068, vha 486 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x7069, vha 490 drivers/scsi/qla2xxx/qla_attr.c rval = ha->isp_ops->write_optrom(vha, ha->optrom_buffer, vha 518 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 520 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 536 drivers/scsi/qla2xxx/qla_attr.c qla28xx_get_aux_images(vha, &active_regions); vha 540 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_init, vha, 0x7070, vha 547 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 552 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->read_optrom(vha, ha->vpd, faddr, ha->vpd_size); vha 555 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->read_optrom(vha, ha->vpd, faddr, ha->vpd_size); vha 565 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 567 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 573 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) vha 580 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_wait_for_hba_online(vha) != QLA_SUCCESS) { vha 581 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x706a, vha 587 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 593 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->write_nvram(vha, buf, ha->vpd_base, count); vha 594 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->read_nvram(vha, ha->vpd, ha->vpd_base, count); vha 605 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x706b, vha 609 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->get_flash_version(vha, tmp_data); vha 632 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 639 drivers/scsi/qla2xxx/qla_attr.c mutex_lock(&vha->hw->optrom_mutex); vha 640 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 641 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 645 drivers/scsi/qla2xxx/qla_attr.c rval = qla2x00_read_sfp_dev(vha, buf, count); vha 646 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 668 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 670 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 682 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x706e, vha 685 drivers/scsi/qla2xxx/qla_attr.c scsi_block_requests(vha->host); vha 689 drivers/scsi/qla2xxx/qla_attr.c qla82xx_set_reset_owner(vha); vha 697 drivers/scsi/qla2xxx/qla_attr.c qla82xx_set_reset_owner(vha); vha 700 drivers/scsi/qla2xxx/qla_attr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 701 drivers/scsi/qla2xxx/qla_attr.c qla2xxx_wake_dpc(vha); vha 703 drivers/scsi/qla2xxx/qla_attr.c qla2x00_wait_for_chip_reset(vha); vha 704 drivers/scsi/qla2xxx/qla_attr.c scsi_unblock_requests(vha->host); vha 710 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x706f, vha 716 drivers/scsi/qla2xxx/qla_attr.c qla83xx_idc_lock(vha, 0); vha 717 drivers/scsi/qla2xxx/qla_attr.c __qla83xx_get_idc_control(vha, &idc_control); vha 719 drivers/scsi/qla2xxx/qla_attr.c __qla83xx_set_idc_control(vha, idc_control); vha 720 drivers/scsi/qla2xxx/qla_attr.c qla83xx_wr_reg(vha, QLA83XX_IDC_DEV_STATE, vha 722 drivers/scsi/qla2xxx/qla_attr.c qla83xx_idc_audit(vha, IDC_AUDIT_TIMESTAMP); vha 723 drivers/scsi/qla2xxx/qla_attr.c qla83xx_idc_unlock(vha, 0); vha 727 drivers/scsi/qla2xxx/qla_attr.c WARN_ON_ONCE(qla2x00_wait_for_hba_online(vha) != vha 731 drivers/scsi/qla2xxx/qla_attr.c scsi_block_requests(vha->host); vha 732 drivers/scsi/qla2xxx/qla_attr.c if (qla81xx_restart_mpi_firmware(vha) != QLA_SUCCESS) vha 733 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7070, vha 735 drivers/scsi/qla2xxx/qla_attr.c scsi_unblock_requests(vha->host); vha 739 drivers/scsi/qla2xxx/qla_attr.c if (!IS_P3P_TYPE(ha) || vha != base_vha) { vha 740 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x7071, vha 745 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x7072, vha 747 drivers/scsi/qla2xxx/qla_attr.c set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags); vha 748 drivers/scsi/qla2xxx/qla_attr.c qla2xxx_wake_dpc(vha); vha 749 drivers/scsi/qla2xxx/qla_attr.c qla2x00_wait_for_fcoe_ctx_reset(vha); vha 754 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x70bc, vha 756 drivers/scsi/qla2xxx/qla_attr.c qla83xx_idc_lock(vha, 0); vha 757 drivers/scsi/qla2xxx/qla_attr.c __qla83xx_get_idc_control(vha, &idc_control); vha 759 drivers/scsi/qla2xxx/qla_attr.c __qla83xx_set_idc_control(vha, idc_control); vha 760 drivers/scsi/qla2xxx/qla_attr.c qla83xx_idc_unlock(vha, 0); vha 765 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x70bd, vha 767 drivers/scsi/qla2xxx/qla_attr.c qla83xx_idc_lock(vha, 0); vha 768 drivers/scsi/qla2xxx/qla_attr.c __qla83xx_get_idc_control(vha, &idc_control); vha 770 drivers/scsi/qla2xxx/qla_attr.c __qla83xx_set_idc_control(vha, idc_control); vha 771 drivers/scsi/qla2xxx/qla_attr.c qla83xx_idc_unlock(vha, 0); vha 774 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x70e0, vha 779 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x70e1, vha 783 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->get_flash_version(vha, tmp_data); vha 804 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 812 drivers/scsi/qla2xxx/qla_attr.c if (unlikely(pci_channel_offline(vha->hw->pdev))) vha 815 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) vha 824 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0xd04d, "portid=%02x%02x%02x done\n", vha 827 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x70e4, "%s: %d\n", __func__, type); vha 829 drivers/scsi/qla2xxx/qla_attr.c qla24xx_els_dcmd_iocb(vha, ELS_DCMD_LOGO, did); vha 847 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 849 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 858 drivers/scsi/qla2xxx/qla_attr.c mutex_lock(&vha->hw->optrom_mutex); vha 859 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 860 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 870 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 871 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7076, vha 880 drivers/scsi/qla2xxx/qla_attr.c rval = qla2x00_get_xgmac_stats(vha, ha->xgmac_data_dma, vha 883 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 885 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7077, vha 910 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, vha 912 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 920 drivers/scsi/qla2xxx/qla_attr.c mutex_lock(&vha->hw->optrom_mutex); vha 921 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 922 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 929 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 930 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7078, vha 938 drivers/scsi/qla2xxx/qla_attr.c rval = qla2x00_get_dcbx_params(vha, ha->dcbx_tlv_dma, vha 941 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 944 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7079, vha 982 drivers/scsi/qla2xxx/qla_attr.c qla2x00_alloc_sysfs_attr(scsi_qla_host_t *vha) vha 984 drivers/scsi/qla2xxx/qla_attr.c struct Scsi_Host *host = vha->host; vha 989 drivers/scsi/qla2xxx/qla_attr.c if (iter->type && !IS_FWI2_CAPABLE(vha->hw)) vha 991 drivers/scsi/qla2xxx/qla_attr.c if (iter->type == 2 && !IS_QLA25XX(vha->hw)) vha 993 drivers/scsi/qla2xxx/qla_attr.c if (iter->type == 3 && !(IS_CNA_CAPABLE(vha->hw))) vha 999 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x00f3, vha 1003 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_init, vha, 0x00f4, vha 1010 drivers/scsi/qla2xxx/qla_attr.c qla2x00_free_sysfs_attr(scsi_qla_host_t *vha, bool stop_beacon) vha 1012 drivers/scsi/qla2xxx/qla_attr.c struct Scsi_Host *host = vha->host; vha 1014 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1032 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->beacon_off(vha); vha 1048 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1049 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1053 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->fw_version_str(vha, fw_str, sizeof(fw_str))); vha 1060 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1061 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1064 drivers/scsi/qla2xxx/qla_attr.c if (IS_QLAFX00(vha->hw)) { vha 1066 drivers/scsi/qla2xxx/qla_attr.c vha->hw->mr.serial_num); vha 1068 drivers/scsi/qla2xxx/qla_attr.c qla2xxx_get_vpd_field(vha, "SN", buf, PAGE_SIZE - 1); vha 1081 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1083 drivers/scsi/qla2xxx/qla_attr.c return scnprintf(buf, PAGE_SIZE, "ISP%04X\n", vha->hw->pdev->device); vha 1090 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1091 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1093 drivers/scsi/qla2xxx/qla_attr.c if (IS_QLAFX00(vha->hw)) vha 1095 drivers/scsi/qla2xxx/qla_attr.c vha->hw->mr.hw_version); vha 1106 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1108 drivers/scsi/qla2xxx/qla_attr.c return scnprintf(buf, PAGE_SIZE, "%s\n", vha->hw->model_number); vha 1115 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1117 drivers/scsi/qla2xxx/qla_attr.c return scnprintf(buf, PAGE_SIZE, "%s\n", vha->hw->model_desc); vha 1124 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1128 drivers/scsi/qla2xxx/qla_attr.c vha->hw->isp_ops->pci_info_str(vha, pci_info, vha 1136 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1137 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1140 drivers/scsi/qla2xxx/qla_attr.c if (atomic_read(&vha->loop_state) == LOOP_DOWN || vha 1141 drivers/scsi/qla2xxx/qla_attr.c atomic_read(&vha->loop_state) == LOOP_DEAD || vha 1142 drivers/scsi/qla2xxx/qla_attr.c vha->device_flags & DFLG_NO_CABLE) vha 1144 drivers/scsi/qla2xxx/qla_attr.c else if (atomic_read(&vha->loop_state) != LOOP_READY || vha 1145 drivers/scsi/qla2xxx/qla_attr.c qla2x00_chip_is_down(vha)) vha 1176 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1179 drivers/scsi/qla2xxx/qla_attr.c switch (vha->hw->zio_mode) { vha 1194 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1195 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1213 drivers/scsi/qla2xxx/qla_attr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 1222 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1224 drivers/scsi/qla2xxx/qla_attr.c return scnprintf(buf, PAGE_SIZE, "%d us\n", vha->hw->zio_timer * 100); vha 1231 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1241 drivers/scsi/qla2xxx/qla_attr.c vha->hw->zio_timer = zio_timer; vha 1250 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1253 drivers/scsi/qla2xxx/qla_attr.c vha->hw->last_zio_threshold); vha 1260 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1263 drivers/scsi/qla2xxx/qla_attr.c if (vha->hw->zio_mode != QLA_ZIO_MODE_6) vha 1270 drivers/scsi/qla2xxx/qla_attr.c atomic_set(&vha->hw->zio_threshold, val); vha 1278 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1281 drivers/scsi/qla2xxx/qla_attr.c if (vha->hw->beacon_blink_led) vha 1292 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1293 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1303 drivers/scsi/qla2xxx/qla_attr.c mutex_lock(&vha->hw->optrom_mutex); vha 1304 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 1305 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 1306 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x707a, vha 1312 drivers/scsi/qla2xxx/qla_attr.c rval = ha->isp_ops->beacon_on(vha); vha 1314 drivers/scsi/qla2xxx/qla_attr.c rval = ha->isp_ops->beacon_off(vha); vha 1319 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 1328 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1329 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1339 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1340 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1350 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1351 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1361 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1362 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1373 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1374 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1389 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1392 drivers/scsi/qla2xxx/qla_attr.c vha->qla_stats.total_isp_aborts); vha 1401 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1402 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1408 drivers/scsi/qla2xxx/qla_attr.c rval = qla84xx_verify_chip(vha, status); vha 1422 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1423 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1437 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1438 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1453 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1454 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1467 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1468 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1477 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1479 drivers/scsi/qla2xxx/qla_attr.c if (!IS_CNA_CAPABLE(vha->hw)) vha 1482 drivers/scsi/qla2xxx/qla_attr.c return scnprintf(buf, PAGE_SIZE, "%d\n", vha->fcoe_vlan_id); vha 1489 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1491 drivers/scsi/qla2xxx/qla_attr.c if (!IS_CNA_CAPABLE(vha->hw)) vha 1494 drivers/scsi/qla2xxx/qla_attr.c return scnprintf(buf, PAGE_SIZE, "%pMR\n", vha->fcoe_vn_port_mac); vha 1501 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1503 drivers/scsi/qla2xxx/qla_attr.c return scnprintf(buf, PAGE_SIZE, "%d\n", vha->hw->switch_cap); vha 1510 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1514 drivers/scsi/qla2xxx/qla_attr.c mutex_lock(&vha->hw->optrom_mutex); vha 1515 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 1516 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 1517 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x70dc, "ISP reset active.\n"); vha 1521 drivers/scsi/qla2xxx/qla_attr.c if (vha->hw->flags.eeh_busy) { vha 1522 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 1523 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x70dd, "PCI EEH busy.\n"); vha 1527 drivers/scsi/qla2xxx/qla_attr.c rc = qla2x00_get_thermal_temp(vha, &temp); vha 1528 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 1540 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1545 drivers/scsi/qla2xxx/qla_attr.c if (IS_QLAFX00(vha->hw)) { vha 1550 drivers/scsi/qla2xxx/qla_attr.c mutex_lock(&vha->hw->optrom_mutex); vha 1551 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) { vha 1552 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 1553 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x707c, vha 1556 drivers/scsi/qla2xxx/qla_attr.c } else if (vha->hw->flags.eeh_busy) { vha 1557 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 1561 drivers/scsi/qla2xxx/qla_attr.c rval = qla2x00_get_firmware_state(vha, state); vha 1562 drivers/scsi/qla2xxx/qla_attr.c mutex_unlock(&vha->hw->optrom_mutex); vha 1566 drivers/scsi/qla2xxx/qla_attr.c rval = qla2x00_get_firmware_state(vha, state); vha 1577 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1579 drivers/scsi/qla2xxx/qla_attr.c if (!IS_BIDI_CAPABLE(vha->hw)) vha 1582 drivers/scsi/qla2xxx/qla_attr.c return scnprintf(buf, PAGE_SIZE, "%llu\n", vha->bidi_stats.io_count); vha 1589 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1591 drivers/scsi/qla2xxx/qla_attr.c if (!IS_BIDI_CAPABLE(vha->hw)) vha 1595 drivers/scsi/qla2xxx/qla_attr.c vha->bidi_stats.transfer_bytes >> 20); vha 1602 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1603 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1620 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1622 drivers/scsi/qla2xxx/qla_attr.c if (!IS_P3P_TYPE(vha->hw)) vha 1626 drivers/scsi/qla2xxx/qla_attr.c vha->hw->allow_cna_fw_dump ? "true" : "false"); vha 1633 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1636 drivers/scsi/qla2xxx/qla_attr.c if (!IS_P3P_TYPE(vha->hw)) vha 1642 drivers/scsi/qla2xxx/qla_attr.c vha->hw->allow_cna_fw_dump = val != 0; vha 1651 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1652 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1665 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1666 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1684 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1685 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1700 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(dev)); vha 1704 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1707 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x70d8, vha 1718 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x70d9, vha 1743 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x1199, vha 1749 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha) || (oldspeed == ha->set_data_rate)) vha 1752 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x70da, vha 1755 drivers/scsi/qla2xxx/qla_attr.c rval = qla2x00_set_data_rate(vha, mode); vha 1766 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *vha = shost_priv(dev_to_shost(dev)); vha 1767 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 1771 drivers/scsi/qla2xxx/qla_attr.c rval = qla2x00_get_data_rate(vha); vha 1773 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x70db, vha 1786 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 1795 drivers/scsi/qla2xxx/qla_attr.c switch (vha->qlini_mode) { vha 1826 drivers/scsi/qla2xxx/qla_attr.c static int qla_set_ini_mode(scsi_qla_host_t *vha, int op) vha 1839 drivers/scsi/qla2xxx/qla_attr.c switch (vha->qlini_mode) { vha 1843 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha)) { vha 1844 drivers/scsi/qla2xxx/qla_attr.c if (NEED_EXCH_OFFLOAD(vha->u_ql2xexchoffld) != vha 1845 drivers/scsi/qla2xxx/qla_attr.c vha->hw->flags.exchoffld_enabled) vha 1847 drivers/scsi/qla2xxx/qla_attr.c if (((vha->ql2xexchoffld != vha 1848 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xexchoffld) && vha 1849 drivers/scsi/qla2xxx/qla_attr.c NEED_EXCH_OFFLOAD(vha->u_ql2xexchoffld)) || vha 1865 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha)) { vha 1866 drivers/scsi/qla2xxx/qla_attr.c if (NEED_EXCH_OFFLOAD(vha->u_ql2xexchoffld) != vha 1867 drivers/scsi/qla2xxx/qla_attr.c vha->hw->flags.exchoffld_enabled) vha 1869 drivers/scsi/qla2xxx/qla_attr.c if (((vha->ql2xexchoffld != vha 1870 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xexchoffld) && vha 1871 drivers/scsi/qla2xxx/qla_attr.c NEED_EXCH_OFFLOAD(vha->u_ql2xexchoffld)) || vha 1889 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha)) { vha 1898 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha)) vha 1911 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha)) { vha 1912 drivers/scsi/qla2xxx/qla_attr.c if (NEED_EXCH_OFFLOAD(vha->u_ql2xexchoffld) != vha 1913 drivers/scsi/qla2xxx/qla_attr.c vha->hw->flags.exchoffld_enabled) vha 1915 drivers/scsi/qla2xxx/qla_attr.c if (((vha->ql2xexchoffld != vha 1916 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xexchoffld) && vha 1917 drivers/scsi/qla2xxx/qla_attr.c NEED_EXCH_OFFLOAD(vha->u_ql2xexchoffld)) || vha 1933 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha)) { vha 1934 drivers/scsi/qla2xxx/qla_attr.c if (NEED_EXCH_OFFLOAD(vha->u_ql2xexchoffld) != vha 1935 drivers/scsi/qla2xxx/qla_attr.c vha->hw->flags.exchoffld_enabled) vha 1937 drivers/scsi/qla2xxx/qla_attr.c if (((vha->ql2xexchoffld != vha 1938 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xexchoffld) && vha 1939 drivers/scsi/qla2xxx/qla_attr.c NEED_EXCH_OFFLOAD(vha->u_ql2xexchoffld)) || vha 1949 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha)) { vha 1957 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha)) vha 1960 drivers/scsi/qla2xxx/qla_attr.c if (vha->hw->flags.fw_started) vha 1972 drivers/scsi/qla2xxx/qla_attr.c if (NEED_EXCH_OFFLOAD(vha->u_ql2xiniexchg) != vha 1973 drivers/scsi/qla2xxx/qla_attr.c vha->hw->flags.exchoffld_enabled) vha 1975 drivers/scsi/qla2xxx/qla_attr.c if (((vha->ql2xiniexchg != vha->u_ql2xiniexchg) && vha 1976 drivers/scsi/qla2xxx/qla_attr.c NEED_EXCH_OFFLOAD(vha->u_ql2xiniexchg)) || vha 1995 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha) || vha 1996 drivers/scsi/qla2xxx/qla_attr.c qla_dual_mode_enabled(vha)) { vha 1997 drivers/scsi/qla2xxx/qla_attr.c if (NEED_EXCH_OFFLOAD(vha->u_ql2xexchoffld + vha 1998 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xiniexchg) != vha 1999 drivers/scsi/qla2xxx/qla_attr.c vha->hw->flags.exchoffld_enabled) vha 2002 drivers/scsi/qla2xxx/qla_attr.c if ((((vha->ql2xexchoffld + vha 2003 drivers/scsi/qla2xxx/qla_attr.c vha->ql2xiniexchg) != vha 2004 drivers/scsi/qla2xxx/qla_attr.c (vha->u_ql2xiniexchg + vha 2005 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xexchoffld)) && vha 2006 drivers/scsi/qla2xxx/qla_attr.c NEED_EXCH_OFFLOAD(vha->u_ql2xiniexchg + vha 2007 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xexchoffld)) || eo_toggle) vha 2012 drivers/scsi/qla2xxx/qla_attr.c if (NEED_EXCH_OFFLOAD(vha->u_ql2xexchoffld + vha 2013 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xiniexchg) != vha 2014 drivers/scsi/qla2xxx/qla_attr.c vha->hw->flags.exchoffld_enabled) vha 2017 drivers/scsi/qla2xxx/qla_attr.c if ((((vha->ql2xexchoffld + vha->ql2xiniexchg) vha 2018 drivers/scsi/qla2xxx/qla_attr.c != (vha->u_ql2xiniexchg + vha 2019 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xexchoffld)) && vha 2020 drivers/scsi/qla2xxx/qla_attr.c NEED_EXCH_OFFLOAD(vha->u_ql2xiniexchg + vha 2021 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xexchoffld)) || eo_toggle) vha 2029 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha) || vha 2030 drivers/scsi/qla2xxx/qla_attr.c qla_dual_mode_enabled(vha)) { vha 2040 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha) || vha 2041 drivers/scsi/qla2xxx/qla_attr.c qla_dual_mode_enabled(vha)) { vha 2050 drivers/scsi/qla2xxx/qla_attr.c if (qla_tgt_mode_enabled(vha) || vha 2051 drivers/scsi/qla2xxx/qla_attr.c qla_dual_mode_enabled(vha)) { vha 2062 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0xffff, vha 2064 drivers/scsi/qla2xxx/qla_attr.c mode_to_str[vha->qlini_mode], mode_to_str[op], vha 2065 drivers/scsi/qla2xxx/qla_attr.c vha->ql2xexchoffld, vha->u_ql2xexchoffld, vha 2066 drivers/scsi/qla2xxx/qla_attr.c vha->ql2xiniexchg, vha->u_ql2xiniexchg); vha 2068 drivers/scsi/qla2xxx/qla_attr.c vha->qlini_mode = op; vha 2069 drivers/scsi/qla2xxx/qla_attr.c vha->ql2xexchoffld = vha->u_ql2xexchoffld; vha 2070 drivers/scsi/qla2xxx/qla_attr.c vha->ql2xiniexchg = vha->u_ql2xiniexchg; vha 2072 drivers/scsi/qla2xxx/qla_attr.c qlt_set_mode(vha); vha 2073 drivers/scsi/qla2xxx/qla_attr.c vha->flags.online = 1; vha 2074 drivers/scsi/qla2xxx/qla_attr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2078 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0xffff, vha 2080 drivers/scsi/qla2xxx/qla_attr.c mode_to_str[vha->qlini_mode], mode_to_str[op], vha 2081 drivers/scsi/qla2xxx/qla_attr.c vha->ql2xexchoffld, vha->u_ql2xexchoffld, vha 2082 drivers/scsi/qla2xxx/qla_attr.c vha->ql2xiniexchg, vha->u_ql2xiniexchg); vha 2083 drivers/scsi/qla2xxx/qla_attr.c vha->qlini_mode = op; vha 2084 drivers/scsi/qla2xxx/qla_attr.c vha->ql2xexchoffld = vha->u_ql2xexchoffld; vha 2085 drivers/scsi/qla2xxx/qla_attr.c vha->ql2xiniexchg = vha->u_ql2xiniexchg; vha 2089 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0xffff, vha 2095 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0xffff, vha 2097 drivers/scsi/qla2xxx/qla_attr.c vha->qlini_mode, op, vha 2098 drivers/scsi/qla2xxx/qla_attr.c vha->ql2xexchoffld, vha->u_ql2xexchoffld); vha 2109 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 2130 drivers/scsi/qla2xxx/qla_attr.c qla_set_ini_mode(vha, ini); vha 2138 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 2143 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xexchoffld, vha->ql2xexchoffld); vha 2147 drivers/scsi/qla2xxx/qla_attr.c vha->host_no); vha 2156 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 2167 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xexchoffld = val; vha 2175 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 2180 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xiniexchg, vha->ql2xiniexchg); vha 2184 drivers/scsi/qla2xxx/qla_attr.c vha->host_no); vha 2193 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 2204 drivers/scsi/qla2xxx/qla_attr.c vha->u_ql2xiniexchg = val; vha 2212 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 2213 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 2226 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 2227 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 2243 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 2245 drivers/scsi/qla2xxx/qla_attr.c return scnprintf(buf, PAGE_SIZE, "%u\n", vha->hw->port_no); vha 2379 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); vha 2381 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_id(shost) = vha->d_id.b.domain << 16 | vha 2382 drivers/scsi/qla2xxx/qla_attr.c vha->d_id.b.area << 8 | vha->d_id.b.al_pa; vha 2388 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); vha 2391 drivers/scsi/qla2xxx/qla_attr.c if (IS_QLAFX00(vha->hw)) { vha 2396 drivers/scsi/qla2xxx/qla_attr.c switch (vha->hw->link_data_rate) { vha 2432 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); vha 2435 drivers/scsi/qla2xxx/qla_attr.c if (vha->vp_idx) { vha 2439 drivers/scsi/qla2xxx/qla_attr.c switch (vha->hw->current_topology) { vha 2464 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(host); vha 2468 drivers/scsi/qla2xxx/qla_attr.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 2483 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(host); vha 2487 drivers/scsi/qla2xxx/qla_attr.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 2502 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(host); vha 2506 drivers/scsi/qla2xxx/qla_attr.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 2547 drivers/scsi/qla2xxx/qla_attr.c if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags)) vha 2550 drivers/scsi/qla2xxx/qla_attr.c if (unlikely(pci_channel_offline(fcport->vha->hw->pdev))) { vha 2551 drivers/scsi/qla2xxx/qla_attr.c qla2x00_abort_all_cmds(fcport->vha, DID_NO_CONNECT << 16); vha 2564 drivers/scsi/qla2xxx/qla_attr.c if (test_bit(UNLOADING, &fcport->vha->dpc_flags)) vha 2567 drivers/scsi/qla2xxx/qla_attr.c if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags)) vha 2570 drivers/scsi/qla2xxx/qla_attr.c if (unlikely(pci_channel_offline(fcport->vha->hw->pdev))) { vha 2571 drivers/scsi/qla2xxx/qla_attr.c qla2x00_abort_all_cmds(fcport->vha, DID_NO_CONNECT << 16); vha 2579 drivers/scsi/qla2xxx/qla_attr.c if (IS_FWI2_CAPABLE(fcport->vha->hw)) vha 2580 drivers/scsi/qla2xxx/qla_attr.c fcport->vha->hw->isp_ops->fabric_logout(fcport->vha, vha 2584 drivers/scsi/qla2xxx/qla_attr.c qla2x00_port_logout(fcport->vha, fcport); vha 2591 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); vha 2593 drivers/scsi/qla2xxx/qla_attr.c if (IS_QLAFX00(vha->hw)) vha 2596 drivers/scsi/qla2xxx/qla_attr.c qla2x00_loop_reset(vha); vha 2603 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); vha 2604 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 2609 drivers/scsi/qla2xxx/qla_attr.c struct fc_host_statistics *p = &vha->fc_host_stat; vha 2613 drivers/scsi/qla2xxx/qla_attr.c if (IS_QLAFX00(vha->hw)) vha 2616 drivers/scsi/qla2xxx/qla_attr.c if (test_bit(UNLOADING, &vha->dpc_flags)) vha 2622 drivers/scsi/qla2xxx/qla_attr.c if (qla2x00_chip_is_down(vha)) vha 2628 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x707d, vha 2660 drivers/scsi/qla2xxx/qla_attr.c p->rx_words = vha->qla_stats.input_bytes; vha 2661 drivers/scsi/qla2xxx/qla_attr.c p->tx_words = vha->qla_stats.output_bytes; vha 2663 drivers/scsi/qla2xxx/qla_attr.c p->fcp_control_requests = vha->qla_stats.control_requests; vha 2664 drivers/scsi/qla2xxx/qla_attr.c p->fcp_input_requests = vha->qla_stats.input_requests; vha 2665 drivers/scsi/qla2xxx/qla_attr.c p->fcp_output_requests = vha->qla_stats.output_requests; vha 2666 drivers/scsi/qla2xxx/qla_attr.c p->fcp_input_megabytes = vha->qla_stats.input_bytes >> 20; vha 2667 drivers/scsi/qla2xxx/qla_attr.c p->fcp_output_megabytes = vha->qla_stats.output_bytes >> 20; vha 2669 drivers/scsi/qla2xxx/qla_attr.c get_jiffies_64() - vha->qla_stats.jiffies_at_last_reset; vha 2682 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); vha 2683 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 2688 drivers/scsi/qla2xxx/qla_attr.c memset(&vha->qla_stats, 0, sizeof(vha->qla_stats)); vha 2689 drivers/scsi/qla2xxx/qla_attr.c memset(&vha->fc_host_stat, 0, sizeof(vha->fc_host_stat)); vha 2691 drivers/scsi/qla2xxx/qla_attr.c vha->qla_stats.jiffies_at_last_reset = get_jiffies_64(); vha 2697 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x70d7, vha 2713 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); vha 2715 drivers/scsi/qla2xxx/qla_attr.c qla2x00_get_sym_node_name(vha, fc_host_symbolic_name(shost), vha 2722 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); vha 2724 drivers/scsi/qla2xxx/qla_attr.c set_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags); vha 2730 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); vha 2736 drivers/scsi/qla2xxx/qla_attr.c if (vha->device_flags & SWITCH_FOUND) vha 2737 drivers/scsi/qla2xxx/qla_attr.c fabric_name = wwn_to_u64(vha->fabric_node_name); vha 2745 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); vha 2746 drivers/scsi/qla2xxx/qla_attr.c struct scsi_qla_host *base_vha = pci_get_drvdata(vha->hw->pdev); vha 2781 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = NULL; vha 2789 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x707e, vha 2794 drivers/scsi/qla2xxx/qla_attr.c vha = qla24xx_create_vhost(fc_vport); vha 2795 drivers/scsi/qla2xxx/qla_attr.c if (vha == NULL) { vha 2796 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x707f, "Vport create host failed.\n"); vha 2800 drivers/scsi/qla2xxx/qla_attr.c atomic_set(&vha->vp_state, VP_OFFLINE); vha 2803 drivers/scsi/qla2xxx/qla_attr.c atomic_set(&vha->vp_state, VP_FAILED); vha 2806 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x7080, vha 2807 drivers/scsi/qla2xxx/qla_attr.c "VP entry id %d assigned.\n", vha->vp_idx); vha 2810 drivers/scsi/qla2xxx/qla_attr.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 2811 drivers/scsi/qla2xxx/qla_attr.c vha->vp_err_state = VP_ERR_PORTDWN; vha 2812 drivers/scsi/qla2xxx/qla_attr.c vha->vp_prev_err_state = VP_ERR_UNKWN; vha 2817 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x7081, vha 2819 drivers/scsi/qla2xxx/qla_attr.c atomic_set(&vha->loop_state, LOOP_DEAD); vha 2828 drivers/scsi/qla2xxx/qla_attr.c vha->flags.difdix_supported = 1; vha 2829 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x7082, vha 2833 drivers/scsi/qla2xxx/qla_attr.c scsi_host_set_prot(vha->host, vha 2847 drivers/scsi/qla2xxx/qla_attr.c scsi_host_set_guard(vha->host, guard); vha 2849 drivers/scsi/qla2xxx/qla_attr.c vha->flags.difdix_supported = 0; vha 2852 drivers/scsi/qla2xxx/qla_attr.c if (scsi_add_host_with_dma(vha->host, &fc_vport->dev, vha 2854 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x7083, vha 2855 drivers/scsi/qla2xxx/qla_attr.c "scsi_add_host failure for VP[%d].\n", vha->vp_idx); vha 2860 drivers/scsi/qla2xxx/qla_attr.c fc_host_dev_loss_tmo(vha->host) = ha->port_down_retry_count; vha 2861 drivers/scsi/qla2xxx/qla_attr.c fc_host_node_name(vha->host) = wwn_to_u64(vha->node_name); vha 2862 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_name(vha->host) = wwn_to_u64(vha->port_name); vha 2863 drivers/scsi/qla2xxx/qla_attr.c fc_host_supported_classes(vha->host) = vha 2865 drivers/scsi/qla2xxx/qla_attr.c fc_host_supported_speeds(vha->host) = vha 2868 drivers/scsi/qla2xxx/qla_attr.c qlt_vport_create(vha, ha); vha 2876 drivers/scsi/qla2xxx/qla_attr.c if (memcmp(ha->npiv_info[cnt].port_name, vha->port_name, 8) == 0 vha 2877 drivers/scsi/qla2xxx/qla_attr.c && memcmp(ha->npiv_info[cnt].node_name, vha->node_name, vha 2885 drivers/scsi/qla2xxx/qla_attr.c qpair = qla2xxx_create_qpair(vha, qos, vha->vp_idx, true); vha 2887 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7084, vha 2889 drivers/scsi/qla2xxx/qla_attr.c vha->vp_idx); vha 2891 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_multiq, vha, 0xc001, vha 2893 drivers/scsi/qla2xxx/qla_attr.c qpair->id, qos, vha->vp_idx); vha 2894 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x7085, vha 2896 drivers/scsi/qla2xxx/qla_attr.c qpair->id, qos, vha->vp_idx); vha 2898 drivers/scsi/qla2xxx/qla_attr.c vha->qpair = qpair; vha 2903 drivers/scsi/qla2xxx/qla_attr.c vha->req = req; vha 2907 drivers/scsi/qla2xxx/qla_attr.c qla24xx_disable_vp(vha); vha 2908 drivers/scsi/qla2xxx/qla_attr.c qla24xx_deallocate_vp_id(vha); vha 2909 drivers/scsi/qla2xxx/qla_attr.c scsi_host_put(vha->host); vha 2916 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = fc_vport->dd_data; vha 2917 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 2918 drivers/scsi/qla2xxx/qla_attr.c uint16_t id = vha->vp_idx; vha 2920 drivers/scsi/qla2xxx/qla_attr.c set_bit(VPORT_DELETE, &vha->dpc_flags); vha 2922 drivers/scsi/qla2xxx/qla_attr.c while (test_bit(LOOP_RESYNC_ACTIVE, &vha->dpc_flags) || vha 2923 drivers/scsi/qla2xxx/qla_attr.c test_bit(FCPORT_UPDATE_NEEDED, &vha->dpc_flags)) vha 2927 drivers/scsi/qla2xxx/qla_attr.c qla24xx_disable_vp(vha); vha 2928 drivers/scsi/qla2xxx/qla_attr.c qla2x00_wait_for_sess_deletion(vha); vha 2930 drivers/scsi/qla2xxx/qla_attr.c qla_nvme_delete(vha); vha 2931 drivers/scsi/qla2xxx/qla_attr.c vha->flags.delete_progress = 1; vha 2933 drivers/scsi/qla2xxx/qla_attr.c qlt_remove_target(ha, vha); vha 2935 drivers/scsi/qla2xxx/qla_attr.c fc_remove_host(vha->host); vha 2937 drivers/scsi/qla2xxx/qla_attr.c scsi_remove_host(vha->host); vha 2940 drivers/scsi/qla2xxx/qla_attr.c qla24xx_deallocate_vp_id(vha); vha 2942 drivers/scsi/qla2xxx/qla_attr.c if (vha->timer_active) { vha 2943 drivers/scsi/qla2xxx/qla_attr.c qla2x00_vp_stop_timer(vha); vha 2944 drivers/scsi/qla2xxx/qla_attr.c ql_dbg(ql_dbg_user, vha, 0x7086, vha 2945 drivers/scsi/qla2xxx/qla_attr.c "Timer for the VP[%d] has stopped\n", vha->vp_idx); vha 2948 drivers/scsi/qla2xxx/qla_attr.c qla2x00_free_fcports(vha); vha 2952 drivers/scsi/qla2xxx/qla_attr.c clear_bit(vha->vp_idx, ha->vp_idx_map); vha 2955 drivers/scsi/qla2xxx/qla_attr.c dma_free_coherent(&ha->pdev->dev, vha->gnl.size, vha->gnl.l, vha 2956 drivers/scsi/qla2xxx/qla_attr.c vha->gnl.ldma); vha 2958 drivers/scsi/qla2xxx/qla_attr.c vha->gnl.l = NULL; vha 2960 drivers/scsi/qla2xxx/qla_attr.c vfree(vha->scan.l); vha 2962 drivers/scsi/qla2xxx/qla_attr.c if (vha->qpair && vha->qpair->vp_idx == vha->vp_idx) { vha 2963 drivers/scsi/qla2xxx/qla_attr.c if (qla2xxx_delete_qpair(vha, vha->qpair) != QLA_SUCCESS) vha 2964 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_warn, vha, 0x7087, vha 2968 drivers/scsi/qla2xxx/qla_attr.c ql_log(ql_log_info, vha, 0x7088, "VP[%d] deleted.\n", id); vha 2969 drivers/scsi/qla2xxx/qla_attr.c scsi_host_put(vha->host); vha 2976 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = fc_vport->dd_data; vha 2979 drivers/scsi/qla2xxx/qla_attr.c qla24xx_disable_vp(vha); vha 2981 drivers/scsi/qla2xxx/qla_attr.c qla24xx_enable_vp(vha); vha 3079 drivers/scsi/qla2xxx/qla_attr.c qla2x00_init_host_attr(scsi_qla_host_t *vha) vha 3081 drivers/scsi/qla2xxx/qla_attr.c struct qla_hw_data *ha = vha->hw; vha 3084 drivers/scsi/qla2xxx/qla_attr.c fc_host_dev_loss_tmo(vha->host) = ha->port_down_retry_count; vha 3085 drivers/scsi/qla2xxx/qla_attr.c fc_host_node_name(vha->host) = wwn_to_u64(vha->node_name); vha 3086 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_name(vha->host) = wwn_to_u64(vha->port_name); vha 3087 drivers/scsi/qla2xxx/qla_attr.c fc_host_supported_classes(vha->host) = ha->base_qpair->enable_class_2 ? vha 3089 drivers/scsi/qla2xxx/qla_attr.c fc_host_max_npiv_vports(vha->host) = ha->max_npiv_vports; vha 3090 drivers/scsi/qla2xxx/qla_attr.c fc_host_npiv_vports_inuse(vha->host) = ha->cur_vport_count; vha 3133 drivers/scsi/qla2xxx/qla_attr.c fc_host_supported_speeds(vha->host) = speeds; vha 28 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = sp->vha->hw; vha 62 drivers/scsi/qla2xxx/qla_bsg.c qla24xx_fcp_prio_cfg_valid(scsi_qla_host_t *vha, vha 78 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7051, vha 85 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7052, vha 102 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7053, vha 107 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7054, vha 121 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 122 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 146 drivers/scsi/qla2xxx/qla_bsg.c qla24xx_update_all_fcp_prio(vha); vha 161 drivers/scsi/qla2xxx/qla_bsg.c qla24xx_update_all_fcp_prio(vha); vha 199 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7050, vha 215 drivers/scsi/qla2xxx/qla_bsg.c if (!qla24xx_fcp_prio_cfg_valid(vha, vha 230 drivers/scsi/qla2xxx/qla_bsg.c qla24xx_update_all_fcp_prio(vha); vha 251 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha; vha 263 drivers/scsi/qla2xxx/qla_bsg.c vha = shost_priv(host); vha 264 drivers/scsi/qla2xxx/qla_bsg.c ha = vha->hw; vha 268 drivers/scsi/qla2xxx/qla_bsg.c vha = shost_priv(host); vha 269 drivers/scsi/qla2xxx/qla_bsg.c ha = vha->hw; vha 273 drivers/scsi/qla2xxx/qla_bsg.c if (!vha->flags.online) { vha 274 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7005, "Host not online.\n"); vha 281 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7001, vha 290 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7002, vha 304 drivers/scsi/qla2xxx/qla_bsg.c if (qla2x00_fabric_login(vha, fcport, &nextlid)) { vha 305 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7003, vha 317 drivers/scsi/qla2xxx/qla_bsg.c fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 324 drivers/scsi/qla2xxx/qla_bsg.c fcport->vha = vha; vha 357 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7008, vha 367 drivers/scsi/qla2xxx/qla_bsg.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 383 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x700a, vha 391 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x700e, vha 433 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 434 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 445 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x700f, vha 454 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7010, vha 462 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7011, vha 470 drivers/scsi/qla2xxx/qla_bsg.c if (!vha->flags.online) { vha 471 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7012, vha 485 drivers/scsi/qla2xxx/qla_bsg.c loop_id = vha->mgmt_svr_loop_id; vha 488 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7013, vha 499 drivers/scsi/qla2xxx/qla_bsg.c fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 501 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7014, vha 508 drivers/scsi/qla2xxx/qla_bsg.c fcport->vha = vha; vha 515 drivers/scsi/qla2xxx/qla_bsg.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 517 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7015, vha 530 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7016, vha 539 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7017, vha 560 drivers/scsi/qla2xxx/qla_bsg.c qla81xx_reset_loopback_mode(scsi_qla_host_t *vha, uint16_t *config, vha 566 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 577 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70bf, "new_config[0]=%02x\n", vha 584 drivers/scsi/qla2xxx/qla_bsg.c ret = qla81xx_set_port_config(vha, new_config); vha 586 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7025, vha 597 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7026, vha 604 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7027, vha 610 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70c5, vha 616 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70c6, vha 631 drivers/scsi/qla2xxx/qla_bsg.c qla81xx_set_loopback_mode(scsi_qla_host_t *vha, uint16_t *config, vha 637 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 646 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70be, vha 652 drivers/scsi/qla2xxx/qla_bsg.c ret = qla81xx_set_port_config(vha, new_config); vha 654 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7021, vha 675 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7022, vha 677 drivers/scsi/qla2xxx/qla_bsg.c ret = qla81xx_reset_loopback_mode(vha, new_config, 0, 0); vha 683 drivers/scsi/qla2xxx/qla_bsg.c ha->isp_ops->fw_dump(vha, 0); vha 684 drivers/scsi/qla2xxx/qla_bsg.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 689 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70c3, vha 694 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7023, vha 711 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 712 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 727 drivers/scsi/qla2xxx/qla_bsg.c if (!vha->flags.online) { vha 728 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7019, "Host is not online.\n"); vha 739 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x701a, vha 749 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x701b, vha 757 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x701c, vha 770 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x701d, vha 779 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7004, vha 797 drivers/scsi/qla2xxx/qla_bsg.c if (atomic_read(&vha->loop_state) == LOOP_READY && vha 803 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x701e, vha 806 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_echo_test(vha, &elreq, response); vha 812 drivers/scsi/qla2xxx/qla_bsg.c if (qla81xx_get_port_config(vha, config)) { vha 813 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x701f, vha 820 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70c4, vha 827 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70c0, vha 832 drivers/scsi/qla2xxx/qla_bsg.c rval = qla81xx_set_loopback_mode(vha, vha 835 drivers/scsi/qla2xxx/qla_bsg.c rval = qla81xx_reset_loopback_mode(vha, vha 838 drivers/scsi/qla2xxx/qla_bsg.c rval = qla81xx_set_loopback_mode(vha, config, vha 847 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7028, vha 851 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_loopback_test(vha, &elreq, response); vha 855 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7029, vha 857 drivers/scsi/qla2xxx/qla_bsg.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 858 drivers/scsi/qla2xxx/qla_bsg.c qla2xxx_wake_dpc(vha); vha 859 drivers/scsi/qla2xxx/qla_bsg.c qla2x00_wait_for_chip_reset(vha); vha 862 drivers/scsi/qla2xxx/qla_bsg.c if (qla81xx_restart_mpi_firmware(vha) != vha 864 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x702a, vha 879 drivers/scsi/qla2xxx/qla_bsg.c ret = qla81xx_reset_loopback_mode(vha, vha 887 drivers/scsi/qla2xxx/qla_bsg.c ha->isp_ops->fw_dump(vha, 0); vha 889 drivers/scsi/qla2xxx/qla_bsg.c &vha->dpc_flags); vha 896 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x702b, vha 899 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_loopback_test(vha, &elreq, response); vha 904 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x702c, vha 911 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x702d, vha 953 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 954 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 959 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x702f, "Not 84xx, exiting.\n"); vha 965 drivers/scsi/qla2xxx/qla_bsg.c rval = qla84xx_reset_chip(vha, flag == A84_ISSUE_RESET_DIAG_FW); vha 968 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7030, vha 973 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7031, vha 989 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 990 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1002 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7032, vha 1010 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7033, vha 1016 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7034, vha 1028 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7035, vha 1039 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7036, vha 1063 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_issue_iocb_timeout(vha, mn, mn_dma, 0, 120); vha 1066 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7037, vha 1071 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7038, vha 1099 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1100 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1111 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x703a, vha 1118 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x703c, vha 1133 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x703d, vha 1142 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x703e, vha 1155 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x703f, vha 1184 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7040, vha 1193 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7041, vha 1205 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7042, vha 1243 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_issue_iocb(vha, mn, mn_dma, 0); vha 1246 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7043, vha 1252 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7044, vha 1295 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1303 drivers/scsi/qla2xxx/qla_bsg.c if (!IS_IIDMA_CAPABLE(vha->hw)) { vha 1304 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_info, vha, 0x7046, "iiDMA not supported.\n"); vha 1310 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7048, vha 1315 drivers/scsi/qla2xxx/qla_bsg.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 1328 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7049, vha 1334 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x704a, vha 1340 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x704b, vha 1346 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_set_idma_speed(vha, fcport->loop_id, vha 1349 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_get_idma_speed(vha, fcport->loop_id, vha 1353 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x704c, vha 1379 drivers/scsi/qla2xxx/qla_bsg.c qla2x00_optrom_setup(struct bsg_job *bsg_job, scsi_qla_host_t *vha, vha 1385 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1392 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7055, vha 1398 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_info, vha, 0x7056, vha 1404 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7057, "is_update=%d.\n", is_update); vha 1416 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7058, vha 1437 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7059, vha 1453 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1454 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1461 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_optrom_setup(bsg_job, vha, 0); vha 1467 drivers/scsi/qla2xxx/qla_bsg.c ha->isp_ops->read_optrom(vha, ha->optrom_buffer, vha 1490 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1491 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1495 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_optrom_setup(bsg_job, vha, 1); vha 1508 drivers/scsi/qla2xxx/qla_bsg.c ha->isp_ops->write_optrom(vha, ha->optrom_buffer, vha 1526 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1527 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1549 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_write_sfp(vha, sfp_dma, sfp, vha 1579 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1580 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1596 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_read_sfp(vha, sfp_dma, sfp, vha 1630 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1631 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1648 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_write_sfp(vha, sfp_dma, sfp, vha 1677 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1678 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1695 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_write_sfp(vha, sfp_dma, sfp, vha 1723 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1724 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1740 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_read_sfp(vha, sfp_dma, sfp, vha 1773 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1774 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1786 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70a0, vha 1792 drivers/scsi/qla2xxx/qla_bsg.c if (test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) || vha 1793 drivers/scsi/qla2xxx/qla_bsg.c test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) || vha 1794 drivers/scsi/qla2xxx/qla_bsg.c test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { vha 1800 drivers/scsi/qla2xxx/qla_bsg.c if (!vha->flags.online) { vha 1801 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70a1, vha 1808 drivers/scsi/qla2xxx/qla_bsg.c if (vha->device_flags & DFLG_NO_CABLE) { vha 1809 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70a2, vha 1817 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70a3, vha 1825 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70a4, vha 1832 drivers/scsi/qla2xxx/qla_bsg.c if (vha->self_login_loop_id == 0) { vha 1834 drivers/scsi/qla2xxx/qla_bsg.c vha->bidir_fcport.vha = vha; vha 1835 drivers/scsi/qla2xxx/qla_bsg.c vha->bidir_fcport.d_id.b.al_pa = vha->d_id.b.al_pa; vha 1836 drivers/scsi/qla2xxx/qla_bsg.c vha->bidir_fcport.d_id.b.area = vha->d_id.b.area; vha 1837 drivers/scsi/qla2xxx/qla_bsg.c vha->bidir_fcport.d_id.b.domain = vha->d_id.b.domain; vha 1838 drivers/scsi/qla2xxx/qla_bsg.c vha->bidir_fcport.loop_id = vha->loop_id; vha 1840 drivers/scsi/qla2xxx/qla_bsg.c if (qla2x00_fabric_login(vha, &(vha->bidir_fcport), &nextlid)) { vha 1841 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70a7, vha 1843 drivers/scsi/qla2xxx/qla_bsg.c vha->bidir_fcport.d_id.b24); vha 1848 drivers/scsi/qla2xxx/qla_bsg.c vha->self_login_loop_id = nextlid - 1; vha 1854 drivers/scsi/qla2xxx/qla_bsg.c vha->bidir_fcport.loop_id = vha->self_login_loop_id; vha 1877 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70a9, vha 1892 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70aa, vha 1898 drivers/scsi/qla2xxx/qla_bsg.c sp = qla2x00_get_sp(vha, &(vha->bidir_fcport), GFP_KERNEL); vha 1900 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70ac, vha 1915 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_start_bidir(sp, vha, tot_dsds); vha 1951 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 1952 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 1965 drivers/scsi/qla2xxx/qla_bsg.c ql_dump_buffer(ql_dbg_user + ql_dbg_verbose , vha, 0x70cf, vha 1968 drivers/scsi/qla2xxx/qla_bsg.c if (!vha->flags.online) { vha 1969 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70d0, vha 1980 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70c7, vha 1992 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70c8, vha 1999 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70c9, vha 2009 drivers/scsi/qla2xxx/qla_bsg.c fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 2011 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70ca, vha 2018 drivers/scsi/qla2xxx/qla_bsg.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 2020 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70cb, vha 2027 drivers/scsi/qla2xxx/qla_bsg.c fcport->vha = vha; vha 2037 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70cc, vha 2043 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70cd, vha 2074 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 2085 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_write_serdes_word(vha, sr.addr, sr.val); vha 2089 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_read_serdes_word(vha, sr.addr, &sr.val); vha 2095 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x708c, vha 2116 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 2127 drivers/scsi/qla2xxx/qla_bsg.c rval = qla8044_write_serdes_word(vha, sr.addr, sr.val); vha 2131 drivers/scsi/qla2xxx/qla_bsg.c rval = qla8044_read_serdes_word(vha, sr.addr, &sr.val); vha 2137 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7020, vha 2158 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 2159 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 2190 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 2191 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 2236 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 2237 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 2248 drivers/scsi/qla2xxx/qla_bsg.c if (vha->flags.bbcr_enable) vha 2254 drivers/scsi/qla2xxx/qla_bsg.c rval = qla2x00_get_adapter_id(vha, &loop_id, &al_pa, vha 2263 drivers/scsi/qla2xxx/qla_bsg.c state = (vha->bbcr >> 12) & 0x1; vha 2270 drivers/scsi/qla2xxx/qla_bsg.c bbcr.negotiated_bbscn = (vha->bbcr >> 8) & 0xf; vha 2273 drivers/scsi/qla2xxx/qla_bsg.c bbcr.configured_bbscn = vha->bbcr & 0xf; vha 2296 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 2297 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 2305 drivers/scsi/qla2xxx/qla_bsg.c if (test_bit(UNLOADING, &vha->dpc_flags)) vha 2311 drivers/scsi/qla2xxx/qla_bsg.c if (qla2x00_reset_active(vha)) vha 2320 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70e2, vha 2328 drivers/scsi/qla2xxx/qla_bsg.c ql_dump_buffer(ql_dbg_user + ql_dbg_verbose, vha, 0x70e5, vha 2354 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(host); vha 2358 drivers/scsi/qla2xxx/qla_bsg.c if (!IS_QLA83XX(vha->hw) && !IS_QLA27XX(vha->hw) && vha 2359 drivers/scsi/qla2xxx/qla_bsg.c !IS_QLA28XX(vha->hw)) vha 2364 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x70db, vha 2373 drivers/scsi/qla2xxx/qla_bsg.c vha, dd->buf, sizeof(dd->buf), dd->options); vha 2396 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job)); vha 2398 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 2402 drivers/scsi/qla2xxx/qla_bsg.c qla27xx_get_active_image(vha, &active_regions); vha 2406 drivers/scsi/qla2xxx/qla_bsg.c qla27xx_get_active_image(vha, &active_regions); vha 2413 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x70e1, vha 2415 drivers/scsi/qla2xxx/qla_bsg.c __func__, vha->host_no, regions.global_image, vha 2521 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha; vha 2529 drivers/scsi/qla2xxx/qla_bsg.c vha = shost_priv(host); vha 2532 drivers/scsi/qla2xxx/qla_bsg.c vha = shost_priv(host); vha 2535 drivers/scsi/qla2xxx/qla_bsg.c if (qla2x00_chip_is_down(vha)) { vha 2536 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x709f, vha 2542 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x7000, vha 2560 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x705a, "Unsupported BSG request.\n"); vha 2570 drivers/scsi/qla2xxx/qla_bsg.c scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job)); vha 2571 drivers/scsi/qla2xxx/qla_bsg.c struct qla_hw_data *ha = vha->hw; vha 2594 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_warn, vha, 0x7089, vha 2599 drivers/scsi/qla2xxx/qla_bsg.c ql_dbg(ql_dbg_user, vha, 0x708a, vha 2611 drivers/scsi/qla2xxx/qla_bsg.c ql_log(ql_log_info, vha, 0x708b, "SRB not found to abort.\n"); vha 699 drivers/scsi/qla2xxx/qla_dbg.c qla2xxx_dump_post_process(scsi_qla_host_t *vha, int rval) vha 701 drivers/scsi/qla2xxx/qla_dbg.c struct qla_hw_data *ha = vha->hw; vha 704 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd000, vha 709 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_info, vha, 0xd001, vha 711 drivers/scsi/qla2xxx/qla_dbg.c vha->host_no, ha->fw_dump, ha->fw_dump_cap_flags); vha 713 drivers/scsi/qla2xxx/qla_dbg.c qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP); vha 723 drivers/scsi/qla2xxx/qla_dbg.c qla2300_fw_dump(scsi_qla_host_t *vha, int hardware_locked) vha 727 drivers/scsi/qla2xxx/qla_dbg.c struct qla_hw_data *ha = vha->hw; vha 743 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd002, vha 749 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd003, vha 893 drivers/scsi/qla2xxx/qla_dbg.c qla2100_fw_dump(scsi_qla_host_t *vha, int hardware_locked) vha 899 drivers/scsi/qla2xxx/qla_dbg.c struct qla_hw_data *ha = vha->hw; vha 916 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd004, vha 922 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd005, vha 1092 drivers/scsi/qla2xxx/qla_dbg.c qla24xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) vha 1096 drivers/scsi/qla2xxx/qla_dbg.c struct qla_hw_data *ha = vha->hw; vha 1120 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd006, vha 1126 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd007, vha 1351 drivers/scsi/qla2xxx/qla_dbg.c qla25xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) vha 1355 drivers/scsi/qla2xxx/qla_dbg.c struct qla_hw_data *ha = vha->hw; vha 1375 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd008, vha 1381 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd009, vha 1677 drivers/scsi/qla2xxx/qla_dbg.c qla81xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) vha 1681 drivers/scsi/qla2xxx/qla_dbg.c struct qla_hw_data *ha = vha->hw; vha 1701 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd00a, vha 1707 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd00b, vha 2005 drivers/scsi/qla2xxx/qla_dbg.c qla83xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) vha 2009 drivers/scsi/qla2xxx/qla_dbg.c struct qla_hw_data *ha = vha->hw; vha 2029 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd00c, vha 2035 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd00d, vha 2452 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd00e, vha 2456 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd00f, "try a bigger hammer!!!\n"); vha 2477 drivers/scsi/qla2xxx/qla_dbg.c ql_log(ql_log_warn, vha, 0xd010, vha 2536 drivers/scsi/qla2xxx/qla_dbg.c ql_dbg(uint level, scsi_qla_host_t *vha, uint id, const char *fmt, ...) vha 2549 drivers/scsi/qla2xxx/qla_dbg.c if (vha != NULL) { vha 2550 drivers/scsi/qla2xxx/qla_dbg.c const struct pci_dev *pdev = vha->hw->pdev; vha 2554 drivers/scsi/qla2xxx/qla_dbg.c vha->host_no, &vaf); vha 2615 drivers/scsi/qla2xxx/qla_dbg.c ql_log(uint level, scsi_qla_host_t *vha, uint id, const char *fmt, ...) vha 2624 drivers/scsi/qla2xxx/qla_dbg.c if (vha != NULL) { vha 2625 drivers/scsi/qla2xxx/qla_dbg.c const struct pci_dev *pdev = vha->hw->pdev; vha 2628 drivers/scsi/qla2xxx/qla_dbg.c QL_MSGHDR, dev_name(&(pdev->dev)), id, vha->host_no); vha 2713 drivers/scsi/qla2xxx/qla_dbg.c ql_dump_regs(uint level, scsi_qla_host_t *vha, uint id) vha 2716 drivers/scsi/qla2xxx/qla_dbg.c struct qla_hw_data *ha = vha->hw; vha 2732 drivers/scsi/qla2xxx/qla_dbg.c ql_dbg(level, vha, id, "Mailbox registers:\n"); vha 2734 drivers/scsi/qla2xxx/qla_dbg.c ql_dbg(level, vha, id, vha 2740 drivers/scsi/qla2xxx/qla_dbg.c ql_dump_buffer(uint level, scsi_qla_host_t *vha, uint id, const void *buf, vha 2748 drivers/scsi/qla2xxx/qla_dbg.c ql_dbg(level, vha, id, vha 2750 drivers/scsi/qla2xxx/qla_dbg.c ql_dbg(level, vha, id, vha 2753 drivers/scsi/qla2xxx/qla_dbg.c ql_dbg(level, vha, id, "%04x: ", cnt); vha 324 drivers/scsi/qla2xxx/qla_dbg.h ql_dbg(uint, scsi_qla_host_t *vha, uint, const char *fmt, ...); vha 332 drivers/scsi/qla2xxx/qla_dbg.h ql_log(uint, scsi_qla_host_t *vha, uint, const char *fmt, ...); vha 598 drivers/scsi/qla2xxx/qla_def.h struct scsi_qla_host *vha; vha 914 drivers/scsi/qla2xxx/qla_def.h #define ISP_ATIO_Q_IN(vha) (vha->hw->tgt.atio_q_in) vha 915 drivers/scsi/qla2xxx/qla_def.h #define ISP_ATIO_Q_OUT(vha) (vha->hw->tgt.atio_q_out) vha 2382 drivers/scsi/qla2xxx/qla_def.h struct scsi_qla_host *vha; vha 3394 drivers/scsi/qla2xxx/qla_def.h struct scsi_qla_host *vha; vha 3500 drivers/scsi/qla2xxx/qla_def.h struct scsi_qla_host *vha; vha 4552 drivers/scsi/qla2xxx/qla_def.h scsi_qla_host_t *vha; vha 18 drivers/scsi/qla2xxx/qla_dfs.c scsi_qla_host_t *vha = s->private; vha 19 drivers/scsi/qla2xxx/qla_dfs.c struct qla_hw_data *ha = vha->hw; vha 22 drivers/scsi/qla2xxx/qla_dfs.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 24 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "%s\n", vha->host_str); vha 29 drivers/scsi/qla2xxx/qla_dfs.c list_for_each_entry(sess, &vha->vp_fcports, list) vha 43 drivers/scsi/qla2xxx/qla_dfs.c scsi_qla_host_t *vha = inode->i_private; vha 45 drivers/scsi/qla2xxx/qla_dfs.c return single_open(file, qla2x00_dfs_tgt_sess_show, vha); vha 58 drivers/scsi/qla2xxx/qla_dfs.c scsi_qla_host_t *vha = s->private; vha 59 drivers/scsi/qla2xxx/qla_dfs.c struct qla_hw_data *ha = vha->hw; vha 65 drivers/scsi/qla2xxx/qla_dfs.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 67 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "%s\n", vha->host_str); vha 73 drivers/scsi/qla2xxx/qla_dfs.c ql_dbg(ql_dbg_user, vha, 0x7018, vha 79 drivers/scsi/qla2xxx/qla_dfs.c rc = qla24xx_gidlist_wait(vha, gid_list, gid_list_dma, vha 94 drivers/scsi/qla2xxx/qla_dfs.c rc = qla24xx_gpdb_wait(vha, &fc_port, 0); vha 112 drivers/scsi/qla2xxx/qla_dfs.c scsi_qla_host_t *vha = inode->i_private; vha 114 drivers/scsi/qla2xxx/qla_dfs.c return single_open(file, qla2x00_dfs_tgt_port_database_show, vha); vha 127 drivers/scsi/qla2xxx/qla_dfs.c struct scsi_qla_host *vha = s->private; vha 131 drivers/scsi/qla2xxx/qla_dfs.c rc = qla24xx_res_count_wait(vha, mb, SIZEOF_IOCB_MB_REG); vha 161 drivers/scsi/qla2xxx/qla_dfs.c struct scsi_qla_host *vha = inode->i_private; vha 163 drivers/scsi/qla2xxx/qla_dfs.c return single_open(file, qla_dfs_fw_resource_cnt_show, vha); vha 176 drivers/scsi/qla2xxx/qla_dfs.c struct scsi_qla_host *vha = s->private; vha 177 drivers/scsi/qla2xxx/qla_dfs.c struct qla_qpair *qpair = vha->hw->base_qpair; vha 193 drivers/scsi/qla2xxx/qla_dfs.c for (i = 0; i < vha->hw->max_qpairs; i++) { vha 194 drivers/scsi/qla2xxx/qla_dfs.c qpair = vha->hw->queue_pair_map[i]; vha 232 drivers/scsi/qla2xxx/qla_dfs.c vha->qla_stats.qla_dif_stats.dif_input_bytes); vha 234 drivers/scsi/qla2xxx/qla_dfs.c vha->qla_stats.qla_dif_stats.dif_output_bytes); vha 236 drivers/scsi/qla2xxx/qla_dfs.c vha->qla_stats.qla_dif_stats.dif_input_requests); vha 238 drivers/scsi/qla2xxx/qla_dfs.c vha->qla_stats.qla_dif_stats.dif_output_requests); vha 240 drivers/scsi/qla2xxx/qla_dfs.c vha->qla_stats.qla_dif_stats.dif_guard_err); vha 242 drivers/scsi/qla2xxx/qla_dfs.c vha->qla_stats.qla_dif_stats.dif_ref_tag_err); vha 244 drivers/scsi/qla2xxx/qla_dfs.c vha->qla_stats.qla_dif_stats.dif_app_tag_err); vha 251 drivers/scsi/qla2xxx/qla_dfs.c struct scsi_qla_host *vha = inode->i_private; vha 253 drivers/scsi/qla2xxx/qla_dfs.c return single_open(file, qla_dfs_tgt_counters_show, vha); vha 266 drivers/scsi/qla2xxx/qla_dfs.c scsi_qla_host_t *vha = s->private; vha 270 drivers/scsi/qla2xxx/qla_dfs.c struct qla_hw_data *ha = vha->hw; vha 303 drivers/scsi/qla2xxx/qla_dfs.c scsi_qla_host_t *vha = inode->i_private; vha 304 drivers/scsi/qla2xxx/qla_dfs.c struct qla_hw_data *ha = vha->hw; vha 313 drivers/scsi/qla2xxx/qla_dfs.c rval = qla2x00_disable_fce_trace(vha, &ha->fce_wr, &ha->fce_rd); vha 315 drivers/scsi/qla2xxx/qla_dfs.c ql_dbg(ql_dbg_user, vha, 0x705c, vha 322 drivers/scsi/qla2xxx/qla_dfs.c return single_open(file, qla2x00_dfs_fce_show, vha); vha 328 drivers/scsi/qla2xxx/qla_dfs.c scsi_qla_host_t *vha = inode->i_private; vha 329 drivers/scsi/qla2xxx/qla_dfs.c struct qla_hw_data *ha = vha->hw; vha 340 drivers/scsi/qla2xxx/qla_dfs.c rval = qla2x00_enable_fce_trace(vha, ha->fce_dma, ha->fce_bufs, vha 343 drivers/scsi/qla2xxx/qla_dfs.c ql_dbg(ql_dbg_user, vha, 0x700d, vha 363 drivers/scsi/qla2xxx/qla_dfs.c struct scsi_qla_host *vha = s->private; vha 364 drivers/scsi/qla2xxx/qla_dfs.c struct qla_hw_data *ha = vha->hw; vha 373 drivers/scsi/qla2xxx/qla_dfs.c struct scsi_qla_host *vha = inode->i_private; vha 375 drivers/scsi/qla2xxx/qla_dfs.c return single_open(file, qla_dfs_naqp_show, vha); vha 383 drivers/scsi/qla2xxx/qla_dfs.c struct scsi_qla_host *vha = s->private; vha 384 drivers/scsi/qla2xxx/qla_dfs.c struct qla_hw_data *ha = vha->hw; vha 391 drivers/scsi/qla2xxx/qla_dfs.c vha->host_no); vha 395 drivers/scsi/qla2xxx/qla_dfs.c if (!vha->flags.qpairs_available) { vha 397 drivers/scsi/qla2xxx/qla_dfs.c vha->host_no); vha 403 drivers/scsi/qla2xxx/qla_dfs.c vha->host_no); vha 409 drivers/scsi/qla2xxx/qla_dfs.c if (num_act_qp >= vha->hw->max_qpairs) { vha 411 drivers/scsi/qla2xxx/qla_dfs.c num_act_qp, vha->hw->max_qpairs); vha 418 drivers/scsi/qla2xxx/qla_dfs.c qlt_clr_qp_table(vha); vha 436 drivers/scsi/qla2xxx/qla_dfs.c qla2x00_dfs_setup(scsi_qla_host_t *vha) vha 438 drivers/scsi/qla2xxx/qla_dfs.c struct qla_hw_data *ha = vha->hw; vha 457 drivers/scsi/qla2xxx/qla_dfs.c ha->dfs_dir = debugfs_create_dir(vha->host_str, qla2x00_dfs_root); vha 463 drivers/scsi/qla2xxx/qla_dfs.c S_IRUSR, ha->dfs_dir, vha, &dfs_fw_resource_cnt_ops); vha 466 drivers/scsi/qla2xxx/qla_dfs.c ha->dfs_dir, vha, &dfs_tgt_counters_ops); vha 469 drivers/scsi/qla2xxx/qla_dfs.c S_IRUSR, ha->dfs_dir, vha, &dfs_tgt_port_database_ops); vha 471 drivers/scsi/qla2xxx/qla_dfs.c ha->dfs_fce = debugfs_create_file("fce", S_IRUSR, ha->dfs_dir, vha, vha 475 drivers/scsi/qla2xxx/qla_dfs.c S_IRUSR, ha->dfs_dir, vha, &dfs_tgt_sess_ops); vha 479 drivers/scsi/qla2xxx/qla_dfs.c 0400, ha->dfs_dir, vha, &dfs_naqp_ops); vha 485 drivers/scsi/qla2xxx/qla_dfs.c qla2x00_dfs_remove(scsi_qla_host_t *vha) vha 487 drivers/scsi/qla2xxx/qla_dfs.c struct qla_hw_data *ha = vha->hw; vha 48 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2x00_els_dcmd2_free(scsi_qla_host_t *vha, vha 80 drivers/scsi/qla2xxx/qla_gbl.h int qla2x00_post_work(struct scsi_qla_host *vha, struct qla_work_evt *e); vha 101 drivers/scsi/qla2xxx/qla_gbl.h void qla2x00_handle_rscn(scsi_qla_host_t *vha, struct event_arg *ea); vha 102 drivers/scsi/qla2xxx/qla_gbl.h void qla24xx_handle_plogi_done_event(struct scsi_qla_host *vha, vha 104 drivers/scsi/qla2xxx/qla_gbl.h void qla24xx_handle_relogin_event(scsi_qla_host_t *vha, vha 113 drivers/scsi/qla2xxx/qla_gbl.h int qla24xx_detect_sfp(scsi_qla_host_t *vha); vha 127 drivers/scsi/qla2xxx/qla_gbl.h int qla_post_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport); vha 128 drivers/scsi/qla2xxx/qla_gbl.h void qla_do_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport); vha 214 drivers/scsi/qla2xxx/qla_gbl.h extern int qla83xx_set_drv_presence(scsi_qla_host_t *vha); vha 215 drivers/scsi/qla2xxx/qla_gbl.h extern int __qla83xx_set_drv_presence(scsi_qla_host_t *vha); vha 216 drivers/scsi/qla2xxx/qla_gbl.h extern int qla83xx_clear_drv_presence(scsi_qla_host_t *vha); vha 217 drivers/scsi/qla2xxx/qla_gbl.h extern int __qla83xx_clear_drv_presence(scsi_qla_host_t *vha); vha 229 drivers/scsi/qla2xxx/qla_gbl.h int qla24xx_post_relogin_work(struct scsi_qla_host *vha); vha 610 drivers/scsi/qla2xxx/qla_gbl.h extern void qla8044_watchdog(struct scsi_qla_host *vha); vha 675 drivers/scsi/qla2xxx/qla_gbl.h void qla24xx_handle_gffid_event(scsi_qla_host_t *vha, struct event_arg *ea); vha 676 drivers/scsi/qla2xxx/qla_gbl.h int qla24xx_async_gffid(scsi_qla_host_t *vha, fc_port_t *fcport); vha 771 drivers/scsi/qla2xxx/qla_gbl.h extern int qlafx00_loop_reset(scsi_qla_host_t *vha); vha 869 drivers/scsi/qla2xxx/qla_gbl.h extern int qla82xx_validate_template_chksum(scsi_qla_host_t *vha); vha 878 drivers/scsi/qla2xxx/qla_gbl.h extern int qla8044_rd_direct(struct scsi_qla_host *vha, const uint32_t crb_reg); vha 879 drivers/scsi/qla2xxx/qla_gbl.h extern void qla8044_wr_direct(struct scsi_qla_host *vha, vha 881 drivers/scsi/qla2xxx/qla_gbl.h extern int qla8044_device_state_handler(struct scsi_qla_host *vha); vha 882 drivers/scsi/qla2xxx/qla_gbl.h extern void qla8044_clear_qsnt_ready(struct scsi_qla_host *vha); vha 884 drivers/scsi/qla2xxx/qla_gbl.h void qla8044_get_minidump(struct scsi_qla_host *vha); vha 885 drivers/scsi/qla2xxx/qla_gbl.h int qla8044_collect_md_data(struct scsi_qla_host *vha); vha 895 drivers/scsi/qla2xxx/qla_gbl.h extern int qla_set_exlogin_mem_cfg(scsi_qla_host_t *vha, dma_addr_t phys_addr); vha 914 drivers/scsi/qla2xxx/qla_gbl.h void qlt_clr_qp_table(struct scsi_qla_host *vha); vha 916 drivers/scsi/qla2xxx/qla_gbl.h int qla2x00_set_data_rate(scsi_qla_host_t *vha, uint16_t mode); vha 30 drivers/scsi/qla2xxx/qla_gs.c qla2x00_prep_ms_iocb(scsi_qla_host_t *vha, struct ct_arg *arg) vha 32 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 54 drivers/scsi/qla2xxx/qla_gs.c vha->qla_stats.control_requests++; vha 67 drivers/scsi/qla2xxx/qla_gs.c qla24xx_prep_ms_iocb(scsi_qla_host_t *vha, struct ct_arg *arg) vha 69 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 89 drivers/scsi/qla2xxx/qla_gs.c ct_pkt->vp_index = vha->vp_idx; vha 91 drivers/scsi/qla2xxx/qla_gs.c vha->qla_stats.control_requests++; vha 119 drivers/scsi/qla2xxx/qla_gs.c qla2x00_chk_ms_status(scsi_qla_host_t *vha, ms_iocb_entry_t *ms_pkt, vha 124 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 129 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2031, vha 131 drivers/scsi/qla2xxx/qla_gs.c routine, ms_pkt->entry_status, vha->d_id.b.domain, vha 132 drivers/scsi/qla2xxx/qla_gs.c vha->d_id.b.area, vha->d_id.b.al_pa); vha 145 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc + ql_dbg_buffer, vha, 0x2077, vha 147 drivers/scsi/qla2xxx/qla_gs.c routine, vha->d_id.b.domain, vha 148 drivers/scsi/qla2xxx/qla_gs.c vha->d_id.b.area, vha->d_id.b.al_pa, vha 150 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, vha 168 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_async, vha, 0x502b, vha 172 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 173 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 180 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2033, vha 183 drivers/scsi/qla2xxx/qla_gs.c vha->d_id.b.domain, vha->d_id.b.area, vha 184 drivers/scsi/qla2xxx/qla_gs.c vha->d_id.b.al_pa); vha 199 drivers/scsi/qla2xxx/qla_gs.c qla2x00_ga_nxt(scsi_qla_host_t *vha, fc_port_t *fcport) vha 206 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 210 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_sns_ga_nxt(vha, fcport); vha 221 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); vha 232 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 236 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2062, vha 238 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "GA_NXT") != vha 257 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2063, vha 269 drivers/scsi/qla2xxx/qla_gs.c qla2x00_gid_pt_rsp_size(scsi_qla_host_t *vha) vha 271 drivers/scsi/qla2xxx/qla_gs.c return vha->hw->max_fibre_devices * 4 + 16; vha 284 drivers/scsi/qla2xxx/qla_gs.c qla2x00_gid_pt(scsi_qla_host_t *vha, sw_info_t *list) vha 294 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 299 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_sns_gid_pt(vha, list); vha 302 drivers/scsi/qla2xxx/qla_gs.c gid_pt_rsp_size = qla2x00_gid_pt_rsp_size(vha); vha 313 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); vha 323 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 327 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2055, vha 329 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "GID_PT") != vha 368 drivers/scsi/qla2xxx/qla_gs.c qla2x00_gpn_id(scsi_qla_host_t *vha, sw_info_t *list) vha 376 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 380 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_sns_gpn_id(vha, list); vha 392 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); vha 403 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 407 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2056, vha 410 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, vha 436 drivers/scsi/qla2xxx/qla_gs.c qla2x00_gnn_id(scsi_qla_host_t *vha, sw_info_t *list) vha 440 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 447 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_sns_gnn_id(vha, list); vha 459 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); vha 470 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 474 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2057, vha 477 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, vha 486 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2058, vha 504 drivers/scsi/qla2xxx/qla_gs.c struct scsi_qla_host *vha = sp->vha; vha 510 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x204f, vha 514 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x204f, vha 523 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x204f, vha 527 drivers/scsi/qla2xxx/qla_gs.c e = qla2x00_alloc_work(vha, QLA_EVT_SP_RETRY); vha 533 drivers/scsi/qla2xxx/qla_gs.c qla2x00_post_work(vha, e); vha 538 drivers/scsi/qla2xxx/qla_gs.c e = qla2x00_alloc_work(vha, QLA_EVT_UNMAP); vha 543 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 551 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 564 drivers/scsi/qla2xxx/qla_gs.c qla2x00_post_work(vha, e); vha 574 drivers/scsi/qla2xxx/qla_gs.c qla2x00_rft_id(scsi_qla_host_t *vha) vha 576 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 579 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_sns_rft_id(vha); vha 581 drivers/scsi/qla2xxx/qla_gs.c return qla_async_rftid(vha, &vha->d_id); vha 584 drivers/scsi/qla2xxx/qla_gs.c static int qla_async_rftid(scsi_qla_host_t *vha, port_id_t *d_id) vha 591 drivers/scsi/qla2xxx/qla_gs.c if (!vha->flags.online) vha 594 drivers/scsi/qla2xxx/qla_gs.c sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL); vha 600 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 602 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev, vha 607 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xd041, vha 613 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev, vha 618 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xd042, vha 631 drivers/scsi/qla2xxx/qla_gs.c ct_req->req.rft_id.port_id = port_id_to_be_id(vha->d_id); vha 634 drivers/scsi/qla2xxx/qla_gs.c if (vha->flags.nvme_enabled) vha 643 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 649 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2043, vha 668 drivers/scsi/qla2xxx/qla_gs.c qla2x00_rff_id(scsi_qla_host_t *vha, u8 type) vha 670 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 673 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2046, vha 678 drivers/scsi/qla2xxx/qla_gs.c return qla_async_rffid(vha, &vha->d_id, qlt_rff_id(vha), vha 682 drivers/scsi/qla2xxx/qla_gs.c static int qla_async_rffid(scsi_qla_host_t *vha, port_id_t *d_id, vha 690 drivers/scsi/qla2xxx/qla_gs.c sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL); vha 696 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 698 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev, vha 703 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xd041, vha 709 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev, vha 714 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xd042, vha 737 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 743 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2047, vha 763 drivers/scsi/qla2xxx/qla_gs.c qla2x00_rnn_id(scsi_qla_host_t *vha) vha 765 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 768 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_sns_rnn_id(vha); vha 770 drivers/scsi/qla2xxx/qla_gs.c return qla_async_rnnid(vha, &vha->d_id, vha->node_name); vha 773 drivers/scsi/qla2xxx/qla_gs.c static int qla_async_rnnid(scsi_qla_host_t *vha, port_id_t *d_id, vha 781 drivers/scsi/qla2xxx/qla_gs.c sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL); vha 787 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 789 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev, vha 794 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xd041, vha 800 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev, vha 805 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xd042, vha 818 drivers/scsi/qla2xxx/qla_gs.c ct_req->req.rnn_id.port_id = port_id_to_be_id(vha->d_id); vha 819 drivers/scsi/qla2xxx/qla_gs.c memcpy(ct_req->req.rnn_id.node_name, vha->node_name, WWN_SIZE); vha 828 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 834 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x204d, vha 848 drivers/scsi/qla2xxx/qla_gs.c qla2x00_get_sym_node_name(scsi_qla_host_t *vha, uint8_t *snn, size_t size) vha 850 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 869 drivers/scsi/qla2xxx/qla_gs.c qla2x00_rsnn_nn(scsi_qla_host_t *vha) vha 871 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 874 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2050, vha 879 drivers/scsi/qla2xxx/qla_gs.c return qla_async_rsnn_nn(vha); vha 882 drivers/scsi/qla2xxx/qla_gs.c static int qla_async_rsnn_nn(scsi_qla_host_t *vha) vha 889 drivers/scsi/qla2xxx/qla_gs.c sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL); vha 895 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 897 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev, vha 902 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xd041, vha 908 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev, vha 913 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xd042, vha 926 drivers/scsi/qla2xxx/qla_gs.c memcpy(ct_req->req.rsnn_nn.node_name, vha->node_name, WWN_SIZE); vha 929 drivers/scsi/qla2xxx/qla_gs.c qla2x00_get_sym_node_name(vha, ct_req->req.rsnn_nn.sym_node_name, vha 942 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 948 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2043, vha 971 drivers/scsi/qla2xxx/qla_gs.c qla2x00_prep_sns_cmd(scsi_qla_host_t *vha, uint16_t cmd, uint16_t scmd_len, vha 976 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 988 drivers/scsi/qla2xxx/qla_gs.c vha->qla_stats.control_requests++; vha 1003 drivers/scsi/qla2xxx/qla_gs.c qla2x00_sns_ga_nxt(scsi_qla_host_t *vha, fc_port_t *fcport) vha 1006 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1011 drivers/scsi/qla2xxx/qla_gs.c sns_cmd = qla2x00_prep_sns_cmd(vha, GA_NXT_CMD, GA_NXT_SNS_SCMD_LEN, vha 1020 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_send_sns(vha, ha->sns_cmd_dma, GA_NXT_SNS_CMD_SIZE / 2, vha 1024 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x205f, vha 1028 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc + ql_dbg_buffer, vha, 0x2084, vha 1030 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x2074, vha 1046 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2061, vha 1069 drivers/scsi/qla2xxx/qla_gs.c qla2x00_sns_gid_pt(scsi_qla_host_t *vha, sw_info_t *list) vha 1072 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1078 drivers/scsi/qla2xxx/qla_gs.c gid_pt_sns_data_size = qla2x00_gid_pt_rsp_size(vha); vha 1082 drivers/scsi/qla2xxx/qla_gs.c sns_cmd = qla2x00_prep_sns_cmd(vha, GID_PT_CMD, GID_PT_SNS_SCMD_LEN, vha 1089 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_send_sns(vha, ha->sns_cmd_dma, GID_PT_SNS_CMD_SIZE / 2, vha 1093 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x206d, vha 1097 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x202f, vha 1099 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x2081, vha 1140 drivers/scsi/qla2xxx/qla_gs.c qla2x00_sns_gpn_id(scsi_qla_host_t *vha, sw_info_t *list) vha 1143 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1150 drivers/scsi/qla2xxx/qla_gs.c sns_cmd = qla2x00_prep_sns_cmd(vha, GPN_ID_CMD, vha 1159 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_send_sns(vha, ha->sns_cmd_dma, vha 1163 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2032, vha 1167 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc + ql_dbg_buffer, vha, 0x207e, vha 1169 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x207f, vha 1196 drivers/scsi/qla2xxx/qla_gs.c qla2x00_sns_gnn_id(scsi_qla_host_t *vha, sw_info_t *list) vha 1199 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1206 drivers/scsi/qla2xxx/qla_gs.c sns_cmd = qla2x00_prep_sns_cmd(vha, GNN_ID_CMD, vha 1215 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_send_sns(vha, ha->sns_cmd_dma, vha 1219 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x203f, vha 1223 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc + ql_dbg_buffer, vha, 0x2082, vha 1225 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x207a, vha 1233 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x206e, vha 1258 drivers/scsi/qla2xxx/qla_gs.c qla2x00_sns_rft_id(scsi_qla_host_t *vha) vha 1261 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1266 drivers/scsi/qla2xxx/qla_gs.c sns_cmd = qla2x00_prep_sns_cmd(vha, RFT_ID_CMD, RFT_ID_SNS_SCMD_LEN, vha 1270 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[0] = vha->d_id.b.al_pa; vha 1271 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[1] = vha->d_id.b.area; vha 1272 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[2] = vha->d_id.b.domain; vha 1277 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_send_sns(vha, ha->sns_cmd_dma, RFT_ID_SNS_CMD_SIZE / 2, vha 1281 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2060, vha 1285 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc + ql_dbg_buffer, vha, 0x2083, vha 1287 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x2080, vha 1291 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2073, vha 1307 drivers/scsi/qla2xxx/qla_gs.c qla2x00_sns_rnn_id(scsi_qla_host_t *vha) vha 1310 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1315 drivers/scsi/qla2xxx/qla_gs.c sns_cmd = qla2x00_prep_sns_cmd(vha, RNN_ID_CMD, RNN_ID_SNS_SCMD_LEN, vha 1319 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[0] = vha->d_id.b.al_pa; vha 1320 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[1] = vha->d_id.b.area; vha 1321 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[2] = vha->d_id.b.domain; vha 1323 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[4] = vha->node_name[7]; vha 1324 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[5] = vha->node_name[6]; vha 1325 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[6] = vha->node_name[5]; vha 1326 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[7] = vha->node_name[4]; vha 1327 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[8] = vha->node_name[3]; vha 1328 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[9] = vha->node_name[2]; vha 1329 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[10] = vha->node_name[1]; vha 1330 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[11] = vha->node_name[0]; vha 1333 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_send_sns(vha, ha->sns_cmd_dma, RNN_ID_SNS_CMD_SIZE / 2, vha 1337 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x204a, vha 1341 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc + ql_dbg_buffer, vha, 0x207b, vha 1343 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x207c, vha 1347 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x204c, vha 1361 drivers/scsi/qla2xxx/qla_gs.c qla2x00_mgmt_svr_login(scsi_qla_host_t *vha) vha 1365 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1368 drivers/scsi/qla2xxx/qla_gs.c if (vha->flags.management_server_logged_in) vha 1371 drivers/scsi/qla2xxx/qla_gs.c rval = ha->isp_ops->fabric_login(vha, vha->mgmt_svr_loop_id, 0xff, 0xff, vha 1375 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2085, vha 1377 drivers/scsi/qla2xxx/qla_gs.c "rval=%d\n", vha->mgmt_svr_loop_id, rval); vha 1379 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2024, vha 1382 drivers/scsi/qla2xxx/qla_gs.c vha->mgmt_svr_loop_id, mb[0], mb[1], mb[2], mb[6], vha 1386 drivers/scsi/qla2xxx/qla_gs.c vha->flags.management_server_logged_in = 1; vha 1400 drivers/scsi/qla2xxx/qla_gs.c qla2x00_prep_ms_fdmi_iocb(scsi_qla_host_t *vha, uint32_t req_size, vha 1404 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1411 drivers/scsi/qla2xxx/qla_gs.c SET_TARGET_ID(ha, ms_pkt->loop_id, vha->mgmt_svr_loop_id); vha 1437 drivers/scsi/qla2xxx/qla_gs.c qla24xx_prep_ms_fdmi_iocb(scsi_qla_host_t *vha, uint32_t req_size, vha 1441 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1448 drivers/scsi/qla2xxx/qla_gs.c ct_pkt->nport_handle = cpu_to_le16(vha->mgmt_svr_loop_id); vha 1460 drivers/scsi/qla2xxx/qla_gs.c ct_pkt->vp_index = vha->vp_idx; vha 1466 drivers/scsi/qla2xxx/qla_gs.c qla2x00_update_ms_fdmi_iocb(scsi_qla_host_t *vha, uint32_t req_size) vha 1468 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1511 drivers/scsi/qla2xxx/qla_gs.c qla2x00_fdmi_rhba(scsi_qla_host_t *vha) vha 1521 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1526 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, 0, RHBA_RSP_SIZE); vha 1533 drivers/scsi/qla2xxx/qla_gs.c memcpy(ct_req->req.rhba.hba_identifier, vha->port_name, WWN_SIZE); vha 1535 drivers/scsi/qla2xxx/qla_gs.c memcpy(ct_req->req.rhba.port_name, vha->port_name, WWN_SIZE); vha 1547 drivers/scsi/qla2xxx/qla_gs.c memcpy(eiter->a.node_name, vha->node_name, WWN_SIZE); vha 1550 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2025, vha 1563 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2026, vha 1570 drivers/scsi/qla2xxx/qla_gs.c qla2xxx_get_vpd_field(vha, "SN", eiter->a.serial_num, vha 1583 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2027, vha 1596 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2028, vha 1609 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2029, vha 1618 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2xxx_get_vpd_field(vha, "MN", eiter->a.hw_version, vha 1621 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2xxx_get_vpd_field(vha, "EC", eiter->a.hw_version, vha 1633 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x202a, vha 1646 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x202b, vha 1659 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha , 0x202c, vha 1665 drivers/scsi/qla2xxx/qla_gs.c ha->isp_ops->fw_version_str(vha, eiter->a.fw_version, vha 1672 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x202d, vha 1676 drivers/scsi/qla2xxx/qla_gs.c qla2x00_update_ms_fdmi_iocb(vha, size + 16); vha 1678 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x202e, vha 1681 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x2076, vha 1685 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 1689 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2030, vha 1691 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "RHBA") != vha 1697 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2034, vha 1701 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20ad, vha 1707 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2035, vha 1721 drivers/scsi/qla2xxx/qla_gs.c qla2x00_fdmi_rpa(scsi_qla_host_t *vha) vha 1725 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1737 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, 0, RPA_RSP_SIZE); vha 1745 drivers/scsi/qla2xxx/qla_gs.c memcpy(ct_req->req.rpa.port_name, vha->port_name, WWN_SIZE); vha 1759 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2039, vha 1801 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x203a, vha 1844 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x203b, vha 1857 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x203c, vha 1864 drivers/scsi/qla2xxx/qla_gs.c "%s:host%lu", QLA2XXX_DRIVER_NAME, vha->host_no); vha 1870 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x204b, vha 1882 drivers/scsi/qla2xxx/qla_gs.c "%s", fc_host_system_hostname(vha->host)); vha 1889 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x203d, "HostName=%s.\n", eiter->a.host_name); vha 1892 drivers/scsi/qla2xxx/qla_gs.c qla2x00_update_ms_fdmi_iocb(vha, size + 16); vha 1894 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x203e, vha 1897 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x2079, vha 1901 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 1905 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2040, vha 1907 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "RPA") != vha 1913 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20cd, vha 1919 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2041, vha 1933 drivers/scsi/qla2xxx/qla_gs.c qla2x00_fdmiv2_rhba(scsi_qla_host_t *vha) vha 1942 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 1948 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, 0, RHBA_RSP_SIZE); vha 1956 drivers/scsi/qla2xxx/qla_gs.c memcpy(ct_req->req.rhba2.hba_identifier, vha->port_name, WWN_SIZE); vha 1958 drivers/scsi/qla2xxx/qla_gs.c memcpy(ct_req->req.rhba2.port_name, vha->port_name, WWN_SIZE); vha 1969 drivers/scsi/qla2xxx/qla_gs.c memcpy(eiter->a.node_name, vha->node_name, WWN_SIZE); vha 1972 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x207d, vha 1986 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20a5, vha 1993 drivers/scsi/qla2xxx/qla_gs.c qla2xxx_get_vpd_field(vha, "SN", eiter->a.serial_num, vha 2006 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20a6, vha 2019 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20a7, vha 2032 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20a8, vha 2041 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2xxx_get_vpd_field(vha, "MN", eiter->a.hw_version, vha 2044 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2xxx_get_vpd_field(vha, "EC", eiter->a.hw_version, vha 2056 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20a9, vha 2069 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20aa, vha 2082 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha , 0x20ab, vha 2089 drivers/scsi/qla2xxx/qla_gs.c ha->isp_ops->fw_version_str(vha, eiter->a.fw_version, vha 2096 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20ac, vha 2109 drivers/scsi/qla2xxx/qla_gs.c "%s %s", "Linux", fc_host_system_hostname(vha->host)); vha 2116 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20ae, vha 2127 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20af, vha 2133 drivers/scsi/qla2xxx/qla_gs.c qla2x00_get_sym_node_name(vha, eiter->a.sym_name, vha 2140 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20b0, vha 2150 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20b1, vha 2160 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20b2, vha 2166 drivers/scsi/qla2xxx/qla_gs.c memcpy(eiter->a.fabric_name, vha->fabric_node_name, WWN_SIZE); vha 2170 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20b3, vha 2183 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20b4, vha 2196 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x201b, vha 2200 drivers/scsi/qla2xxx/qla_gs.c qla2x00_update_ms_fdmi_iocb(vha, size + 16); vha 2202 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20b5, vha 2205 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x20b6, vha 2209 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 2213 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20b7, vha 2215 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "RHBA") != vha 2222 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20b8, vha 2226 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2016, vha 2232 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20b9, vha 2246 drivers/scsi/qla2xxx/qla_gs.c qla2x00_fdmi_dhba(scsi_qla_host_t *vha) vha 2249 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 2256 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, DHBA_REQ_SIZE, vha 2264 drivers/scsi/qla2xxx/qla_gs.c memcpy(ct_req->req.dhba.port_name, vha->port_name, WWN_SIZE); vha 2266 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2036, vha 2270 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 2274 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2037, vha 2276 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "DHBA") != vha 2280 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2038, vha 2294 drivers/scsi/qla2xxx/qla_gs.c qla2x00_fdmiv2_rpa(scsi_qla_host_t *vha) vha 2298 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 2310 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, 0, RPA_RSP_SIZE); vha 2317 drivers/scsi/qla2xxx/qla_gs.c memcpy(ct_req->req.rpa2.port_name, vha->port_name, WWN_SIZE); vha 2331 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20ba, vha 2336 drivers/scsi/qla2xxx/qla_gs.c if (vha->flags.nvme_enabled) { vha 2338 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x211f, vha 2380 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20bb, vha 2415 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2017, vha 2428 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20bc, vha 2436 drivers/scsi/qla2xxx/qla_gs.c "%s:host%lu", QLA2XXX_DRIVER_NAME, vha->host_no); vha 2441 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20be, vha 2453 drivers/scsi/qla2xxx/qla_gs.c "%s", fc_host_system_hostname(vha->host)); vha 2460 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x201a, vha 2466 drivers/scsi/qla2xxx/qla_gs.c memcpy(eiter->a.node_name, vha->node_name, WWN_SIZE); vha 2470 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20c0, vha 2476 drivers/scsi/qla2xxx/qla_gs.c memcpy(eiter->a.port_name, vha->port_name, WWN_SIZE); vha 2480 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20c1, vha 2486 drivers/scsi/qla2xxx/qla_gs.c qla2x00_get_sym_node_name(vha, eiter->a.port_sym_name, vha 2493 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20c2, vha 2503 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20c3, vha 2513 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20c4, vha 2519 drivers/scsi/qla2xxx/qla_gs.c memcpy(eiter->a.fabric_name, vha->fabric_node_name, WWN_SIZE); vha 2523 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20c5, vha 2536 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20c6, vha 2540 drivers/scsi/qla2xxx/qla_gs.c if (vha->flags.nvme_enabled) { vha 2544 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2120, vha 2556 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20c7, vha 2566 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20c8, vha 2572 drivers/scsi/qla2xxx/qla_gs.c eiter->a.port_id = cpu_to_be32(vha->d_id.b24); vha 2576 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x201c, vha 2580 drivers/scsi/qla2xxx/qla_gs.c qla2x00_update_ms_fdmi_iocb(vha, size + 16); vha 2582 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2018, vha 2584 drivers/scsi/qla2xxx/qla_gs.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x20ca, vha 2588 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 2592 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20cb, vha 2594 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "RPA") != vha 2600 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20ce, vha 2604 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2020, vha 2610 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20cc, vha 2624 drivers/scsi/qla2xxx/qla_gs.c qla2x00_fdmi_register(scsi_qla_host_t *vha) vha 2627 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 2633 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_mgmt_svr_login(vha); vha 2637 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_fdmiv2_rhba(vha); vha 2642 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_fdmi_dhba(vha); vha 2646 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_fdmiv2_rhba(vha); vha 2650 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_fdmiv2_rpa(vha); vha 2657 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_fdmi_rhba(vha); vha 2662 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_fdmi_dhba(vha); vha 2666 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_fdmi_rhba(vha); vha 2670 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_fdmi_rpa(vha); vha 2683 drivers/scsi/qla2xxx/qla_gs.c qla2x00_gfpn_id(scsi_qla_host_t *vha, sw_info_t *list) vha 2687 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 2706 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); vha 2717 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 2721 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2023, vha 2724 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, vha 2791 drivers/scsi/qla2xxx/qla_gs.c qla2x00_gpsc(scsi_qla_host_t *vha, sw_info_t *list) vha 2795 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 2806 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_mgmt_svr_login(vha); vha 2815 drivers/scsi/qla2xxx/qla_gs.c arg.nport_handle = vha->mgmt_svr_loop_id; vha 2820 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = qla24xx_prep_ms_iocb(vha, &arg); vha 2832 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 2836 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2059, vha 2838 drivers/scsi/qla2xxx/qla_gs.c } else if ((rval = qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, vha 2846 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x205a, vha 2857 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x205b, vha 2881 drivers/scsi/qla2xxx/qla_gs.c qla2x00_gff_id(scsi_qla_host_t *vha, sw_info_t *list) vha 2889 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 2910 drivers/scsi/qla2xxx/qla_gs.c ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); vha 2921 drivers/scsi/qla2xxx/qla_gs.c rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, vha 2925 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x205c, vha 2927 drivers/scsi/qla2xxx/qla_gs.c } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, vha 2929 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x205d, vha 2952 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_post_gpsc_work(struct scsi_qla_host *vha, fc_port_t *fcport) vha 2956 drivers/scsi/qla2xxx/qla_gs.c e = qla2x00_alloc_work(vha, QLA_EVT_GPSC); vha 2962 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_post_work(vha, e); vha 2965 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_handle_gpsc_event(scsi_qla_host_t *vha, struct event_arg *ea) vha 2969 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20d8, vha 2980 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20d3, vha 2988 drivers/scsi/qla2xxx/qla_gs.c qla_post_iidma_work(vha, fcport); vha 2993 drivers/scsi/qla2xxx/qla_gs.c struct scsi_qla_host *vha = sp->vha; vha 2994 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 3001 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2053, vha 3018 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2019, vha 3027 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2054, vha 3037 drivers/scsi/qla2xxx/qla_gs.c qla24xx_handle_gpsc_event(vha, &ea); vha 3043 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gpsc(scsi_qla_host_t *vha, fc_port_t *fcport) vha 3049 drivers/scsi/qla2xxx/qla_gs.c if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT)) vha 3052 drivers/scsi/qla2xxx/qla_gs.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 3061 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 3077 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.nport_handle = vha->mgmt_svr_loop_id; vha 3082 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x205e, vha 3101 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_post_gpnid_work(struct scsi_qla_host *vha, port_id_t *id) vha 3105 drivers/scsi/qla2xxx/qla_gs.c if (test_bit(UNLOADING, &vha->dpc_flags) || vha 3106 drivers/scsi/qla2xxx/qla_gs.c (vha->vp_idx && test_bit(VPORT_DELETE, &vha->dpc_flags))) vha 3109 drivers/scsi/qla2xxx/qla_gs.c e = qla2x00_alloc_work(vha, QLA_EVT_GPNID); vha 3114 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_post_work(vha, e); vha 3117 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_sp_unmap(scsi_qla_host_t *vha, srb_t *sp) vha 3123 drivers/scsi/qla2xxx/qla_gs.c qla2x00_els_dcmd2_free(vha, &c->u.els_plogi); vha 3128 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 3136 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 3148 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_handle_gpnid_event(scsi_qla_host_t *vha, struct event_arg *ea) vha 3153 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 3159 drivers/scsi/qla2xxx/qla_gs.c list_for_each_entry_safe(fcport, t, &vha->vp_fcports, list) { vha 3167 drivers/scsi/qla2xxx/qla_gs.c fcport = qla2x00_find_fcport_by_wwpn(vha, ea->port_name, 1); vha 3169 drivers/scsi/qla2xxx/qla_gs.c list_for_each_entry_safe(conflict, t, &vha->vp_fcports, vha 3190 drivers/scsi/qla2xxx/qla_gs.c vha->hw->login_retry_count; vha 3191 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 3199 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x210d, vha 3203 drivers/scsi/qla2xxx/qla_gs.c qla2x00_post_async_adisc_work(vha, fcport, vha 3207 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x210d, vha 3211 drivers/scsi/qla2xxx/qla_gs.c qla24xx_fcport_handle_login(vha, fcport); vha 3221 drivers/scsi/qla2xxx/qla_gs.c list_for_each_entry_safe(conflict, t, &vha->vp_fcports, vha 3228 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 3240 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2065, vha 3243 drivers/scsi/qla2xxx/qla_gs.c qla24xx_post_newsess_work(vha, &ea->id, vha 3251 drivers/scsi/qla2xxx/qla_gs.c struct scsi_qla_host *vha = sp->vha; vha 3261 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2066, vha 3266 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2066, vha 3277 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 3279 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 3283 drivers/scsi/qla2xxx/qla_gs.c qla24xx_post_gpnid_work(sp->vha, &ea.id); vha 3289 drivers/scsi/qla2xxx/qla_gs.c qla24xx_post_gpnid_work(sp->vha, &ea.id); vha 3294 drivers/scsi/qla2xxx/qla_gs.c qla24xx_handle_gpnid_event(vha, &ea); vha 3296 drivers/scsi/qla2xxx/qla_gs.c e = qla2x00_alloc_work(vha, QLA_EVT_UNMAP); vha 3299 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 3305 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 3316 drivers/scsi/qla2xxx/qla_gs.c qla2x00_post_work(vha, e); vha 3320 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gpnid(scsi_qla_host_t *vha, port_id_t *id) vha 3328 drivers/scsi/qla2xxx/qla_gs.c if (!vha->flags.online) vha 3331 drivers/scsi/qla2xxx/qla_gs.c sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL); vha 3339 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 3341 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 3342 drivers/scsi/qla2xxx/qla_gs.c list_for_each_entry(tsp, &vha->gpnid_list, elem) { vha 3345 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 3350 drivers/scsi/qla2xxx/qla_gs.c list_add_tail(&sp->elem, &vha->gpnid_list); vha 3351 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 3353 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev, vha 3358 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xd041, vha 3363 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev, vha 3368 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xd042, vha 3390 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2067, vha 3401 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->hw->vport_slock, flags); vha 3403 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->hw->vport_slock, flags); vha 3406 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 3413 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 3425 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_handle_gffid_event(scsi_qla_host_t *vha, struct event_arg *ea) vha 3429 drivers/scsi/qla2xxx/qla_gs.c qla24xx_post_gnl_work(vha, fcport); vha 3434 drivers/scsi/qla2xxx/qla_gs.c struct scsi_qla_host *vha = sp->vha; vha 3439 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2133, vha 3471 drivers/scsi/qla2xxx/qla_gs.c qla24xx_handle_gffid_event(vha, &ea); vha 3476 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gffid(scsi_qla_host_t *vha, fc_port_t *fcport) vha 3482 drivers/scsi/qla2xxx/qla_gs.c if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT)) vha 3485 drivers/scsi/qla2xxx/qla_gs.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 3496 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 3516 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x2132, vha 3532 drivers/scsi/qla2xxx/qla_gs.c static int qla2x00_is_a_vp(scsi_qla_host_t *vha, u64 wwn) vha 3534 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 3556 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_async_gnnft_done(scsi_qla_host_t *vha, srb_t *sp) vha 3566 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 3569 drivers/scsi/qla2xxx/qla_gs.c if (sp->gen1 != vha->hw->base_qpair->chip_reset) { vha 3570 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 3572 drivers/scsi/qla2xxx/qla_gs.c sp->name, sp->gen1, vha->hw->base_qpair->chip_reset); vha 3578 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_retry++; vha 3579 drivers/scsi/qla2xxx/qla_gs.c if (vha->scan.scan_retry < MAX_SCAN_RETRIES) { vha 3580 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 3581 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 3583 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 3588 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_retry = 0; vha 3590 drivers/scsi/qla2xxx/qla_gs.c list_for_each_entry(fcport, &vha->vp_fcports, list) vha 3593 drivers/scsi/qla2xxx/qla_gs.c for (i = 0; i < vha->hw->max_fibre_devices; i++) { vha 3597 drivers/scsi/qla2xxx/qla_gs.c rp = &vha->scan.l[i]; vha 3605 drivers/scsi/qla2xxx/qla_gs.c for (k = i + 1; k < vha->hw->max_fibre_devices; k++) { vha 3606 drivers/scsi/qla2xxx/qla_gs.c trp = &vha->scan.l[k]; vha 3611 drivers/scsi/qla2xxx/qla_gs.c vha, 0xffff, vha 3618 drivers/scsi/qla2xxx/qla_gs.c if (!memcmp(rp->port_name, vha->port_name, WWN_SIZE)) vha 3626 drivers/scsi/qla2xxx/qla_gs.c if (qla2x00_is_a_vp(vha, wwn)) vha 3629 drivers/scsi/qla2xxx/qla_gs.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 3650 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 3653 drivers/scsi/qla2xxx/qla_gs.c qla24xx_post_newsess_work(vha, &rp->id, rp->port_name, vha 3659 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xffff, vha 3667 drivers/scsi/qla2xxx/qla_gs.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 3675 drivers/scsi/qla2xxx/qla_gs.c if ((qla_dual_mode_enabled(vha) || vha 3676 drivers/scsi/qla2xxx/qla_gs.c qla_ini_mode_enabled(vha)) && vha 3682 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20f0, vha 3696 drivers/scsi/qla2xxx/qla_gs.c vha->hw->login_retry_count; vha 3697 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20a3, vha 3703 drivers/scsi/qla2xxx/qla_gs.c qla24xx_fcport_handle_login(vha, fcport); vha 3710 drivers/scsi/qla2xxx/qla_gs.c qla24xx_sp_unmap(vha, sp); vha 3711 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 3712 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_SCANNING; vha 3713 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 3716 drivers/scsi/qla2xxx/qla_gs.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 3718 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 3719 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 3726 drivers/scsi/qla2xxx/qla_gs.c static int qla2x00_post_gnnft_gpnft_done_work(struct scsi_qla_host *vha, vha 3734 drivers/scsi/qla2xxx/qla_gs.c e = qla2x00_alloc_work(vha, cmd); vha 3740 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_post_work(vha, e); vha 3743 drivers/scsi/qla2xxx/qla_gs.c static int qla2x00_post_nvme_gpnft_work(struct scsi_qla_host *vha, vha 3751 drivers/scsi/qla2xxx/qla_gs.c e = qla2x00_alloc_work(vha, cmd); vha 3758 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_post_work(vha, e); vha 3761 drivers/scsi/qla2xxx/qla_gs.c static void qla2x00_find_free_fcp_nvme_slot(struct scsi_qla_host *vha, vha 3764 drivers/scsi/qla2xxx/qla_gs.c struct qla_hw_data *ha = vha->hw; vha 3794 drivers/scsi/qla2xxx/qla_gs.c rp = &vha->scan.l[j]; vha 3801 drivers/scsi/qla2xxx/qla_gs.c rp = &vha->scan.l[k]; vha 3815 drivers/scsi/qla2xxx/qla_gs.c rp = &vha->scan.l[k]; vha 3830 drivers/scsi/qla2xxx/qla_gs.c rp = &vha->scan.l[k]; vha 3845 drivers/scsi/qla2xxx/qla_gs.c rp = &vha->scan.l[k]; vha 3859 drivers/scsi/qla2xxx/qla_gs.c struct scsi_qla_host *vha = sp->vha; vha 3868 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 3883 drivers/scsi/qla2xxx/qla_gs.c rc = qla2x00_post_gnnft_gpnft_done_work(vha, sp, vha 3887 drivers/scsi/qla2xxx/qla_gs.c qla24xx_sp_unmap(vha, sp); vha 3889 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 3890 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_SCANNING; vha 3891 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_retry++; vha 3892 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 3894 drivers/scsi/qla2xxx/qla_gs.c if (vha->scan.scan_retry < MAX_SCAN_RETRIES) { vha 3895 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 3896 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 3897 drivers/scsi/qla2xxx/qla_gs.c qla2xxx_wake_dpc(vha); vha 3899 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 3907 drivers/scsi/qla2xxx/qla_gs.c qla2x00_find_free_fcp_nvme_slot(vha, sp); vha 3909 drivers/scsi/qla2xxx/qla_gs.c if ((fc4_type == FC4_TYPE_FCP_SCSI) && vha->flags.nvme_enabled && vha 3911 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 3912 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_SCANNING; vha 3913 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 3916 drivers/scsi/qla2xxx/qla_gs.c rc = qla2x00_post_nvme_gpnft_work(vha, sp, QLA_EVT_GPNFT); vha 3918 drivers/scsi/qla2xxx/qla_gs.c qla24xx_sp_unmap(vha, sp); vha 3919 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 3920 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 3926 drivers/scsi/qla2xxx/qla_gs.c rc = qla2x00_post_gnnft_gpnft_done_work(vha, sp, vha 3929 drivers/scsi/qla2xxx/qla_gs.c rc = qla2x00_post_gnnft_gpnft_done_work(vha, sp, vha 3934 drivers/scsi/qla2xxx/qla_gs.c qla24xx_sp_unmap(vha, sp); vha 3935 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 3936 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 3947 drivers/scsi/qla2xxx/qla_gs.c static int qla24xx_async_gnnft(scsi_qla_host_t *vha, struct srb *sp, vha 3955 drivers/scsi/qla2xxx/qla_gs.c if (!vha->flags.online) { vha 3956 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 3957 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_SCANNING; vha 3958 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 3963 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xffff, vha 3967 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 3968 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_SCANNING; vha 3969 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 3971 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 3972 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 3976 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xfffff, vha 3983 drivers/scsi/qla2xxx/qla_gs.c sp->gen1 = vha->hw->base_qpair->chip_reset; vha 3987 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 4005 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4018 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 4025 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 4034 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 4035 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_SCANNING; vha 4036 drivers/scsi/qla2xxx/qla_gs.c if (vha->scan.scan_flags == 0) { vha 4037 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4039 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags |= SF_QUEUED; vha 4040 drivers/scsi/qla2xxx/qla_gs.c schedule_delayed_work(&vha->scan.scan_work, 5); vha 4042 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 4048 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_async_gpnft_done(scsi_qla_host_t *vha, srb_t *sp) vha 4050 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4052 drivers/scsi/qla2xxx/qla_gs.c qla24xx_async_gnnft(vha, sp, sp->gen2); vha 4056 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gpnft(scsi_qla_host_t *vha, u8 fc4_type, srb_t *sp) vha 4064 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4067 drivers/scsi/qla2xxx/qla_gs.c if (!vha->flags.online) vha 4070 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 4071 drivers/scsi/qla2xxx/qla_gs.c if (vha->scan.scan_flags & SF_SCANNING) { vha 4072 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 4073 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, "scan active\n"); vha 4076 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags |= SF_SCANNING; vha 4077 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 4080 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4086 drivers/scsi/qla2xxx/qla_gs.c sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL); vha 4088 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 4089 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_SCANNING; vha 4090 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 4094 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev, vha 4100 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xffff, vha 4102 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 4103 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_SCANNING; vha 4104 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 4111 drivers/scsi/qla2xxx/qla_gs.c ((vha->hw->max_fibre_devices - 1) * vha 4114 drivers/scsi/qla2xxx/qla_gs.c sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev, vha 4120 drivers/scsi/qla2xxx/qla_gs.c ql_log(ql_log_warn, vha, 0xffff, vha 4122 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 4123 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_SCANNING; vha 4124 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 4125 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 4135 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4136 drivers/scsi/qla2xxx/qla_gs.c "%s scan list size %d\n", __func__, vha->scan.size); vha 4138 drivers/scsi/qla2xxx/qla_gs.c memset(vha->scan.l, 0, vha->scan.size); vha 4140 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4147 drivers/scsi/qla2xxx/qla_gs.c sp->gen1 = vha->hw->base_qpair->chip_reset; vha 4151 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 4168 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4181 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 4188 drivers/scsi/qla2xxx/qla_gs.c dma_free_coherent(&vha->hw->pdev->dev, vha 4197 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 4198 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_SCANNING; vha 4199 drivers/scsi/qla2xxx/qla_gs.c if (vha->scan.scan_flags == 0) { vha 4200 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4202 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags |= SF_QUEUED; vha 4203 drivers/scsi/qla2xxx/qla_gs.c schedule_delayed_work(&vha->scan.scan_work, 5); vha 4205 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 4215 drivers/scsi/qla2xxx/qla_gs.c struct scsi_qla_host *vha = container_of(s, struct scsi_qla_host, vha 4219 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4221 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 4222 drivers/scsi/qla2xxx/qla_gs.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 4223 drivers/scsi/qla2xxx/qla_gs.c qla2xxx_wake_dpc(vha); vha 4224 drivers/scsi/qla2xxx/qla_gs.c spin_lock_irqsave(&vha->work_lock, flags); vha 4225 drivers/scsi/qla2xxx/qla_gs.c vha->scan.scan_flags &= ~SF_QUEUED; vha 4226 drivers/scsi/qla2xxx/qla_gs.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 4230 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_handle_gnnid_event(scsi_qla_host_t *vha, struct event_arg *ea) vha 4232 drivers/scsi/qla2xxx/qla_gs.c qla24xx_post_gnl_work(vha, ea->fcport); vha 4237 drivers/scsi/qla2xxx/qla_gs.c struct scsi_qla_host *vha = sp->vha; vha 4253 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x204f, vha 4257 drivers/scsi/qla2xxx/qla_gs.c qla24xx_handle_gnnid_event(vha, &ea); vha 4262 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gnnid(scsi_qla_host_t *vha, fc_port_t *fcport) vha 4268 drivers/scsi/qla2xxx/qla_gs.c if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT)) vha 4272 drivers/scsi/qla2xxx/qla_gs.c sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC); vha 4283 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 4304 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4321 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_post_gnnid_work(struct scsi_qla_host *vha, fc_port_t *fcport) vha 4326 drivers/scsi/qla2xxx/qla_gs.c ls = atomic_read(&vha->loop_state); vha 4328 drivers/scsi/qla2xxx/qla_gs.c test_bit(UNLOADING, &vha->dpc_flags)) vha 4331 drivers/scsi/qla2xxx/qla_gs.c e = qla2x00_alloc_work(vha, QLA_EVT_GNNID); vha 4336 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_post_work(vha, e); vha 4340 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_handle_gfpnid_event(scsi_qla_host_t *vha, struct event_arg *ea) vha 4344 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4348 drivers/scsi/qla2xxx/qla_gs.c fcport->rscn_gen, ea->sp->gen1, vha->fcport_count); vha 4355 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x20d3, vha 4363 drivers/scsi/qla2xxx/qla_gs.c qla24xx_post_gpsc_work(vha, fcport); vha 4368 drivers/scsi/qla2xxx/qla_gs.c struct scsi_qla_host *vha = sp->vha; vha 4383 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0x204f, vha 4387 drivers/scsi/qla2xxx/qla_gs.c qla24xx_handle_gfpnid_event(vha, &ea); vha 4392 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gfpnid(scsi_qla_host_t *vha, fc_port_t *fcport) vha 4398 drivers/scsi/qla2xxx/qla_gs.c if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT)) vha 4401 drivers/scsi/qla2xxx/qla_gs.c sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC); vha 4411 drivers/scsi/qla2xxx/qla_gs.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 4432 drivers/scsi/qla2xxx/qla_gs.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4450 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_post_gfpnid_work(struct scsi_qla_host *vha, fc_port_t *fcport) vha 4455 drivers/scsi/qla2xxx/qla_gs.c ls = atomic_read(&vha->loop_state); vha 4457 drivers/scsi/qla2xxx/qla_gs.c test_bit(UNLOADING, &vha->dpc_flags)) vha 4460 drivers/scsi/qla2xxx/qla_gs.c e = qla2x00_alloc_work(vha, QLA_EVT_GFPNID); vha 4465 drivers/scsi/qla2xxx/qla_gs.c return qla2x00_post_work(vha, e); vha 40 drivers/scsi/qla2xxx/qla_init.c static void qla24xx_handle_gpdb_event(scsi_qla_host_t *vha, vha 55 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = sp->vha->hw; vha 77 drivers/scsi/qla2xxx/qla_init.c qla2x00_get_async_timeout(struct scsi_qla_host *vha) vha 80 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 105 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_async, sp->vha, 0x507c, vha 110 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_async, sp->vha, 0x507c, vha 148 drivers/scsi/qla2xxx/qla_init.c scsi_qla_host_t *vha = cmd_sp->vha; vha 153 drivers/scsi/qla2xxx/qla_init.c sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport, vha 176 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_async, vha, 0x507c, vha 206 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, fcport->vha, 0x2071, vha 271 drivers/scsi/qla2xxx/qla_init.c struct scsi_qla_host *vha = sp->vha; vha 275 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20dd, vha 280 drivers/scsi/qla2xxx/qla_init.c if (!test_bit(UNLOADING, &vha->dpc_flags)) { vha 288 drivers/scsi/qla2xxx/qla_init.c qla24xx_handle_plogi_done_event(vha, &ea); vha 298 drivers/scsi/qla2xxx/qla_init.c wwn_to_u64(fcport->vha->port_name)) vha 311 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_login(struct scsi_qla_host *vha, fc_port_t *fcport, vha 318 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT) || vha 320 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xffff, vha 326 drivers/scsi/qla2xxx/qla_init.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 341 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 344 drivers/scsi/qla2xxx/qla_init.c if (N2N_TOPO(fcport->vha->hw) && fcport_is_bigger(fcport)) vha 352 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2072, vha 361 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 384 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_logout(struct scsi_qla_host *vha, fc_port_t *fcport) vha 391 drivers/scsi/qla2xxx/qla_init.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 400 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 404 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2070, vha 423 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_prlo_done(struct scsi_qla_host *vha, fc_port_t *fcport, vha 429 drivers/scsi/qla2xxx/qla_init.c qla2x00_mark_device_lost(vha, fcport, 1, 0); vha 436 drivers/scsi/qla2xxx/qla_init.c struct scsi_qla_host *vha = sp->vha; vha 439 drivers/scsi/qla2xxx/qla_init.c if (!test_bit(UNLOADING, &vha->dpc_flags)) vha 440 drivers/scsi/qla2xxx/qla_init.c qla2x00_post_async_prlo_done_work(sp->fcport->vha, sp->fcport, vha 446 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_prlo(struct scsi_qla_host *vha, fc_port_t *fcport) vha 453 drivers/scsi/qla2xxx/qla_init.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 462 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 466 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2070, vha 485 drivers/scsi/qla2xxx/qla_init.c void qla24xx_handle_adisc_event(scsi_qla_host_t *vha, struct event_arg *ea) vha 489 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d2, vha 499 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2066, vha 514 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d3, vha 524 drivers/scsi/qla2xxx/qla_init.c __qla24xx_handle_gpdb_event(vha, ea); vha 527 drivers/scsi/qla2xxx/qla_init.c static int qla_post_els_plogi_work(struct scsi_qla_host *vha, fc_port_t *fcport) vha 531 drivers/scsi/qla2xxx/qla_init.c e = qla2x00_alloc_work(vha, QLA_EVT_ELS_PLOGI); vha 538 drivers/scsi/qla2xxx/qla_init.c return qla2x00_post_work(vha, e); vha 543 drivers/scsi/qla2xxx/qla_init.c struct scsi_qla_host *vha = sp->vha; vha 547 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2066, vha 562 drivers/scsi/qla2xxx/qla_init.c qla24xx_handle_adisc_event(vha, &ea); vha 568 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_adisc(struct scsi_qla_host *vha, fc_port_t *fcport, vha 575 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT)) vha 579 drivers/scsi/qla2xxx/qla_init.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 590 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 596 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x206f, vha 610 drivers/scsi/qla2xxx/qla_init.c qla2x00_post_async_adisc_work(vha, fcport, data); vha 614 drivers/scsi/qla2xxx/qla_init.c static bool qla2x00_is_reserved_id(scsi_qla_host_t *vha, uint16_t loop_id) vha 616 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 636 drivers/scsi/qla2xxx/qla_init.c static int qla2x00_find_new_loop_id(scsi_qla_host_t *vha, fc_port_t *dev) vha 639 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 648 drivers/scsi/qla2xxx/qla_init.c qla2x00_is_reserved_id(vha, dev->loop_id)) { vha 657 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, dev->vha, 0x2086, vha 661 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, dev->vha, 0x2087, vha 670 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = fcport->vha->hw; vha 673 drivers/scsi/qla2xxx/qla_init.c qla2x00_is_reserved_id(fcport->vha, fcport->loop_id)) vha 680 drivers/scsi/qla2xxx/qla_init.c static void qla24xx_handle_gnl_done_event(scsi_qla_host_t *vha, vha 692 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 697 drivers/scsi/qla2xxx/qla_init.c fcport->rscn_gen, fcport->last_rscn_gen, vha->loop_id); vha 704 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20de, vha 716 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20e0, vha 724 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20e1, vha 731 drivers/scsi/qla2xxx/qla_init.c e = &vha->gnl.l[i]; vha 761 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20e2, vha 779 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20e3, vha 795 drivers/scsi/qla2xxx/qla_init.c qlt_find_sess_invalidate_other(vha, wwn, vha 808 drivers/scsi/qla2xxx/qla_init.c switch (vha->hw->current_topology) { vha 813 drivers/scsi/qla2xxx/qla_init.c vha, 0x20e4, "%s %d %8phC post gpdb\n", vha 821 drivers/scsi/qla2xxx/qla_init.c qla2x00_post_async_adisc_work(vha, fcport, vha 827 drivers/scsi/qla2xxx/qla_init.c qla2x00_find_new_loop_id(vha, fcport); vha 831 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20e5, vha 834 drivers/scsi/qla2xxx/qla_init.c qla24xx_fcport_handle_login(vha, fcport); vha 858 drivers/scsi/qla2xxx/qla_init.c qla2x00_post_async_adisc_work(vha, fcport, vha 868 drivers/scsi/qla2xxx/qla_init.c qla24xx_fcport_handle_login(vha, vha 880 drivers/scsi/qla2xxx/qla_init.c qla24xx_fcport_handle_login(vha, vha 890 drivers/scsi/qla2xxx/qla_init.c switch (vha->hw->current_topology) { vha 894 drivers/scsi/qla2xxx/qla_init.c e = &vha->gnl.l[i]; vha 903 drivers/scsi/qla2xxx/qla_init.c qla2x00_find_fcport_by_wwpn(vha, vha 907 drivers/scsi/qla2xxx/qla_init.c vha, 0x20e5, vha 922 drivers/scsi/qla2xxx/qla_init.c qla24xx_fcport_handle_login(vha, fcport); vha 935 drivers/scsi/qla2xxx/qla_init.c &vha->dpc_flags); vha 938 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x705d, vha 941 drivers/scsi/qla2xxx/qla_init.c &vha->dpc_flags); vha 944 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x705d, vha 950 drivers/scsi/qla2xxx/qla_init.c qla2xxx_wake_dpc(vha); vha 956 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 967 drivers/scsi/qla2xxx/qla_init.c struct scsi_qla_host *vha = sp->vha; vha 977 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20e7, vha 998 drivers/scsi/qla2xxx/qla_init.c e = &vha->gnl.l[i]; vha 1002 drivers/scsi/qla2xxx/qla_init.c set_bit(loop_id, vha->hw->loop_id_map); vha 1005 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc + ql_dbg_verbose, vha, 0x20e8, vha 1012 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 1016 drivers/scsi/qla2xxx/qla_init.c if (!list_empty(&vha->gnl.fcports)) vha 1017 drivers/scsi/qla2xxx/qla_init.c list_splice_init(&vha->gnl.fcports, &h); vha 1018 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1022 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 1024 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1027 drivers/scsi/qla2xxx/qla_init.c qla24xx_handle_gnl_done_event(vha, &ea); vha 1035 drivers/scsi/qla2xxx/qla_init.c e = &vha->gnl.l[i]; vha 1039 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry_safe(fcport, tf, &vha->vp_fcports, list) { vha 1053 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2065, vha 1057 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_newsess_work(vha, &id, (u8 *)&wwn, vha 1062 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 1063 drivers/scsi/qla2xxx/qla_init.c vha->gnl.sent = 0; vha 1064 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1069 drivers/scsi/qla2xxx/qla_init.c int qla24xx_async_gnl(struct scsi_qla_host *vha, fc_port_t *fcport) vha 1077 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT)) vha 1080 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d9, vha 1083 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 1089 drivers/scsi/qla2xxx/qla_init.c list_add_tail(&fcport->gnl_entry, &vha->gnl.fcports); vha 1090 drivers/scsi/qla2xxx/qla_init.c if (vha->gnl.sent) { vha 1091 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1094 drivers/scsi/qla2xxx/qla_init.c vha->gnl.sent = 1; vha 1095 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1097 drivers/scsi/qla2xxx/qla_init.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 1108 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha)+2); vha 1113 drivers/scsi/qla2xxx/qla_init.c mb[2] = MSW(vha->gnl.ldma); vha 1114 drivers/scsi/qla2xxx/qla_init.c mb[3] = LSW(vha->gnl.ldma); vha 1115 drivers/scsi/qla2xxx/qla_init.c mb[6] = MSW(MSD(vha->gnl.ldma)); vha 1116 drivers/scsi/qla2xxx/qla_init.c mb[7] = LSW(MSD(vha->gnl.ldma)); vha 1117 drivers/scsi/qla2xxx/qla_init.c mb[8] = vha->gnl.size; vha 1118 drivers/scsi/qla2xxx/qla_init.c mb[9] = vha->vp_idx; vha 1122 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20da, vha 1139 drivers/scsi/qla2xxx/qla_init.c int qla24xx_post_gnl_work(struct scsi_qla_host *vha, fc_port_t *fcport) vha 1143 drivers/scsi/qla2xxx/qla_init.c e = qla2x00_alloc_work(vha, QLA_EVT_GNL); vha 1149 drivers/scsi/qla2xxx/qla_init.c return qla2x00_post_work(vha, e); vha 1154 drivers/scsi/qla2xxx/qla_init.c struct scsi_qla_host *vha = sp->vha; vha 1155 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 1160 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20db, vha 1173 drivers/scsi/qla2xxx/qla_init.c qla24xx_handle_gpdb_event(vha, &ea); vha 1182 drivers/scsi/qla2xxx/qla_init.c static int qla24xx_post_prli_work(struct scsi_qla_host *vha, fc_port_t *fcport) vha 1186 drivers/scsi/qla2xxx/qla_init.c e = qla2x00_alloc_work(vha, QLA_EVT_PRLI); vha 1192 drivers/scsi/qla2xxx/qla_init.c return qla2x00_post_work(vha, e); vha 1197 drivers/scsi/qla2xxx/qla_init.c struct scsi_qla_host *vha = sp->vha; vha 1201 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2129, vha 1207 drivers/scsi/qla2xxx/qla_init.c if (!test_bit(UNLOADING, &vha->dpc_flags)) { vha 1216 drivers/scsi/qla2xxx/qla_init.c qla24xx_handle_prli_done_event(vha, &ea); vha 1223 drivers/scsi/qla2xxx/qla_init.c qla24xx_async_prli(struct scsi_qla_host *vha, fc_port_t *fcport) vha 1229 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.online) { vha 1230 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0xffff, "%s %d %8phC exit\n", vha 1237 drivers/scsi/qla2xxx/qla_init.c qla_dual_mode_enabled(vha)) { vha 1238 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0xffff, "%s %d %8phC exit\n", vha 1243 drivers/scsi/qla2xxx/qla_init.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 1255 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 1263 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x211b, vha 1271 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1283 drivers/scsi/qla2xxx/qla_init.c int qla24xx_post_gpdb_work(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt) vha 1287 drivers/scsi/qla2xxx/qla_init.c e = qla2x00_alloc_work(vha, QLA_EVT_GPDB); vha 1294 drivers/scsi/qla2xxx/qla_init.c return qla2x00_post_work(vha, e); vha 1297 drivers/scsi/qla2xxx/qla_init.c int qla24xx_async_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt) vha 1305 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 1307 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT) || vha 1309 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xffff, vha 1317 drivers/scsi/qla2xxx/qla_init.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 1329 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 1333 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xd043, vha 1345 drivers/scsi/qla2xxx/qla_init.c mb[9] = vha->vp_idx; vha 1353 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20dc, vha 1369 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gpdb_work(vha, fcport, opt); vha 1374 drivers/scsi/qla2xxx/qla_init.c void __qla24xx_handle_gpdb_event(scsi_qla_host_t *vha, struct event_arg *ea) vha 1378 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 1384 drivers/scsi/qla2xxx/qla_init.c vha->fcport_count++; vha 1387 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1389 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 1396 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d6, vha 1401 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1405 drivers/scsi/qla2xxx/qla_init.c void qla24xx_handle_gpdb_event(scsi_qla_host_t *vha, struct event_arg *ea) vha 1416 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d2, vha 1432 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d3, vha 1444 drivers/scsi/qla2xxx/qla_init.c __qla24xx_parse_gpdb(vha, fcport, pd); vha 1451 drivers/scsi/qla2xxx/qla_init.c if (qla_dual_mode_enabled(vha) || vha 1452 drivers/scsi/qla2xxx/qla_init.c qla_ini_mode_enabled(vha)) { vha 1454 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1460 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d5, "%s %d %8phC post del sess\n", vha 1465 drivers/scsi/qla2xxx/qla_init.c __qla24xx_handle_gpdb_event(vha, ea); vha 1468 drivers/scsi/qla2xxx/qla_init.c static void qla_chk_n2n_b4_login(struct scsi_qla_host *vha, fc_port_t *fcport) vha 1473 drivers/scsi/qla2xxx/qla_init.c if (qla_tgt_mode_enabled(vha)) vha 1476 drivers/scsi/qla2xxx/qla_init.c if (qla_dual_mode_enabled(vha)) { vha 1477 drivers/scsi/qla2xxx/qla_init.c if (N2N_TOPO(vha->hw)) { vha 1480 drivers/scsi/qla2xxx/qla_init.c mywwn = wwn_to_u64(vha->port_name); vha 1500 drivers/scsi/qla2xxx/qla_init.c rc = qla2x00_find_new_loop_id(vha, fcport); vha 1502 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20e6, vha 1510 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20bf, vha 1513 drivers/scsi/qla2xxx/qla_init.c qla2x00_post_async_login_work(vha, fcport, NULL); vha 1517 drivers/scsi/qla2xxx/qla_init.c int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport) vha 1523 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d8, vha 1534 drivers/scsi/qla2xxx/qla_init.c qla_dual_mode_enabled(vha) && vha 1540 drivers/scsi/qla2xxx/qla_init.c !N2N_TOPO(vha->hw)) { vha 1542 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1548 drivers/scsi/qla2xxx/qla_init.c if (vha->host->active_mode == MODE_TARGET) vha 1552 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1559 drivers/scsi/qla2xxx/qla_init.c switch (vha->hw->current_topology) { vha 1565 drivers/scsi/qla2xxx/qla_init.c qla2x00_find_new_loop_id(vha, vha 1571 drivers/scsi/qla2xxx/qla_init.c qla_post_els_plogi_work(vha, fcport); vha 1573 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x705d, vha 1578 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gnl_work(vha, fcport); vha 1583 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 1586 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gnnid_work(vha, fcport); vha 1588 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20bd, vha 1591 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gnl_work(vha, fcport); vha 1593 drivers/scsi/qla2xxx/qla_init.c qla_chk_n2n_b4_login(vha, fcport); vha 1600 drivers/scsi/qla2xxx/qla_init.c switch (vha->hw->current_topology) { vha 1603 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2118, vha 1607 drivers/scsi/qla2xxx/qla_init.c vha->hw->base_qpair->chip_reset; vha 1608 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gpdb_work(vha, fcport, 0); vha 1610 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2118, vha 1614 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_prli_work(vha, fcport); vha 1619 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d8, vha 1625 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1628 drivers/scsi/qla2xxx/qla_init.c qla_chk_n2n_b4_login(vha, fcport); vha 1634 drivers/scsi/qla2xxx/qla_init.c if (N2N_TOPO(vha->hw)) vha 1635 drivers/scsi/qla2xxx/qla_init.c qla_chk_n2n_b4_login(vha, fcport); vha 1643 drivers/scsi/qla2xxx/qla_init.c qla2x00_post_async_adisc_work(vha, fcport, data); vha 1648 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_prli_work(vha, fcport); vha 1657 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, fcport->vha, 0xffff, vha 1664 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1674 drivers/scsi/qla2xxx/qla_init.c int qla24xx_post_newsess_work(struct scsi_qla_host *vha, port_id_t *id, vha 1679 drivers/scsi/qla2xxx/qla_init.c e = qla2x00_alloc_work(vha, QLA_EVT_NEW_SESS); vha 1690 drivers/scsi/qla2xxx/qla_init.c return qla2x00_post_work(vha, e); vha 1693 drivers/scsi/qla2xxx/qla_init.c void qla2x00_handle_rscn(scsi_qla_host_t *vha, struct event_arg *ea) vha 1698 drivers/scsi/qla2xxx/qla_init.c fcport = qla2x00_find_fcport_by_nportid(vha, &ea->id, 1); vha 1704 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->work_lock, flags); vha 1705 drivers/scsi/qla2xxx/qla_init.c if (vha->scan.scan_flags == 0) { vha 1706 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0xffff, "%s: schedule\n", __func__); vha 1707 drivers/scsi/qla2xxx/qla_init.c vha->scan.scan_flags |= SF_QUEUED; vha 1708 drivers/scsi/qla2xxx/qla_init.c schedule_delayed_work(&vha->scan.scan_work, 5); vha 1710 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 1713 drivers/scsi/qla2xxx/qla_init.c void qla24xx_handle_relogin_event(scsi_qla_host_t *vha, vha 1718 drivers/scsi/qla2xxx/qla_init.c if (test_bit(UNLOADING, &vha->dpc_flags)) vha 1721 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2102, vha 1731 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20e9, "%s %d %8phC post gnl\n", vha 1733 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gnl_work(vha, fcport); vha 1737 drivers/scsi/qla2xxx/qla_init.c qla24xx_fcport_handle_login(vha, fcport); vha 1759 drivers/scsi/qla2xxx/qla_init.c qla2x00_handle_rscn(fcport->vha, &ea); vha 1784 drivers/scsi/qla2xxx/qla_init.c struct scsi_qla_host *vha = fcport->vha; vha 1789 drivers/scsi/qla2xxx/qla_init.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 1799 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha)); vha 1806 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_taskm, vha, 0x802f, vha 1819 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x8030, vha 1823 drivers/scsi/qla2xxx/qla_init.c if (!test_bit(UNLOADING, &vha->dpc_flags) && !IS_QLAFX00(vha->hw)) { vha 1828 drivers/scsi/qla2xxx/qla_init.c qla2x00_marker(vha, vha->hw->base_qpair, vha 1848 drivers/scsi/qla2xxx/qla_init.c struct scsi_qla_host *vha = fcport->vha; vha 1863 drivers/scsi/qla2xxx/qla_init.c return qlafx00_fx_disc(vha, &vha->hw->mr.fcport, vha 1870 drivers/scsi/qla2xxx/qla_init.c qla24xx_handle_prli_done_event(struct scsi_qla_host *vha, struct event_arg *ea) vha 1877 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2118, vha 1881 drivers/scsi/qla2xxx/qla_init.c ea->fcport->chip_reset = vha->hw->base_qpair->chip_reset; vha 1889 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gpdb_work(vha, ea->fcport, 0); vha 1894 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1900 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2118, vha 1904 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_prli_work(vha, ea->fcport); vha 1909 drivers/scsi/qla2xxx/qla_init.c if (N2N_TOPO(vha->hw)) { vha 1916 drivers/scsi/qla2xxx/qla_init.c set_bit(N2N_LINK_RESET, &vha->dpc_flags); vha 1918 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x2119, vha 1936 drivers/scsi/qla2xxx/qla_init.c qla24xx_handle_plogi_done_event(struct scsi_qla_host *vha, struct event_arg *ea) vha 1944 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 1953 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20ea, vha 1961 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1967 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d3, vha 1970 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1973 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d3, vha 1992 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2117, vha 1995 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_prli_work(vha, ea->fcport); vha 1997 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20ea, vha 2002 drivers/scsi/qla2xxx/qla_init.c set_bit(ea->fcport->loop_id, vha->hw->loop_id_map); vha 2003 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 2004 drivers/scsi/qla2xxx/qla_init.c ea->fcport->chip_reset = vha->hw->base_qpair->chip_reset; vha 2008 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 2010 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gpdb_work(vha, ea->fcport, 0); vha 2014 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20eb, "%s %d %8phC cmd error %x\n", vha 2020 drivers/scsi/qla2xxx/qla_init.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 2022 drivers/scsi/qla2xxx/qla_init.c qla2x00_mark_device_lost(vha, ea->fcport, 1, 0); vha 2031 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20ec, vha 2036 drivers/scsi/qla2xxx/qla_init.c set_bit(ea->fcport->loop_id, vha->hw->loop_id_map); vha 2038 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gnl_work(vha, ea->fcport); vha 2042 drivers/scsi/qla2xxx/qla_init.c qlt_find_sess_invalidate_other(vha, vha 2055 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20ed, vha 2060 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20ed, vha 2066 drivers/scsi/qla2xxx/qla_init.c set_bit(lid, vha->hw->loop_id_map); vha 2077 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_logout_done(struct scsi_qla_host *vha, fc_port_t *fcport, vha 2091 drivers/scsi/qla2xxx/qla_init.c qla83xx_nic_core_fw_load(scsi_qla_host_t *vha) vha 2094 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2098 drivers/scsi/qla2xxx/qla_init.c qla83xx_idc_lock(vha, 0); vha 2107 drivers/scsi/qla2xxx/qla_init.c if (__qla83xx_set_drv_presence(vha) != QLA_SUCCESS) { vha 2108 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_p3p, vha, 0xb077, vha 2115 drivers/scsi/qla2xxx/qla_init.c qla83xx_reset_ownership(vha); vha 2123 drivers/scsi/qla2xxx/qla_init.c qla83xx_rd_reg(vha, QLA83XX_IDC_MAJOR_VERSION, &idc_major_ver); vha 2127 drivers/scsi/qla2xxx/qla_init.c qla83xx_wr_reg(vha, QLA83XX_IDC_MAJOR_VERSION, idc_major_ver); vha 2130 drivers/scsi/qla2xxx/qla_init.c qla83xx_wr_reg(vha, QLA83XX_IDC_LOCK_RECOVERY, 0); vha 2136 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xb07d, vha 2139 drivers/scsi/qla2xxx/qla_init.c __qla83xx_clear_drv_presence(vha); vha 2144 drivers/scsi/qla2xxx/qla_init.c qla83xx_rd_reg(vha, QLA83XX_IDC_MINOR_VERSION, &idc_minor_ver); vha 2146 drivers/scsi/qla2xxx/qla_init.c qla83xx_wr_reg(vha, QLA83XX_IDC_MINOR_VERSION, idc_minor_ver); vha 2150 drivers/scsi/qla2xxx/qla_init.c if (!qla81xx_get_port_config(vha, config)) vha 2151 drivers/scsi/qla2xxx/qla_init.c qla83xx_wr_reg(vha, QLA83XX_IDC_DEV_STATE, vha 2155 drivers/scsi/qla2xxx/qla_init.c rval = qla83xx_idc_state_handler(vha); vha 2158 drivers/scsi/qla2xxx/qla_init.c qla83xx_idc_unlock(vha, 0); vha 2174 drivers/scsi/qla2xxx/qla_init.c qla2x00_initialize_adapter(scsi_qla_host_t *vha) vha 2177 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2181 drivers/scsi/qla2xxx/qla_init.c memset(&vha->qla_stats, 0, sizeof(vha->qla_stats)); vha 2182 drivers/scsi/qla2xxx/qla_init.c memset(&vha->fc_host_stat, 0, sizeof(vha->fc_host_stat)); vha 2185 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 0; vha 2187 drivers/scsi/qla2xxx/qla_init.c vha->flags.reset_active = 0; vha 2190 drivers/scsi/qla2xxx/qla_init.c vha->qla_stats.jiffies_at_last_reset = get_jiffies_64(); vha 2191 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME); vha 2192 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 2193 drivers/scsi/qla2xxx/qla_init.c vha->device_flags = DFLG_NO_CABLE; vha 2194 drivers/scsi/qla2xxx/qla_init.c vha->dpc_flags = 0; vha 2195 drivers/scsi/qla2xxx/qla_init.c vha->flags.management_server_logged_in = 0; vha 2196 drivers/scsi/qla2xxx/qla_init.c vha->marker_needed = 0; vha 2203 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0040, vha 2205 drivers/scsi/qla2xxx/qla_init.c rval = ha->isp_ops->pci_config(vha); vha 2207 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0044, vha 2212 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->reset_chip(vha); vha 2217 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0xffff, "Adapter is Secure\n"); vha 2223 drivers/scsi/qla2xxx/qla_init.c rval = qla2xxx_get_flash_info(vha); vha 2225 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x004f, vha 2231 drivers/scsi/qla2xxx/qla_init.c qla8044_read_reset_template(vha); vha 2238 drivers/scsi/qla2xxx/qla_init.c qla8044_set_idc_dontreset(vha); vha 2241 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->get_flash_version(vha, req->ring); vha 2242 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0061, vha 2245 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->nvram_config(vha); vha 2249 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x0077, vha 2250 drivers/scsi/qla2xxx/qla_init.c "Masking HBA WWPN %8phN (via NVRAM).\n", vha->port_name); vha 2254 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0078, vha 2257 drivers/scsi/qla2xxx/qla_init.c if (qla2x00_isp_firmware(vha) != QLA_SUCCESS) { vha 2258 drivers/scsi/qla2xxx/qla_init.c rval = ha->isp_ops->chip_diag(vha); vha 2261 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_setup_chip(vha); vha 2267 drivers/scsi/qla2xxx/qla_init.c ha->cs84xx = qla84xx_get_chip(vha); vha 2269 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x00d0, vha 2275 drivers/scsi/qla2xxx/qla_init.c if (qla_ini_mode_enabled(vha) || qla_dual_mode_enabled(vha)) vha 2276 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_init_rings(vha); vha 2286 drivers/scsi/qla2xxx/qla_init.c rval = qla84xx_init_chip(vha); vha 2288 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x00d4, vha 2290 drivers/scsi/qla2xxx/qla_init.c qla84xx_put_chip(vha); vha 2296 drivers/scsi/qla2xxx/qla_init.c rval = qla83xx_nic_core_fw_load(vha); vha 2298 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0124, vha 2303 drivers/scsi/qla2xxx/qla_init.c qla24xx_read_fcp_prio_cfg(vha); vha 2306 drivers/scsi/qla2xxx/qla_init.c qla82xx_set_driver_version(vha, QLA2XXX_VERSION); vha 2308 drivers/scsi/qla2xxx/qla_init.c qla25xx_set_driver_version(vha, QLA2XXX_VERSION); vha 2320 drivers/scsi/qla2xxx/qla_init.c qla2100_pci_config(scsi_qla_host_t *vha) vha 2324 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2351 drivers/scsi/qla2xxx/qla_init.c qla2300_pci_config(scsi_qla_host_t *vha) vha 2356 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2433 drivers/scsi/qla2xxx/qla_init.c qla24xx_pci_config(scsi_qla_host_t *vha) vha 2437 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2477 drivers/scsi/qla2xxx/qla_init.c qla25xx_pci_config(scsi_qla_host_t *vha) vha 2480 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2508 drivers/scsi/qla2xxx/qla_init.c qla2x00_isp_firmware(scsi_qla_host_t *vha) vha 2513 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2519 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x0079, "RISC CODE NOT loaded.\n"); vha 2522 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_verify_checksum(vha, ha->fw_srisc_address); vha 2525 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_get_adapter_id(vha, &loop_id, &al_pa, vha 2531 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x007a, vha 2544 drivers/scsi/qla2xxx/qla_init.c qla2x00_reset_chip(scsi_qla_host_t *vha) vha 2547 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2691 drivers/scsi/qla2xxx/qla_init.c qla81xx_reset_mpi(scsi_qla_host_t *vha) vha 2695 drivers/scsi/qla2xxx/qla_init.c if (!IS_QLA81XX(vha->hw)) vha 2698 drivers/scsi/qla2xxx/qla_init.c return qla81xx_write_mpi_register(vha, mb); vha 2708 drivers/scsi/qla2xxx/qla_init.c qla24xx_reset_risc(scsi_qla_host_t *vha) vha 2711 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2732 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init + ql_dbg_verbose, vha, 0x017e, vha 2758 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init + ql_dbg_verbose, vha, 0x017f, vha 2776 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init + ql_dbg_verbose, vha, 0x015d, vha 2782 drivers/scsi/qla2xxx/qla_init.c if (test_and_clear_bit(MPI_RESET_NEEDED, &vha->dpc_flags)) { vha 2783 drivers/scsi/qla2xxx/qla_init.c if (qla81xx_reset_mpi(vha) != QLA_SUCCESS) { vha 2785 drivers/scsi/qla2xxx/qla_init.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2786 drivers/scsi/qla2xxx/qla_init.c set_bit(MPI_RESET_NEEDED, &vha->dpc_flags); vha 2793 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 0; vha 2819 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init + ql_dbg_verbose, vha, 0x015e, vha 2826 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init + ql_dbg_verbose, vha, 0x015f, vha 2837 drivers/scsi/qla2xxx/qla_init.c qla25xx_read_risc_sema_reg(scsi_qla_host_t *vha, uint32_t *data) vha 2839 drivers/scsi/qla2xxx/qla_init.c struct device_reg_24xx __iomem *reg = &vha->hw->iobase->isp24; vha 2847 drivers/scsi/qla2xxx/qla_init.c qla25xx_write_risc_sema_reg(scsi_qla_host_t *vha, uint32_t data) vha 2849 drivers/scsi/qla2xxx/qla_init.c struct device_reg_24xx __iomem *reg = &vha->hw->iobase->isp24; vha 2856 drivers/scsi/qla2xxx/qla_init.c qla25xx_manipulate_risc_semaphore(scsi_qla_host_t *vha) vha 2864 drivers/scsi/qla2xxx/qla_init.c if (vha->hw->pdev->subsystem_device != 0x0175 && vha 2865 drivers/scsi/qla2xxx/qla_init.c vha->hw->pdev->subsystem_device != 0x0240) vha 2868 drivers/scsi/qla2xxx/qla_init.c WRT_REG_DWORD(&vha->hw->iobase->isp24.hccr, HCCRX_SET_RISC_PAUSE); vha 2875 drivers/scsi/qla2xxx/qla_init.c qla25xx_write_risc_sema_reg(vha, RISC_SEMAPHORE_SET); vha 2876 drivers/scsi/qla2xxx/qla_init.c qla25xx_read_risc_sema_reg(vha, &wd32); vha 2891 drivers/scsi/qla2xxx/qla_init.c qla25xx_write_risc_sema_reg(vha, RISC_SEMAPHORE_CLR); vha 2895 drivers/scsi/qla2xxx/qla_init.c qla25xx_read_risc_sema_reg(vha, &wd32); vha 2905 drivers/scsi/qla2xxx/qla_init.c qla25xx_write_risc_sema_reg(vha, RISC_SEMAPHORE_FORCE_CLR); vha 2910 drivers/scsi/qla2xxx/qla_init.c qla25xx_write_risc_sema_reg(vha, RISC_SEMAPHORE_FORCE_SET); vha 2923 drivers/scsi/qla2xxx/qla_init.c qla24xx_reset_chip(scsi_qla_host_t *vha) vha 2925 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2935 drivers/scsi/qla2xxx/qla_init.c qla25xx_manipulate_risc_semaphore(vha); vha 2938 drivers/scsi/qla2xxx/qla_init.c rval = qla24xx_reset_risc(vha); vha 2950 drivers/scsi/qla2xxx/qla_init.c qla2x00_chip_diag(scsi_qla_host_t *vha) vha 2953 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 2964 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x007b, "Testing device at %p.\n", vha 2987 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x007c, vha 3009 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x007d, "Checking product ID of chip.\n"); vha 3017 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0062, vha 3038 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x007e, "Found QLA2200A Chip.\n"); vha 3047 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x007f, "Checking mailboxes.\n"); vha 3048 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_mbx_reg_test(vha); vha 3050 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0080, vha 3059 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x0081, vha 3074 drivers/scsi/qla2xxx/qla_init.c qla24xx_chip_diag(scsi_qla_host_t *vha) vha 3077 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 3085 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_mbx_reg_test(vha); vha 3087 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0082, vha 3098 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_fce_trace(scsi_qla_host_t *vha) vha 3103 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 3113 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00bd, vha 3123 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x00be, vha 3129 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_enable_fce_trace(vha, tc_dma, FCE_NUM_BUFFERS, vha 3132 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x00bf, vha 3138 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00c0, vha 3147 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_eft_trace(scsi_qla_host_t *vha) vha 3152 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 3158 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00bd, vha 3168 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x00c1, vha 3174 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_enable_eft_trace(vha, tc_dma, EFT_NUM_BUFFERS); vha 3176 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x00c2, vha 3182 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00c3, vha 3190 drivers/scsi/qla2xxx/qla_init.c qla2x00_alloc_offload_mem(scsi_qla_host_t *vha) vha 3192 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_fce_trace(vha); vha 3193 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_eft_trace(vha); vha 3197 drivers/scsi/qla2xxx/qla_init.c qla2x00_alloc_fw_dump(scsi_qla_host_t *vha) vha 3201 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 3243 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_fce_trace(vha); vha 3246 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_eft_trace(vha); vha 3257 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00ba, vha 3261 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00fa, vha 3264 drivers/scsi/qla2xxx/qla_init.c vha, fwdt->template); vha 3265 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00fa, vha 3288 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00c5, vha 3295 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x00c4, vha 3305 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00c5, vha 3315 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00c5, vha 3351 drivers/scsi/qla2xxx/qla_init.c qla81xx_mpi_sync(scsi_qla_host_t *vha) vha 3358 drivers/scsi/qla2xxx/qla_init.c if (!IS_QLA81XX(vha->hw)) vha 3361 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_write_ram_word(vha, 0x7c00, 1); vha 3363 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0105, vha 3368 drivers/scsi/qla2xxx/qla_init.c pci_read_config_word(vha->hw->pdev, 0x54, &dc); vha 3369 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_read_ram_word(vha, 0x7a15, &dw); vha 3371 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0067, "Unable to read sync.\n"); vha 3381 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_write_ram_word(vha, 0x7a15, dw); vha 3383 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0114, "Unable to gain sync.\n"); vha 3387 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_write_ram_word(vha, 0x7c00, 0); vha 3389 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x006d, vha 3453 drivers/scsi/qla2xxx/qla_init.c static void qla2xxx_print_sfp_info(struct scsi_qla_host *vha) vha 3456 drivers/scsi/qla2xxx/qla_init.c struct sff_8247_a0 *a0 = (struct sff_8247_a0 *)vha->hw->sfp_data; vha 3462 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x015a, vha 3467 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x015c, vha 3482 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0160, vha 3495 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0196, vha 3507 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x016e, vha 3511 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x016f, vha 3514 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0170, vha 3517 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0189, vha 3520 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018a, vha 3523 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0194, vha 3526 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0195, vha 3538 drivers/scsi/qla2xxx/qla_init.c qla24xx_detect_sfp(scsi_qla_host_t *vha) vha 3542 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 3544 drivers/scsi/qla2xxx/qla_init.c if (!AUTO_DETECT_SFP_SUPPORT(vha)) vha 3547 drivers/scsi/qla2xxx/qla_init.c rc = qla2x00_read_sfp_dev(vha, NULL, 0); vha 3551 drivers/scsi/qla2xxx/qla_init.c a = (struct sff_8247_a0 *)vha->hw->sfp_data; vha 3552 drivers/scsi/qla2xxx/qla_init.c qla2xxx_print_sfp_info(vha); vha 3564 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_async, vha, 0x507b, vha 3570 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_async, vha, 0x5084, vha 3574 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.init_done) vha 3587 drivers/scsi/qla2xxx/qla_init.c qla2x00_setup_chip(scsi_qla_host_t *vha) vha 3591 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 3597 drivers/scsi/qla2xxx/qla_init.c rval = ha->isp_ops->load_risc(vha, &srisc_address); vha 3599 drivers/scsi/qla2xxx/qla_init.c qla2x00_stop_firmware(vha); vha 3613 drivers/scsi/qla2xxx/qla_init.c qla81xx_mpi_sync(vha); vha 3616 drivers/scsi/qla2xxx/qla_init.c rval = ha->isp_ops->load_risc(vha, &srisc_address); vha 3618 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00c9, vha 3621 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_verify_checksum(vha, srisc_address); vha 3624 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00ca, vha 3630 drivers/scsi/qla2xxx/qla_init.c if (qla_is_exch_offld_enabled(vha)) vha 3633 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_execute_fw(vha, srisc_address); vha 3636 drivers/scsi/qla2xxx/qla_init.c qla24xx_detect_sfp(vha); vha 3641 drivers/scsi/qla2xxx/qla_init.c qla27xx_set_zio_threshold(vha, vha 3644 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_set_exlogins_buffer(vha); vha 3648 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_set_exchoffld_buffer(vha); vha 3655 drivers/scsi/qla2xxx/qla_init.c qla82xx_check_md_needed(vha); vha 3657 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_get_fw_version(vha); vha 3670 drivers/scsi/qla2xxx/qla_init.c qla2x00_get_resource_cnts(vha); vha 3677 drivers/scsi/qla2xxx/qla_init.c vha->req); vha 3682 drivers/scsi/qla2xxx/qla_init.c qla2x00_alloc_offload_mem(vha); vha 3685 drivers/scsi/qla2xxx/qla_init.c qla2x00_alloc_fw_dump(vha); vha 3691 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x00cd, vha 3716 drivers/scsi/qla2xxx/qla_init.c rval = qla81xx_fac_get_sector_size(vha, &size); vha 3721 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x00ce, vha 3735 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x00cf, vha 3774 drivers/scsi/qla2xxx/qla_init.c qla2x00_update_fw_options(scsi_qla_host_t *vha) vha 3777 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 3780 drivers/scsi/qla2xxx/qla_init.c qla2x00_get_fw_options(vha, ha->fw_options); vha 3786 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init + ql_dbg_buffer, vha, 0x0115, vha 3788 drivers/scsi/qla2xxx/qla_init.c ql_dump_buffer(ql_dbg_init + ql_dbg_buffer, vha, 0x0109, vha 3847 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2100, vha 3853 drivers/scsi/qla2xxx/qla_init.c qla2x00_set_fw_options(vha, ha->fw_options); vha 3857 drivers/scsi/qla2xxx/qla_init.c qla24xx_update_fw_options(scsi_qla_host_t *vha) vha 3860 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 3872 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2101, vha 3880 drivers/scsi/qla2xxx/qla_init.c if (qla_tgt_mode_enabled(vha) || vha 3881 drivers/scsi/qla2xxx/qla_init.c qla_dual_mode_enabled(vha)) vha 3893 drivers/scsi/qla2xxx/qla_init.c if (qla_tgt_mode_enabled(vha) || vha 3894 drivers/scsi/qla2xxx/qla_init.c qla_dual_mode_enabled(vha)) vha 3906 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00e8, vha 3909 drivers/scsi/qla2xxx/qla_init.c ha->fw_options[3], vha->host->active_mode); vha 3912 drivers/scsi/qla2xxx/qla_init.c qla2x00_set_fw_options(vha, ha->fw_options); vha 3918 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_set_serdes_params(vha, vha 3923 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0104, vha 3929 drivers/scsi/qla2xxx/qla_init.c qla2x00_config_rings(struct scsi_qla_host *vha) vha 3931 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 3952 drivers/scsi/qla2xxx/qla_init.c qla24xx_config_rings(struct scsi_qla_host *vha) vha 3954 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 3986 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0019, vha 4003 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00fe, vha 4021 drivers/scsi/qla2xxx/qla_init.c qlt_24xx_config_rings(vha); vha 4025 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00fd, vha 4045 drivers/scsi/qla2xxx/qla_init.c qla2x00_init_rings(scsi_qla_host_t *vha) vha 4050 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 4092 drivers/scsi/qla2xxx/qla_init.c qlt_init_atio_q_entries(vha); vha 4094 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->config_rings(vha); vha 4098 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00d1, "Issue init firmware.\n"); vha 4101 drivers/scsi/qla2xxx/qla_init.c rval = qlafx00_init_firmware(vha, ha->init_cb_size); vha 4106 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->update_fw_options(vha); vha 4120 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0191, "DPORT Support: %s.\n", vha 4125 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00bc, "FA-WWPN Support: %s.\n", vha 4129 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_init_firmware(vha, ha->init_cb_size); vha 4132 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x00d2, vha 4135 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00d3, vha 4138 drivers/scsi/qla2xxx/qla_init.c vha->u_ql2xexchoffld = vha->u_ql2xiniexchg = 0; vha 4151 drivers/scsi/qla2xxx/qla_init.c qla2x00_fw_ready(scsi_qla_host_t *vha) vha 4158 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 4160 drivers/scsi/qla2xxx/qla_init.c if (IS_QLAFX00(vha->hw)) vha 4161 drivers/scsi/qla2xxx/qla_init.c return qlafx00_fw_ready(vha); vha 4186 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.init_done) vha 4187 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x801e, vha 4192 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_get_firmware_state(vha, state); vha 4195 drivers/scsi/qla2xxx/qla_init.c vha->device_flags &= ~DFLG_NO_CABLE; vha 4198 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_taskm, vha, 0x801f, vha 4203 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_taskm, vha, 0x8028, vha 4207 drivers/scsi/qla2xxx/qla_init.c rval = qla84xx_init_chip(vha); vha 4210 drivers/scsi/qla2xxx/qla_init.c vha, 0x8007, vha 4219 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_taskm, vha, 0x8008, vha 4225 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_taskm, vha, 0x8037, vha 4228 drivers/scsi/qla2xxx/qla_init.c qla2x00_get_retry_cnt(vha, &ha->retry_count, vha 4237 drivers/scsi/qla2xxx/qla_init.c if (atomic_read(&vha->loop_down_timer) && vha 4243 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x8038, vha 4246 drivers/scsi/qla2xxx/qla_init.c vha->device_flags |= DFLG_NO_CABLE; vha 4264 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_taskm, vha, 0x803a, vha 4268 drivers/scsi/qla2xxx/qla_init.c if (rval && !(vha->device_flags & DFLG_NO_CABLE)) { vha 4269 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x803b, vha 4290 drivers/scsi/qla2xxx/qla_init.c qla2x00_configure_hba(scsi_qla_host_t *vha) vha 4300 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 4306 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_get_adapter_id(vha, vha 4309 drivers/scsi/qla2xxx/qla_init.c if (LOOP_TRANSITION(vha) || atomic_read(&ha->loop_down_timer) || vha 4312 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2008, vha 4315 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x2009, vha 4317 drivers/scsi/qla2xxx/qla_init.c if (IS_FWI2_CAPABLE(ha) && (vha == base_vha) && vha 4319 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x1151, vha 4321 drivers/scsi/qla2xxx/qla_init.c if (qla24xx_link_initialize(vha) == QLA_SUCCESS) vha 4324 drivers/scsi/qla2xxx/qla_init.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 4330 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x200a, vha 4335 drivers/scsi/qla2xxx/qla_init.c vha->loop_id = loop_id; vha 4344 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x200b, "HBA in NL topology.\n"); vha 4350 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x200c, "HBA in FL topology.\n"); vha 4357 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x200d, "HBA in N P2P topology.\n"); vha 4364 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x200e, "HBA in F P2P topology.\n"); vha 4372 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x200f, vha 4387 drivers/scsi/qla2xxx/qla_init.c qlt_update_host_map(vha, id); vha 4390 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.init_done) vha 4391 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x2010, vha 4393 drivers/scsi/qla2xxx/qla_init.c connect_type, vha->loop_id); vha 4399 drivers/scsi/qla2xxx/qla_init.c qla2x00_set_model_info(scsi_qla_host_t *vha, uint8_t *model, size_t len, vha 4405 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 4445 drivers/scsi/qla2xxx/qla_init.c qla2xxx_get_vpd_field(vha, "\x82", ha->model_desc, vha 4452 drivers/scsi/qla2xxx/qla_init.c static void qla2xxx_nvram_wwn_from_ofw(scsi_qla_host_t *vha, nvram_t *nv) vha 4455 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 4485 drivers/scsi/qla2xxx/qla_init.c qla2x00_nvram_config(scsi_qla_host_t *vha) vha 4491 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 4507 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->read_nvram(vha, ptr, ha->nvram_base, ha->nvram_size); vha 4511 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init + ql_dbg_buffer, vha, 0x010f, vha 4513 drivers/scsi/qla2xxx/qla_init.c ql_dump_buffer(ql_dbg_init + ql_dbg_buffer, vha, 0x0110, vha 4520 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0064, vha 4523 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0065, vha 4561 drivers/scsi/qla2xxx/qla_init.c qla2xxx_nvram_wwn_from_ofw(vha, nv); vha 4601 drivers/scsi/qla2xxx/qla_init.c qla2x00_set_model_info(vha, nv->model_number, vha 4682 drivers/scsi/qla2xxx/qla_init.c memcpy(vha->node_name, icb->node_name, WWN_SIZE); vha 4683 drivers/scsi/qla2xxx/qla_init.c memcpy(vha->port_name, icb->port_name, WWN_SIZE); vha 4750 drivers/scsi/qla2xxx/qla_init.c vha->flags.process_response_queue = 1; vha 4753 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.init_done) { vha 4761 drivers/scsi/qla2xxx/qla_init.c vha->flags.process_response_queue = 0; vha 4765 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x0068, vha 4771 drivers/scsi/qla2xxx/qla_init.c vha->flags.process_response_queue = 1; vha 4776 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0069, vha 4789 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(fcport->vha->host->host_lock, flags); vha 4792 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(fcport->vha->host->host_lock, flags); vha 4794 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, fcport->vha, 0x210b, vha 4812 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, fcport->vha, 0x207d, vha 4828 drivers/scsi/qla2xxx/qla_init.c qla2x00_alloc_fcport(scsi_qla_host_t *vha, gfp_t flags) vha 4836 drivers/scsi/qla2xxx/qla_init.c fcport->ct_desc.ct_sns = dma_alloc_coherent(&vha->hw->pdev->dev, vha 4840 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xd049, vha 4847 drivers/scsi/qla2xxx/qla_init.c fcport->vha = vha; vha 4857 drivers/scsi/qla2xxx/qla_init.c fcport->login_retry = vha->hw->login_retry_count; vha 4858 drivers/scsi/qla2xxx/qla_init.c fcport->chip_reset = vha->hw->base_qpair->chip_reset; vha 4862 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xd049, vha 4881 drivers/scsi/qla2xxx/qla_init.c dma_free_coherent(&fcport->vha->hw->pdev->dev, vha 4905 drivers/scsi/qla2xxx/qla_init.c qla2x00_configure_loop(scsi_qla_host_t *vha) vha 4909 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 4914 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags)) { vha 4915 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_configure_hba(vha); vha 4917 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2013, vha 4923 drivers/scsi/qla2xxx/qla_init.c save_flags = flags = vha->dpc_flags; vha 4924 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2014, vha 4931 drivers/scsi/qla2xxx/qla_init.c clear_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 4932 drivers/scsi/qla2xxx/qla_init.c clear_bit(RSCN_UPDATE, &vha->dpc_flags); vha 4934 drivers/scsi/qla2xxx/qla_init.c qla2x00_get_data_rate(vha); vha 4952 drivers/scsi/qla2xxx/qla_init.c } else if (!vha->flags.online || vha 4959 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) { vha 4960 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2015, vha 4964 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_configure_local_loop(vha); vha 4968 drivers/scsi/qla2xxx/qla_init.c if (LOOP_TRANSITION(vha)) { vha 4969 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2099, vha 4974 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_configure_fabric(vha); vha 4978 drivers/scsi/qla2xxx/qla_init.c if (atomic_read(&vha->loop_down_timer) || vha 4979 drivers/scsi/qla2xxx/qla_init.c test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) { vha 4982 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_state, LOOP_READY); vha 4983 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2069, vha 4991 drivers/scsi/qla2xxx/qla_init.c if (qla_tgt_mode_enabled(vha) || vha 4992 drivers/scsi/qla2xxx/qla_init.c qla_dual_mode_enabled(vha)) { vha 4994 drivers/scsi/qla2xxx/qla_init.c qlt_24xx_process_atio_queue(vha, 0); vha 5002 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x206a, vha 5005 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x206b, vha 5010 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) { vha 5012 drivers/scsi/qla2xxx/qla_init.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 5014 drivers/scsi/qla2xxx/qla_init.c set_bit(RSCN_UPDATE, &vha->dpc_flags); vha 5032 drivers/scsi/qla2xxx/qla_init.c qla2x00_configure_local_loop(scsi_qla_host_t *vha) vha 5044 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 5049 drivers/scsi/qla2xxx/qla_init.c if (test_and_clear_bit(N2N_LOGIN_NEEDED, &vha->dpc_flags)) { vha 5056 drivers/scsi/qla2xxx/qla_init.c rval = qla24xx_get_port_login_templ(vha, vha 5067 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00d1, vha 5073 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 5075 drivers/scsi/qla2xxx/qla_init.c qla24xx_fcport_handle_login(vha, fcport); vha 5080 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->work_lock, flags); vha 5081 drivers/scsi/qla2xxx/qla_init.c vha->scan.scan_retry++; vha 5082 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 5084 drivers/scsi/qla2xxx/qla_init.c if (vha->scan.scan_retry < MAX_SCAN_RETRIES) { vha 5085 drivers/scsi/qla2xxx/qla_init.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 5086 drivers/scsi/qla2xxx/qla_init.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 5096 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_get_id_list(vha, ha->gid_list, ha->gid_list_dma, vha 5101 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2011, vha 5103 drivers/scsi/qla2xxx/qla_init.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x2075, vha 5107 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->work_lock, flags); vha 5108 drivers/scsi/qla2xxx/qla_init.c vha->scan.scan_retry++; vha 5109 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 5111 drivers/scsi/qla2xxx/qla_init.c if (vha->scan.scan_retry < MAX_SCAN_RETRIES) { vha 5112 drivers/scsi/qla2xxx/qla_init.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 5113 drivers/scsi/qla2xxx/qla_init.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 5116 drivers/scsi/qla2xxx/qla_init.c vha->scan.scan_retry = 0; vha 5119 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 5124 drivers/scsi/qla2xxx/qla_init.c new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 5126 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x2012, vha 5150 drivers/scsi/qla2xxx/qla_init.c if (area && domain && ((area != vha->d_id.b.area) || vha 5151 drivers/scsi/qla2xxx/qla_init.c (domain != vha->d_id.b.domain)) && vha 5169 drivers/scsi/qla2xxx/qla_init.c rval2 = qla2x00_get_port_database(vha, new_fcport, 0); vha 5171 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2097, vha 5177 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2105, vha 5179 drivers/scsi/qla2xxx/qla_init.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 5184 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 5188 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 5206 drivers/scsi/qla2xxx/qla_init.c list_add_tail(&new_fcport->list, &vha->vp_fcports); vha 5211 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 5213 drivers/scsi/qla2xxx/qla_init.c new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 5216 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xd031, vha 5221 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 5225 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 5233 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 5234 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 5238 drivers/scsi/qla2xxx/qla_init.c if ((qla_dual_mode_enabled(vha) || vha 5239 drivers/scsi/qla2xxx/qla_init.c qla_ini_mode_enabled(vha)) && vha 5241 drivers/scsi/qla2xxx/qla_init.c qla2x00_mark_device_lost(vha, fcport, vha 5247 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20f0, vha 5259 drivers/scsi/qla2xxx/qla_init.c qla24xx_fcport_handle_login(vha, fcport); vha 5266 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2098, vha 5274 drivers/scsi/qla2xxx/qla_init.c qla2x00_iidma_fcport(scsi_qla_host_t *vha, fc_port_t *fcport) vha 5278 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 5291 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_set_idma_speed(vha, fcport->loop_id, fcport->fp_speed, vha 5294 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2004, vha 5298 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2005, vha 5305 drivers/scsi/qla2xxx/qla_init.c void qla_do_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport) vha 5307 drivers/scsi/qla2xxx/qla_init.c qla2x00_iidma_fcport(vha, fcport); vha 5308 drivers/scsi/qla2xxx/qla_init.c qla24xx_update_fcport_fcp_prio(vha, fcport); vha 5311 drivers/scsi/qla2xxx/qla_init.c int qla_post_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport) vha 5315 drivers/scsi/qla2xxx/qla_init.c e = qla2x00_alloc_work(vha, QLA_EVT_IIDMA); vha 5320 drivers/scsi/qla2xxx/qla_init.c return qla2x00_post_work(vha, e); vha 5325 drivers/scsi/qla2xxx/qla_init.c qla2x00_reg_remote_port(scsi_qla_host_t *vha, fc_port_t *fcport) vha 5339 drivers/scsi/qla2xxx/qla_init.c fcport->rport = rport = fc_remote_port_add(vha->host, 0, &rport_ids); vha 5341 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x2006, vha 5346 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(fcport->vha->host->host_lock, flags); vha 5348 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(fcport->vha->host->host_lock, flags); vha 5364 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20ee, vha 5389 drivers/scsi/qla2xxx/qla_init.c qla2x00_update_fcport(scsi_qla_host_t *vha, fc_port_t *fcport) vha 5394 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20ef, "%s %8phC\n", vha 5398 drivers/scsi/qla2xxx/qla_init.c fcport->login_retry = vha->hw->login_retry_count; vha 5404 drivers/scsi/qla2xxx/qla_init.c switch (vha->hw->current_topology) { vha 5413 drivers/scsi/qla2xxx/qla_init.c qla2x00_iidma_fcport(vha, fcport); vha 5416 drivers/scsi/qla2xxx/qla_init.c qla_nvme_register_remote(vha, fcport); vha 5422 drivers/scsi/qla2xxx/qla_init.c qla24xx_update_fcport_fcp_prio(vha, fcport); vha 5424 drivers/scsi/qla2xxx/qla_init.c switch (vha->host->active_mode) { vha 5426 drivers/scsi/qla2xxx/qla_init.c qla2x00_reg_remote_port(vha, fcport); vha 5429 drivers/scsi/qla2xxx/qla_init.c if (!vha->vha_tgt.qla_tgt->tgt_stop && vha 5430 drivers/scsi/qla2xxx/qla_init.c !vha->vha_tgt.qla_tgt->tgt_stopped) vha 5431 drivers/scsi/qla2xxx/qla_init.c qlt_fc_port_added(vha, fcport); vha 5434 drivers/scsi/qla2xxx/qla_init.c qla2x00_reg_remote_port(vha, fcport); vha 5435 drivers/scsi/qla2xxx/qla_init.c if (!vha->vha_tgt.qla_tgt->tgt_stop && vha 5436 drivers/scsi/qla2xxx/qla_init.c !vha->vha_tgt.qla_tgt->tgt_stopped) vha 5437 drivers/scsi/qla2xxx/qla_init.c qlt_fc_port_added(vha, fcport); vha 5445 drivers/scsi/qla2xxx/qla_init.c if (IS_IIDMA_CAPABLE(vha->hw) && vha->hw->flags.gpsc_supported) { vha 5448 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d7, vha 5451 drivers/scsi/qla2xxx/qla_init.c vha->fcport_count); vha 5452 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gfpnid_work(vha, fcport); vha 5454 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20d7, vha 5457 drivers/scsi/qla2xxx/qla_init.c vha->fcport_count); vha 5458 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_gpsc_work(vha, fcport); vha 5474 drivers/scsi/qla2xxx/qla_init.c qla2x00_update_fcport(fcport->vha, fcport); vha 5484 drivers/scsi/qla2xxx/qla_init.c qla2x00_post_async_adisc_work(fcport->vha, fcport, vha 5505 drivers/scsi/qla2xxx/qla_init.c qla2x00_configure_fabric(scsi_qla_host_t *vha) vha 5512 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 5520 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_get_port_name(vha, loop_id, vha->fabric_node_name, 1); vha 5522 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20a0, vha 5525 drivers/scsi/qla2xxx/qla_init.c vha->device_flags &= ~SWITCH_FOUND; vha 5528 drivers/scsi/qla2xxx/qla_init.c vha->device_flags |= SWITCH_FOUND; vha 5531 drivers/scsi/qla2xxx/qla_init.c if (qla_tgt_mode_enabled(vha) || qla_dual_mode_enabled(vha)) { vha 5532 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_send_change_request(vha, 0x3, 0); vha 5534 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x121, vha 5541 drivers/scsi/qla2xxx/qla_init.c qla2x00_mgmt_svr_login(vha); vha 5545 drivers/scsi/qla2xxx/qla_init.c test_and_clear_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags)) vha 5546 drivers/scsi/qla2xxx/qla_init.c qla2x00_fdmi_register(vha); vha 5550 drivers/scsi/qla2xxx/qla_init.c rval = ha->isp_ops->fabric_login(vha, loop_id, 0xff, 0xff, vha 5553 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20a1, vha 5556 drivers/scsi/qla2xxx/qla_init.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 5559 drivers/scsi/qla2xxx/qla_init.c if (test_and_clear_bit(REGISTER_FC4_NEEDED, &vha->dpc_flags)) { vha 5560 drivers/scsi/qla2xxx/qla_init.c if (qla2x00_rft_id(vha)) { vha 5562 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20a2, vha 5565 drivers/scsi/qla2xxx/qla_init.c &vha->dpc_flags)) vha 5568 drivers/scsi/qla2xxx/qla_init.c if (qla2x00_rff_id(vha, FC4_TYPE_FCP_SCSI)) { vha 5570 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x209a, vha 5573 drivers/scsi/qla2xxx/qla_init.c &vha->dpc_flags)) vha 5576 drivers/scsi/qla2xxx/qla_init.c if (vha->flags.nvme_enabled) { vha 5577 drivers/scsi/qla2xxx/qla_init.c if (qla2x00_rff_id(vha, FC_TYPE_NVME)) { vha 5578 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2049, vha 5582 drivers/scsi/qla2xxx/qla_init.c if (qla2x00_rnn_id(vha)) { vha 5584 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2104, vha 5587 drivers/scsi/qla2xxx/qla_init.c &vha->dpc_flags)) vha 5589 drivers/scsi/qla2xxx/qla_init.c } else if (qla2x00_rsnn_nn(vha)) { vha 5591 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x209b, vha 5593 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 5605 drivers/scsi/qla2xxx/qla_init.c qlt_do_generation_tick(vha, &discovery_gen); vha 5608 drivers/scsi/qla2xxx/qla_init.c rval = qla24xx_async_gpnft(vha, FC4_TYPE_FCP_SCSI, vha 5611 drivers/scsi/qla2xxx/qla_init.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 5613 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(fcport, &vha->vp_fcports, list) vha 5616 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_find_all_fabric_devs(vha); vha 5622 drivers/scsi/qla2xxx/qla_init.c if (!vha->nvme_local_port && vha->flags.nvme_enabled) vha 5623 drivers/scsi/qla2xxx/qla_init.c qla_nvme_register_hba(vha); vha 5626 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2068, vha 5646 drivers/scsi/qla2xxx/qla_init.c qla2x00_find_all_fabric_devs(scsi_qla_host_t *vha) vha 5657 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 5670 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x209c, vha 5674 drivers/scsi/qla2xxx/qla_init.c if (qla2x00_gid_pt(vha, swl) != QLA_SUCCESS) { vha 5676 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 5678 drivers/scsi/qla2xxx/qla_init.c } else if (qla2x00_gpn_id(vha, swl) != QLA_SUCCESS) { vha 5680 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 5682 drivers/scsi/qla2xxx/qla_init.c } else if (qla2x00_gnn_id(vha, swl) != QLA_SUCCESS) { vha 5684 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 5686 drivers/scsi/qla2xxx/qla_init.c } else if (qla2x00_gfpn_id(vha, swl) != QLA_SUCCESS) { vha 5688 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 5694 drivers/scsi/qla2xxx/qla_init.c qla2x00_gff_id(vha, swl); vha 5695 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 5702 drivers/scsi/qla2xxx/qla_init.c new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 5704 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x209d, vha 5716 drivers/scsi/qla2xxx/qla_init.c if (qla2x00_is_reserved_id(vha, loop_id)) vha 5720 drivers/scsi/qla2xxx/qla_init.c (atomic_read(&vha->loop_down_timer) || vha 5721 drivers/scsi/qla2xxx/qla_init.c LOOP_TRANSITION(vha))) { vha 5722 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_down_timer, 0); vha 5723 drivers/scsi/qla2xxx/qla_init.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 5724 drivers/scsi/qla2xxx/qla_init.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 5744 drivers/scsi/qla2xxx/qla_init.c if (vha->flags.nvme_enabled && vha 5748 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x2131, vha 5760 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_ga_nxt(vha, new_fcport); vha 5762 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x209e, vha 5775 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x209f, vha 5788 drivers/scsi/qla2xxx/qla_init.c if (qla2x00_is_a_vp_did(vha, new_fcport->d_id.b24)) vha 5793 drivers/scsi/qla2xxx/qla_init.c (vha->d_id.b24 & 0xffff00)) && ha->current_topology == vha 5807 drivers/scsi/qla2xxx/qla_init.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 5811 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 5831 drivers/scsi/qla2xxx/qla_init.c (vha->host->active_mode == MODE_TARGET))) { vha 5852 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf080, vha 5875 drivers/scsi/qla2xxx/qla_init.c vha->fcport_count--; vha 5881 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 5886 drivers/scsi/qla2xxx/qla_init.c list_add_tail(&new_fcport->list, &vha->vp_fcports); vha 5888 drivers/scsi/qla2xxx/qla_init.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 5893 drivers/scsi/qla2xxx/qla_init.c new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 5895 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xd032, vha 5908 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 5909 drivers/scsi/qla2xxx/qla_init.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 5916 drivers/scsi/qla2xxx/qla_init.c if ((qla_dual_mode_enabled(vha) || vha 5917 drivers/scsi/qla2xxx/qla_init.c qla_ini_mode_enabled(vha)) && vha 5919 drivers/scsi/qla2xxx/qla_init.c qla2x00_mark_device_lost(vha, fcport, vha 5925 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x20f0, vha 5937 drivers/scsi/qla2xxx/qla_init.c qla24xx_fcport_handle_login(vha, fcport); vha 5944 drivers/scsi/qla2xxx/qla_init.c qla2x00_reserve_mgmt_server_loop_id(scsi_qla_host_t *vha) vha 5947 drivers/scsi/qla2xxx/qla_init.c int lid = NPH_MGMT_SERVER - vha->vp_idx; vha 5949 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 5951 drivers/scsi/qla2xxx/qla_init.c if (vha->vp_idx == 0) { vha 5959 drivers/scsi/qla2xxx/qla_init.c if (!test_bit(lid, vha->hw->loop_id_map)) { vha 5960 drivers/scsi/qla2xxx/qla_init.c set_bit(lid, vha->hw->loop_id_map); vha 5985 drivers/scsi/qla2xxx/qla_init.c qla2x00_fabric_login(scsi_qla_host_t *vha, fc_port_t *fcport, vha 5992 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 5998 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2000, vha 6005 drivers/scsi/qla2xxx/qla_init.c rval = ha->isp_ops->fabric_login(vha, fcport->loop_id, vha 6023 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2001, vha 6071 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_find_new_loop_id(vha, fcport); vha 6083 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->fabric_logout(vha, fcport->loop_id, vha 6086 drivers/scsi/qla2xxx/qla_init.c qla2x00_mark_device_lost(vha, fcport, 1, 0); vha 6094 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2002, vha 6101 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->fabric_logout(vha, fcport->loop_id, vha 6129 drivers/scsi/qla2xxx/qla_init.c qla2x00_local_device_login(scsi_qla_host_t *vha, fc_port_t *fcport) vha 6135 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_login_local_device(vha, fcport, mb, BIT_0); vha 6159 drivers/scsi/qla2xxx/qla_init.c qla2x00_loop_resync(scsi_qla_host_t *vha) vha 6164 drivers/scsi/qla2xxx/qla_init.c clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags); vha 6165 drivers/scsi/qla2xxx/qla_init.c if (vha->flags.online) { vha 6166 drivers/scsi/qla2xxx/qla_init.c if (!(rval = qla2x00_fw_ready(vha))) { vha 6170 drivers/scsi/qla2xxx/qla_init.c if (!IS_QLAFX00(vha->hw)) { vha 6175 drivers/scsi/qla2xxx/qla_init.c qla2x00_marker(vha, vha->hw->base_qpair, vha 6177 drivers/scsi/qla2xxx/qla_init.c vha->marker_needed = 0; vha 6181 drivers/scsi/qla2xxx/qla_init.c clear_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 6183 drivers/scsi/qla2xxx/qla_init.c if (IS_QLAFX00(vha->hw)) vha 6184 drivers/scsi/qla2xxx/qla_init.c qlafx00_configure_devices(vha); vha 6186 drivers/scsi/qla2xxx/qla_init.c qla2x00_configure_loop(vha); vha 6189 drivers/scsi/qla2xxx/qla_init.c } while (!atomic_read(&vha->loop_down_timer) && vha 6190 drivers/scsi/qla2xxx/qla_init.c !(test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags)) vha 6192 drivers/scsi/qla2xxx/qla_init.c &vha->dpc_flags))); vha 6196 drivers/scsi/qla2xxx/qla_init.c if (test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags)) vha 6200 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x206c, vha 6241 drivers/scsi/qla2xxx/qla_init.c struct scsi_qla_host *vha; vha 6247 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(vha, &base_vha->hw->vp_list, list) { vha 6248 drivers/scsi/qla2xxx/qla_init.c atomic_inc(&vha->vref_count); vha 6249 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 6258 drivers/scsi/qla2xxx/qla_init.c atomic_dec(&vha->vref_count); vha 6259 drivers/scsi/qla2xxx/qla_init.c wake_up(&vha->vref_waitq); vha 6266 drivers/scsi/qla2xxx/qla_init.c qla83xx_reset_ownership(scsi_qla_host_t *vha) vha 6268 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6275 drivers/scsi/qla2xxx/qla_init.c drv_presence = qla8044_rd_direct(vha, vha 6277 drivers/scsi/qla2xxx/qla_init.c dev_part_info1 = qla8044_rd_direct(vha, vha 6279 drivers/scsi/qla2xxx/qla_init.c dev_part_info2 = qla8044_rd_direct(vha, vha 6282 drivers/scsi/qla2xxx/qla_init.c qla83xx_rd_reg(vha, QLA83XX_IDC_DRV_PRESENCE, &drv_presence); vha 6283 drivers/scsi/qla2xxx/qla_init.c qla83xx_rd_reg(vha, QLA83XX_DEV_PARTINFO1, &dev_part_info1); vha 6284 drivers/scsi/qla2xxx/qla_init.c qla83xx_rd_reg(vha, QLA83XX_DEV_PARTINFO2, &dev_part_info2); vha 6318 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_p3p, vha, 0xb07f, vha 6325 drivers/scsi/qla2xxx/qla_init.c __qla83xx_set_drv_ack(scsi_qla_host_t *vha) vha 6328 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6331 drivers/scsi/qla2xxx/qla_init.c rval = qla83xx_rd_reg(vha, QLA83XX_IDC_DRIVER_ACK, &drv_ack); vha 6334 drivers/scsi/qla2xxx/qla_init.c rval = qla83xx_wr_reg(vha, QLA83XX_IDC_DRIVER_ACK, drv_ack); vha 6341 drivers/scsi/qla2xxx/qla_init.c __qla83xx_clear_drv_ack(scsi_qla_host_t *vha) vha 6344 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6347 drivers/scsi/qla2xxx/qla_init.c rval = qla83xx_rd_reg(vha, QLA83XX_IDC_DRIVER_ACK, &drv_ack); vha 6350 drivers/scsi/qla2xxx/qla_init.c rval = qla83xx_wr_reg(vha, QLA83XX_IDC_DRIVER_ACK, drv_ack); vha 6381 drivers/scsi/qla2xxx/qla_init.c qla83xx_idc_audit(scsi_qla_host_t *vha, int audit_type) vha 6383 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6391 drivers/scsi/qla2xxx/qla_init.c qla83xx_wr_reg(vha, QLA83XX_IDC_AUDIT, idc_audit_reg); vha 6399 drivers/scsi/qla2xxx/qla_init.c qla83xx_wr_reg(vha, QLA83XX_IDC_AUDIT, idc_audit_reg); vha 6403 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xb078, vha 6411 drivers/scsi/qla2xxx/qla_init.c qla83xx_initiating_reset(scsi_qla_host_t *vha) vha 6413 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6416 drivers/scsi/qla2xxx/qla_init.c __qla83xx_get_idc_control(vha, &idc_control); vha 6418 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0xb080, vha 6425 drivers/scsi/qla2xxx/qla_init.c qla83xx_rd_reg(vha, QLA83XX_IDC_DEV_STATE, &dev_state); vha 6427 drivers/scsi/qla2xxx/qla_init.c qla83xx_wr_reg(vha, QLA83XX_IDC_DEV_STATE, vha 6429 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0xb056, "HW State: NEED RESET.\n"); vha 6430 drivers/scsi/qla2xxx/qla_init.c qla83xx_idc_audit(vha, IDC_AUDIT_TIMESTAMP); vha 6434 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0xb057, "HW State: %s.\n", state); vha 6439 drivers/scsi/qla2xxx/qla_init.c qla83xx_idc_unlock(vha, 0); vha 6441 drivers/scsi/qla2xxx/qla_init.c qla83xx_idc_lock(vha, 0); vha 6442 drivers/scsi/qla2xxx/qla_init.c qla83xx_rd_reg(vha, QLA83XX_IDC_DEV_STATE, &dev_state); vha 6447 drivers/scsi/qla2xxx/qla_init.c __qla83xx_set_drv_ack(vha); vha 6453 drivers/scsi/qla2xxx/qla_init.c __qla83xx_set_idc_control(scsi_qla_host_t *vha, uint32_t idc_control) vha 6455 drivers/scsi/qla2xxx/qla_init.c return qla83xx_wr_reg(vha, QLA83XX_IDC_CONTROL, idc_control); vha 6459 drivers/scsi/qla2xxx/qla_init.c __qla83xx_get_idc_control(scsi_qla_host_t *vha, uint32_t *idc_control) vha 6461 drivers/scsi/qla2xxx/qla_init.c return qla83xx_rd_reg(vha, QLA83XX_IDC_CONTROL, idc_control); vha 6465 drivers/scsi/qla2xxx/qla_init.c qla83xx_check_driver_presence(scsi_qla_host_t *vha) vha 6468 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6470 drivers/scsi/qla2xxx/qla_init.c qla83xx_rd_reg(vha, QLA83XX_IDC_DRV_PRESENCE, &drv_presence); vha 6478 drivers/scsi/qla2xxx/qla_init.c qla83xx_nic_core_reset(scsi_qla_host_t *vha) vha 6481 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6483 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_p3p, vha, 0xb058, vha 6486 drivers/scsi/qla2xxx/qla_init.c if (vha->device_flags & DFLG_DEV_FAILED) { vha 6487 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xb059, vha 6492 drivers/scsi/qla2xxx/qla_init.c qla83xx_idc_lock(vha, 0); vha 6494 drivers/scsi/qla2xxx/qla_init.c if (qla83xx_check_driver_presence(vha) != QLA_SUCCESS) { vha 6495 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xb05a, vha 6502 drivers/scsi/qla2xxx/qla_init.c qla83xx_reset_ownership(vha); vha 6504 drivers/scsi/qla2xxx/qla_init.c rval = qla83xx_initiating_reset(vha); vha 6511 drivers/scsi/qla2xxx/qla_init.c rval = qla83xx_idc_state_handler(vha); vha 6515 drivers/scsi/qla2xxx/qla_init.c __qla83xx_clear_drv_ack(vha); vha 6519 drivers/scsi/qla2xxx/qla_init.c qla83xx_idc_unlock(vha, 0); vha 6521 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_p3p, vha, 0xb05b, "Exiting %s.\n", __func__); vha 6527 drivers/scsi/qla2xxx/qla_init.c qla2xxx_mctp_dump(scsi_qla_host_t *vha) vha 6529 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6534 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x506d, vha 6544 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x506e, vha 6551 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_dump_mctp_data(vha, ha->mctp_dump_dma, vha 6554 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x506f, vha 6557 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x5070, vha 6559 drivers/scsi/qla2xxx/qla_init.c vha->host_no, ha->mctp_dump); vha 6565 drivers/scsi/qla2xxx/qla_init.c rval = qla83xx_restart_nic_firmware(vha); vha 6568 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x5071, vha 6571 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_p3p, vha, 0xb084, vha 6589 drivers/scsi/qla2xxx/qla_init.c qla2x00_quiesce_io(scsi_qla_host_t *vha) vha 6591 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6594 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_dpc, vha, 0x401d, vha 6598 drivers/scsi/qla2xxx/qla_init.c if (atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 6599 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 6600 drivers/scsi/qla2xxx/qla_init.c qla2x00_mark_all_devices_lost(vha, 0); vha 6604 drivers/scsi/qla2xxx/qla_init.c if (!atomic_read(&vha->loop_down_timer)) vha 6605 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_down_timer, vha 6609 drivers/scsi/qla2xxx/qla_init.c WARN_ON_ONCE(qla2x00_eh_wait_for_pending_commands(vha, 0, 0, WAIT_HOST) vha 6614 drivers/scsi/qla2xxx/qla_init.c qla2x00_abort_isp_cleanup(scsi_qla_host_t *vha) vha 6616 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6626 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 0; vha 6628 drivers/scsi/qla2xxx/qla_init.c clear_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 6629 drivers/scsi/qla2xxx/qla_init.c vha->qla_stats.total_isp_aborts++; vha 6631 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x00af, vha 6640 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->reset_chip(vha); vha 6675 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME); vha 6676 drivers/scsi/qla2xxx/qla_init.c if (atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 6677 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 6678 drivers/scsi/qla2xxx/qla_init.c qla2x00_mark_all_devices_lost(vha, 0); vha 6692 drivers/scsi/qla2xxx/qla_init.c if (!atomic_read(&vha->loop_down_timer)) vha 6693 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_down_timer, vha 6698 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 6718 drivers/scsi/qla2xxx/qla_init.c qla82xx_chip_reset_cleanup(vha); vha 6719 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x00b4, vha 6725 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 0; vha 6729 drivers/scsi/qla2xxx/qla_init.c qla2x00_abort_all_cmds(vha, DID_RESET << 16); vha 6746 drivers/scsi/qla2xxx/qla_init.c qla2x00_abort_isp(scsi_qla_host_t *vha) vha 6750 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6755 drivers/scsi/qla2xxx/qla_init.c if (vha->flags.online) { vha 6756 drivers/scsi/qla2xxx/qla_init.c qla2x00_abort_isp_cleanup(vha); vha 6758 drivers/scsi/qla2xxx/qla_init.c if (test_and_clear_bit(ISP_ABORT_TO_ROM, &vha->dpc_flags)) { vha 6760 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 1; vha 6762 drivers/scsi/qla2xxx/qla_init.c clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags); vha 6767 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_p3p, vha, 0xb05c, vha 6769 drivers/scsi/qla2xxx/qla_init.c if (qla83xx_clear_drv_presence(vha) != QLA_SUCCESS) vha 6770 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_p3p, vha, 0xb073, vha 6776 drivers/scsi/qla2xxx/qla_init.c clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags); vha 6781 drivers/scsi/qla2xxx/qla_init.c switch (vha->qlini_mode) { vha 6783 drivers/scsi/qla2xxx/qla_init.c if (!qla_tgt_mode_enabled(vha)) vha 6787 drivers/scsi/qla2xxx/qla_init.c if (!qla_dual_mode_enabled(vha)) vha 6795 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->get_flash_version(vha, req->ring); vha 6797 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->nvram_config(vha); vha 6799 drivers/scsi/qla2xxx/qla_init.c if (!qla2x00_restart_isp(vha)) { vha 6800 drivers/scsi/qla2xxx/qla_init.c clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); vha 6802 drivers/scsi/qla2xxx/qla_init.c if (!atomic_read(&vha->loop_down_timer)) { vha 6807 drivers/scsi/qla2xxx/qla_init.c vha->marker_needed = 1; vha 6810 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 1; vha 6815 drivers/scsi/qla2xxx/qla_init.c clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags); vha 6818 drivers/scsi/qla2xxx/qla_init.c qla2x00_get_fw_version(vha); vha 6823 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_enable_fce_trace(vha, vha 6827 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x8033, vha 6836 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_enable_eft_trace(vha, vha 6839 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x8034, vha 6845 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 1; vha 6846 drivers/scsi/qla2xxx/qla_init.c if (test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { vha 6848 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x8035, vha 6855 drivers/scsi/qla2xxx/qla_init.c qla2x00_abort_isp_cleanup(vha); vha 6856 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 0; vha 6858 drivers/scsi/qla2xxx/qla_init.c &vha->dpc_flags); vha 6862 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_taskm, vha, 0x8020, vha 6869 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_taskm, vha, 0x8021, vha 6872 drivers/scsi/qla2xxx/qla_init.c set_bit(ISP_ABORT_RETRY, &vha->dpc_flags); vha 6880 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_taskm, vha, 0x8022, "%s succeeded.\n", __func__); vha 6881 drivers/scsi/qla2xxx/qla_init.c qla2x00_configure_hba(vha); vha 6897 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_p3p, vha, 0xb05d, vha 6899 drivers/scsi/qla2xxx/qla_init.c if (qla83xx_set_drv_presence(vha) != QLA_SUCCESS) vha 6900 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_p3p, vha, 0xb074, vha 6904 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x8023, "%s **** FAILED ****.\n", vha 6922 drivers/scsi/qla2xxx/qla_init.c qla2x00_restart_isp(scsi_qla_host_t *vha) vha 6925 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 6928 drivers/scsi/qla2xxx/qla_init.c if (qla2x00_isp_firmware(vha)) { vha 6929 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 0; vha 6930 drivers/scsi/qla2xxx/qla_init.c status = ha->isp_ops->chip_diag(vha); vha 6932 drivers/scsi/qla2xxx/qla_init.c status = qla2x00_setup_chip(vha); vha 6935 drivers/scsi/qla2xxx/qla_init.c if (!status && !(status = qla2x00_init_rings(vha))) { vha 6936 drivers/scsi/qla2xxx/qla_init.c clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); vha 6942 drivers/scsi/qla2xxx/qla_init.c status = qla2x00_fw_ready(vha); vha 6945 drivers/scsi/qla2xxx/qla_init.c qla2x00_marker(vha, ha->base_qpair, 0, 0, MK_SYNC_ALL); vha 6946 drivers/scsi/qla2xxx/qla_init.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 6950 drivers/scsi/qla2xxx/qla_init.c if ((vha->device_flags & DFLG_NO_CABLE)) vha 7007 drivers/scsi/qla2xxx/qla_init.c qla2x00_reset_adapter(scsi_qla_host_t *vha) vha 7010 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 7013 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 0; vha 7027 drivers/scsi/qla2xxx/qla_init.c qla24xx_reset_adapter(scsi_qla_host_t *vha) vha 7030 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 7037 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 0; vha 7056 drivers/scsi/qla2xxx/qla_init.c static void qla24xx_nvram_wwn_from_ofw(scsi_qla_host_t *vha, vha 7060 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 7077 drivers/scsi/qla2xxx/qla_init.c qla24xx_nvram_config(scsi_qla_host_t *vha) vha 7086 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 7106 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->read_nvram(vha, ha->vpd, vha 7111 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->read_nvram(vha, dptr, ha->nvram_base, ha->nvram_size); vha 7115 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init + ql_dbg_buffer, vha, 0x006a, vha 7117 drivers/scsi/qla2xxx/qla_init.c ql_dump_buffer(ql_dbg_init + ql_dbg_buffer, vha, 0x010d, vha 7124 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x006b, vha 7127 drivers/scsi/qla2xxx/qla_init.c ql_dump_buffer(ql_dbg_init, vha, 0x006b, nv, sizeof(*nv)); vha 7128 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x006c, vha 7158 drivers/scsi/qla2xxx/qla_init.c qla24xx_nvram_wwn_from_ofw(vha, nv); vha 7177 drivers/scsi/qla2xxx/qla_init.c if (qla_tgt_mode_enabled(vha)) { vha 7184 drivers/scsi/qla2xxx/qla_init.c qlt_24xx_config_nvram_stage1(vha, nv); vha 7210 drivers/scsi/qla2xxx/qla_init.c qla2x00_set_model_info(vha, nv->model_name, sizeof(nv->model_name), vha 7213 drivers/scsi/qla2xxx/qla_init.c qlt_24xx_config_nvram_stage2(vha, icb); vha 7251 drivers/scsi/qla2xxx/qla_init.c memcpy(vha->node_name, icb->node_name, WWN_SIZE); vha 7252 drivers/scsi/qla2xxx/qla_init.c memcpy(vha->port_name, icb->port_name, WWN_SIZE); vha 7309 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.init_done) { vha 7320 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x006f, vha 7330 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0070, vha 7337 drivers/scsi/qla2xxx/qla_init.c qla27xx_print_image(struct scsi_qla_host *vha, char *name, vha 7340 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018b, vha 7425 drivers/scsi/qla2xxx/qla_init.c struct scsi_qla_host *vha, struct active_regions *active_regions) vha 7427 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 7433 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018a, "Primary aux image not addressed\n"); vha 7437 drivers/scsi/qla2xxx/qla_init.c qla24xx_read_flash_data(vha, (void *)&pri_aux_image_status, vha 7440 drivers/scsi/qla2xxx/qla_init.c qla27xx_print_image(vha, "Primary aux image", &pri_aux_image_status); vha 7443 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018b, vha 7450 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018c, vha 7458 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018d, vha 7465 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018a, vha 7470 drivers/scsi/qla2xxx/qla_init.c qla24xx_read_flash_data(vha, (void *)&sec_aux_image_status, vha 7473 drivers/scsi/qla2xxx/qla_init.c qla27xx_print_image(vha, "Secondary aux image", &sec_aux_image_status); vha 7476 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018b, vha 7483 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018c, vha 7491 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018d, vha 7513 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018f, vha 7522 drivers/scsi/qla2xxx/qla_init.c qla27xx_get_active_image(struct scsi_qla_host *vha, vha 7525 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 7531 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018a, "Primary image not addressed\n"); vha 7535 drivers/scsi/qla2xxx/qla_init.c if (qla24xx_read_flash_data(vha, (void *)(&pri_image_status), vha 7541 drivers/scsi/qla2xxx/qla_init.c qla27xx_print_image(vha, "Primary image", &pri_image_status); vha 7544 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018b, vha 7551 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018c, vha 7559 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018d, vha 7566 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018a, "Secondary image not addressed\n"); vha 7570 drivers/scsi/qla2xxx/qla_init.c qla24xx_read_flash_data(vha, (uint32_t *)(&sec_image_status), vha 7572 drivers/scsi/qla2xxx/qla_init.c qla27xx_print_image(vha, "Secondary image", &sec_image_status); vha 7575 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018b, vha 7582 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018c, vha 7590 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018d, vha 7607 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x018f, "active image %s (%u)\n", vha 7625 drivers/scsi/qla2xxx/qla_init.c qla24xx_load_risc_flash(scsi_qla_host_t *vha, uint32_t *srisc_addr, vha 7635 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 7639 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x008b, vha 7643 drivers/scsi/qla2xxx/qla_init.c qla24xx_read_flash_data(vha, dcode, faddr, 8); vha 7645 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x008c, vha 7648 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x008d, vha 7659 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x008d, vha 7661 drivers/scsi/qla2xxx/qla_init.c qla24xx_read_flash_data(vha, dcode, faddr, 10); vha 7674 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x008e, vha 7677 drivers/scsi/qla2xxx/qla_init.c qla24xx_read_flash_data(vha, dcode, faddr, dlen); vha 7681 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_load_ram(vha, req->dma, risc_addr, dlen); vha 7683 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x008f, vha 7699 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0160, "-> templates = %u\n", templates); vha 7707 drivers/scsi/qla2xxx/qla_init.c qla24xx_read_flash_data(vha, dcode, faddr, 7); vha 7709 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0161, vha 7713 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0162, vha 7722 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0163, vha 7727 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0164, vha 7733 drivers/scsi/qla2xxx/qla_init.c qla24xx_read_flash_data(vha, dcode, faddr, risc_size); vha 7736 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0165, vha 7742 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0166, vha 7746 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0167, vha 7753 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0168, vha 7773 drivers/scsi/qla2xxx/qla_init.c qla2x00_load_risc(scsi_qla_host_t *vha, uint32_t *srisc_addr) vha 7780 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 7784 drivers/scsi/qla2xxx/qla_init.c blob = qla2x00_request_firmware(vha); vha 7786 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x0083, vha 7788 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x0084, vha 7802 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x0085, vha 7812 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x0086, vha 7814 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x0087, vha 7829 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x0088, vha 7840 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0089, vha 7847 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_load_ram(vha, req->dma, risc_addr, vha 7850 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x008a, vha 7872 drivers/scsi/qla2xxx/qla_init.c qla24xx_load_risc_blob(scsi_qla_host_t *vha, uint32_t *srisc_addr) vha 7883 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 7887 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0090, vha 7890 drivers/scsi/qla2xxx/qla_init.c blob = qla2x00_request_firmware(vha); vha 7892 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0092, vha 7901 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x0093, vha 7904 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x0095, vha 7914 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0096, vha 7929 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0097, vha 7938 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_load_ram(vha, req->dma, risc_addr, dlen); vha 7940 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_fatal, vha, 0x0098, vha 7956 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0170, "-> templates = %u\n", templates); vha 7964 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0171, vha 7969 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0172, vha 7978 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0173, vha 7983 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0174, vha 7993 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0175, vha 7999 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0176, vha 8003 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0177, vha 8010 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0178, vha 8028 drivers/scsi/qla2xxx/qla_init.c qla24xx_load_risc(scsi_qla_host_t *vha, uint32_t *srisc_addr) vha 8033 drivers/scsi/qla2xxx/qla_init.c return qla81xx_load_risc(vha, srisc_addr); vha 8040 drivers/scsi/qla2xxx/qla_init.c rval = qla24xx_load_risc_blob(vha, srisc_addr); vha 8044 drivers/scsi/qla2xxx/qla_init.c return qla24xx_load_risc_flash(vha, srisc_addr, vha 8045 drivers/scsi/qla2xxx/qla_init.c vha->hw->flt_region_fw); vha 8049 drivers/scsi/qla2xxx/qla_init.c qla81xx_load_risc(scsi_qla_host_t *vha, uint32_t *srisc_addr) vha 8052 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8067 drivers/scsi/qla2xxx/qla_init.c qla27xx_get_active_image(vha, &active_regions); vha 8072 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x008b, vha 8074 drivers/scsi/qla2xxx/qla_init.c rval = qla24xx_load_risc_flash(vha, srisc_addr, ha->flt_region_fw_sec); vha 8079 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x008b, vha 8081 drivers/scsi/qla2xxx/qla_init.c rval = qla24xx_load_risc_flash(vha, srisc_addr, ha->flt_region_fw); vha 8086 drivers/scsi/qla2xxx/qla_init.c rval = qla24xx_load_risc_blob(vha, srisc_addr); vha 8090 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x0099, vha 8092 drivers/scsi/qla2xxx/qla_init.c rval = qla24xx_load_risc_flash(vha, srisc_addr, ha->flt_region_gold_fw); vha 8096 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x009a, "Need firmware flash update.\n"); vha 8102 drivers/scsi/qla2xxx/qla_init.c qla2x00_try_to_stop_firmware(scsi_qla_host_t *vha) vha 8105 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8116 drivers/scsi/qla2xxx/qla_init.c ret = qla2x00_stop_firmware(vha); vha 8119 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->reset_chip(vha); vha 8120 drivers/scsi/qla2xxx/qla_init.c if (ha->isp_ops->chip_diag(vha) != QLA_SUCCESS) vha 8122 drivers/scsi/qla2xxx/qla_init.c if (qla2x00_setup_chip(vha) != QLA_SUCCESS) vha 8124 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x8015, vha 8126 drivers/scsi/qla2xxx/qla_init.c ret = qla2x00_stop_firmware(vha); vha 8134 drivers/scsi/qla2xxx/qla_init.c qla24xx_configure_vhba(scsi_qla_host_t *vha) vha 8139 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8142 drivers/scsi/qla2xxx/qla_init.c if (!vha->vp_idx) vha 8148 drivers/scsi/qla2xxx/qla_init.c clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); vha 8149 drivers/scsi/qla2xxx/qla_init.c qla2x00_marker(vha, ha->base_qpair, 0, 0, MK_SYNC_ALL); vha 8152 drivers/scsi/qla2xxx/qla_init.c vha->flags.management_server_logged_in = 0; vha 8155 drivers/scsi/qla2xxx/qla_init.c rval2 = ha->isp_ops->fabric_login(vha, NPH_SNS, 0xff, 0xff, 0xfc, mb, vha 8159 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0120, vha 8163 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0103, vha 8170 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_down_timer, 0); vha 8171 drivers/scsi/qla2xxx/qla_init.c atomic_set(&vha->loop_state, LOOP_UP); vha 8172 drivers/scsi/qla2xxx/qla_init.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 8173 drivers/scsi/qla2xxx/qla_init.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 8185 drivers/scsi/qla2xxx/qla_init.c qla84xx_get_chip(struct scsi_qla_host *vha) vha 8188 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8228 drivers/scsi/qla2xxx/qla_init.c qla84xx_put_chip(struct scsi_qla_host *vha) vha 8230 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8237 drivers/scsi/qla2xxx/qla_init.c qla84xx_init_chip(scsi_qla_host_t *vha) vha 8241 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8245 drivers/scsi/qla2xxx/qla_init.c rval = qla84xx_verify_chip(vha, status); vha 8256 drivers/scsi/qla2xxx/qla_init.c qla81xx_nvram_config(scsi_qla_host_t *vha) vha 8265 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8280 drivers/scsi/qla2xxx/qla_init.c qla28xx_get_aux_images(vha, &active_regions); vha 8289 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0110, vha 8294 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->read_optrom(vha, ha->vpd, faddr << 2, ha->vpd_size); vha 8302 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0110, vha 8306 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->read_optrom(vha, ha->nvram, faddr << 2, ha->nvram_size); vha 8312 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init + ql_dbg_buffer, vha, 0x0111, vha 8314 drivers/scsi/qla2xxx/qla_init.c ql_dump_buffer(ql_dbg_init + ql_dbg_buffer, vha, 0x0112, vha 8321 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x0073, vha 8324 drivers/scsi/qla2xxx/qla_init.c ql_dump_buffer(ql_dbg_init, vha, 0x0073, nv, sizeof(*nv)); vha 8325 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x0074, vha 8381 drivers/scsi/qla2xxx/qla_init.c qlt_81xx_config_nvram_stage1(vha, nv); vha 8420 drivers/scsi/qla2xxx/qla_init.c qla2x00_set_model_info(vha, nv->model_name, sizeof(nv->model_name), vha 8423 drivers/scsi/qla2xxx/qla_init.c qlt_81xx_config_nvram_stage2(vha, icb); vha 8458 drivers/scsi/qla2xxx/qla_init.c memcpy(vha->node_name, icb->node_name, WWN_SIZE); vha 8459 drivers/scsi/qla2xxx/qla_init.c memcpy(vha->port_name, icb->port_name, WWN_SIZE); vha 8513 drivers/scsi/qla2xxx/qla_init.c if (!vha->hw->flags.msix_enabled && vha 8518 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.init_done) { vha 8526 drivers/scsi/qla2xxx/qla_init.c vha->flags.process_response_queue = 0; vha 8530 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_info, vha, 0x0075, vha 8538 drivers/scsi/qla2xxx/qla_init.c vha->flags.process_response_queue = 1; vha 8548 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0076, vha 8555 drivers/scsi/qla2xxx/qla_init.c qla82xx_restart_isp(scsi_qla_host_t *vha) vha 8558 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8562 drivers/scsi/qla2xxx/qla_init.c status = qla2x00_init_rings(vha); vha 8564 drivers/scsi/qla2xxx/qla_init.c clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); vha 8567 drivers/scsi/qla2xxx/qla_init.c status = qla2x00_fw_ready(vha); vha 8570 drivers/scsi/qla2xxx/qla_init.c qla2x00_marker(vha, ha->base_qpair, 0, 0, MK_SYNC_ALL); vha 8571 drivers/scsi/qla2xxx/qla_init.c vha->flags.online = 1; vha 8572 drivers/scsi/qla2xxx/qla_init.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 8576 drivers/scsi/qla2xxx/qla_init.c if ((vha->device_flags & DFLG_NO_CABLE)) vha 8581 drivers/scsi/qla2xxx/qla_init.c clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); vha 8583 drivers/scsi/qla2xxx/qla_init.c if (!atomic_read(&vha->loop_down_timer)) { vha 8588 drivers/scsi/qla2xxx/qla_init.c vha->marker_needed = 1; vha 8594 drivers/scsi/qla2xxx/qla_init.c clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags); vha 8597 drivers/scsi/qla2xxx/qla_init.c status = qla82xx_check_md_needed(vha); vha 8603 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_enable_fce_trace(vha, vha 8607 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x8001, vha 8616 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_enable_eft_trace(vha, vha 8619 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x8010, vha 8627 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_taskm, vha, 0x8011, vha 8645 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x8016, vha 8653 drivers/scsi/qla2xxx/qla_init.c qla81xx_update_fw_options(scsi_qla_host_t *vha) vha 8655 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8664 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_disc, vha, 0x2103, vha 8671 drivers/scsi/qla2xxx/qla_init.c if (qla_tgt_mode_enabled(vha) || vha 8672 drivers/scsi/qla2xxx/qla_init.c qla_dual_mode_enabled(vha)) vha 8678 drivers/scsi/qla2xxx/qla_init.c if (qla_tgt_mode_enabled(vha) || vha 8679 drivers/scsi/qla2xxx/qla_init.c qla_dual_mode_enabled(vha)) { vha 8699 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x00e9, vha 8702 drivers/scsi/qla2xxx/qla_init.c ha->fw_options[3], vha->host->active_mode); vha 8704 drivers/scsi/qla2xxx/qla_init.c qla2x00_set_fw_options(vha, ha->fw_options); vha 8726 drivers/scsi/qla2xxx/qla_init.c qla24xx_get_fcp_prio(scsi_qla_host_t *vha, fc_port_t *fcport) vha 8734 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8754 drivers/scsi/qla2xxx/qla_init.c pid2 = vha->d_id.b24 & INVALID_PORT_ID; vha 8773 drivers/scsi/qla2xxx/qla_init.c wwn1 = wwn_to_u64(vha->port_name); vha 8819 drivers/scsi/qla2xxx/qla_init.c qla24xx_update_fcport_fcp_prio(scsi_qla_host_t *vha, fc_port_t *fcport) vha 8829 drivers/scsi/qla2xxx/qla_init.c priority = qla24xx_get_fcp_prio(vha, fcport); vha 8833 drivers/scsi/qla2xxx/qla_init.c if (IS_P3P_TYPE(vha->hw)) { vha 8838 drivers/scsi/qla2xxx/qla_init.c ret = qla24xx_set_fcp_prio(vha, fcport->loop_id, priority, mb); vha 8841 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_user, vha, 0x709e, vha 8848 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_user, vha, 0x704f, vha 8870 drivers/scsi/qla2xxx/qla_init.c qla24xx_update_all_fcp_prio(scsi_qla_host_t *vha) vha 8877 drivers/scsi/qla2xxx/qla_init.c list_for_each_entry(fcport, &vha->vp_fcports, list) vha 8878 drivers/scsi/qla2xxx/qla_init.c ret = qla24xx_update_fcport_fcp_prio(vha, fcport); vha 8883 drivers/scsi/qla2xxx/qla_init.c struct qla_qpair *qla2xxx_create_qpair(struct scsi_qla_host *vha, int qos, vha 8889 drivers/scsi/qla2xxx/qla_init.c struct qla_hw_data *ha = vha->hw; vha 8895 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x00181, vha 8903 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0182, vha 8908 drivers/scsi/qla2xxx/qla_init.c qpair->hw = vha->hw; vha 8909 drivers/scsi/qla2xxx/qla_init.c qpair->vha = vha; vha 8919 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0183, vha 8940 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_multiq, vha, 0xc00f, vha 8945 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0184, vha 8951 drivers/scsi/qla2xxx/qla_init.c list_add_tail(&qpair->qp_list_elem, &vha->qp_list); vha 8961 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0185, vha 8972 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0x0186, vha 8990 drivers/scsi/qla2xxx/qla_init.c ql_log(ql_log_warn, vha, 0xd036, vha 8999 drivers/scsi/qla2xxx/qla_init.c if (!vha->flags.qpairs_available) vha 9000 drivers/scsi/qla2xxx/qla_init.c vha->flags.qpairs_available = 1; vha 9002 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_multiq, vha, 0xc00d, vha 9005 drivers/scsi/qla2xxx/qla_init.c ql_dbg(ql_dbg_init, vha, 0x0187, vha 9013 drivers/scsi/qla2xxx/qla_init.c qla25xx_delete_rsp_que(vha, qpair->rsp); vha 9018 drivers/scsi/qla2xxx/qla_init.c if (list_empty(&vha->qp_list)) vha 9019 drivers/scsi/qla2xxx/qla_init.c vha->flags.qpairs_available = 0; vha 9030 drivers/scsi/qla2xxx/qla_init.c int qla2xxx_delete_qpair(struct scsi_qla_host *vha, struct qla_qpair *qpair) vha 9037 drivers/scsi/qla2xxx/qla_init.c ret = qla25xx_delete_req_que(vha, qpair->req); vha 9041 drivers/scsi/qla2xxx/qla_init.c ret = qla25xx_delete_rsp_que(vha, qpair->rsp); vha 9050 drivers/scsi/qla2xxx/qla_init.c if (list_empty(&vha->qp_list)) { vha 9051 drivers/scsi/qla2xxx/qla_init.c vha->flags.qpairs_available = 0; vha 9052 drivers/scsi/qla2xxx/qla_init.c vha->flags.qpairs_req_created = 0; vha 9053 drivers/scsi/qla2xxx/qla_init.c vha->flags.qpairs_rsp_created = 0; vha 19 drivers/scsi/qla2xxx/qla_inline.h qla24xx_calc_iocbs(scsi_qla_host_t *vha, uint16_t dsds) vha 137 drivers/scsi/qla2xxx/qla_inline.h qla2x00_reset_active(scsi_qla_host_t *vha) vha 139 drivers/scsi/qla2xxx/qla_inline.h scsi_qla_host_t *base_vha = pci_get_drvdata(vha->hw->pdev); vha 145 drivers/scsi/qla2xxx/qla_inline.h test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) || vha 146 drivers/scsi/qla2xxx/qla_inline.h test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags); vha 150 drivers/scsi/qla2xxx/qla_inline.h qla2x00_chip_is_down(scsi_qla_host_t *vha) vha 152 drivers/scsi/qla2xxx/qla_inline.h return (qla2x00_reset_active(vha) || !vha->hw->flags.fw_started); vha 155 drivers/scsi/qla2xxx/qla_inline.h static void qla2xxx_init_sp(srb_t *sp, scsi_qla_host_t *vha, vha 161 drivers/scsi/qla2xxx/qla_inline.h sp->vha = vha; vha 168 drivers/scsi/qla2xxx/qla_inline.h qla2xxx_get_qpair_sp(scsi_qla_host_t *vha, struct qla_qpair *qpair, vha 180 drivers/scsi/qla2xxx/qla_inline.h qla2xxx_init_sp(sp, vha, qpair, fcport); vha 195 drivers/scsi/qla2xxx/qla_inline.h qla2x00_get_sp(scsi_qla_host_t *vha, fc_port_t *fcport, gfp_t flag) vha 201 drivers/scsi/qla2xxx/qla_inline.h QLA_VHA_MARK_BUSY(vha, bail); vha 205 drivers/scsi/qla2xxx/qla_inline.h qpair = vha->hw->base_qpair; vha 206 drivers/scsi/qla2xxx/qla_inline.h sp = qla2xxx_get_qpair_sp(vha, qpair, fcport, flag); vha 210 drivers/scsi/qla2xxx/qla_inline.h sp->vha = vha; vha 213 drivers/scsi/qla2xxx/qla_inline.h QLA_VHA_MARK_NOT_BUSY(vha); vha 220 drivers/scsi/qla2xxx/qla_inline.h QLA_VHA_MARK_NOT_BUSY(sp->vha); vha 253 drivers/scsi/qla2xxx/qla_inline.h qla_is_exch_offld_enabled(struct scsi_qla_host *vha) vha 255 drivers/scsi/qla2xxx/qla_inline.h if (qla_ini_mode_enabled(vha) && vha 256 drivers/scsi/qla2xxx/qla_inline.h (vha->ql2xiniexchg > FW_DEF_EXCHANGES_CNT)) vha 258 drivers/scsi/qla2xxx/qla_inline.h else if (qla_tgt_mode_enabled(vha) && vha 259 drivers/scsi/qla2xxx/qla_inline.h (vha->ql2xexchoffld > FW_DEF_EXCHANGES_CNT)) vha 261 drivers/scsi/qla2xxx/qla_inline.h else if (qla_dual_mode_enabled(vha) && vha 262 drivers/scsi/qla2xxx/qla_inline.h ((vha->ql2xiniexchg + vha->ql2xexchoffld) > FW_DEF_EXCHANGES_CNT)) vha 26 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha = sp->vha; vha 33 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.output_bytes += scsi_bufflen(cmd); vha 34 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.output_requests++; vha 37 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.input_bytes += scsi_bufflen(cmd); vha 38 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.input_requests++; vha 94 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_prep_cont_type0_iocb(struct scsi_qla_host *vha) vha 97 drivers/scsi/qla2xxx/qla_iocb.c struct req_que *req = vha->req; vha 123 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_prep_cont_type1_iocb(scsi_qla_host_t *vha, struct req_que *req) vha 139 drivers/scsi/qla2xxx/qla_iocb.c put_unaligned_le32(IS_QLAFX00(vha->hw) ? CONTINUE_A64_TYPE_FX00 : vha 196 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha; vha 212 drivers/scsi/qla2xxx/qla_iocb.c vha = sp->vha; vha 229 drivers/scsi/qla2xxx/qla_iocb.c cont_pkt = qla2x00_prep_cont_type0_iocb(vha); vha 252 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha; vha 268 drivers/scsi/qla2xxx/qla_iocb.c vha = sp->vha; vha 285 drivers/scsi/qla2xxx/qla_iocb.c cont_pkt = qla2x00_prep_cont_type1_iocb(vha, vha->req); vha 326 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha; vha 340 drivers/scsi/qla2xxx/qla_iocb.c vha = sp->vha; vha 341 drivers/scsi/qla2xxx/qla_iocb.c ha = vha->hw; vha 350 drivers/scsi/qla2xxx/qla_iocb.c if (vha->marker_needed != 0) { vha 351 drivers/scsi/qla2xxx/qla_iocb.c if (qla2x00_marker(vha, ha->base_qpair, 0, 0, MK_SYNC_ALL) != vha 355 drivers/scsi/qla2xxx/qla_iocb.c vha->marker_needed = 0; vha 435 drivers/scsi/qla2xxx/qla_iocb.c if (vha->flags.process_response_queue && vha 457 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_start_iocbs(struct scsi_qla_host *vha, struct req_que *req) vha 459 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 463 drivers/scsi/qla2xxx/qla_iocb.c qla82xx_start_iocbs(vha); vha 507 drivers/scsi/qla2xxx/qla_iocb.c __qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair, vha 513 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 532 drivers/scsi/qla2xxx/qla_iocb.c mrk24->vp_index = vha->vp_idx; vha 541 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_start_iocbs(vha, req); vha 547 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair, vha 554 drivers/scsi/qla2xxx/qla_iocb.c ret = __qla2x00_marker(vha, qpair, loop_id, lun, type); vha 567 drivers/scsi/qla2xxx/qla_iocb.c int qla2x00_issue_marker(scsi_qla_host_t *vha, int ha_locked) vha 570 drivers/scsi/qla2xxx/qla_iocb.c if (__qla2x00_marker(vha, vha->hw->base_qpair, 0, 0, vha 574 drivers/scsi/qla2xxx/qla_iocb.c if (qla2x00_marker(vha, vha->hw->base_qpair, 0, 0, vha 578 drivers/scsi/qla2xxx/qla_iocb.c vha->marker_needed = 0; vha 588 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha; vha 609 drivers/scsi/qla2xxx/qla_iocb.c vha = sp->vha; vha 610 drivers/scsi/qla2xxx/qla_iocb.c ha = vha->hw; vha 615 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.output_bytes += scsi_bufflen(cmd); vha 616 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.output_requests++; vha 619 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.input_bytes += scsi_bufflen(cmd); vha 620 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.input_requests++; vha 703 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha; vha 719 drivers/scsi/qla2xxx/qla_iocb.c vha = sp->vha; vha 724 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.output_bytes += scsi_bufflen(cmd); vha 725 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.output_requests++; vha 728 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.input_bytes += scsi_bufflen(cmd); vha 729 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.input_requests++; vha 747 drivers/scsi/qla2xxx/qla_iocb.c cont_pkt = qla2x00_prep_cont_type1_iocb(vha, req); vha 1087 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha; vha 1099 drivers/scsi/qla2xxx/qla_iocb.c vha = sp->vha; vha 1102 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt + ql_dbg_verbose, vha, 0xe021, vha 1106 drivers/scsi/qla2xxx/qla_iocb.c vha = tc->vha; vha 1115 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt + ql_dbg_verbose, vha, 0xe021, vha 1125 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt + ql_dbg_verbose, vha, 0xe022, vha 1134 drivers/scsi/qla2xxx/qla_iocb.c vha, 0xe022, vha 1165 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt + ql_dbg_verbose, vha, 0xe023, vha 1181 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt, vha, 0xe024, vha 1193 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt, vha, 0xe024, vha 1234 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt + ql_dbg_verbose, vha, 0xe025, vha 1254 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt + ql_dbg_verbose, vha, vha 1266 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt, vha, 0xe026, vha 1279 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt, vha, 0xe026, vha 1317 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_tgt + ql_dbg_verbose, vha, 0xe026, vha 1333 drivers/scsi/qla2xxx/qla_iocb.c vha, 0xe027, vha 1393 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha; vha 1412 drivers/scsi/qla2xxx/qla_iocb.c vha = sp->vha; vha 1413 drivers/scsi/qla2xxx/qla_iocb.c ha = vha->hw; vha 1422 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->vp_index = sp->vha->vp_idx; vha 1603 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha = sp->vha; vha 1604 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 1607 drivers/scsi/qla2xxx/qla_iocb.c req = vha->req; vha 1613 drivers/scsi/qla2xxx/qla_iocb.c if (vha->marker_needed != 0) { vha 1614 drivers/scsi/qla2xxx/qla_iocb.c if (qla2x00_marker(vha, ha->base_qpair, 0, 0, MK_SYNC_ALL) != vha 1617 drivers/scsi/qla2xxx/qla_iocb.c vha->marker_needed = 0; vha 1637 drivers/scsi/qla2xxx/qla_iocb.c req_cnt = qla24xx_calc_iocbs(vha, tot_dsds); vha 1671 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->vp_index = sp->vha->vp_idx; vha 1736 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha = sp->vha; vha 1737 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 1750 drivers/scsi/qla2xxx/qla_iocb.c req = vha->req; vha 1757 drivers/scsi/qla2xxx/qla_iocb.c if (vha->marker_needed != 0) { vha 1758 drivers/scsi/qla2xxx/qla_iocb.c if (qla2x00_marker(vha, ha->base_qpair, 0, 0, MK_SYNC_ALL) != vha 1761 drivers/scsi/qla2xxx/qla_iocb.c vha->marker_needed = 0; vha 1920 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha = sp->fcport->vha; vha 1921 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 1934 drivers/scsi/qla2xxx/qla_iocb.c if (vha->marker_needed != 0) { vha 1935 drivers/scsi/qla2xxx/qla_iocb.c if (__qla2x00_marker(vha, qpair, 0, 0, MK_SYNC_ALL) != vha 1940 drivers/scsi/qla2xxx/qla_iocb.c vha->marker_needed = 0; vha 1957 drivers/scsi/qla2xxx/qla_iocb.c req_cnt = qla24xx_calc_iocbs(vha, tot_dsds); vha 1991 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->vp_index = sp->fcport->vha->vp_idx; vha 2057 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha = sp->fcport->vha; vha 2058 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 2093 drivers/scsi/qla2xxx/qla_iocb.c if (vha->marker_needed != 0) { vha 2094 drivers/scsi/qla2xxx/qla_iocb.c if (__qla2x00_marker(vha, qpair, 0, 0, MK_SYNC_ALL) != vha 2099 drivers/scsi/qla2xxx/qla_iocb.c vha->marker_needed = 0; vha 2220 drivers/scsi/qla2xxx/qla_iocb.c if (vha->flags.process_response_queue && vha 2222 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_process_response_queue(vha, rsp); vha 2246 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha = qpair->vha; vha 2247 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 2292 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_warn, vha, 0x700b, vha 2325 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha = qpair->vha; vha 2327 drivers/scsi/qla2xxx/qla_iocb.c if (qla2x00_reset_active(vha)) vha 2334 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_alloc_iocbs(struct scsi_qla_host *vha, srb_t *sp) vha 2336 drivers/scsi/qla2xxx/qla_iocb.c return __qla2x00_alloc_iocbs(vha->hw->base_qpair, sp); vha 2348 drivers/scsi/qla2xxx/qla_iocb.c if (sp->vha->flags.nvme_first_burst) vha 2356 drivers/scsi/qla2xxx/qla_iocb.c logio->vp_index = sp->vha->vp_idx; vha 2378 drivers/scsi/qla2xxx/qla_iocb.c logio->vp_index = sp->vha->vp_idx; vha 2384 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = sp->vha->hw; vha 2402 drivers/scsi/qla2xxx/qla_iocb.c mbx->mb9 = cpu_to_le16(sp->vha->vp_idx); vha 2425 drivers/scsi/qla2xxx/qla_iocb.c logio->vp_index = sp->vha->vp_idx; vha 2431 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = sp->vha->hw; vha 2442 drivers/scsi/qla2xxx/qla_iocb.c mbx->mb9 = cpu_to_le16(sp->vha->vp_idx); vha 2452 drivers/scsi/qla2xxx/qla_iocb.c logio->vp_index = sp->vha->vp_idx; vha 2458 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = sp->vha->hw; vha 2473 drivers/scsi/qla2xxx/qla_iocb.c mbx->mb9 = cpu_to_le16(sp->vha->vp_idx); vha 2482 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha = fcport->vha; vha 2483 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 2485 drivers/scsi/qla2xxx/qla_iocb.c struct req_que *req = vha->req; vha 2499 drivers/scsi/qla2xxx/qla_iocb.c tsk->vp_index = fcport->vha->vp_idx; vha 2513 drivers/scsi/qla2xxx/qla_iocb.c if (IS_QLAFX00(sp->vha->hw) && sp->type == SRB_FXIOCB_DCMD) vha 2525 drivers/scsi/qla2xxx/qla_iocb.c dma_free_coherent(&sp->vha->hw->pdev->dev, DMA_POOL_SIZE, vha 2538 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha = sp->vha; vha 2541 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_io, vha, 0x3069, vha 2553 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha = sp->vha; vha 2555 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_io, vha, 0x3072, vha 2564 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_els_dcmd_iocb(scsi_qla_host_t *vha, int els_opcode, vha 2570 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 2574 drivers/scsi/qla2xxx/qla_iocb.c fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 2576 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_info, vha, 0x70e5, "fcport allocation failed\n"); vha 2581 drivers/scsi/qla2xxx/qla_iocb.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 2584 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_info, vha, 0x70e6, vha 2595 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_io, vha, 0x3073, "portid=%02x%02x%02x done\n", vha 2620 drivers/scsi/qla2xxx/qla_iocb.c logo_pyld.s_id[0] = vha->d_id.b.al_pa; vha 2621 drivers/scsi/qla2xxx/qla_iocb.c logo_pyld.s_id[1] = vha->d_id.b.area; vha 2622 drivers/scsi/qla2xxx/qla_iocb.c logo_pyld.s_id[2] = vha->d_id.b.domain; vha 2624 drivers/scsi/qla2xxx/qla_iocb.c memcpy(&logo_pyld.wwpn, vha->port_name, WWN_SIZE); vha 2635 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_io, vha, 0x3074, vha 2649 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha = sp->vha; vha 2659 drivers/scsi/qla2xxx/qla_iocb.c els_iocb->vp_index = vha->vp_idx; vha 2668 drivers/scsi/qla2xxx/qla_iocb.c els_iocb->s_id[1] = vha->d_id.b.al_pa; vha 2669 drivers/scsi/qla2xxx/qla_iocb.c els_iocb->s_id[2] = vha->d_id.b.area; vha 2670 drivers/scsi/qla2xxx/qla_iocb.c els_iocb->s_id[0] = vha->d_id.b.domain; vha 2684 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_io + ql_dbg_buffer, vha, 0x3073, vha 2686 drivers/scsi/qla2xxx/qla_iocb.c ql_dump_buffer(ql_log_info, vha, 0x0109, vha 2702 drivers/scsi/qla2xxx/qla_iocb.c sp->vha->qla_stats.control_requests++; vha 2710 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha = sp->vha; vha 2711 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 2715 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_io + ql_dbg_disc, vha, 0x3069, vha 2722 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_io, vha, 0x3070, vha 2730 drivers/scsi/qla2xxx/qla_iocb.c void qla2x00_els_dcmd2_free(scsi_qla_host_t *vha, struct els_plogi *els_plogi) vha 2733 drivers/scsi/qla2xxx/qla_iocb.c dma_free_coherent(&vha->hw->pdev->dev, vha 2739 drivers/scsi/qla2xxx/qla_iocb.c dma_free_coherent(&vha->hw->pdev->dev, vha 2749 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha = sp->vha; vha 2753 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_disc, vha, 0x3072, vha 2764 drivers/scsi/qla2xxx/qla_iocb.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 2770 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_handle_plogi_done_event(vha, &ea); vha 2773 drivers/scsi/qla2xxx/qla_iocb.c e = qla2x00_alloc_work(vha, QLA_EVT_UNMAP); vha 2777 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_els_dcmd2_free(vha, &elsio->u.els_plogi); vha 2782 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_post_work(vha, e); vha 2787 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_els_dcmd2_iocb(scsi_qla_host_t *vha, int els_opcode, vha 2792 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 2797 drivers/scsi/qla2xxx/qla_iocb.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 2799 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_info, vha, 0x70e6, vha 2805 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_io, vha, 0x3073, vha 2841 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_io, vha, 0x3073, "PLOGI %p %p\n", ptr, resp_ptr); vha 2852 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_disc + ql_dbg_buffer, vha, 0x3073, "PLOGI buffer:\n"); vha 2853 drivers/scsi/qla2xxx/qla_iocb.c ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x0109, vha 2861 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_disc, vha, 0x3074, vha 2864 drivers/scsi/qla2xxx/qla_iocb.c fcport->d_id.b24, vha->d_id.b24); vha 2878 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_els_dcmd2_free(vha, &elsio->u.els_plogi); vha 2897 drivers/scsi/qla2xxx/qla_iocb.c els_iocb->vp_index = sp->vha->vp_idx; vha 2924 drivers/scsi/qla2xxx/qla_iocb.c sp->vha->qla_stats.control_requests++; vha 2935 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha = sp->vha; vha 2936 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 2979 drivers/scsi/qla2xxx/qla_iocb.c cont_pkt = qla2x00_prep_cont_type1_iocb(vha, vha 2980 drivers/scsi/qla2xxx/qla_iocb.c vha->hw->req_q_map[0]); vha 2991 drivers/scsi/qla2xxx/qla_iocb.c sp->vha->qla_stats.control_requests++; vha 3002 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha = sp->vha; vha 3003 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 3014 drivers/scsi/qla2xxx/qla_iocb.c ct_iocb->vp_index = sp->vha->vp_idx; vha 3038 drivers/scsi/qla2xxx/qla_iocb.c vha, ha->req_q_map[0]); vha 3057 drivers/scsi/qla2xxx/qla_iocb.c cont_pkt = qla2x00_prep_cont_type1_iocb(vha, vha 3092 drivers/scsi/qla2xxx/qla_iocb.c struct scsi_qla_host *vha = sp->vha; vha 3093 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 3100 drivers/scsi/qla2xxx/qla_iocb.c req = vha->req; vha 3109 drivers/scsi/qla2xxx/qla_iocb.c if (vha->marker_needed != 0) { vha 3110 drivers/scsi/qla2xxx/qla_iocb.c if (qla2x00_marker(vha, ha->base_qpair, vha 3112 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_warn, vha, 0x300c, vha 3116 drivers/scsi/qla2xxx/qla_iocb.c vha->marker_needed = 0; vha 3145 drivers/scsi/qla2xxx/qla_iocb.c ql_dbg(ql_dbg_io, vha, 0x300d, vha 3160 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_fatal, vha, 0x300e, vha 3170 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_fatal, vha, 0x300f, vha 3197 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_fatal, vha, 0x3010, vha 3206 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_fatal, vha, 0x3011, vha 3221 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_warn, vha, 0x3012, vha 3246 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->vp_index = sp->vha->vp_idx; vha 3290 drivers/scsi/qla2xxx/qla_iocb.c req_cnt = qla24xx_calc_iocbs(vha, tot_dsds); vha 3317 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->vp_index = sp->vha->vp_idx; vha 3377 drivers/scsi/qla2xxx/qla_iocb.c if (vha->flags.process_response_queue && vha 3379 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_process_response_queue(vha, rsp); vha 3403 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha = sp->vha; vha 3419 drivers/scsi/qla2xxx/qla_iocb.c abt_iocb->vp_index = vha->vp_idx; vha 3442 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_prep_ms_iocb(sp->vha, &sp->u.iocb_cmd.u.ctarg); vha 3490 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->vp_index = sp->fcport->vha->vp_idx; vha 3536 drivers/scsi/qla2xxx/qla_iocb.c logio->vp_index = sp->fcport->vha->vp_idx; vha 3543 drivers/scsi/qla2xxx/qla_iocb.c scsi_qla_host_t *vha = sp->vha; vha 3544 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 3553 drivers/scsi/qla2xxx/qla_iocb.c ql_log(ql_log_warn, vha, 0x700c, vha 3631 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_start_iocbs(vha, qp->req); vha 3638 drivers/scsi/qla2xxx/qla_iocb.c qla25xx_build_bidir_iocb(srb_t *sp, struct scsi_qla_host *vha, vha 3665 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->timeout = cpu_to_le16(qla2x00_get_async_timeout(vha) + 2); vha 3667 drivers/scsi/qla2xxx/qla_iocb.c vha->bidi_stats.transfer_bytes += req_data_len; vha 3668 drivers/scsi/qla2xxx/qla_iocb.c vha->bidi_stats.io_count++; vha 3670 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.output_bytes += req_data_len; vha 3671 drivers/scsi/qla2xxx/qla_iocb.c vha->qla_stats.output_requests++; vha 3690 drivers/scsi/qla2xxx/qla_iocb.c cont_pkt = qla2x00_prep_cont_type1_iocb(vha, vha->req); vha 3712 drivers/scsi/qla2xxx/qla_iocb.c cont_pkt = qla2x00_prep_cont_type1_iocb(vha, vha->req); vha 3725 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_start_bidir(srb_t *sp, struct scsi_qla_host *vha, uint32_t tot_dsds) vha 3728 drivers/scsi/qla2xxx/qla_iocb.c struct qla_hw_data *ha = vha->hw; vha 3742 drivers/scsi/qla2xxx/qla_iocb.c req = vha->req; vha 3745 drivers/scsi/qla2xxx/qla_iocb.c if (vha->marker_needed != 0) { vha 3746 drivers/scsi/qla2xxx/qla_iocb.c if (qla2x00_marker(vha, ha->base_qpair, vha 3749 drivers/scsi/qla2xxx/qla_iocb.c vha->marker_needed = 0; vha 3762 drivers/scsi/qla2xxx/qla_iocb.c req_cnt = qla24xx_calc_iocbs(vha, tot_dsds); vha 3788 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->nport_handle = cpu_to_le16(vha->self_login_loop_id); vha 3789 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->port_id[0] = vha->d_id.b.al_pa; vha 3790 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->port_id[1] = vha->d_id.b.area; vha 3791 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->port_id[2] = vha->d_id.b.domain; vha 3793 drivers/scsi/qla2xxx/qla_iocb.c qla25xx_build_bidir_iocb(sp, vha, cmd_pkt, tot_dsds); vha 3803 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_start_iocbs(vha, req); vha 46 drivers/scsi/qla2xxx/qla_isr.c scsi_qla_host_t *vha; vha 68 drivers/scsi/qla2xxx/qla_isr.c vha = pci_get_drvdata(ha->pdev); vha 71 drivers/scsi/qla2xxx/qla_isr.c if (qla2x00_check_reg16_for_disconnect(vha, hccr)) vha 85 drivers/scsi/qla2xxx/qla_isr.c ha->isp_ops->fw_dump(vha, 1); vha 86 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 98 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mbx_completion(vha, mb[0]); vha 104 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); vha 107 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5025, vha 128 drivers/scsi/qla2xxx/qla_isr.c qla2x00_check_reg32_for_disconnect(scsi_qla_host_t *vha, uint32_t reg) vha 131 drivers/scsi/qla2xxx/qla_isr.c if (reg == 0xffffffff && !pci_channel_offline(vha->hw->pdev)) { vha 132 drivers/scsi/qla2xxx/qla_isr.c if (!test_and_set_bit(PFLG_DISCONNECTED, &vha->pci_flags) && vha 133 drivers/scsi/qla2xxx/qla_isr.c !test_bit(PFLG_DRIVER_REMOVING, &vha->pci_flags) && vha 134 drivers/scsi/qla2xxx/qla_isr.c !test_bit(PFLG_DRIVER_PROBING, &vha->pci_flags)) { vha 140 drivers/scsi/qla2xxx/qla_isr.c schedule_work(&vha->hw->board_disable); vha 148 drivers/scsi/qla2xxx/qla_isr.c qla2x00_check_reg16_for_disconnect(scsi_qla_host_t *vha, uint16_t reg) vha 150 drivers/scsi/qla2xxx/qla_isr.c return qla2x00_check_reg32_for_disconnect(vha, 0xffff0000 | reg); vha 165 drivers/scsi/qla2xxx/qla_isr.c scsi_qla_host_t *vha; vha 188 drivers/scsi/qla2xxx/qla_isr.c vha = pci_get_drvdata(ha->pdev); vha 191 drivers/scsi/qla2xxx/qla_isr.c if (qla2x00_check_reg32_for_disconnect(vha, stat)) vha 200 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5026, vha 204 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5027, vha 216 drivers/scsi/qla2xxx/qla_isr.c ha->isp_ops->fw_dump(vha, 1); vha 217 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 227 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mbx_completion(vha, MSW(stat)); vha 238 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); vha 246 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); vha 252 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); vha 255 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5028, vha 274 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mbx_completion(scsi_qla_host_t *vha, uint16_t mb0) vha 279 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 286 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5001, "MBX pointer ERROR.\n"); vha 310 drivers/scsi/qla2xxx/qla_isr.c qla81xx_idc_event(scsi_qla_host_t *vha, uint16_t aen, uint16_t descr) vha 315 drivers/scsi/qla2xxx/qla_isr.c struct device_reg_24xx __iomem *reg24 = &vha->hw->iobase->isp24; vha 316 drivers/scsi/qla2xxx/qla_isr.c struct device_reg_82xx __iomem *reg82 = &vha->hw->iobase->isp82; vha 321 drivers/scsi/qla2xxx/qla_isr.c if (IS_QLA81XX(vha->hw) || IS_QLA83XX(vha->hw)) vha 323 drivers/scsi/qla2xxx/qla_isr.c else if (IS_QLA8044(vha->hw)) vha 331 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5021, vha 340 drivers/scsi/qla2xxx/qla_isr.c vha->hw->flags.idc_compl_status = 1; vha 341 drivers/scsi/qla2xxx/qla_isr.c if (vha->hw->notify_dcbx_comp && !vha->vp_idx) vha 342 drivers/scsi/qla2xxx/qla_isr.c complete(&vha->hw->dcbx_comp); vha 349 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5022, vha 351 drivers/scsi/qla2xxx/qla_isr.c vha->host_no, event[aen & 0xff], timeout); vha 355 drivers/scsi/qla2xxx/qla_isr.c rval = qla2x00_post_idc_ack_work(vha, mb); vha 357 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5023, vha 361 drivers/scsi/qla2xxx/qla_isr.c vha->hw->idc_extend_tmo = descr; vha 362 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5087, vha 365 drivers/scsi/qla2xxx/qla_isr.c vha->host_no, event[aen & 0xff], vha->hw->idc_extend_tmo); vha 390 drivers/scsi/qla2xxx/qla_isr.c qla83xx_handle_8200_aen(scsi_qla_host_t *vha, uint16_t *mb) vha 392 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 405 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x506b, "AEN Code: mb[0] = 0x%x AEN reason: " vha 408 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x506c, "PH-status2: mb[3] = 0x%x " vha 415 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5060, vha 438 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5061, "PegHalt Status-1 " vha 442 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5062, "PegHalt Status-2 " vha 445 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5063, vha 448 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_fatal, vha, 0x5064, vha 451 drivers/scsi/qla2xxx/qla_isr.c qla83xx_schedule_work(vha, vha 454 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_fatal, vha, 0x5065, vha 457 drivers/scsi/qla2xxx/qla_isr.c qla83xx_schedule_work(vha, vha 512 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5066, vha 519 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5067, vha 524 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5068, vha 529 drivers/scsi/qla2xxx/qla_isr.c qla83xx_schedule_work(vha, QLA83XX_NIC_CORE_RESET); vha 533 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5069, vha 537 drivers/scsi/qla2xxx/qla_isr.c qla83xx_schedule_work(vha, QLA83XX_NIC_CORE_RESET); vha 542 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x506a, vha 546 drivers/scsi/qla2xxx/qla_isr.c qla83xx_schedule_work(vha, MBA_IDC_AEN); vha 551 drivers/scsi/qla2xxx/qla_isr.c qla2x00_is_a_vp_did(scsi_qla_host_t *vha, uint32_t rscn_entry) vha 553 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 576 drivers/scsi/qla2xxx/qla_isr.c qla2x00_find_fcport_by_loopid(scsi_qla_host_t *vha, uint16_t loop_id) vha 581 drivers/scsi/qla2xxx/qla_isr.c list_for_each_entry_safe(f, tf, &vha->vp_fcports, list) vha 588 drivers/scsi/qla2xxx/qla_isr.c qla2x00_find_fcport_by_wwpn(scsi_qla_host_t *vha, u8 *wwpn, u8 incl_deleted) vha 593 drivers/scsi/qla2xxx/qla_isr.c list_for_each_entry_safe(f, tf, &vha->vp_fcports, list) { vha 605 drivers/scsi/qla2xxx/qla_isr.c qla2x00_find_fcport_by_nportid(scsi_qla_host_t *vha, port_id_t *id, vha 611 drivers/scsi/qla2xxx/qla_isr.c list_for_each_entry_safe(f, tf, &vha->vp_fcports, list) { vha 629 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb) vha 634 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 642 drivers/scsi/qla2xxx/qla_isr.c if (!vha->hw->flags.fw_started) vha 703 drivers/scsi/qla2xxx/qla_isr.c if (!vha->flags.online) vha 707 drivers/scsi/qla2xxx/qla_isr.c qla2x00_process_completed_request(vha, rsp->req, vha 712 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5002, vha 715 drivers/scsi/qla2xxx/qla_isr.c set_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); vha 722 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5003, vha 728 drivers/scsi/qla2xxx/qla_isr.c ha->isp_ops->fw_dump(vha, 1); vha 734 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_fatal, vha, 0x5004, vha 737 drivers/scsi/qla2xxx/qla_isr.c vha->flags.online = 0; vha 738 drivers/scsi/qla2xxx/qla_isr.c vha->device_flags |= DFLG_DEV_FAILED; vha 743 drivers/scsi/qla2xxx/qla_isr.c &vha->dpc_flags); vha 745 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 748 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_fatal, vha, 0x5005, vha 751 drivers/scsi/qla2xxx/qla_isr.c vha->flags.online = 0; vha 752 drivers/scsi/qla2xxx/qla_isr.c vha->device_flags |= DFLG_DEV_FAILED; vha 754 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 758 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5006, vha 761 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 765 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5007, vha 768 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 772 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5008, vha 777 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5090, vha 779 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 785 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5009, vha 788 drivers/scsi/qla2xxx/qla_isr.c if (atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 789 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 790 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME); vha 791 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mark_all_devices_lost(vha, 1); vha 794 drivers/scsi/qla2xxx/qla_isr.c if (vha->vp_idx) { vha 795 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->vp_state, VP_FAILED); vha 796 drivers/scsi/qla2xxx/qla_isr.c fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); vha 799 drivers/scsi/qla2xxx/qla_isr.c set_bit(REGISTER_FC4_NEEDED, &vha->dpc_flags); vha 800 drivers/scsi/qla2xxx/qla_isr.c set_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags); vha 802 drivers/scsi/qla2xxx/qla_isr.c vha->flags.management_server_logged_in = 0; vha 803 drivers/scsi/qla2xxx/qla_isr.c qla2x00_post_aen_work(vha, FCH_EVT_LIP, mb[1]); vha 812 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x500a, vha 816 drivers/scsi/qla2xxx/qla_isr.c vha->flags.management_server_logged_in = 0; vha 817 drivers/scsi/qla2xxx/qla_isr.c qla2x00_post_aen_work(vha, FCH_EVT_LINKUP, ha->link_data_rate); vha 819 drivers/scsi/qla2xxx/qla_isr.c if (AUTO_DETECT_SFP_SUPPORT(vha)) { vha 820 drivers/scsi/qla2xxx/qla_isr.c set_bit(DETECT_SFP_CHANGE, &vha->dpc_flags); vha 821 drivers/scsi/qla2xxx/qla_isr.c qla2xxx_wake_dpc(vha); vha 834 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x500b, vha 838 drivers/scsi/qla2xxx/qla_isr.c if (atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 839 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 840 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME); vha 846 drivers/scsi/qla2xxx/qla_isr.c if (!vha->vp_idx) { vha 851 drivers/scsi/qla2xxx/qla_isr.c memcpy(vha->port_name, wwpn, WWN_SIZE); vha 852 drivers/scsi/qla2xxx/qla_isr.c fc_host_port_name(vha->host) = vha 853 drivers/scsi/qla2xxx/qla_isr.c wwn_to_u64(vha->port_name); vha 855 drivers/scsi/qla2xxx/qla_isr.c vha, 0x00d8, "LOOP DOWN detected," vha 857 drivers/scsi/qla2xxx/qla_isr.c wwn_to_u64(vha->port_name)); vha 860 drivers/scsi/qla2xxx/qla_isr.c clear_bit(VP_CONFIG_OK, &vha->vp_flags); vha 863 drivers/scsi/qla2xxx/qla_isr.c vha->device_flags |= DFLG_NO_CABLE; vha 864 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mark_all_devices_lost(vha, 1); vha 867 drivers/scsi/qla2xxx/qla_isr.c if (vha->vp_idx) { vha 868 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->vp_state, VP_FAILED); vha 869 drivers/scsi/qla2xxx/qla_isr.c fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); vha 872 drivers/scsi/qla2xxx/qla_isr.c vha->flags.management_server_logged_in = 0; vha 874 drivers/scsi/qla2xxx/qla_isr.c qla2x00_post_aen_work(vha, FCH_EVT_LINKDOWN, 0); vha 878 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x500c, vha 881 drivers/scsi/qla2xxx/qla_isr.c if (atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 882 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 883 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME); vha 884 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mark_all_devices_lost(vha, 1); vha 887 drivers/scsi/qla2xxx/qla_isr.c if (vha->vp_idx) { vha 888 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->vp_state, VP_FAILED); vha 889 drivers/scsi/qla2xxx/qla_isr.c fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); vha 892 drivers/scsi/qla2xxx/qla_isr.c set_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); vha 895 drivers/scsi/qla2xxx/qla_isr.c vha->flags.management_server_logged_in = 0; vha 896 drivers/scsi/qla2xxx/qla_isr.c qla2x00_post_aen_work(vha, FCH_EVT_LIPRESET, mb[1]); vha 907 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x500d, vha 910 drivers/scsi/qla2xxx/qla_isr.c if (ha->notify_dcbx_comp && !vha->vp_idx) vha 914 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x500e, vha 921 drivers/scsi/qla2xxx/qla_isr.c if (atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 922 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 923 drivers/scsi/qla2xxx/qla_isr.c if (!atomic_read(&vha->loop_down_timer)) vha 924 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_down_timer, vha 927 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mark_all_devices_lost(vha, 1); vha 930 drivers/scsi/qla2xxx/qla_isr.c if (vha->vp_idx) { vha 931 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->vp_state, VP_FAILED); vha 932 drivers/scsi/qla2xxx/qla_isr.c fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); vha 935 drivers/scsi/qla2xxx/qla_isr.c if (!(test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags))) vha 936 drivers/scsi/qla2xxx/qla_isr.c set_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); vha 938 drivers/scsi/qla2xxx/qla_isr.c set_bit(REGISTER_FC4_NEEDED, &vha->dpc_flags); vha 939 drivers/scsi/qla2xxx/qla_isr.c set_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags); vha 941 drivers/scsi/qla2xxx/qla_isr.c vha->flags.management_server_logged_in = 0; vha 948 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x500f, vha 951 drivers/scsi/qla2xxx/qla_isr.c if (atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 952 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 953 drivers/scsi/qla2xxx/qla_isr.c if (!atomic_read(&vha->loop_down_timer)) vha 954 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_down_timer, vha 956 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mark_all_devices_lost(vha, 1); vha 959 drivers/scsi/qla2xxx/qla_isr.c if (vha->vp_idx) { vha 960 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->vp_state, VP_FAILED); vha 961 drivers/scsi/qla2xxx/qla_isr.c fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); vha 964 drivers/scsi/qla2xxx/qla_isr.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 965 drivers/scsi/qla2xxx/qla_isr.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 986 drivers/scsi/qla2xxx/qla_isr.c (mb[1] != 0xffff)) && vha->vp_idx != (mb[3] & 0xff)) vha 990 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5010, vha 999 drivers/scsi/qla2xxx/qla_isr.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 1000 drivers/scsi/qla2xxx/qla_isr.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 1010 drivers/scsi/qla2xxx/qla_isr.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 1011 drivers/scsi/qla2xxx/qla_isr.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 1016 drivers/scsi/qla2xxx/qla_isr.c fcport = qla2x00_find_fcport_by_loopid(vha, mb[1]); vha 1021 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x508a, vha 1024 drivers/scsi/qla2xxx/qla_isr.c if (qla_ini_mode_enabled(vha)) { vha 1025 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mark_device_lost(fcport->vha, fcport, 1, 1); vha 1032 drivers/scsi/qla2xxx/qla_isr.c if (atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 1033 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 1034 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_down_timer, vha 1036 drivers/scsi/qla2xxx/qla_isr.c vha->device_flags |= DFLG_NO_CABLE; vha 1037 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mark_all_devices_lost(vha, 1); vha 1040 drivers/scsi/qla2xxx/qla_isr.c if (vha->vp_idx) { vha 1041 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->vp_state, VP_FAILED); vha 1042 drivers/scsi/qla2xxx/qla_isr.c fc_vport_set_state(vha->fc_vport, vha 1044 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mark_all_devices_lost(vha, 1); vha 1047 drivers/scsi/qla2xxx/qla_isr.c vha->flags.management_server_logged_in = 0; vha 1057 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_down_timer, 0); vha 1058 drivers/scsi/qla2xxx/qla_isr.c if (atomic_read(&vha->loop_state) != LOOP_DOWN && vha 1060 drivers/scsi/qla2xxx/qla_isr.c atomic_read(&vha->loop_state) != LOOP_DEAD) { vha 1061 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5011, vha 1067 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5012, vha 1074 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_state, LOOP_UP); vha 1075 drivers/scsi/qla2xxx/qla_isr.c vha->scan.scan_retry = 0; vha 1077 drivers/scsi/qla2xxx/qla_isr.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 1078 drivers/scsi/qla2xxx/qla_isr.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 1079 drivers/scsi/qla2xxx/qla_isr.c set_bit(VP_CONFIG_OK, &vha->vp_flags); vha 1084 drivers/scsi/qla2xxx/qla_isr.c if (vha->vp_idx && test_bit(VP_SCR_NEEDED, &vha->vp_flags)) vha 1087 drivers/scsi/qla2xxx/qla_isr.c if (ha->flags.npiv_supported && vha->vp_idx != (mb[3] & 0xff)) vha 1090 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5013, vha 1095 drivers/scsi/qla2xxx/qla_isr.c host_pid = (vha->d_id.b.domain << 16) | (vha->d_id.b.area << 8) vha 1096 drivers/scsi/qla2xxx/qla_isr.c | vha->d_id.b.al_pa; vha 1098 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5014, vha 1108 drivers/scsi/qla2xxx/qla_isr.c if (qla2x00_is_a_vp_did(vha, rscn_entry)) vha 1111 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_down_timer, 0); vha 1112 drivers/scsi/qla2xxx/qla_isr.c vha->flags.management_server_logged_in = 0; vha 1119 drivers/scsi/qla2xxx/qla_isr.c qla2x00_handle_rscn(vha, &ea); vha 1120 drivers/scsi/qla2xxx/qla_isr.c qla2x00_post_aen_work(vha, FCH_EVT_RSCN, rscn_entry); vha 1125 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5015, vha 1129 drivers/scsi/qla2xxx/qla_isr.c qla24xx_process_response_queue(vha, rsp); vha 1135 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5016, vha 1141 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5017, vha 1146 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5018, vha 1153 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x5019, vha 1159 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x501a, vha 1165 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x501b, vha 1172 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x501c, vha 1177 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x501d, vha 1184 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x501e, vha 1189 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x501f, vha 1194 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5020, vha 1199 drivers/scsi/qla2xxx/qla_isr.c if (IS_QLA8031(vha->hw) || IS_QLA8044(ha)) { vha 1204 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_QUIESCE_NEEDED, &vha->dpc_flags); vha 1208 drivers/scsi/qla2xxx/qla_isr.c if (atomic_read(&vha->loop_state) == LOOP_DOWN) vha 1209 drivers/scsi/qla2xxx/qla_isr.c atomic_set(&vha->loop_down_timer, vha 1211 drivers/scsi/qla2xxx/qla_isr.c qla2xxx_wake_dpc(vha); vha 1216 drivers/scsi/qla2xxx/qla_isr.c if (ha->notify_lb_portup_comp && !vha->vp_idx) vha 1220 drivers/scsi/qla2xxx/qla_isr.c if (IS_QLA81XX(vha->hw) || IS_QLA8031(vha->hw) || vha 1222 drivers/scsi/qla2xxx/qla_isr.c qla81xx_idc_event(vha, mb[0], mb[1]); vha 1230 drivers/scsi/qla2xxx/qla_isr.c qla83xx_handle_8200_aen(vha, mb); vha 1234 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5052, vha 1243 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x505e, vha 1250 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5091, vha 1255 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5057, vha 1260 drivers/scsi/qla2xxx/qla_isr.c qlt_async_event(mb[0], vha, mb); vha 1262 drivers/scsi/qla2xxx/qla_isr.c if (!vha->vp_idx && ha->num_vhosts) vha 1273 drivers/scsi/qla2xxx/qla_isr.c qla2x00_process_completed_request(struct scsi_qla_host *vha, vha 1277 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 1281 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x3014, vha 1285 drivers/scsi/qla2xxx/qla_isr.c set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags); vha 1287 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 1299 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x3016, "Invalid SCSI SRB.\n"); vha 1302 drivers/scsi/qla2xxx/qla_isr.c set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags); vha 1304 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 1309 drivers/scsi/qla2xxx/qla_isr.c qla2x00_get_sp_from_handle(scsi_qla_host_t *vha, const char *func, vha 1312 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 1319 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5031, vha 1323 drivers/scsi/qla2xxx/qla_isr.c set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags); vha 1325 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 1330 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5032, vha 1335 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5033, vha 1347 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mbx_iocb_entry(scsi_qla_host_t *vha, struct req_que *req, vha 1358 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, mbx); vha 1371 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5043, vha 1380 drivers/scsi/qla2xxx/qla_isr.c ql_dump_buffer(ql_dbg_async + ql_dbg_buffer, vha, 0x5029, vha 1391 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5045, vha 1420 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5046, vha 1433 drivers/scsi/qla2xxx/qla_isr.c qla24xx_mbx_iocb_entry(scsi_qla_host_t *vha, struct req_que *req, vha 1442 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); vha 1458 drivers/scsi/qla2xxx/qla_isr.c qla24xxx_nack_iocb_entry(scsi_qla_host_t *vha, struct req_que *req, vha 1465 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); vha 1476 drivers/scsi/qla2xxx/qla_isr.c qla2x00_ct_entry(scsi_qla_host_t *vha, struct req_que *req, vha 1487 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); vha 1513 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5048, vha 1518 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5049, vha 1524 drivers/scsi/qla2xxx/qla_isr.c ql_dump_buffer(ql_dbg_async + ql_dbg_buffer, vha, 0x5035, vha 1538 drivers/scsi/qla2xxx/qla_isr.c res = qla2x00_chk_ms_status(vha, (ms_iocb_entry_t *)pkt, vha 1548 drivers/scsi/qla2xxx/qla_isr.c qla24xx_els_ct_entry(scsi_qla_host_t *vha, struct req_que *req, vha 1561 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); vha 1577 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x5047, vha 1588 drivers/scsi/qla2xxx/qla_isr.c res = qla2x00_chk_ms_status(sp->vha, (ms_iocb_entry_t *)pkt, vha 1594 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x503e, vha 1622 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x503f, vha 1644 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x503f, vha 1651 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x5040, vha 1664 drivers/scsi/qla2xxx/qla_isr.c ql_dump_buffer(ql_dbg_user + ql_dbg_buffer, vha, 0x5056, vha 1678 drivers/scsi/qla2xxx/qla_isr.c qla24xx_logio_entry(scsi_qla_host_t *vha, struct req_que *req, vha 1689 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, logio); vha 1702 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, fcport->vha, 0x5034, vha 1708 drivers/scsi/qla2xxx/qla_isr.c ql_dump_buffer(ql_dbg_async + ql_dbg_buffer, vha, 0x504d, vha 1715 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, fcport->vha, 0x5036, vha 1722 drivers/scsi/qla2xxx/qla_isr.c vha->hw->exch_starvation = 0; vha 1779 drivers/scsi/qla2xxx/qla_isr.c vha->hw->exch_starvation++; vha 1780 drivers/scsi/qla2xxx/qla_isr.c if (vha->hw->exch_starvation > 5) { vha 1781 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0xd046, vha 1784 drivers/scsi/qla2xxx/qla_isr.c vha->hw->exch_starvation = 0; vha 1786 drivers/scsi/qla2xxx/qla_isr.c if (IS_P3P_TYPE(vha->hw)) vha 1787 drivers/scsi/qla2xxx/qla_isr.c set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags); vha 1789 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 1790 drivers/scsi/qla2xxx/qla_isr.c qla2xxx_wake_dpc(vha); vha 1798 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, fcport->vha, 0x5037, vha 1812 drivers/scsi/qla2xxx/qla_isr.c qla24xx_tm_iocb_entry(scsi_qla_host_t *vha, struct req_que *req, void *tsk) vha 1821 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, tsk); vha 1831 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, fcport->vha, 0x5038, vha 1836 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, fcport->vha, 0x5039, vha 1843 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, fcport->vha, 0x503b, vha 1847 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, fcport->vha, 0x503c, vha 1855 drivers/scsi/qla2xxx/qla_isr.c ql_dump_buffer(ql_dbg_async + ql_dbg_buffer, sp->vha, 0x5055, vha 1861 drivers/scsi/qla2xxx/qla_isr.c static void qla24xx_nvme_iocb_entry(scsi_qla_host_t *vha, struct req_que *req, vha 1879 drivers/scsi/qla2xxx/qla_isr.c atomic_dec(&sp->vha->hw->nvme_active_aen_cnt); vha 1905 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, fcport->vha, 0x5100, vha 1916 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, fcport->vha, 0x503a, vha 1925 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, fcport->vha, 0x5060, vha 1959 drivers/scsi/qla2xxx/qla_isr.c static void qla_ctrlvp_completed(scsi_qla_host_t *vha, struct req_que *req, vha 1966 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, vce); vha 1971 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_vport, vha, 0x10c4, vha 1976 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_vport, vha, 0x10c5, vha 1982 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_vport, vha, 0x10c6, vha 1991 drivers/scsi/qla2xxx/qla_isr.c static void qla2x00_process_response_entry(struct scsi_qla_host *vha, vha 2002 drivers/scsi/qla2xxx/qla_isr.c qla2x00_status_entry(vha, rsp, pkt); vha 2008 drivers/scsi/qla2xxx/qla_isr.c qla2x00_process_completed_request(vha, rsp->req, vha 2015 drivers/scsi/qla2xxx/qla_isr.c qla2x00_process_completed_request(vha, rsp->req, vha 2022 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mbx_iocb_entry(vha, rsp->req, (struct mbx_entry *)pkt); vha 2025 drivers/scsi/qla2xxx/qla_isr.c qla2x00_ct_entry(vha, rsp->req, pkt, CT_IOCB_TYPE); vha 2029 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x504a, vha 2043 drivers/scsi/qla2xxx/qla_isr.c struct scsi_qla_host *vha; vha 2048 drivers/scsi/qla2xxx/qla_isr.c vha = pci_get_drvdata(ha->pdev); vha 2050 drivers/scsi/qla2xxx/qla_isr.c if (!vha->flags.online) vha 2065 drivers/scsi/qla2xxx/qla_isr.c qla2x00_error_entry(vha, rsp, pkt); vha 2071 drivers/scsi/qla2xxx/qla_isr.c qla2x00_process_response_entry(vha, rsp, pkt); vha 2084 drivers/scsi/qla2xxx/qla_isr.c struct scsi_qla_host *vha = sp->vha; vha 2110 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io + ql_dbg_buffer, vha, 0x301c, vha 2112 drivers/scsi/qla2xxx/qla_isr.c sp->vha->host_no, cp->device->id, cp->device->lun, vha 2114 drivers/scsi/qla2xxx/qla_isr.c ql_dump_buffer(ql_dbg_io + ql_dbg_buffer, vha, 0x302b, vha 2134 drivers/scsi/qla2xxx/qla_isr.c struct scsi_qla_host *vha = sp->vha; vha 2153 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, vha, 0x3023, vha 2156 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, vha, 0x3024, vha 2203 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x302f, vha 2254 drivers/scsi/qla2xxx/qla_isr.c qla25xx_process_bidir_status_iocb(scsi_qla_host_t *vha, void *pkt, vha 2257 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 2271 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x70af, vha 2273 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2279 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x70b0, vha 2283 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2307 drivers/scsi/qla2xxx/qla_isr.c vha->qla_stats.input_bytes += vha 2309 drivers/scsi/qla2xxx/qla_isr.c vha->qla_stats.input_requests++; vha 2315 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70b1, vha 2322 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70b2, vha 2328 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70b3, vha 2335 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70b4, vha 2342 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70b5, vha 2349 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70b6, vha 2356 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70b7, vha 2363 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70b8, vha 2370 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70b9, vha 2377 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70ba, vha 2383 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_user, vha, 0x70bb, vha 2408 drivers/scsi/qla2xxx/qla_isr.c qla2x00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt) vha 2423 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 2447 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, vha, 0x3059, vha 2457 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, vha, 0x3075, vha 2459 drivers/scsi/qla2xxx/qla_isr.c __func__, vha->host_no, sts->handle); vha 2463 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, vha, 0x3017, vha 2467 drivers/scsi/qla2xxx/qla_isr.c if (!test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)) { vha 2469 drivers/scsi/qla2xxx/qla_isr.c set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags); vha 2471 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2472 drivers/scsi/qla2xxx/qla_isr.c qla2xxx_wake_dpc(vha); vha 2484 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, vha, 0x3015, vha 2493 drivers/scsi/qla2xxx/qla_isr.c qla24xx_nvme_iocb_entry(vha, req, pkt, sp); vha 2498 drivers/scsi/qla2xxx/qla_isr.c qla25xx_process_bidir_status_iocb(vha, pkt, req, handle); vha 2504 drivers/scsi/qla2xxx/qla_isr.c qla24xx_tm_iocb_entry(vha, req, pkt); vha 2510 drivers/scsi/qla2xxx/qla_isr.c qla2x00_process_completed_request(vha, req, handle); vha 2518 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, vha, 0x3018, vha 2549 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, sp->vha, 0x3033, vha 2572 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3019, vha 2611 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, fcport->vha, 0x301a, vha 2622 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, fcport->vha, 0x301b, vha 2644 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, fcport->vha, 0x301d, vha 2655 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, fcport->vha, 0x301e, vha 2669 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, fcport->vha, 0x301f, vha 2676 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3030, vha 2691 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3020, vha 2732 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_disc, fcport->vha, 0x3021, vha 2739 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mark_device_lost(fcport->vha, fcport, 1, 1); vha 2767 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, fcport->vha, 0x3022, vha 2769 drivers/scsi/qla2xxx/qla_isr.c comp_status, scsi_status, res, vha->host_no, vha 2773 drivers/scsi/qla2xxx/qla_isr.c ql_dump_buffer(ql_dbg_tgt + ql_dbg_verbose, vha, 0xe0ee, vha 2784 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3022, vha 2788 drivers/scsi/qla2xxx/qla_isr.c comp_status, scsi_status, res, vha->host_no, vha 2810 drivers/scsi/qla2xxx/qla_isr.c struct scsi_qla_host *vha = pci_get_drvdata(ha->pdev); vha 2824 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x3025, vha 2840 drivers/scsi/qla2xxx/qla_isr.c ql_dump_buffer(ql_dbg_io + ql_dbg_buffer, vha, 0x302c, vha 2864 drivers/scsi/qla2xxx/qla_isr.c qla2x00_error_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, sts_entry_t *pkt) vha 2867 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 2873 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x502a, vha 2898 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); vha 2911 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x5030, vha 2922 drivers/scsi/qla2xxx/qla_isr.c qla24xx_mbx_completion(scsi_qla_host_t *vha, uint16_t mb0) vha 2927 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 2934 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x504e, "MBX pointer ERROR.\n"); vha 2954 drivers/scsi/qla2xxx/qla_isr.c qla24xx_abort_iocb_entry(scsi_qla_host_t *vha, struct req_que *req, vha 2961 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); vha 2970 drivers/scsi/qla2xxx/qla_isr.c void qla24xx_nvme_ls4_iocb(struct scsi_qla_host *vha, vha 2977 drivers/scsi/qla2xxx/qla_isr.c sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); vha 2990 drivers/scsi/qla2xxx/qla_isr.c void qla24xx_process_response_queue(struct scsi_qla_host *vha, vha 2994 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 3014 drivers/scsi/qla2xxx/qla_isr.c if (qla2x00_error_entry(vha, rsp, (sts_entry_t *) pkt)) vha 3025 drivers/scsi/qla2xxx/qla_isr.c qla2x00_status_entry(vha, rsp, pkt); vha 3031 drivers/scsi/qla2xxx/qla_isr.c qla24xx_report_id_acquisition(vha, vha 3035 drivers/scsi/qla2xxx/qla_isr.c qla24xx_logio_entry(vha, rsp->req, vha 3039 drivers/scsi/qla2xxx/qla_isr.c qla24xx_els_ct_entry(vha, rsp->req, pkt, CT_IOCB_TYPE); vha 3042 drivers/scsi/qla2xxx/qla_isr.c qla24xx_els_ct_entry(vha, rsp->req, pkt, ELS_IOCB_TYPE); vha 3048 drivers/scsi/qla2xxx/qla_isr.c qlt_handle_abts_recv(vha, rsp, vha 3052 drivers/scsi/qla2xxx/qla_isr.c qlt_24xx_process_atio_queue(vha, 1); vha 3058 drivers/scsi/qla2xxx/qla_isr.c qlt_response_pkt_all_vps(vha, rsp, (response_t *)pkt); vha 3061 drivers/scsi/qla2xxx/qla_isr.c qla24xx_nvme_ls4_iocb(vha, (struct pt_ls4_request *)pkt, vha 3066 drivers/scsi/qla2xxx/qla_isr.c qlt_response_pkt_all_vps(vha, rsp, vha 3069 drivers/scsi/qla2xxx/qla_isr.c qla24xxx_nack_iocb_entry(vha, rsp->req, vha 3078 drivers/scsi/qla2xxx/qla_isr.c qla24xx_abort_iocb_entry(vha, rsp->req, vha 3082 drivers/scsi/qla2xxx/qla_isr.c qla24xx_mbx_iocb_entry(vha, rsp->req, vha 3086 drivers/scsi/qla2xxx/qla_isr.c qla_ctrlvp_completed(vha, rsp->req, vha 3091 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5042, vha 3112 drivers/scsi/qla2xxx/qla_isr.c qla2xxx_check_risc_status(scsi_qla_host_t *vha) vha 3116 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 3153 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x504c, vha 3173 drivers/scsi/qla2xxx/qla_isr.c scsi_qla_host_t *vha; vha 3200 drivers/scsi/qla2xxx/qla_isr.c vha = pci_get_drvdata(ha->pdev); vha 3203 drivers/scsi/qla2xxx/qla_isr.c if (qla2x00_check_reg32_for_disconnect(vha, stat)) vha 3211 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x504b, vha 3215 drivers/scsi/qla2xxx/qla_isr.c qla2xxx_check_risc_status(vha); vha 3217 drivers/scsi/qla2xxx/qla_isr.c ha->isp_ops->fw_dump(vha, 1); vha 3218 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 3228 drivers/scsi/qla2xxx/qla_isr.c qla24xx_mbx_completion(vha, MSW(stat)); vha 3237 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); vha 3241 drivers/scsi/qla2xxx/qla_isr.c qla24xx_process_response_queue(vha, rsp); vha 3249 drivers/scsi/qla2xxx/qla_isr.c qla24xx_process_response_queue(vha, rsp); vha 3252 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x504f, vha 3266 drivers/scsi/qla2xxx/qla_isr.c qlt_24xx_process_atio_queue(vha, 0); vha 3279 drivers/scsi/qla2xxx/qla_isr.c struct scsi_qla_host *vha; vha 3293 drivers/scsi/qla2xxx/qla_isr.c vha = pci_get_drvdata(ha->pdev); vha 3294 drivers/scsi/qla2xxx/qla_isr.c qla24xx_process_response_queue(vha, rsp); vha 3307 drivers/scsi/qla2xxx/qla_isr.c scsi_qla_host_t *vha; vha 3329 drivers/scsi/qla2xxx/qla_isr.c vha = pci_get_drvdata(ha->pdev); vha 3332 drivers/scsi/qla2xxx/qla_isr.c if (qla2x00_check_reg32_for_disconnect(vha, stat)) vha 3340 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x5050, vha 3344 drivers/scsi/qla2xxx/qla_isr.c qla2xxx_check_risc_status(vha); vha 3346 drivers/scsi/qla2xxx/qla_isr.c ha->isp_ops->fw_dump(vha, 1); vha 3347 drivers/scsi/qla2xxx/qla_isr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 3357 drivers/scsi/qla2xxx/qla_isr.c qla24xx_mbx_completion(vha, MSW(stat)); vha 3366 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); vha 3370 drivers/scsi/qla2xxx/qla_isr.c qla24xx_process_response_queue(vha, rsp); vha 3378 drivers/scsi/qla2xxx/qla_isr.c qla24xx_process_response_queue(vha, rsp); vha 3381 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_async, vha, 0x5051, vha 3392 drivers/scsi/qla2xxx/qla_isr.c qlt_24xx_process_atio_queue(vha, 0); vha 3452 drivers/scsi/qla2xxx/qla_isr.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 3474 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_fatal, vha, 0x00c7, vha 3480 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x00c6, vha 3498 drivers/scsi/qla2xxx/qla_isr.c vha->irq_offset = desc.pre_vectors; vha 3503 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_fatal, vha, 0x00c8, vha 3525 drivers/scsi/qla2xxx/qla_isr.c "qla2xxx%lu_%s", vha->host_no, msix_entries[i].name); vha 3550 drivers/scsi/qla2xxx/qla_isr.c "qla2xxx%lu_%s", vha->host_no, vha 3561 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_fatal, vha, 0x00cb, vha 3564 drivers/scsi/qla2xxx/qla_isr.c qla2x00_free_irqs(vha); vha 3580 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_multiq, vha, 0xc005, vha 3583 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_init, vha, 0x0055, vha 3600 drivers/scsi/qla2xxx/qla_isr.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 3615 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x0034, vha 3623 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x0035, vha 3631 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_init, vha, 0x0036, vha 3639 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_info, vha, 0x0037, vha 3649 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_init, vha, 0x0038, vha 3653 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x0039, vha 3665 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_warn, vha, 0x003a, vha 3670 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_init, vha, 0x0125, vha 3688 drivers/scsi/qla2xxx/qla_isr.c qla2x00_free_irqs(scsi_qla_host_t *vha) vha 3690 drivers/scsi/qla2xxx/qla_isr.c struct qla_hw_data *ha = vha->hw; vha 3714 drivers/scsi/qla2xxx/qla_isr.c ql_dbg(ql_dbg_init, vha, 0x0042, vha 3728 drivers/scsi/qla2xxx/qla_isr.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 3732 drivers/scsi/qla2xxx/qla_isr.c "qla2xxx%lu_qpair%d", vha->host_no, qpair->id); vha 3735 drivers/scsi/qla2xxx/qla_isr.c ql_log(ql_log_fatal, vha, 0x00e6, vha 100 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp) vha 113 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 118 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1000, "Entered %s.\n", __func__); vha 121 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1001, vha 127 drivers/scsi/qla2xxx/qla_mbx.c if (vha->device_flags & DFLG_DEV_FAILED) { vha 128 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1002, vha 136 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0xd04e, vha 149 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1003, vha 157 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1004, vha 167 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_info, vha, 0x1005, vha 181 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0xd035, vha 197 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1006, vha 222 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1111, vha 229 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1112, vha 239 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1117, vha 247 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x100f, vha 278 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x117a, vha 297 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1015, "cmd=0x%x, waited %d msecs\n", vha 300 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1011, vha 310 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1012, vha 354 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1013, vha 364 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1014, vha 380 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0xd048, vha 386 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x11ff, vha 397 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1113, vha 402 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1114, vha 426 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0xd04c, vha 435 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1119, vha 439 drivers/scsi/qla2xxx/qla_mbx.c ql_dump_regs(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1019); vha 442 drivers/scsi/qla2xxx/qla_mbx.c if (!pci_channel_offline(vha->hw->pdev)) { vha 466 drivers/scsi/qla2xxx/qla_mbx.c ha->isp_ops->fw_dump(vha, 0); vha 478 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x101a, vha 490 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x101b, vha 493 drivers/scsi/qla2xxx/qla_mbx.c if (!test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) && vha 494 drivers/scsi/qla2xxx/qla_mbx.c !test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) && vha 495 drivers/scsi/qla2xxx/qla_mbx.c !test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { vha 497 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x112a, vha 510 drivers/scsi/qla2xxx/qla_mbx.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 511 drivers/scsi/qla2xxx/qla_mbx.c qla2xxx_wake_dpc(vha); vha 515 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x101d, vha 518 drivers/scsi/qla2xxx/qla_mbx.c if (!test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) && vha 519 drivers/scsi/qla2xxx/qla_mbx.c !test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) && vha 520 drivers/scsi/qla2xxx/qla_mbx.c !test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { vha 522 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x112b, vha 534 drivers/scsi/qla2xxx/qla_mbx.c set_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags); vha 535 drivers/scsi/qla2xxx/qla_mbx.c clear_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 538 drivers/scsi/qla2xxx/qla_mbx.c if (ha->isp_ops->abort_isp(vha)) { vha 541 drivers/scsi/qla2xxx/qla_mbx.c &vha->dpc_flags); vha 543 drivers/scsi/qla2xxx/qla_mbx.c clear_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags); vha 544 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x101f, vha 557 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_info, vha, 0xd035, vha 564 drivers/scsi/qla2xxx/qla_mbx.c vha->host_no, rval); vha 575 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1198, vha 581 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1206, vha 595 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_load_ram(scsi_qla_host_t *vha, dma_addr_t req_dma, uint32_t risc_addr, vha 599 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 603 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1022, vha 632 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 635 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1023, vha 639 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1024, vha 687 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_execute_fw(scsi_qla_host_t *vha, uint32_t risc_addr) vha 690 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 694 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1025, vha 739 drivers/scsi/qla2xxx/qla_mbx.c vha->min_supported_speed = vha 763 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 766 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1026, vha 775 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119a, vha 777 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1027, "exchanges=%x.\n", mcp->mb[1]); vha 780 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119b, "max_supported_speed=%s.\n", vha 784 drivers/scsi/qla2xxx/qla_mbx.c if (vha->min_supported_speed) { vha 787 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119c, vha 798 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1028, vha 821 drivers/scsi/qla2xxx/qla_mbx.c qla_get_exlogin_status(scsi_qla_host_t *vha, uint16_t *buf_sz, vha 828 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x118f, vha 839 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 841 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1115, "Failed=%x.\n", rval); vha 846 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_info, vha, 0x1190, vha 850 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1116, vha 878 drivers/scsi/qla2xxx/qla_mbx.c qla_set_exlogin_mem_cfg(scsi_qla_host_t *vha, dma_addr_t phys_addr) vha 883 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 885 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x111a, vha 901 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 904 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x111b, "Failed=%x.\n", rval); vha 906 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x118c, vha 930 drivers/scsi/qla2xxx/qla_mbx.c qla_get_exchoffld_status(scsi_qla_host_t *vha, uint16_t *buf_sz, vha 937 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1019, vha 948 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 950 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1155, "Failed=%x.\n", rval); vha 955 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_info, vha, 0x118e, vha 959 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1156, vha 987 drivers/scsi/qla2xxx/qla_mbx.c qla_set_exchoffld_mem_cfg(scsi_qla_host_t *vha) vha 992 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 994 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1157, vha 1010 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1013 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1158, "Failed=%x.\n", rval); vha 1015 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1192, vha 1039 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_fw_version(scsi_qla_host_t *vha) vha 1044 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 1046 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1029, vha 1052 drivers/scsi/qla2xxx/qla_mbx.c if (IS_QLA81XX(vha->hw) || IS_QLA8031(ha) || IS_QLA8044(ha)) vha 1063 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1072 drivers/scsi/qla2xxx/qla_mbx.c if (IS_QLA2100(vha->hw) || IS_QLA2200(vha->hw)) vha 1077 drivers/scsi/qla2xxx/qla_mbx.c if (IS_QLA81XX(vha->hw) || IS_QLA8031(vha->hw) || IS_QLA8044(ha)) { vha 1091 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1139, vha 1094 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x112f, vha 1099 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x118d, vha 1104 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1191, vha 1116 drivers/scsi/qla2xxx/qla_mbx.c vha->flags.nvme_first_burst = 1; vha 1118 drivers/scsi/qla2xxx/qla_mbx.c vha->flags.nvme_enabled = 1; vha 1119 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_info, vha, 0xd302, vha 1141 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_info, vha, 0xffff, vha 1151 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x102a, "Failed=%x.\n", rval); vha 1154 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x102b, vha 1175 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_fw_options(scsi_qla_host_t *vha, uint16_t *fwopts) vha 1181 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x102c, vha 1189 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1193 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x102d, "Failed=%x.\n", rval); vha 1200 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x102e, vha 1223 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_set_fw_options(scsi_qla_host_t *vha, uint16_t *fwopts) vha 1229 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x102f, vha 1238 drivers/scsi/qla2xxx/qla_mbx.c if (IS_FWI2_CAPABLE(vha->hw)) { vha 1250 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1256 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1030, vha 1260 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1031, vha 1283 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_mbx_reg_test(scsi_qla_host_t *vha) vha 1289 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1032, vha 1304 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1317 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1033, "Failed=%x.\n", rval); vha 1320 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1034, vha 1343 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_verify_checksum(scsi_qla_host_t *vha, uint32_t risc_addr) vha 1349 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1035, vha 1355 drivers/scsi/qla2xxx/qla_mbx.c if (IS_FWI2_CAPABLE(vha->hw)) { vha 1368 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1371 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1036, vha 1372 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x chm sum=%x.\n", rval, IS_FWI2_CAPABLE(vha->hw) ? vha 1375 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1037, vha 1401 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_issue_iocb_timeout(scsi_qla_host_t *vha, void *buffer, vha 1408 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1038, vha 1421 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1425 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1039, "Failed=%x.\n", rval); vha 1431 drivers/scsi/qla2xxx/qla_mbx.c IS_FWI2_CAPABLE(vha->hw) ? RF_MASK_24XX : RF_MASK; vha 1432 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x103a, vha 1440 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_issue_iocb(scsi_qla_host_t *vha, void *buffer, dma_addr_t phys_addr, vha 1443 drivers/scsi/qla2xxx/qla_mbx.c return qla2x00_issue_iocb_timeout(vha, buffer, phys_addr, size, vha 1470 drivers/scsi/qla2xxx/qla_mbx.c scsi_qla_host_t *vha = fcport->vha; vha 1471 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 1475 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x103b, vha 1478 drivers/scsi/qla2xxx/qla_mbx.c if (vha->flags.qpairs_available && sp->qpair) vha 1481 drivers/scsi/qla2xxx/qla_mbx.c req = vha->req; vha 1507 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1510 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x103c, "Failed=%x.\n", rval); vha 1512 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x103d, vha 1525 drivers/scsi/qla2xxx/qla_mbx.c scsi_qla_host_t *vha; vha 1527 drivers/scsi/qla2xxx/qla_mbx.c vha = fcport->vha; vha 1529 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x103e, vha 1534 drivers/scsi/qla2xxx/qla_mbx.c if (HAS_EXTENDED_IDS(vha->hw)) { vha 1541 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = vha->hw->loop_reset_delay; vha 1542 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; vha 1547 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1549 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x103f, vha 1554 drivers/scsi/qla2xxx/qla_mbx.c rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, 0, vha 1557 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1040, vha 1560 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1041, vha 1573 drivers/scsi/qla2xxx/qla_mbx.c scsi_qla_host_t *vha; vha 1575 drivers/scsi/qla2xxx/qla_mbx.c vha = fcport->vha; vha 1577 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1042, vha 1582 drivers/scsi/qla2xxx/qla_mbx.c if (HAS_EXTENDED_IDS(vha->hw)) vha 1588 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; vha 1593 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1595 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1043, "Failed=%x.\n", rval); vha 1599 drivers/scsi/qla2xxx/qla_mbx.c rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, l, vha 1602 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1044, vha 1605 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1045, vha 1633 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_adapter_id(scsi_qla_host_t *vha, uint16_t *id, uint8_t *al_pa, vha 1640 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1046, vha 1644 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; vha 1647 drivers/scsi/qla2xxx/qla_mbx.c if (IS_CNA_CAPABLE(vha->hw)) vha 1649 drivers/scsi/qla2xxx/qla_mbx.c if (IS_FWI2_CAPABLE(vha->hw)) vha 1651 drivers/scsi/qla2xxx/qla_mbx.c if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw)) vha 1655 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1671 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1047, "Failed=%x.\n", rval); vha 1673 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1048, vha 1676 drivers/scsi/qla2xxx/qla_mbx.c if (IS_CNA_CAPABLE(vha->hw)) { vha 1677 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vlan_id = mcp->mb[9] & 0xfff; vha 1678 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_fcf_idx = mcp->mb[10]; vha 1679 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[5] = mcp->mb[11] >> 8; vha 1680 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[4] = mcp->mb[11] & 0xff; vha 1681 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[3] = mcp->mb[12] >> 8; vha 1682 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[2] = mcp->mb[12] & 0xff; vha 1683 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[1] = mcp->mb[13] >> 8; vha 1684 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[0] = mcp->mb[13] & 0xff; vha 1687 drivers/scsi/qla2xxx/qla_mbx.c if (IS_FAWWN_CAPABLE(vha->hw)) { vha 1689 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[0] = MSB(mcp->mb[16]); vha 1690 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[1] = LSB(mcp->mb[16]); vha 1691 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[2] = MSB(mcp->mb[17]); vha 1692 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[3] = LSB(mcp->mb[17]); vha 1693 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[4] = MSB(mcp->mb[18]); vha 1694 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[5] = LSB(mcp->mb[18]); vha 1695 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[6] = MSB(mcp->mb[19]); vha 1696 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[7] = LSB(mcp->mb[19]); vha 1697 drivers/scsi/qla2xxx/qla_mbx.c fc_host_port_name(vha->host) = vha 1698 drivers/scsi/qla2xxx/qla_mbx.c wwn_to_u64(vha->port_name); vha 1699 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10ca, vha 1701 drivers/scsi/qla2xxx/qla_mbx.c wwn_to_u64(vha->port_name)); vha 1705 drivers/scsi/qla2xxx/qla_mbx.c if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw)) vha 1706 drivers/scsi/qla2xxx/qla_mbx.c vha->bbcr = mcp->mb[15]; vha 1728 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_retry_cnt(scsi_qla_host_t *vha, uint8_t *retry_cnt, uint8_t *tov, vha 1736 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1049, vha 1744 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1748 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x104a, vha 1760 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x104b, vha 1785 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_init_firmware(scsi_qla_host_t *vha, uint16_t size) vha 1790 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 1792 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x104c, vha 1827 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1831 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x104d, vha 1835 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x104d, "init_cb:\n"); vha 1836 drivers/scsi/qla2xxx/qla_mbx.c ql_dump_buffer(ql_dbg_init + ql_dbg_verbose, vha, vha 1840 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x104d, "ex_init_cb:\n"); vha 1841 drivers/scsi/qla2xxx/qla_mbx.c ql_dump_buffer(ql_dbg_init + ql_dbg_verbose, vha, vha 1847 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119d, vha 1850 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x104e, vha 1875 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_port_database(scsi_qla_host_t *vha, fc_port_t *fcport, uint8_t opt) vha 1883 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 1885 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x104f, vha 1891 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1050, vha 1904 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; vha 1924 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 1948 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119a, vha 1994 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x100a, vha 2037 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1052, vha 2041 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1053, vha 2065 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_firmware_state(scsi_qla_host_t *vha, uint16_t *states) vha 2070 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 2072 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1054, vha 2077 drivers/scsi/qla2xxx/qla_mbx.c if (IS_FWI2_CAPABLE(vha->hw)) vha 2083 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2087 drivers/scsi/qla2xxx/qla_mbx.c if (IS_FWI2_CAPABLE(vha->hw)) { vha 2097 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1055, "Failed=%x.\n", rval); vha 2101 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119e, vha 2104 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1056, vha 2130 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_port_name(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t *name, vha 2137 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1057, vha 2141 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; vha 2143 drivers/scsi/qla2xxx/qla_mbx.c if (HAS_EXTENDED_IDS(vha->hw)) { vha 2154 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2158 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1058, "Failed=%x.\n", rval); vha 2172 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1059, vha 2195 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_link_initialize(scsi_qla_host_t *vha) vha 2201 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1152, vha 2204 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_FWI2_CAPABLE(vha->hw) || IS_CNA_CAPABLE(vha->hw)) vha 2209 drivers/scsi/qla2xxx/qla_mbx.c if (vha->hw->operating_mode == LOOP) vha 2219 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2222 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1153, "Failed=%x.\n", rval); vha 2224 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1154, vha 2247 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_lip_reset(scsi_qla_host_t *vha) vha 2253 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_disc, vha, 0x105a, vha 2256 drivers/scsi/qla2xxx/qla_mbx.c if (IS_CNA_CAPABLE(vha->hw)) { vha 2262 drivers/scsi/qla2xxx/qla_mbx.c } else if (IS_FWI2_CAPABLE(vha->hw)) { vha 2266 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = vha->hw->loop_reset_delay; vha 2271 drivers/scsi/qla2xxx/qla_mbx.c if (HAS_EXTENDED_IDS(vha->hw)) { vha 2278 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = vha->hw->loop_reset_delay; vha 2284 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2288 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x105b, "Failed=%x.\n", rval); vha 2291 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x105c, vha 2317 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_send_sns(scsi_qla_host_t *vha, dma_addr_t sns_phys_address, vha 2324 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x105d, vha 2327 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x105e, vha 2329 drivers/scsi/qla2xxx/qla_mbx.c vha->hw->retry_count, vha->hw->login_timeout, mcp->tov); vha 2341 drivers/scsi/qla2xxx/qla_mbx.c mcp->tov = (vha->hw->login_timeout * 2) + (vha->hw->login_timeout / 2); vha 2342 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2346 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x105f, vha 2351 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1060, vha 2359 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_login_fabric(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, vha 2367 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 2370 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1061, vha 2373 drivers/scsi/qla2xxx/qla_mbx.c if (vha->vp_idx && vha->qpair) vha 2374 drivers/scsi/qla2xxx/qla_mbx.c req = vha->qpair->req; vha 2380 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1062, vha 2397 drivers/scsi/qla2xxx/qla_mbx.c lg->vp_index = vha->vp_idx; vha 2398 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0, vha 2401 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1063, vha 2404 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1064, vha 2412 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1065, vha 2443 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1066, vha 2495 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_login_fabric(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, vha 2501 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 2503 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1067, vha 2521 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2547 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1068, vha 2552 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1069, vha 2576 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_login_local_device(scsi_qla_host_t *vha, fc_port_t *fcport, vha 2582 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 2584 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x106a, vha 2588 drivers/scsi/qla2xxx/qla_mbx.c return qla24xx_login_fabric(vha, fcport->loop_id, vha 2602 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2622 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x106b, vha 2627 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x106c, vha 2635 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_fabric_logout(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, vha 2641 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 2644 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x106d, vha 2649 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x106e, vha 2654 drivers/scsi/qla2xxx/qla_mbx.c req = vha->req; vha 2665 drivers/scsi/qla2xxx/qla_mbx.c lg->vp_index = vha->vp_idx; vha 2666 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0, vha 2669 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x106f, vha 2672 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1070, vha 2677 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1071, vha 2684 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1072, vha 2710 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_fabric_logout(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, vha 2717 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1073, vha 2722 drivers/scsi/qla2xxx/qla_mbx.c if (HAS_EXTENDED_IDS(vha->hw)) { vha 2733 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2737 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1074, vha 2741 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1075, vha 2764 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_full_login_lip(scsi_qla_host_t *vha) vha 2770 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1076, vha 2774 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = IS_FWI2_CAPABLE(vha->hw) ? BIT_4 : 0; vha 2781 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2785 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1077, "Failed=%x.\n", rval); vha 2788 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1078, vha 2808 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_id_list(scsi_qla_host_t *vha, void *id_list, dma_addr_t id_list_dma, vha 2815 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1079, vha 2823 drivers/scsi/qla2xxx/qla_mbx.c if (IS_FWI2_CAPABLE(vha->hw)) { vha 2829 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; vha 2841 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2845 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x107a, "Failed=%x.\n", rval); vha 2848 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x107b, vha 2869 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_resource_cnts(scsi_qla_host_t *vha) vha 2871 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 2876 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x107c, vha 2887 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2891 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x107d, vha 2894 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x107e, vha 2931 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_fcal_position_map(scsi_qla_host_t *vha, char *pos_map) vha 2938 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 2940 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x107f, vha 2945 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1080, vha 2960 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 2963 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1081, vha 2966 drivers/scsi/qla2xxx/qla_mbx.c ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x111d, vha 2975 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1082, "Failed=%x.\n", rval); vha 2977 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1083, vha 2998 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_link_status(scsi_qla_host_t *vha, uint16_t loop_id, vha 3006 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 3008 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1084, vha 3034 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3038 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1085, vha 3043 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1086, vha 3050 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1087, "Failed=%x.\n", rval); vha 3057 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_get_isp_stats(scsi_qla_host_t *vha, struct link_statistics *stats, vha 3065 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1088, vha 3075 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[9] = cpu_to_le16(vha->vp_idx); vha 3078 drivers/scsi/qla2xxx/qla_mbx.c rval = qla24xx_send_mb_cmd(vha, &mc); vha 3082 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1089, vha 3086 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x108a, vha 3096 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x108b, "Failed=%x.\n", rval); vha 3112 drivers/scsi/qla2xxx/qla_mbx.c struct scsi_qla_host *vha = fcport->vha; vha 3113 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 3114 drivers/scsi/qla2xxx/qla_mbx.c struct req_que *req = vha->req; vha 3117 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x108c, vha 3141 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x108d, vha 3154 drivers/scsi/qla2xxx/qla_mbx.c abt->vp_index = fcport->vha->vp_idx; vha 3158 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_issue_iocb(vha, abt, abt_dma, 0); vha 3160 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x108e, vha 3163 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x108f, vha 3168 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1090, vha 3176 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1091, vha 3200 drivers/scsi/qla2xxx/qla_mbx.c scsi_qla_host_t *vha; vha 3205 drivers/scsi/qla2xxx/qla_mbx.c vha = fcport->vha; vha 3206 drivers/scsi/qla2xxx/qla_mbx.c ha = vha->hw; vha 3207 drivers/scsi/qla2xxx/qla_mbx.c req = vha->req; vha 3209 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1092, vha 3212 drivers/scsi/qla2xxx/qla_mbx.c if (vha->vp_idx && vha->qpair) { vha 3214 drivers/scsi/qla2xxx/qla_mbx.c qpair = vha->qpair; vha 3220 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1093, vha 3234 drivers/scsi/qla2xxx/qla_mbx.c tsk->p.tsk.vp_index = fcport->vha->vp_idx; vha 3242 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_issue_iocb(vha, tsk, tsk_dma, 0); vha 3244 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1094, vha 3247 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1095, vha 3252 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1096, vha 3259 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1097, vha 3264 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1098, vha 3272 drivers/scsi/qla2xxx/qla_mbx.c rval2 = qla2x00_marker(vha, ha->base_qpair, fcport->loop_id, l, vha 3275 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1099, vha 3278 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x109a, vha 3290 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = fcport->vha->hw; vha 3301 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = fcport->vha->hw; vha 3310 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_system_error(scsi_qla_host_t *vha) vha 3315 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 3320 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x109b, vha 3328 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3331 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x109c, "Failed=%x.\n", rval); vha 3333 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x109d, vha 3341 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_write_serdes_word(scsi_qla_host_t *vha, uint16_t addr, uint16_t data) vha 3347 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_QLA25XX(vha->hw) && !IS_QLA2031(vha->hw) && vha 3348 drivers/scsi/qla2xxx/qla_mbx.c !IS_QLA27XX(vha->hw) && !IS_QLA28XX(vha->hw)) vha 3351 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1182, vha 3356 drivers/scsi/qla2xxx/qla_mbx.c if (IS_QLA2031(vha->hw)) vha 3366 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3369 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1183, vha 3372 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1184, vha 3380 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_read_serdes_word(scsi_qla_host_t *vha, uint16_t addr, uint16_t *data) vha 3386 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_QLA25XX(vha->hw) && !IS_QLA2031(vha->hw) && vha 3387 drivers/scsi/qla2xxx/qla_mbx.c !IS_QLA27XX(vha->hw) && !IS_QLA28XX(vha->hw)) vha 3390 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1185, vha 3400 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3402 drivers/scsi/qla2xxx/qla_mbx.c if (IS_QLA2031(vha->hw)) vha 3408 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1186, vha 3411 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1187, vha 3419 drivers/scsi/qla2xxx/qla_mbx.c qla8044_write_serdes_word(scsi_qla_host_t *vha, uint32_t addr, uint32_t data) vha 3425 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_QLA8044(vha->hw)) vha 3428 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x11a0, vha 3441 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3444 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x11a1, vha 3447 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1188, vha 3455 drivers/scsi/qla2xxx/qla_mbx.c qla8044_read_serdes_word(scsi_qla_host_t *vha, uint32_t addr, uint32_t *data) vha 3461 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_QLA8044(vha->hw)) vha 3464 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1189, vha 3475 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3480 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x118a, vha 3483 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x118b, vha 3500 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_set_serdes_params(scsi_qla_host_t *vha, uint16_t sw_em_1g, vha 3507 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x109e, vha 3519 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3523 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x109f, vha 3527 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a0, vha 3535 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_stop_firmware(scsi_qla_host_t *vha) vha 3541 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_FWI2_CAPABLE(vha->hw)) vha 3544 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a1, vha 3553 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3556 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10a2, "Failed=%x.\n", rval); vha 3560 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a3, vha 3568 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_enable_eft_trace(scsi_qla_host_t *vha, dma_addr_t eft_dma, vha 3575 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a4, vha 3578 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_FWI2_CAPABLE(vha->hw)) vha 3581 drivers/scsi/qla2xxx/qla_mbx.c if (unlikely(pci_channel_offline(vha->hw->pdev))) vha 3596 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3598 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10a5, vha 3602 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a6, vha 3610 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_disable_eft_trace(scsi_qla_host_t *vha) vha 3616 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a7, vha 3619 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_FWI2_CAPABLE(vha->hw)) vha 3622 drivers/scsi/qla2xxx/qla_mbx.c if (unlikely(pci_channel_offline(vha->hw->pdev))) vha 3631 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3633 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10a8, vha 3637 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10a9, vha 3645 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_enable_fce_trace(scsi_qla_host_t *vha, dma_addr_t fce_dma, vha 3652 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10aa, vha 3655 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_QLA25XX(vha->hw) && !IS_QLA81XX(vha->hw) && vha 3656 drivers/scsi/qla2xxx/qla_mbx.c !IS_QLA83XX(vha->hw) && !IS_QLA27XX(vha->hw) && vha 3657 drivers/scsi/qla2xxx/qla_mbx.c !IS_QLA28XX(vha->hw)) vha 3660 drivers/scsi/qla2xxx/qla_mbx.c if (unlikely(pci_channel_offline(vha->hw->pdev))) vha 3679 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3681 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10ab, vha 3685 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ac, vha 3698 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_disable_fce_trace(scsi_qla_host_t *vha, uint64_t *wr, uint64_t *rd) vha 3704 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ad, vha 3707 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_FWI2_CAPABLE(vha->hw)) vha 3710 drivers/scsi/qla2xxx/qla_mbx.c if (unlikely(pci_channel_offline(vha->hw->pdev))) vha 3721 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3723 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10ae, vha 3727 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10af, vha 3746 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_idma_speed(scsi_qla_host_t *vha, uint16_t loop_id, vha 3753 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b0, vha 3756 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_IIDMA_CAPABLE(vha->hw)) vha 3762 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; vha 3767 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3777 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10b1, "Failed=%x.\n", rval); vha 3779 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b2, vha 3789 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_set_idma_speed(scsi_qla_host_t *vha, uint16_t loop_id, vha 3796 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b3, vha 3799 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_IIDMA_CAPABLE(vha->hw)) vha 3806 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; vha 3811 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 3821 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10b4, vha 3824 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b5, vha 3832 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_report_id_acquisition(scsi_qla_host_t *vha, vha 3835 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 3842 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b6, vha 3856 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_async, vha, 0x10b7, vha 3860 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_async, vha, 0x10b8, vha 3865 drivers/scsi/qla2xxx/qla_mbx.c qlt_update_host_map(vha, id); vha 3869 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_async, vha, 0x10b9, vha 3875 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_async, vha, 0x5075, vha 3879 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_async, vha, 0x5075, vha 3881 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name); vha 3886 drivers/scsi/qla2xxx/qla_mbx.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 3887 drivers/scsi/qla2xxx/qla_mbx.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 3892 drivers/scsi/qla2xxx/qla_mbx.c fcport = qla2x00_find_fcport_by_wwpn(vha, vha 3894 drivers/scsi/qla2xxx/qla_mbx.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 3902 drivers/scsi/qla2xxx/qla_mbx.c if (vha->flags.nvme_enabled) vha 3908 drivers/scsi/qla2xxx/qla_mbx.c &vha->dpc_flags); vha 3918 drivers/scsi/qla2xxx/qla_mbx.c if (wwn_to_u64(vha->port_name) > vha 3920 drivers/scsi/qla2xxx/qla_mbx.c vha->d_id.b24 = 0; vha 3921 drivers/scsi/qla2xxx/qla_mbx.c vha->d_id.b.al_pa = 1; vha 3926 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_async, vha, 0x5075, vha 3928 drivers/scsi/qla2xxx/qla_mbx.c vha->d_id.b24, id.b24); vha 3930 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_async, vha, 0x5075, vha 3936 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_post_newsess_work(vha, &id, vha 3945 drivers/scsi/qla2xxx/qla_mbx.c set_bit(N2N_LOGIN_NEEDED, &vha->dpc_flags); vha 3961 drivers/scsi/qla2xxx/qla_mbx.c vha->flags.bbcr_enable = (rptid_entry->u.f1.bbcr & 0xf) != 0; vha 3966 drivers/scsi/qla2xxx/qla_mbx.c if (qla_ini_mode_enabled(vha) && vha 3970 drivers/scsi/qla2xxx/qla_mbx.c memcpy(vha->port_name, vha 3975 drivers/scsi/qla2xxx/qla_mbx.c qlt_update_host_map(vha, id); vha 3978 drivers/scsi/qla2xxx/qla_mbx.c set_bit(REGISTER_FC4_NEEDED, &vha->dpc_flags); vha 3979 drivers/scsi/qla2xxx/qla_mbx.c set_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags); vha 3983 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10ba, vha 4012 drivers/scsi/qla2xxx/qla_mbx.c set_bit(VP_DPC_NEEDED, &vha->dpc_flags); vha 4013 drivers/scsi/qla2xxx/qla_mbx.c qla2xxx_wake_dpc(vha); vha 4015 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_async, vha, 0x505f, vha 4020 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_async, vha, 0x5075, vha 4027 drivers/scsi/qla2xxx/qla_mbx.c vha->d_id.b.domain = rptid_entry->port_id[2]; vha 4028 drivers/scsi/qla2xxx/qla_mbx.c vha->d_id.b.area = rptid_entry->port_id[1]; vha 4029 drivers/scsi/qla2xxx/qla_mbx.c vha->d_id.b.al_pa = rptid_entry->port_id[0]; vha 4033 drivers/scsi/qla2xxx/qla_mbx.c qlt_update_vp_map(vha, SET_AL_PA); vha 4036 drivers/scsi/qla2xxx/qla_mbx.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 4041 drivers/scsi/qla2xxx/qla_mbx.c fcport = qla2x00_find_fcport_by_wwpn(vha, vha 4045 drivers/scsi/qla2xxx/qla_mbx.c fcport->login_retry = vha->hw->login_retry_count; vha 4074 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_modify_vp_config(scsi_qla_host_t *vha) vha 4079 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 4084 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10bb, vha 4089 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x10bc, vha 4098 drivers/scsi/qla2xxx/qla_mbx.c vpmod->vp_index1 = vha->vp_idx; vha 4101 drivers/scsi/qla2xxx/qla_mbx.c qlt_modify_vp_config(vha, vpmod); vha 4103 drivers/scsi/qla2xxx/qla_mbx.c memcpy(vpmod->node_name_idx1, vha->node_name, WWN_SIZE); vha 4104 drivers/scsi/qla2xxx/qla_mbx.c memcpy(vpmod->port_name_idx1, vha->port_name, WWN_SIZE); vha 4109 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10bd, vha 4112 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10be, vha 4117 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10bf, vha 4123 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10c0, vha 4125 drivers/scsi/qla2xxx/qla_mbx.c fc_vport_set_state(vha->fc_vport, FC_VPORT_INITIALIZING); vha 4154 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_send_change_request(scsi_qla_host_t *vha, uint16_t format, vha 4161 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10c7, vha 4171 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4184 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_dump_ram(scsi_qla_host_t *vha, dma_addr_t req_dma, uint32_t addr, vha 4191 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1009, vha 4194 drivers/scsi/qla2xxx/qla_mbx.c if (MSW(addr) || IS_FWI2_CAPABLE(vha->hw)) { vha 4208 drivers/scsi/qla2xxx/qla_mbx.c if (IS_FWI2_CAPABLE(vha->hw)) { vha 4220 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4223 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1008, vha 4226 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1007, vha 4242 drivers/scsi/qla2xxx/qla_mbx.c qla84xx_verify_chip(struct scsi_qla_host *vha, uint16_t *status) vha 4249 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 4251 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10c8, vha 4273 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_buffer, vha, 0x111c, vha 4275 drivers/scsi/qla2xxx/qla_mbx.c ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x111e, vha 4278 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_issue_iocb_timeout(vha, mn, mn_dma, 0, 120); vha 4280 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10cb, vha 4285 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1110, vha 4287 drivers/scsi/qla2xxx/qla_mbx.c ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1118, vha 4293 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ce, vha 4299 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10cf, vha 4307 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d0, vha 4324 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10d1, vha 4327 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d2, vha 4335 drivers/scsi/qla2xxx/qla_mbx.c qla25xx_init_req_que(struct scsi_qla_host *vha, struct req_que *req) vha 4341 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 4346 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d3, vha 4395 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4397 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10d4, vha 4400 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d5, vha 4408 drivers/scsi/qla2xxx/qla_mbx.c qla25xx_init_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp) vha 4414 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 4419 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d6, vha 4467 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4469 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10d7, vha 4472 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d8, vha 4480 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_idc_ack(scsi_qla_host_t *vha, uint16_t *mb) vha 4486 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10d9, vha 4495 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4498 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10da, vha 4501 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10db, vha 4509 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_fac_get_sector_size(scsi_qla_host_t *vha, uint32_t *sector_size) vha 4515 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10dc, vha 4518 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_QLA81XX(vha->hw) && !IS_QLA83XX(vha->hw) && vha 4519 drivers/scsi/qla2xxx/qla_mbx.c !IS_QLA27XX(vha->hw) && !IS_QLA28XX(vha->hw)) vha 4528 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4531 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10dd, vha 4535 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10de, vha 4544 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_fac_do_write_enable(scsi_qla_host_t *vha, int enable) vha 4550 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_QLA81XX(vha->hw) && !IS_QLA83XX(vha->hw) && vha 4551 drivers/scsi/qla2xxx/qla_mbx.c !IS_QLA27XX(vha->hw) && !IS_QLA28XX(vha->hw)) vha 4554 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10df, vha 4564 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4567 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10e0, vha 4571 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e1, vha 4579 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_fac_erase_sector(scsi_qla_host_t *vha, uint32_t start, uint32_t finish) vha 4585 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_QLA81XX(vha->hw) && !IS_QLA83XX(vha->hw) && vha 4586 drivers/scsi/qla2xxx/qla_mbx.c !IS_QLA27XX(vha->hw) && !IS_QLA28XX(vha->hw)) vha 4589 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e2, vha 4602 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4605 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10e3, vha 4609 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e4, vha 4617 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_fac_semaphore_access(scsi_qla_host_t *vha, int lock) vha 4622 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 4628 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e2, vha 4638 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4641 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10e3, vha 4645 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e4, vha 4653 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_restart_mpi_firmware(scsi_qla_host_t *vha) vha 4659 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e5, vha 4667 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4670 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10e6, vha 4674 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e7, vha 4682 drivers/scsi/qla2xxx/qla_mbx.c qla82xx_set_driver_version(scsi_qla_host_t *vha, char *version) vha 4690 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 4695 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x117b, vha 4715 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4718 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x117c, vha 4721 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x117d, vha 4729 drivers/scsi/qla2xxx/qla_mbx.c qla25xx_set_driver_version(scsi_qla_host_t *vha, char *version) vha 4738 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 4744 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x117e, vha 4749 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x117f, vha 4772 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4775 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1180, vha 4778 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1181, vha 4788 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_get_port_login_templ(scsi_qla_host_t *vha, dma_addr_t buf_dma, vha 4796 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_FWI2_CAPABLE(vha->hw)) vha 4799 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1159, vha 4813 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4816 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x115a, vha 4819 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x115b, vha 4830 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_read_asic_temperature(scsi_qla_host_t *vha, uint16_t *temp) vha 4836 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_FWI2_CAPABLE(vha->hw)) vha 4839 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1159, vha 4848 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4852 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x115a, vha 4855 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x115b, vha 4863 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_read_sfp(scsi_qla_host_t *vha, dma_addr_t sfp_dma, uint8_t *sfp, vha 4869 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 4871 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e8, vha 4893 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4899 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10e9, vha 4906 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ea, vha 4914 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_write_sfp(scsi_qla_host_t *vha, dma_addr_t sfp_dma, uint8_t *sfp, vha 4920 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 4922 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10eb, vha 4947 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4950 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10ec, vha 4953 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ed, vha 4961 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_xgmac_stats(scsi_qla_host_t *vha, dma_addr_t stats_dma, vha 4968 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ee, vha 4971 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_CNA_CAPABLE(vha->hw)) vha 4984 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 4987 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10ef, vha 4991 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f0, vha 5002 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_dcbx_params(scsi_qla_host_t *vha, dma_addr_t tlv_dma, vha 5009 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f1, vha 5012 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_CNA_CAPABLE(vha->hw)) vha 5026 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5029 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10f2, vha 5033 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f3, vha 5041 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_read_ram_word(scsi_qla_host_t *vha, uint32_t risc_addr, uint32_t *data) vha 5047 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f4, vha 5050 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_FWI2_CAPABLE(vha->hw)) vha 5060 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5062 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10f5, vha 5065 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f6, vha 5074 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_loopback_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq, vha 5081 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f7, vha 5110 drivers/scsi/qla2xxx/qla_mbx.c if (IS_CNA_CAPABLE(vha->hw)) vha 5118 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5121 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10f8, vha 5126 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10f9, vha 5136 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_echo_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq, vha 5142 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5144 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10fa, vha 5152 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = vha->fcoe_fcf_idx; vha 5182 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5185 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10fb, vha 5189 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10fc, vha 5199 drivers/scsi/qla2xxx/qla_mbx.c qla84xx_reset_chip(scsi_qla_host_t *vha, uint16_t enable_diagnostic) vha 5205 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10fd, vha 5214 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5217 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10fe, "Failed=%x.\n", rval); vha 5219 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ff, vha 5226 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_write_ram_word(scsi_qla_host_t *vha, uint32_t risc_addr, uint32_t data) vha 5232 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1100, vha 5235 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_FWI2_CAPABLE(vha->hw)) vha 5247 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5249 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1101, vha 5253 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1102, vha 5261 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_write_mpi_register(scsi_qla_host_t *vha, uint16_t *mb) vha 5266 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5271 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1103, vha 5312 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1104, vha 5315 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1105, vha 5324 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_set_data_rate(scsi_qla_host_t *vha, uint16_t mode) vha 5329 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5332 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1106, vha 5349 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1199, vha 5366 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5368 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1107, vha 5372 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1179, vha 5375 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1108, vha 5383 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_data_rate(scsi_qla_host_t *vha) vha 5388 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5390 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1106, vha 5404 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5406 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1107, vha 5409 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1108, vha 5419 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_get_port_config(scsi_qla_host_t *vha, uint16_t *mb) vha 5424 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5426 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1109, vha 5438 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5441 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x110a, vha 5447 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x110b, vha 5454 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_set_port_config(scsi_qla_host_t *vha, uint16_t *mb) vha 5460 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x110c, vha 5470 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5473 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x110d, vha 5476 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x110e, vha 5484 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_set_fcp_prio(scsi_qla_host_t *vha, uint16_t loop_id, uint16_t priority, vha 5490 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5492 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x110f, vha 5505 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; vha 5510 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5519 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10cd, "Failed=%x.\n", rval); vha 5521 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10cc, vha 5529 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_thermal_temp(scsi_qla_host_t *vha, uint16_t *temp) vha 5532 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5536 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1150, vha 5544 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_read_sfp(vha, 0, &byte, vha 5551 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_read_sfp(vha, 0, &byte, vha 5556 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10c9, vha 5562 drivers/scsi/qla2xxx/qla_mbx.c *temp = qla82xx_read_temperature(vha); vha 5566 drivers/scsi/qla2xxx/qla_mbx.c *temp = qla8044_read_temperature(vha); vha 5571 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_read_asic_temperature(vha, temp); vha 5576 drivers/scsi/qla2xxx/qla_mbx.c qla82xx_mbx_intr_enable(scsi_qla_host_t *vha) vha 5579 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5583 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1017, vha 5598 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5600 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1016, vha 5603 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x100e, vha 5611 drivers/scsi/qla2xxx/qla_mbx.c qla82xx_mbx_intr_disable(scsi_qla_host_t *vha) vha 5614 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5618 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x100d, vha 5633 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5635 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x100c, vha 5638 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x100b, vha 5646 drivers/scsi/qla2xxx/qla_mbx.c qla82xx_md_get_template_size(scsi_qla_host_t *vha) vha 5648 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5653 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x111f, vha 5668 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5672 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1120, vha 5677 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1121, vha 5681 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1122, vha 5690 drivers/scsi/qla2xxx/qla_mbx.c qla82xx_md_get_template(scsi_qla_host_t *vha) vha 5692 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5697 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1123, vha 5703 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1124, vha 5725 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5728 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1125, vha 5733 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1126, vha 5739 drivers/scsi/qla2xxx/qla_mbx.c qla8044_md_get_template(scsi_qla_host_t *vha) vha 5741 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5747 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0xb11f, vha 5753 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0xb11b, vha 5777 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5780 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0xb11c, vha 5786 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0xb11d, vha 5794 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_set_led_config(scsi_qla_host_t *vha, uint16_t *led_cfg) vha 5797 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5804 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1133, vha 5825 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5827 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1134, vha 5830 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1135, vha 5838 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_get_led_config(scsi_qla_host_t *vha, uint16_t *led_cfg) vha 5841 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5848 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1136, vha 5861 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5863 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1137, vha 5874 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1138, vha 5882 drivers/scsi/qla2xxx/qla_mbx.c qla82xx_mbx_beacon_ctl(scsi_qla_host_t *vha, int enable) vha 5885 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5892 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1127, vha 5907 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5909 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1128, vha 5912 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1129, vha 5920 drivers/scsi/qla2xxx/qla_mbx.c qla83xx_wr_reg(scsi_qla_host_t *vha, uint32_t reg, uint32_t data) vha 5923 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5930 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1130, vha 5943 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5946 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1131, vha 5949 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1132, vha 5957 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_port_logout(scsi_qla_host_t *vha, struct fc_port *fcport) vha 5960 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 5965 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x113b, vha 5971 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x113c, vha 5982 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 5984 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x113d, vha 5987 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x113e, vha 5994 drivers/scsi/qla2xxx/qla_mbx.c qla83xx_rd_reg(scsi_qla_host_t *vha, uint32_t reg, uint32_t *data) vha 5999 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 6005 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x114b, "Entered %s.\n", __func__); vha 6015 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 6018 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x114c, vha 6030 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1141, vha 6038 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1142, "Done %s.\n", __func__); vha 6045 drivers/scsi/qla2xxx/qla_mbx.c qla83xx_restart_nic_firmware(scsi_qla_host_t *vha) vha 6050 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 6055 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1143, "Entered %s.\n", __func__); vha 6062 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 6065 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1144, vha 6068 drivers/scsi/qla2xxx/qla_mbx.c ha->isp_ops->fw_dump(vha, 0); vha 6070 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1145, "Done %s.\n", __func__); vha 6077 drivers/scsi/qla2xxx/qla_mbx.c qla83xx_access_control(scsi_qla_host_t *vha, uint16_t options, vha 6084 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 6089 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1146, "Entered %s.\n", __func__); vha 6106 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 6109 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1147, vha 6113 drivers/scsi/qla2xxx/qla_mbx.c ha->isp_ops->fw_dump(vha, 0); vha 6118 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1148, vha 6121 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1149, vha 6124 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x114a, "Done %s.\n", __func__); vha 6131 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_dump_mctp_data(scsi_qla_host_t *vha, dma_addr_t req_dma, uint32_t addr, vha 6138 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_MCTP_CAPABLE(vha->hw)) vha 6141 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x114f, vha 6163 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 6166 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x114e, vha 6169 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x114d, vha 6177 drivers/scsi/qla2xxx/qla_mbx.c qla26xx_dport_diagnostics(scsi_qla_host_t *vha, vha 6185 drivers/scsi/qla2xxx/qla_mbx.c if (!IS_QLA83XX(vha->hw) && !IS_QLA27XX(vha->hw) && vha 6186 drivers/scsi/qla2xxx/qla_mbx.c !IS_QLA28XX(vha->hw)) vha 6189 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x119f, vha 6192 drivers/scsi/qla2xxx/qla_mbx.c dd_dma = dma_map_single(&vha->hw->pdev->dev, vha 6194 drivers/scsi/qla2xxx/qla_mbx.c if (dma_mapping_error(&vha->hw->pdev->dev, dd_dma)) { vha 6195 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x1194, "Failed to map dma buffer.\n"); vha 6213 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 6216 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1195, "Failed=%x.\n", rval); vha 6218 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1196, vha 6222 drivers/scsi/qla2xxx/qla_mbx.c dma_unmap_single(&vha->hw->pdev->dev, dd_dma, vha 6241 drivers/scsi/qla2xxx/qla_mbx.c int qla24xx_send_mb_cmd(struct scsi_qla_host *vha, mbx_cmd_t *mcp) vha 6247 drivers/scsi/qla2xxx/qla_mbx.c if (!vha->hw->flags.fw_started) vha 6250 drivers/scsi/qla2xxx/qla_mbx.c sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL); vha 6261 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 6269 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1018, vha 6275 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x113f, "MB:%s hndl %x submitted\n", vha 6284 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1140, "%s: %s Timeout. %x.\n", vha 6288 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119d, "%s: %s done.\n", vha 6292 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119e, "%s: %s Failed. %x.\n", vha 6307 drivers/scsi/qla2xxx/qla_mbx.c int qla24xx_gpdb_wait(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt) vha 6312 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 6315 drivers/scsi/qla2xxx/qla_mbx.c if (!vha->hw->flags.fw_started) vha 6320 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0xd047, vha 6332 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[9] = cpu_to_le16(vha->vp_idx); vha 6335 drivers/scsi/qla2xxx/qla_mbx.c rval = qla24xx_send_mb_cmd(vha, &mc); vha 6337 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1193, vha 6342 drivers/scsi/qla2xxx/qla_mbx.c rval = __qla24xx_parse_gpdb(vha, fcport, pd); vha 6344 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1197, "%s: %8phC done\n", vha 6354 drivers/scsi/qla2xxx/qla_mbx.c int __qla24xx_parse_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport, vha 6371 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119a, vha 6428 drivers/scsi/qla2xxx/qla_mbx.c int qla24xx_gidlist_wait(struct scsi_qla_host *vha, vha 6434 drivers/scsi/qla2xxx/qla_mbx.c if (!vha->hw->flags.fw_started) vha 6444 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[9] = cpu_to_le16(vha->vp_idx); vha 6446 drivers/scsi/qla2xxx/qla_mbx.c rval = qla24xx_send_mb_cmd(vha, &mc); vha 6448 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119b, vha 6452 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x119c, vha 6459 drivers/scsi/qla2xxx/qla_mbx.c int qla27xx_set_zio_threshold(scsi_qla_host_t *vha, uint16_t value) vha 6465 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1200, vha 6477 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 6479 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1201, "%s %x\n", vha 6485 drivers/scsi/qla2xxx/qla_mbx.c int qla27xx_get_zio_threshold(scsi_qla_host_t *vha, uint16_t *value) vha 6491 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1203, vha 6502 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 6506 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1205, "%s %x\n", vha 6513 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_read_sfp_dev(struct scsi_qla_host *vha, char *buf, int count) vha 6515 drivers/scsi/qla2xxx/qla_mbx.c struct qla_hw_data *ha = vha->hw; vha 6534 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_read_sfp(vha, phys_addr, sfp_data, vha 6537 drivers/scsi/qla2xxx/qla_mbx.c ql_log(ql_log_warn, vha, 0x706d, vha 6564 drivers/scsi/qla2xxx/qla_mbx.c int qla24xx_res_count_wait(struct scsi_qla_host *vha, vha 6570 drivers/scsi/qla2xxx/qla_mbx.c if (!vha->hw->flags.fw_started) vha 6576 drivers/scsi/qla2xxx/qla_mbx.c rval = qla24xx_send_mb_cmd(vha, &mc); vha 6578 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0xffff, vha 6586 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0xffff, vha 6593 drivers/scsi/qla2xxx/qla_mbx.c int qla28xx_secure_flash_update(scsi_qla_host_t *vha, uint16_t opts, vha 6616 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 6619 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0xffff, "%s(%ld): failed rval 0x%x, %x %x %x", vha 6620 drivers/scsi/qla2xxx/qla_mbx.c __func__, vha->host_no, rval, mcp->mb[0], mcp->mb[1], vha 6627 drivers/scsi/qla2xxx/qla_mbx.c int qla2xxx_write_remote_register(scsi_qla_host_t *vha, uint32_t addr, vha 6634 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e8, vha 6646 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 6649 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10e9, vha 6652 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ea, vha 6659 drivers/scsi/qla2xxx/qla_mbx.c int qla2xxx_read_remote_register(scsi_qla_host_t *vha, uint32_t addr, vha 6666 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10e8, vha 6676 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_mailbox_command(vha, mcp); vha 6681 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x10e9, vha 6684 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10ea, vha 21 drivers/scsi/qla2xxx/qla_mid.c qla2x00_vp_stop_timer(scsi_qla_host_t *vha) vha 23 drivers/scsi/qla2xxx/qla_mid.c if (vha->vp_idx && vha->timer_active) { vha 24 drivers/scsi/qla2xxx/qla_mid.c del_timer_sync(&vha->timer); vha 25 drivers/scsi/qla2xxx/qla_mid.c vha->timer_active = 0; vha 30 drivers/scsi/qla2xxx/qla_mid.c qla24xx_allocate_vp_id(scsi_qla_host_t *vha) vha 33 drivers/scsi/qla2xxx/qla_mid.c struct qla_hw_data *ha = vha->hw; vha 40 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xa000, vha 49 drivers/scsi/qla2xxx/qla_mid.c vha->vp_idx = vp_id; vha 52 drivers/scsi/qla2xxx/qla_mid.c list_add_tail(&vha->list, &ha->vp_list); vha 56 drivers/scsi/qla2xxx/qla_mid.c qlt_update_vp_map(vha, SET_VP_IDX); vha 64 drivers/scsi/qla2xxx/qla_mid.c qla24xx_deallocate_vp_id(scsi_qla_host_t *vha) vha 67 drivers/scsi/qla2xxx/qla_mid.c struct qla_hw_data *ha = vha->hw; vha 80 drivers/scsi/qla2xxx/qla_mid.c if (wait_event_timeout(vha->vref_waitq, vha 81 drivers/scsi/qla2xxx/qla_mid.c !atomic_read(&vha->vref_count), HZ) > 0) vha 86 drivers/scsi/qla2xxx/qla_mid.c if (atomic_read(&vha->vref_count)) { vha 87 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xfffa, vha 88 drivers/scsi/qla2xxx/qla_mid.c "vha->vref_count=%u timeout\n", vha->vref_count.counter); vha 89 drivers/scsi/qla2xxx/qla_mid.c vha->vref_count = (atomic_t)ATOMIC_INIT(0); vha 91 drivers/scsi/qla2xxx/qla_mid.c list_del(&vha->list); vha 92 drivers/scsi/qla2xxx/qla_mid.c qlt_update_vp_map(vha, RESET_VP_IDX); vha 95 drivers/scsi/qla2xxx/qla_mid.c vp_id = vha->vp_idx; vha 105 drivers/scsi/qla2xxx/qla_mid.c scsi_qla_host_t *vha; vha 111 drivers/scsi/qla2xxx/qla_mid.c list_for_each_entry_safe(vha, tvha, &ha->vp_list, list) { vha 112 drivers/scsi/qla2xxx/qla_mid.c if (!memcmp(port_name, vha->port_name, WWN_SIZE)) { vha 114 drivers/scsi/qla2xxx/qla_mid.c return vha; vha 135 drivers/scsi/qla2xxx/qla_mid.c qla2x00_mark_vp_devices_dead(scsi_qla_host_t *vha) vha 145 drivers/scsi/qla2xxx/qla_mid.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 146 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xa001, vha 148 drivers/scsi/qla2xxx/qla_mid.c fcport->loop_id, fcport->vha->vp_idx); vha 150 drivers/scsi/qla2xxx/qla_mid.c qla2x00_mark_device_lost(vha, fcport, 0, 0); vha 156 drivers/scsi/qla2xxx/qla_mid.c qla24xx_disable_vp(scsi_qla_host_t *vha) vha 162 drivers/scsi/qla2xxx/qla_mid.c if (vha->hw->flags.fw_started) vha 163 drivers/scsi/qla2xxx/qla_mid.c ret = qla24xx_control_vp(vha, VCE_COMMAND_DISABLE_VPS_LOGO_ALL); vha 165 drivers/scsi/qla2xxx/qla_mid.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 166 drivers/scsi/qla2xxx/qla_mid.c atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME); vha 167 drivers/scsi/qla2xxx/qla_mid.c list_for_each_entry(fcport, &vha->vp_fcports, list) vha 170 drivers/scsi/qla2xxx/qla_mid.c qla2x00_mark_all_devices_lost(vha, 0); vha 173 drivers/scsi/qla2xxx/qla_mid.c spin_lock_irqsave(&vha->hw->hardware_lock, flags); vha 174 drivers/scsi/qla2xxx/qla_mid.c qlt_update_vp_map(vha, RESET_AL_PA); vha 175 drivers/scsi/qla2xxx/qla_mid.c spin_unlock_irqrestore(&vha->hw->hardware_lock, flags); vha 177 drivers/scsi/qla2xxx/qla_mid.c qla2x00_mark_vp_devices_dead(vha); vha 178 drivers/scsi/qla2xxx/qla_mid.c atomic_set(&vha->vp_state, VP_FAILED); vha 179 drivers/scsi/qla2xxx/qla_mid.c vha->flags.management_server_logged_in = 0; vha 181 drivers/scsi/qla2xxx/qla_mid.c fc_vport_set_state(vha->fc_vport, FC_VPORT_DISABLED); vha 183 drivers/scsi/qla2xxx/qla_mid.c fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); vha 190 drivers/scsi/qla2xxx/qla_mid.c qla24xx_enable_vp(scsi_qla_host_t *vha) vha 193 drivers/scsi/qla2xxx/qla_mid.c struct qla_hw_data *ha = vha->hw; vha 200 drivers/scsi/qla2xxx/qla_mid.c vha->vp_err_state = VP_ERR_PORTDWN; vha 201 drivers/scsi/qla2xxx/qla_mid.c fc_vport_set_state(vha->fc_vport, FC_VPORT_LINKDOWN); vha 202 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_taskm, vha, 0x800b, vha 212 drivers/scsi/qla2xxx/qla_mid.c ret = qla24xx_modify_vp_config(vha); vha 216 drivers/scsi/qla2xxx/qla_mid.c fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); vha 220 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_taskm, vha, 0x801a, vha 221 drivers/scsi/qla2xxx/qla_mid.c "Virtual port with id: %d - Enabled.\n", vha->vp_idx); vha 225 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_taskm, vha, 0x801b, vha 226 drivers/scsi/qla2xxx/qla_mid.c "Virtual port with id: %d - Disabled.\n", vha->vp_idx); vha 231 drivers/scsi/qla2xxx/qla_mid.c qla24xx_configure_vp(scsi_qla_host_t *vha) vha 236 drivers/scsi/qla2xxx/qla_mid.c fc_vport = vha->fc_vport; vha 238 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xa002, vha 240 drivers/scsi/qla2xxx/qla_mid.c ret = qla2x00_send_change_request(vha, 0x3, vha->vp_idx); vha 242 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xa003, "Failed to enable " vha 247 drivers/scsi/qla2xxx/qla_mid.c clear_bit(VP_SCR_NEEDED, &vha->vp_flags); vha 250 drivers/scsi/qla2xxx/qla_mid.c vha->flags.online = 1; vha 251 drivers/scsi/qla2xxx/qla_mid.c if (qla24xx_configure_vhba(vha)) vha 254 drivers/scsi/qla2xxx/qla_mid.c atomic_set(&vha->vp_state, VP_ACTIVE); vha 261 drivers/scsi/qla2xxx/qla_mid.c scsi_qla_host_t *vha; vha 267 drivers/scsi/qla2xxx/qla_mid.c list_for_each_entry(vha, &ha->vp_list, list) { vha 268 drivers/scsi/qla2xxx/qla_mid.c if (vha->vp_idx) { vha 269 drivers/scsi/qla2xxx/qla_mid.c if (test_bit(VPORT_DELETE, &vha->dpc_flags)) vha 272 drivers/scsi/qla2xxx/qla_mid.c atomic_inc(&vha->vref_count); vha 282 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_async, vha, 0x5024, vha 284 drivers/scsi/qla2xxx/qla_mid.c i, *mb, vha); vha 285 drivers/scsi/qla2xxx/qla_mid.c qla2x00_async_event(vha, rsp, mb); vha 289 drivers/scsi/qla2xxx/qla_mid.c if ((mb[3] & 0xff) == vha->vp_idx) { vha 290 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_async, vha, 0x5024, vha 292 drivers/scsi/qla2xxx/qla_mid.c i, *mb, vha); vha 293 drivers/scsi/qla2xxx/qla_mid.c qla2x00_async_event(vha, rsp, mb); vha 299 drivers/scsi/qla2xxx/qla_mid.c atomic_dec(&vha->vref_count); vha 300 drivers/scsi/qla2xxx/qla_mid.c wake_up(&vha->vref_waitq); vha 308 drivers/scsi/qla2xxx/qla_mid.c qla2x00_vp_abort_isp(scsi_qla_host_t *vha) vha 318 drivers/scsi/qla2xxx/qla_mid.c if (!test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)) { vha 319 drivers/scsi/qla2xxx/qla_mid.c qla24xx_control_vp(vha, VCE_COMMAND_DISABLE_VPS_LOGO_ALL); vha 320 drivers/scsi/qla2xxx/qla_mid.c list_for_each_entry(fcport, &vha->vp_fcports, list) vha 328 drivers/scsi/qla2xxx/qla_mid.c if (atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 329 drivers/scsi/qla2xxx/qla_mid.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 330 drivers/scsi/qla2xxx/qla_mid.c qla2x00_mark_all_devices_lost(vha, 0); vha 332 drivers/scsi/qla2xxx/qla_mid.c if (!atomic_read(&vha->loop_down_timer)) vha 333 drivers/scsi/qla2xxx/qla_mid.c atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME); vha 336 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_taskm, vha, 0x801d, vha 337 drivers/scsi/qla2xxx/qla_mid.c "Scheduling enable of Vport %d.\n", vha->vp_idx); vha 339 drivers/scsi/qla2xxx/qla_mid.c return qla24xx_enable_vp(vha); vha 343 drivers/scsi/qla2xxx/qla_mid.c qla2x00_do_dpc_vp(scsi_qla_host_t *vha) vha 345 drivers/scsi/qla2xxx/qla_mid.c struct qla_hw_data *ha = vha->hw; vha 348 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_dpc + ql_dbg_verbose, vha, 0x4012, vha 349 drivers/scsi/qla2xxx/qla_mid.c "Entering %s vp_flags: 0x%lx.\n", __func__, vha->vp_flags); vha 353 drivers/scsi/qla2xxx/qla_mid.c if (test_and_clear_bit(VP_IDX_ACQUIRED, &vha->vp_flags)) { vha 355 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_dpc, vha, 0x4014, vha 357 drivers/scsi/qla2xxx/qla_mid.c qla24xx_configure_vp(vha); vha 358 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_dpc, vha, 0x4015, vha 364 drivers/scsi/qla2xxx/qla_mid.c if (test_bit(FCPORT_UPDATE_NEEDED, &vha->dpc_flags)) { vha 365 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_dpc, vha, 0x4016, vha 367 drivers/scsi/qla2xxx/qla_mid.c qla2x00_update_fcports(vha); vha 368 drivers/scsi/qla2xxx/qla_mid.c clear_bit(FCPORT_UPDATE_NEEDED, &vha->dpc_flags); vha 369 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_dpc, vha, 0x4017, vha 373 drivers/scsi/qla2xxx/qla_mid.c if (test_bit(RELOGIN_NEEDED, &vha->dpc_flags) && vha 374 drivers/scsi/qla2xxx/qla_mid.c !test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags) && vha 375 drivers/scsi/qla2xxx/qla_mid.c atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 377 drivers/scsi/qla2xxx/qla_mid.c if (!vha->relogin_jif || vha 378 drivers/scsi/qla2xxx/qla_mid.c time_after_eq(jiffies, vha->relogin_jif)) { vha 379 drivers/scsi/qla2xxx/qla_mid.c vha->relogin_jif = jiffies + HZ; vha 380 drivers/scsi/qla2xxx/qla_mid.c clear_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 382 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_dpc, vha, 0x4018, vha 384 drivers/scsi/qla2xxx/qla_mid.c qla24xx_post_relogin_work(vha); vha 388 drivers/scsi/qla2xxx/qla_mid.c if (test_and_clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags) && vha 389 drivers/scsi/qla2xxx/qla_mid.c (!(test_and_set_bit(RESET_ACTIVE, &vha->dpc_flags)))) { vha 390 drivers/scsi/qla2xxx/qla_mid.c clear_bit(RESET_ACTIVE, &vha->dpc_flags); vha 393 drivers/scsi/qla2xxx/qla_mid.c if (test_and_clear_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) { vha 394 drivers/scsi/qla2xxx/qla_mid.c if (!(test_and_set_bit(LOOP_RESYNC_ACTIVE, &vha->dpc_flags))) { vha 395 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_dpc, vha, 0x401a, vha 397 drivers/scsi/qla2xxx/qla_mid.c qla2x00_loop_resync(vha); vha 398 drivers/scsi/qla2xxx/qla_mid.c clear_bit(LOOP_RESYNC_ACTIVE, &vha->dpc_flags); vha 399 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_dpc, vha, 0x401b, vha 404 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_dpc + ql_dbg_verbose, vha, 0x401c, vha 410 drivers/scsi/qla2xxx/qla_mid.c qla2x00_do_dpc_all_vps(scsi_qla_host_t *vha) vha 412 drivers/scsi/qla2xxx/qla_mid.c struct qla_hw_data *ha = vha->hw; vha 416 drivers/scsi/qla2xxx/qla_mid.c if (vha->vp_idx) vha 421 drivers/scsi/qla2xxx/qla_mid.c clear_bit(VP_DPC_NEEDED, &vha->dpc_flags); vha 446 drivers/scsi/qla2xxx/qla_mid.c scsi_qla_host_t *vha; vha 464 drivers/scsi/qla2xxx/qla_mid.c vha = qla24xx_find_vhost_by_name(ha, port_name); vha 465 drivers/scsi/qla2xxx/qla_mid.c if (vha) vha 470 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xa004, vha 484 drivers/scsi/qla2xxx/qla_mid.c scsi_qla_host_t *vha; vha 488 drivers/scsi/qla2xxx/qla_mid.c vha = qla2x00_create_host(sht, ha); vha 489 drivers/scsi/qla2xxx/qla_mid.c if (!vha) { vha 490 drivers/scsi/qla2xxx/qla_mid.c ql_log(ql_log_warn, vha, 0xa005, vha 495 drivers/scsi/qla2xxx/qla_mid.c host = vha->host; vha 496 drivers/scsi/qla2xxx/qla_mid.c fc_vport->dd_data = vha; vha 498 drivers/scsi/qla2xxx/qla_mid.c u64_to_wwn(fc_vport->node_name, vha->node_name); vha 499 drivers/scsi/qla2xxx/qla_mid.c u64_to_wwn(fc_vport->port_name, vha->port_name); vha 501 drivers/scsi/qla2xxx/qla_mid.c vha->fc_vport = fc_vport; vha 502 drivers/scsi/qla2xxx/qla_mid.c vha->device_flags = 0; vha 503 drivers/scsi/qla2xxx/qla_mid.c vha->vp_idx = qla24xx_allocate_vp_id(vha); vha 504 drivers/scsi/qla2xxx/qla_mid.c if (vha->vp_idx > ha->max_npiv_vports) { vha 505 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xa006, vha 509 drivers/scsi/qla2xxx/qla_mid.c vha->mgmt_svr_loop_id = qla2x00_reserve_mgmt_server_loop_id(vha); vha 511 drivers/scsi/qla2xxx/qla_mid.c vha->dpc_flags = 0L; vha 517 drivers/scsi/qla2xxx/qla_mid.c set_bit(VP_SCR_NEEDED, &vha->vp_flags); vha 518 drivers/scsi/qla2xxx/qla_mid.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 519 drivers/scsi/qla2xxx/qla_mid.c atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME); vha 521 drivers/scsi/qla2xxx/qla_mid.c qla2x00_start_timer(vha, WATCH_INTERVAL); vha 523 drivers/scsi/qla2xxx/qla_mid.c vha->req = base_vha->req; vha 524 drivers/scsi/qla2xxx/qla_mid.c vha->flags.nvme_enabled = base_vha->flags.nvme_enabled; vha 537 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xa007, vha 539 drivers/scsi/qla2xxx/qla_mid.c vha->host_no, vha); vha 541 drivers/scsi/qla2xxx/qla_mid.c vha->flags.init_done = 1; vha 544 drivers/scsi/qla2xxx/qla_mid.c set_bit(vha->vp_idx, ha->vp_idx_map); vha 548 drivers/scsi/qla2xxx/qla_mid.c return vha; vha 555 drivers/scsi/qla2xxx/qla_mid.c qla25xx_free_req_que(struct scsi_qla_host *vha, struct req_que *req) vha 557 drivers/scsi/qla2xxx/qla_mid.c struct qla_hw_data *ha = vha->hw; vha 576 drivers/scsi/qla2xxx/qla_mid.c qla25xx_free_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp) vha 578 drivers/scsi/qla2xxx/qla_mid.c struct qla_hw_data *ha = vha->hw; vha 602 drivers/scsi/qla2xxx/qla_mid.c qla25xx_delete_req_que(struct scsi_qla_host *vha, struct req_que *req) vha 606 drivers/scsi/qla2xxx/qla_mid.c if (req && vha->flags.qpairs_req_created) { vha 608 drivers/scsi/qla2xxx/qla_mid.c ret = qla25xx_init_req_que(vha, req); vha 612 drivers/scsi/qla2xxx/qla_mid.c qla25xx_free_req_que(vha, req); vha 619 drivers/scsi/qla2xxx/qla_mid.c qla25xx_delete_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp) vha 623 drivers/scsi/qla2xxx/qla_mid.c if (rsp && vha->flags.qpairs_rsp_created) { vha 625 drivers/scsi/qla2xxx/qla_mid.c ret = qla25xx_init_rsp_que(vha, rsp); vha 629 drivers/scsi/qla2xxx/qla_mid.c qla25xx_free_rsp_que(vha, rsp); vha 637 drivers/scsi/qla2xxx/qla_mid.c qla25xx_delete_queues(struct scsi_qla_host *vha) vha 642 drivers/scsi/qla2xxx/qla_mid.c struct qla_hw_data *ha = vha->hw; vha 646 drivers/scsi/qla2xxx/qla_mid.c list_for_each_entry_safe(qpair, tqpair, &vha->qp_list, vha 648 drivers/scsi/qla2xxx/qla_mid.c qla2xxx_delete_qpair(vha, qpair); vha 654 drivers/scsi/qla2xxx/qla_mid.c ret = qla25xx_delete_req_que(vha, req); vha 656 drivers/scsi/qla2xxx/qla_mid.c ql_log(ql_log_warn, vha, 0x00ea, vha 668 drivers/scsi/qla2xxx/qla_mid.c ret = qla25xx_delete_rsp_que(vha, rsp); vha 670 drivers/scsi/qla2xxx/qla_mid.c ql_log(ql_log_warn, vha, 0x00eb, vha 689 drivers/scsi/qla2xxx/qla_mid.c struct scsi_qla_host *vha = pci_get_drvdata(ha->pdev); vha 786 drivers/scsi/qla2xxx/qla_mid.c vha->flags.qpairs_req_created = 1; vha 801 drivers/scsi/qla2xxx/qla_mid.c struct scsi_qla_host *vha; vha 805 drivers/scsi/qla2xxx/qla_mid.c vha = pci_get_drvdata(ha->pdev); vha 806 drivers/scsi/qla2xxx/qla_mid.c qla24xx_process_response_queue(vha, qpair->rsp); vha 819 drivers/scsi/qla2xxx/qla_mid.c struct scsi_qla_host *vha = pci_get_drvdata(ha->pdev); vha 903 drivers/scsi/qla2xxx/qla_mid.c vha->flags.qpairs_rsp_created = 1; vha 932 drivers/scsi/qla2xxx/qla_mid.c int qla24xx_control_vp(scsi_qla_host_t *vha, int cmd) vha 935 drivers/scsi/qla2xxx/qla_mid.c struct qla_hw_data *ha = vha->hw; vha 936 drivers/scsi/qla2xxx/qla_mid.c int vp_index = vha->vp_idx; vha 941 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0x10c1, vha 956 drivers/scsi/qla2xxx/qla_mid.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2); vha 962 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_async, vha, 0xffff, vha 968 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0x113f, "%s hndl %x submitted\n", vha 977 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xffff, "%s: %s Timeout. %x.\n", vha 981 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xffff, "%s: %s done.\n", vha 985 drivers/scsi/qla2xxx/qla_mid.c ql_dbg(ql_dbg_vport, vha, 0xffff, "%s: %s Failed. %x.\n", vha 39 drivers/scsi/qla2xxx/qla_mr.c qlafx00_mailbox_command(scsi_qla_host_t *vha, struct mbx_cmd_32 *mcp) vha 53 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 57 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x115c, vha 63 drivers/scsi/qla2xxx/qla_mr.c if (vha->device_flags & DFLG_DEV_FAILED) { vha 64 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x115f, vha 76 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x1175, vha 84 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x1176, vha 97 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x1177, vha 107 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x1178, vha 132 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1172, vha 134 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1173, vha 136 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1174, vha 140 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x1179, vha 154 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x112c, vha 173 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x112d, vha 182 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x112e, vha 215 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x113a, vha 227 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x115d, vha 230 drivers/scsi/qla2xxx/qla_mr.c if (!test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) && vha 231 drivers/scsi/qla2xxx/qla_mr.c !test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) && vha 232 drivers/scsi/qla2xxx/qla_mr.c !test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { vha 239 drivers/scsi/qla2xxx/qla_mr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 240 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 244 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x1160, vha 247 drivers/scsi/qla2xxx/qla_mr.c if (!test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) && vha 248 drivers/scsi/qla2xxx/qla_mr.c !test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) && vha 249 drivers/scsi/qla2xxx/qla_mr.c !test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { vha 256 drivers/scsi/qla2xxx/qla_mr.c set_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags); vha 257 drivers/scsi/qla2xxx/qla_mr.c clear_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 258 drivers/scsi/qla2xxx/qla_mr.c if (ha->isp_ops->abort_isp(vha)) { vha 261 drivers/scsi/qla2xxx/qla_mr.c &vha->dpc_flags); vha 263 drivers/scsi/qla2xxx/qla_mr.c clear_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags); vha 264 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x1162, vha 300 drivers/scsi/qla2xxx/qla_mr.c qlafx00_driver_shutdown(scsi_qla_host_t *vha, int tmo) vha 306 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1166, vha 317 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_mailbox_command(vha, mcp); vha 320 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x1167, vha 323 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1168, vha 346 drivers/scsi/qla2xxx/qla_mr.c qlafx00_get_firmware_state(scsi_qla_host_t *vha, uint32_t *states) vha 352 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1169, vha 360 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_mailbox_command(vha, mcp); vha 366 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x116a, vha 369 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x116b, vha 393 drivers/scsi/qla2xxx/qla_mr.c qlafx00_init_firmware(scsi_qla_host_t *vha, uint16_t size) vha 398 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 400 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x116c, vha 414 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_mailbox_command(vha, mcp); vha 417 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x116d, vha 420 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x116e, vha 430 drivers/scsi/qla2xxx/qla_mr.c qlafx00_mbx_reg_test(scsi_qla_host_t *vha) vha 436 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x116f, vha 465 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_mailbox_command(vha, mcp); vha 482 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x1170, vha 485 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1171, vha 498 drivers/scsi/qla2xxx/qla_mr.c qlafx00_pci_config(scsi_qla_host_t *vha) vha 501 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 526 drivers/scsi/qla2xxx/qla_mr.c qlafx00_soc_cpu_reset(scsi_qla_host_t *vha) vha 529 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 633 drivers/scsi/qla2xxx/qla_mr.c qlafx00_soft_reset(scsi_qla_host_t *vha) vha 635 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 643 drivers/scsi/qla2xxx/qla_mr.c qlafx00_soc_cpu_reset(vha); vha 655 drivers/scsi/qla2xxx/qla_mr.c qlafx00_chip_diag(scsi_qla_host_t *vha) vha 658 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 663 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_mbx_reg_test(vha); vha 665 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x1165, vha 675 drivers/scsi/qla2xxx/qla_mr.c qlafx00_config_rings(struct scsi_qla_host *vha) vha 677 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 691 drivers/scsi/qla2xxx/qla_mr.c qlafx00_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len) vha 693 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 701 drivers/scsi/qla2xxx/qla_mr.c qlafx00_fw_version_str(struct scsi_qla_host *vha, char *str, size_t size) vha 703 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 744 drivers/scsi/qla2xxx/qla_mr.c qlafx00_loop_reset(scsi_qla_host_t *vha) vha 748 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 751 drivers/scsi/qla2xxx/qla_mr.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 757 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_taskm, vha, 0x803d, vha 834 drivers/scsi/qla2xxx/qla_mr.c qlafx00_save_queue_ptrs(struct scsi_qla_host *vha) vha 836 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 848 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x012d, vha 853 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x012e, vha 860 drivers/scsi/qla2xxx/qla_mr.c qlafx00_config_queues(struct scsi_qla_host *vha) vha 862 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 876 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0130, vha 891 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0132, vha 901 drivers/scsi/qla2xxx/qla_mr.c qlafx00_init_fw_ready(scsi_qla_host_t *vha) vha 906 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 921 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_driver_shutdown(vha, 10); vha 923 drivers/scsi/qla2xxx/qla_mr.c qlafx00_soft_reset(vha); vha 931 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_mbx, vha, 0x0133, vha 943 drivers/scsi/qla2xxx/qla_mr.c qlafx00_soft_reset(vha); vha 957 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0134, vha 993 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0135, vha 1000 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_get_firmware_state(vha, state); vha 1019 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0136, vha 1023 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_driver_shutdown(vha, 10); vha 1036 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0137, vha 1049 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0138, vha 1052 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0139, vha 1065 drivers/scsi/qla2xxx/qla_mr.c qlafx00_fw_ready(scsi_qla_host_t *vha) vha 1080 drivers/scsi/qla2xxx/qla_mr.c if (!vha->flags.init_done) vha 1081 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x013a, vha 1085 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_get_firmware_state(vha, state); vha 1089 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x013b, vha 1103 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x013c, vha 1109 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x013d, vha 1112 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x013e, vha 1119 drivers/scsi/qla2xxx/qla_mr.c qlafx00_find_all_targets(scsi_qla_host_t *vha, vha 1126 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 1130 drivers/scsi/qla2xxx/qla_mr.c if (!test_bit(LOOP_RESYNC_ACTIVE, &vha->dpc_flags)) vha 1133 drivers/scsi/qla2xxx/qla_mr.c if ((atomic_read(&vha->loop_down_timer) || vha 1134 drivers/scsi/qla2xxx/qla_mr.c STATE_TRANSITION(vha))) { vha 1135 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_down_timer, 0); vha 1136 drivers/scsi/qla2xxx/qla_mr.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 1140 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_disc + ql_dbg_init, vha, 0x2088, vha 1142 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_disc + ql_dbg_init, vha, 0x2089, vha 1146 drivers/scsi/qla2xxx/qla_mr.c new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 1155 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_fx_disc(vha, new_fcport, vha 1158 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x208a, vha 1166 drivers/scsi/qla2xxx/qla_mr.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 1184 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_disc + ql_dbg_init, vha, 0x208b, vha 1193 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x208c, vha 1205 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x208d, vha 1207 drivers/scsi/qla2xxx/qla_mr.c qla2x00_update_fcport(vha, fcport); vha 1209 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x208e, vha 1213 drivers/scsi/qla2xxx/qla_mr.c qla2x00_mark_device_lost(vha, fcport, 0, 0); vha 1214 drivers/scsi/qla2xxx/qla_mr.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 1228 drivers/scsi/qla2xxx/qla_mr.c new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 1249 drivers/scsi/qla2xxx/qla_mr.c qlafx00_configure_all_targets(scsi_qla_host_t *vha) vha 1255 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_fx_disc(vha, &vha->hw->mr.fcport, vha 1258 drivers/scsi/qla2xxx/qla_mr.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 1262 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_find_all_targets(vha, &new_fcports); vha 1264 drivers/scsi/qla2xxx/qla_mr.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 1271 drivers/scsi/qla2xxx/qla_mr.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 1272 drivers/scsi/qla2xxx/qla_mr.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 1277 drivers/scsi/qla2xxx/qla_mr.c qla2x00_mark_device_lost(vha, fcport, 0, 0); vha 1285 drivers/scsi/qla2xxx/qla_mr.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 1288 drivers/scsi/qla2xxx/qla_mr.c qla2x00_update_fcport(vha, fcport); vha 1289 drivers/scsi/qla2xxx/qla_mr.c list_move_tail(&fcport->list, &vha->vp_fcports); vha 1290 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x208f, vha 1320 drivers/scsi/qla2xxx/qla_mr.c qlafx00_configure_devices(scsi_qla_host_t *vha) vha 1327 drivers/scsi/qla2xxx/qla_mr.c flags = vha->dpc_flags; vha 1329 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_disc, vha, 0x2090, vha 1332 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_configure_all_targets(vha); vha 1335 drivers/scsi/qla2xxx/qla_mr.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) { vha 1338 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_state, LOOP_READY); vha 1339 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x2091, vha 1345 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_disc, vha, 0x2092, vha 1348 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_disc, vha, 0x2093, vha 1355 drivers/scsi/qla2xxx/qla_mr.c qlafx00_abort_isp_cleanup(scsi_qla_host_t *vha, bool critemp) vha 1357 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 1360 drivers/scsi/qla2xxx/qla_mr.c vha->flags.online = 0; vha 1365 drivers/scsi/qla2xxx/qla_mr.c clear_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 1366 drivers/scsi/qla2xxx/qla_mr.c vha->qla_stats.total_isp_aborts++; vha 1367 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x013f, vha 1369 drivers/scsi/qla2xxx/qla_mr.c ha->isp_ops->reset_chip(vha); vha 1372 drivers/scsi/qla2xxx/qla_mr.c if (atomic_read(&vha->loop_state) != LOOP_DOWN) { vha 1373 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 1374 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_down_timer, vha 1377 drivers/scsi/qla2xxx/qla_mr.c if (!atomic_read(&vha->loop_down_timer)) vha 1378 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_down_timer, vha 1383 drivers/scsi/qla2xxx/qla_mr.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 1391 drivers/scsi/qla2xxx/qla_mr.c qla2x00_abort_all_cmds(vha, DID_NO_CONNECT << 16); vha 1394 drivers/scsi/qla2xxx/qla_mr.c qla2x00_abort_all_cmds(vha, DID_RESET << 16); vha 1398 drivers/scsi/qla2xxx/qla_mr.c qla2x00_free_irqs(vha); vha 1400 drivers/scsi/qla2xxx/qla_mr.c set_bit(FX00_CRITEMP_RECOVERY, &vha->dpc_flags); vha 1402 drivers/scsi/qla2xxx/qla_mr.c set_bit(FX00_RESET_RECOVERY, &vha->dpc_flags); vha 1407 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x0140, vha 1439 drivers/scsi/qla2xxx/qla_mr.c qlafx00_rescan_isp(scsi_qla_host_t *vha) vha 1442 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 1456 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_disc, vha, 0x2094, vha 1465 drivers/scsi/qla2xxx/qla_mr.c status = qla2x00_init_rings(vha); vha 1467 drivers/scsi/qla2xxx/qla_mr.c vha->flags.online = 1; vha 1470 drivers/scsi/qla2xxx/qla_mr.c if ((vha->device_flags & DFLG_NO_CABLE)) vha 1473 drivers/scsi/qla2xxx/qla_mr.c if (qlafx00_fx_disc(vha, vha 1474 drivers/scsi/qla2xxx/qla_mr.c &vha->hw->mr.fcport, FXDISC_REG_HOST_INFO)) vha 1475 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_disc, vha, 0x2095, vha 1478 drivers/scsi/qla2xxx/qla_mr.c scsi_unblock_requests(vha->host); vha 1483 drivers/scsi/qla2xxx/qla_mr.c qlafx00_timer_routine(scsi_qla_host_t *vha) vha 1485 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 1496 drivers/scsi/qla2xxx/qla_mr.c (!test_bit(UNLOADING, &vha->dpc_flags)) && vha 1497 drivers/scsi/qla2xxx/qla_mr.c (!test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)) && vha 1508 drivers/scsi/qla2xxx/qla_mr.c &vha->dpc_flags); vha 1509 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 1517 drivers/scsi/qla2xxx/qla_mr.c if (test_bit(FX00_RESET_RECOVERY, &vha->dpc_flags)) { vha 1521 drivers/scsi/qla2xxx/qla_mr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 1522 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 1526 drivers/scsi/qla2xxx/qla_mr.c set_bit(FX00_TARGET_SCAN, &vha->dpc_flags); vha 1527 drivers/scsi/qla2xxx/qla_mr.c clear_bit(FX00_RESET_RECOVERY, &vha->dpc_flags); vha 1528 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 1564 drivers/scsi/qla2xxx/qla_mr.c if (test_bit(FX00_CRITEMP_RECOVERY, &vha->dpc_flags)) { vha 1571 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_timer, vha, 0x6012, vha 1576 drivers/scsi/qla2xxx/qla_mr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 1578 drivers/scsi/qla2xxx/qla_mr.c &vha->dpc_flags); vha 1579 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 1594 drivers/scsi/qla2xxx/qla_mr.c set_bit(FX00_HOST_INFO_RESEND, &vha->dpc_flags); vha 1597 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 1616 drivers/scsi/qla2xxx/qla_mr.c qlafx00_reset_initialize(scsi_qla_host_t *vha) vha 1618 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 1620 drivers/scsi/qla2xxx/qla_mr.c if (vha->device_flags & DFLG_DEV_FAILED) { vha 1621 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0142, vha 1628 drivers/scsi/qla2xxx/qla_mr.c if (vha->flags.online) { vha 1629 drivers/scsi/qla2xxx/qla_mr.c scsi_block_requests(vha->host); vha 1630 drivers/scsi/qla2xxx/qla_mr.c qlafx00_abort_isp_cleanup(vha, false); vha 1633 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x0143, vha 1650 drivers/scsi/qla2xxx/qla_mr.c qlafx00_abort_isp(scsi_qla_host_t *vha) vha 1652 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 1654 drivers/scsi/qla2xxx/qla_mr.c if (vha->flags.online) { vha 1657 drivers/scsi/qla2xxx/qla_mr.c clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags); vha 1661 drivers/scsi/qla2xxx/qla_mr.c scsi_block_requests(vha->host); vha 1662 drivers/scsi/qla2xxx/qla_mr.c qlafx00_abort_isp_cleanup(vha, false); vha 1664 drivers/scsi/qla2xxx/qla_mr.c scsi_block_requests(vha->host); vha 1665 drivers/scsi/qla2xxx/qla_mr.c clear_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 1666 drivers/scsi/qla2xxx/qla_mr.c vha->qla_stats.total_isp_aborts++; vha 1667 drivers/scsi/qla2xxx/qla_mr.c ha->isp_ops->reset_chip(vha); vha 1668 drivers/scsi/qla2xxx/qla_mr.c set_bit(FX00_RESET_RECOVERY, &vha->dpc_flags); vha 1673 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x0145, vha 1680 drivers/scsi/qla2xxx/qla_mr.c qlafx00_get_fcport(struct scsi_qla_host *vha, int tgt_id) vha 1685 drivers/scsi/qla2xxx/qla_mr.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 1687 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_async, vha, 0x5072, vha 1698 drivers/scsi/qla2xxx/qla_mr.c qlafx00_tgt_detach(struct scsi_qla_host *vha, int tgt_id) vha 1702 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x5073, vha 1705 drivers/scsi/qla2xxx/qla_mr.c fcport = qlafx00_get_fcport(vha, tgt_id); vha 1709 drivers/scsi/qla2xxx/qla_mr.c qla2x00_mark_device_lost(vha, fcport, 0, 0); vha 1715 drivers/scsi/qla2xxx/qla_mr.c qlafx00_process_aen(struct scsi_qla_host *vha, struct qla_work_evt *evt) vha 1727 drivers/scsi/qla2xxx/qla_mr.c if (!vha->flags.fw_tgt_reported) vha 1728 drivers/scsi/qla2xxx/qla_mr.c vha->flags.fw_tgt_reported = 1; vha 1729 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_down_timer, 0); vha 1730 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_state, LOOP_UP); vha 1731 drivers/scsi/qla2xxx/qla_mr.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 1732 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 1734 drivers/scsi/qla2xxx/qla_mr.c qlafx00_tgt_detach(vha, evt->u.aenfx.mbx[3]); vha 1738 drivers/scsi/qla2xxx/qla_mr.c if (!vha->flags.fw_tgt_reported) vha 1739 drivers/scsi/qla2xxx/qla_mr.c vha->flags.fw_tgt_reported = 1; vha 1740 drivers/scsi/qla2xxx/qla_mr.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 1742 drivers/scsi/qla2xxx/qla_mr.c vha->device_flags |= DFLG_NO_CABLE; vha 1743 drivers/scsi/qla2xxx/qla_mr.c qla2x00_mark_all_devices_lost(vha, 1); vha 1756 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x5082, vha 1760 drivers/scsi/qla2xxx/qla_mr.c scsi_block_requests(vha->host); vha 1761 drivers/scsi/qla2xxx/qla_mr.c qlafx00_abort_isp_cleanup(vha, true); vha 1762 drivers/scsi/qla2xxx/qla_mr.c scsi_unblock_requests(vha->host); vha 1766 drivers/scsi/qla2xxx/qla_mr.c fc_host_post_event(vha->host, fc_get_event_number(), vha 1773 drivers/scsi/qla2xxx/qla_mr.c qlafx00_update_host_attr(scsi_qla_host_t *vha, struct port_info_data *pinfo) vha 1780 drivers/scsi/qla2xxx/qla_mr.c fc_host_node_name(vha->host) = node_name; vha 1781 drivers/scsi/qla2xxx/qla_mr.c fc_host_port_name(vha->host) = port_name; vha 1783 drivers/scsi/qla2xxx/qla_mr.c vha->hw->current_topology = ISP_CFG_F; vha 1785 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_state, LOOP_READY); vha 1787 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 1788 drivers/scsi/qla2xxx/qla_mr.c vha->hw->link_data_rate = (uint16_t)pinfo->link_config; vha 1808 drivers/scsi/qla2xxx/qla_mr.c qlafx00_fx_disc(scsi_qla_host_t *vha, fc_port_t *fcport, uint16_t fx_type) vha 1813 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 1818 drivers/scsi/qla2xxx/qla_mr.c sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); vha 1857 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x303c, vha 1897 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0149, vha 1900 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x014a, vha 1905 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x014b, vha 1909 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x014c, vha 1915 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_init + ql_dbg_disc, vha, 0x014d, vha 1940 drivers/scsi/qla2xxx/qla_mr.c strlcpy(vha->hw->model_number, pinfo->model_num, vha 1941 drivers/scsi/qla2xxx/qla_mr.c ARRAY_SIZE(vha->hw->model_number)); vha 1942 drivers/scsi/qla2xxx/qla_mr.c strlcpy(vha->hw->model_desc, pinfo->model_description, vha 1943 drivers/scsi/qla2xxx/qla_mr.c ARRAY_SIZE(vha->hw->model_desc)); vha 1944 drivers/scsi/qla2xxx/qla_mr.c memcpy(&vha->hw->mr.symbolic_name, pinfo->symbolic_name, vha 1945 drivers/scsi/qla2xxx/qla_mr.c sizeof(vha->hw->mr.symbolic_name)); vha 1946 drivers/scsi/qla2xxx/qla_mr.c memcpy(&vha->hw->mr.serial_num, pinfo->serial_num, vha 1947 drivers/scsi/qla2xxx/qla_mr.c sizeof(vha->hw->mr.serial_num)); vha 1948 drivers/scsi/qla2xxx/qla_mr.c memcpy(&vha->hw->mr.hw_version, pinfo->hw_version, vha 1949 drivers/scsi/qla2xxx/qla_mr.c sizeof(vha->hw->mr.hw_version)); vha 1950 drivers/scsi/qla2xxx/qla_mr.c memcpy(&vha->hw->mr.fw_version, pinfo->fw_version, vha 1951 drivers/scsi/qla2xxx/qla_mr.c sizeof(vha->hw->mr.fw_version)); vha 1952 drivers/scsi/qla2xxx/qla_mr.c strim(vha->hw->mr.fw_version); vha 1953 drivers/scsi/qla2xxx/qla_mr.c memcpy(&vha->hw->mr.uboot_version, pinfo->uboot_version, vha 1954 drivers/scsi/qla2xxx/qla_mr.c sizeof(vha->hw->mr.uboot_version)); vha 1955 drivers/scsi/qla2xxx/qla_mr.c memcpy(&vha->hw->mr.fru_serial_num, pinfo->fru_serial_num, vha 1956 drivers/scsi/qla2xxx/qla_mr.c sizeof(vha->hw->mr.fru_serial_num)); vha 1957 drivers/scsi/qla2xxx/qla_mr.c vha->hw->mr.critical_temperature = vha 1965 drivers/scsi/qla2xxx/qla_mr.c memcpy(vha->node_name, pinfo->node_name, WWN_SIZE); vha 1966 drivers/scsi/qla2xxx/qla_mr.c memcpy(vha->port_name, pinfo->port_name, WWN_SIZE); vha 1967 drivers/scsi/qla2xxx/qla_mr.c vha->d_id.b.domain = pinfo->port_id[0]; vha 1968 drivers/scsi/qla2xxx/qla_mr.c vha->d_id.b.area = pinfo->port_id[1]; vha 1969 drivers/scsi/qla2xxx/qla_mr.c vha->d_id.b.al_pa = pinfo->port_id[2]; vha 1970 drivers/scsi/qla2xxx/qla_mr.c qlafx00_update_host_attr(vha, pinfo); vha 1971 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_init + ql_dbg_buffer, vha, 0x0141, vha 1979 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_init + ql_dbg_buffer, vha, 0x0144, vha 1984 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_init + ql_dbg_buffer, vha, 0x0146, vha 1986 drivers/scsi/qla2xxx/qla_mr.c memcpy(vha->hw->gid_list, pinfo, QLAFX00_TGT_NODE_LIST_SIZE); vha 2021 drivers/scsi/qla2xxx/qla_mr.c qlafx00_initialize_adapter(scsi_qla_host_t *vha) vha 2024 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 2028 drivers/scsi/qla2xxx/qla_mr.c vha->flags.online = 0; vha 2030 drivers/scsi/qla2xxx/qla_mr.c vha->flags.reset_active = 0; vha 2033 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME); vha 2034 drivers/scsi/qla2xxx/qla_mr.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 2035 drivers/scsi/qla2xxx/qla_mr.c vha->device_flags = DFLG_NO_CABLE; vha 2036 drivers/scsi/qla2xxx/qla_mr.c vha->dpc_flags = 0; vha 2037 drivers/scsi/qla2xxx/qla_mr.c vha->flags.management_server_logged_in = 0; vha 2044 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0147, vha 2047 drivers/scsi/qla2xxx/qla_mr.c rval = ha->isp_ops->pci_config(vha); vha 2049 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x0148, vha 2054 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_init_fw_ready(vha); vha 2058 drivers/scsi/qla2xxx/qla_mr.c qlafx00_save_queue_ptrs(vha); vha 2060 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_config_queues(vha); vha 2068 drivers/scsi/qla2xxx/qla_mr.c rval = qla2x00_alloc_outstanding_cmds(ha, vha->req); vha 2072 drivers/scsi/qla2xxx/qla_mr.c rval = qla2x00_init_rings(vha); vha 2076 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_init, vha, 0x0152, vha 2087 drivers/scsi/qla2xxx/qla_mr.c scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); vha 2091 drivers/scsi/qla2xxx/qla_mr.c if (qla2x00_reset_active(vha)) vha 2092 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x70ce, vha 2094 drivers/scsi/qla2xxx/qla_mr.c else if (!vha->hw->flags.eeh_busy) { vha 2095 drivers/scsi/qla2xxx/qla_mr.c rval = qlafx00_get_firmware_state(vha, state); vha 2133 drivers/scsi/qla2xxx/qla_mr.c struct scsi_qla_host *vha = sp->vha; vha 2157 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, vha, 0x304d, vha 2166 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io + ql_dbg_buffer, vha, 0x3039, vha 2168 drivers/scsi/qla2xxx/qla_mr.c sp->vha->host_no, cp->device->id, cp->device->lun, vha 2170 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_io + ql_dbg_buffer, vha, 0x3049, vha 2176 drivers/scsi/qla2xxx/qla_mr.c qlafx00_tm_iocb_entry(scsi_qla_host_t *vha, struct req_que *req, vha 2191 drivers/scsi/qla2xxx/qla_mr.c qlafx00_abort_iocb_entry(scsi_qla_host_t *vha, struct req_que *req, vha 2198 drivers/scsi/qla2xxx/qla_mr.c sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); vha 2208 drivers/scsi/qla2xxx/qla_mr.c qlafx00_ioctl_iosb_entry(scsi_qla_host_t *vha, struct req_que *req, vha 2220 drivers/scsi/qla2xxx/qla_mr.c sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); vha 2257 drivers/scsi/qla2xxx/qla_mr.c sp->vha, 0x5080, pkt, sizeof(*pkt)); vha 2260 drivers/scsi/qla2xxx/qla_mr.c sp->vha, 0x5074, vha 2277 drivers/scsi/qla2xxx/qla_mr.c qlafx00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt) vha 2290 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 2314 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, vha, 0x3034, vha 2317 drivers/scsi/qla2xxx/qla_mr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2318 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 2324 drivers/scsi/qla2xxx/qla_mr.c qlafx00_tm_iocb_entry(vha, req, pkt, sp, vha 2331 drivers/scsi/qla2xxx/qla_mr.c qla2x00_process_completed_request(vha, req, handle); vha 2338 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, vha, 0x3048, vha 2384 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3050, vha 2397 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3051, vha 2423 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3052, vha 2436 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3053, vha 2453 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3054, vha 2461 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3055, vha 2477 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3056, vha 2511 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3057, vha 2516 drivers/scsi/qla2xxx/qla_mr.c qla2x00_mark_device_lost(fcport->vha, fcport, 1, 1); vha 2529 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, fcport->vha, 0x3058, vha 2534 drivers/scsi/qla2xxx/qla_mr.c comp_status, scsi_status, res, vha->host_no, vha 2558 drivers/scsi/qla2xxx/qla_mr.c struct scsi_qla_host *vha = pci_get_drvdata(ha->pdev); vha 2565 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, vha, 0x3037, vha 2571 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, vha, 0x304b, vha 2577 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x303b, vha 2585 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, vha, 0x304c, vha 2590 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, vha, 0x304f, vha 2600 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_io + ql_dbg_buffer, vha, 0x304e, vha 2603 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_io + ql_dbg_buffer, vha, 0x304a, vha 2633 drivers/scsi/qla2xxx/qla_mr.c qlafx00_multistatus_entry(struct scsi_qla_host *vha, vha 2638 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 2649 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, vha, 0x3035, vha 2651 drivers/scsi/qla2xxx/qla_mr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2652 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 2671 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_io, vha, 0x3044, vha 2673 drivers/scsi/qla2xxx/qla_mr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2674 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 2677 drivers/scsi/qla2xxx/qla_mr.c qla2x00_process_completed_request(vha, req, handle); vha 2689 drivers/scsi/qla2xxx/qla_mr.c qlafx00_error_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, vha 2693 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 2701 drivers/scsi/qla2xxx/qla_mr.c sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); vha 2707 drivers/scsi/qla2xxx/qla_mr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2708 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 2717 drivers/scsi/qla2xxx/qla_mr.c qlafx00_process_response_queue(struct scsi_qla_host *vha, vha 2746 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_async, vha, 0x507f, vha 2749 drivers/scsi/qla2xxx/qla_mr.c qlafx00_error_entry(vha, rsp, vha 2756 drivers/scsi/qla2xxx/qla_mr.c qlafx00_status_entry(vha, rsp, pkt); vha 2764 drivers/scsi/qla2xxx/qla_mr.c qlafx00_multistatus_entry(vha, rsp, pkt); vha 2768 drivers/scsi/qla2xxx/qla_mr.c qlafx00_abort_iocb_entry(vha, rsp->req, vha 2773 drivers/scsi/qla2xxx/qla_mr.c qlafx00_ioctl_iosb_entry(vha, rsp->req, vha 2778 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_async, vha, 0x5081, vha 2795 drivers/scsi/qla2xxx/qla_mr.c qlafx00_async_event(scsi_qla_host_t *vha) vha 2797 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 2805 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_warn, vha, 0x5079, vha 2807 drivers/scsi/qla2xxx/qla_mr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2811 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_async, vha, 0x5076, vha 2813 drivers/scsi/qla2xxx/qla_mr.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2814 drivers/scsi/qla2xxx/qla_mr.c qla2xxx_wake_dpc(vha); vha 2821 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_async, vha, 0x5077, vha 2829 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x5085, vha 2836 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x5086, vha 2843 drivers/scsi/qla2xxx/qla_mr.c ql_log(ql_log_info, vha, 0x5083, vha 2857 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_async, vha, 0x5078, vha 2863 drivers/scsi/qla2xxx/qla_mr.c qlafx00_post_aenfx_work(vha, ha->aenmb[0], vha 2873 drivers/scsi/qla2xxx/qla_mr.c qlafx00_mbx_completion(scsi_qla_host_t *vha, uint32_t mb0) vha 2877 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 2881 drivers/scsi/qla2xxx/qla_mr.c ql_dbg(ql_dbg_async, vha, 0x507e, "MBX pointer ERROR.\n"); vha 2906 drivers/scsi/qla2xxx/qla_mr.c scsi_qla_host_t *vha; vha 2933 drivers/scsi/qla2xxx/qla_mr.c vha = pci_get_drvdata(ha->pdev); vha 2936 drivers/scsi/qla2xxx/qla_mr.c if (qla2x00_check_reg32_for_disconnect(vha, stat)) vha 2944 drivers/scsi/qla2xxx/qla_mr.c qlafx00_mbx_completion(vha, mb[0]); vha 2950 drivers/scsi/qla2xxx/qla_mr.c qlafx00_async_event(vha); vha 2954 drivers/scsi/qla2xxx/qla_mr.c qlafx00_process_response_queue(vha, rsp); vha 2999 drivers/scsi/qla2xxx/qla_mr.c scsi_qla_host_t *vha; vha 3007 drivers/scsi/qla2xxx/qla_mr.c vha = sp->vha; vha 3008 drivers/scsi/qla2xxx/qla_mr.c req = vha->req; vha 3026 drivers/scsi/qla2xxx/qla_mr.c vha->qla_stats.output_bytes += scsi_bufflen(cmd); vha 3029 drivers/scsi/qla2xxx/qla_mr.c vha->qla_stats.input_bytes += scsi_bufflen(cmd); vha 3085 drivers/scsi/qla2xxx/qla_mr.c struct scsi_qla_host *vha = sp->vha; vha 3086 drivers/scsi/qla2xxx/qla_mr.c struct qla_hw_data *ha = vha->hw; vha 3093 drivers/scsi/qla2xxx/qla_mr.c req = vha->req; vha 3115 drivers/scsi/qla2xxx/qla_mr.c req_cnt = qla24xx_calc_iocbs(vha, tot_dsds); vha 3163 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_io + ql_dbg_buffer, vha, 0x302e, vha 3165 drivers/scsi/qla2xxx/qla_mr.c ql_dump_buffer(ql_dbg_io + ql_dbg_buffer, vha, 0x3032, vha 3201 drivers/scsi/qla2xxx/qla_mr.c scsi_qla_host_t *vha = sp->vha; vha 3202 drivers/scsi/qla2xxx/qla_mr.c struct req_que *req = vha->req; vha 3228 drivers/scsi/qla2xxx/qla_mr.c scsi_qla_host_t *vha = sp->vha; vha 3229 drivers/scsi/qla2xxx/qla_mr.c struct req_que *req = vha->req; vha 3337 drivers/scsi/qla2xxx/qla_mr.c sp->vha->req, &lcont_pkt); vha 3354 drivers/scsi/qla2xxx/qla_mr.c sp->vha, 0x3042, vha 3363 drivers/scsi/qla2xxx/qla_mr.c sp->vha, 0x3043, vha 3393 drivers/scsi/qla2xxx/qla_mr.c sp->vha->req, &lcont_pkt); vha 3410 drivers/scsi/qla2xxx/qla_mr.c sp->vha, 0x3045, vha 3419 drivers/scsi/qla2xxx/qla_mr.c sp->vha, 0x3046, vha 3431 drivers/scsi/qla2xxx/qla_mr.c sp->vha, 0x3047, &fx_iocb, sizeof(fx_iocb)); vha 15 drivers/scsi/qla2xxx/qla_nvme.c int qla_nvme_register_remote(struct scsi_qla_host *vha, struct fc_port *fcport) vha 24 drivers/scsi/qla2xxx/qla_nvme.c if (!vha->flags.nvme_enabled) { vha 25 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, vha, 0x2100, vha 31 drivers/scsi/qla2xxx/qla_nvme.c if (!vha->nvme_local_port && qla_nvme_register_hba(vha)) vha 58 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, vha, 0x2102, vha 63 drivers/scsi/qla2xxx/qla_nvme.c ret = nvme_fc_register_remoteport(vha->nvme_local_port, &req, vha 66 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_warn, vha, 0x212e, vha 83 drivers/scsi/qla2xxx/qla_nvme.c struct scsi_qla_host *vha; vha 90 drivers/scsi/qla2xxx/qla_nvme.c vha = (struct scsi_qla_host *)lport->private; vha 91 drivers/scsi/qla2xxx/qla_nvme.c ha = vha->hw; vha 93 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, vha, 0x2104, vha 98 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_warn, vha, 0x212f, vha 106 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, vha, 0x2121, vha 112 drivers/scsi/qla2xxx/qla_nvme.c qpair = qla2xxx_create_qpair(vha, 5, vha->vp_idx, true); vha 114 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_warn, vha, 0x2122, vha 215 drivers/scsi/qla2xxx/qla_nvme.c struct qla_hw_data *ha = fcport->vha->hw; vha 218 drivers/scsi/qla2xxx/qla_nvme.c ql_dbg(ql_dbg_io, fcport->vha, 0xffff, vha 226 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, sp->fcport->vha, 0xffff, vha 235 drivers/scsi/qla2xxx/qla_nvme.c ql_dbg(ql_dbg_io, fcport->vha, 0x212b, vha 274 drivers/scsi/qla2xxx/qla_nvme.c struct scsi_qla_host *vha; vha 283 drivers/scsi/qla2xxx/qla_nvme.c vha = fcport->vha; vha 284 drivers/scsi/qla2xxx/qla_nvme.c ha = vha->hw; vha 290 drivers/scsi/qla2xxx/qla_nvme.c sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC); vha 318 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_warn, vha, 0x700e, vha 364 drivers/scsi/qla2xxx/qla_nvme.c struct scsi_qla_host *vha = sp->fcport->vha; vha 365 drivers/scsi/qla2xxx/qla_nvme.c struct qla_hw_data *ha = vha->hw; vha 384 drivers/scsi/qla2xxx/qla_nvme.c req_cnt = qla24xx_calc_iocbs(vha, tot_dsds); vha 430 drivers/scsi/qla2xxx/qla_nvme.c vha->qla_stats.input_bytes += fd->payload_length; vha 431 drivers/scsi/qla2xxx/qla_nvme.c vha->qla_stats.input_requests++; vha 434 drivers/scsi/qla2xxx/qla_nvme.c if ((vha->flags.nvme_first_burst) && vha 443 drivers/scsi/qla2xxx/qla_nvme.c vha->qla_stats.output_bytes += fd->payload_length; vha 444 drivers/scsi/qla2xxx/qla_nvme.c vha->qla_stats.output_requests++; vha 454 drivers/scsi/qla2xxx/qla_nvme.c cmd_pkt->vp_index = sp->fcport->vha->vp_idx; vha 531 drivers/scsi/qla2xxx/qla_nvme.c struct scsi_qla_host *vha; vha 544 drivers/scsi/qla2xxx/qla_nvme.c vha = fcport->vha; vha 556 drivers/scsi/qla2xxx/qla_nvme.c sp = qla2xxx_get_qpair_sp(vha, qpair, fcport, GFP_ATOMIC); vha 570 drivers/scsi/qla2xxx/qla_nvme.c sp->vha = vha; vha 576 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_warn, vha, 0x212d, vha 589 drivers/scsi/qla2xxx/qla_nvme.c struct scsi_qla_host *vha = lport->private; vha 591 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, vha, 0x210f, vha 592 drivers/scsi/qla2xxx/qla_nvme.c "localport delete of %p completed.\n", vha->nvme_local_port); vha 593 drivers/scsi/qla2xxx/qla_nvme.c vha->nvme_local_port = NULL; vha 594 drivers/scsi/qla2xxx/qla_nvme.c complete(&vha->nvme_del_done); vha 606 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, fcport->vha, 0x2110, vha 642 drivers/scsi/qla2xxx/qla_nvme.c if (test_bit(PFLG_DRIVER_REMOVING, &fcport->vha->pci_flags)) vha 648 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, fcport->vha, 0x2114, vha 654 drivers/scsi/qla2xxx/qla_nvme.c void qla_nvme_delete(struct scsi_qla_host *vha) vha 661 drivers/scsi/qla2xxx/qla_nvme.c if (vha->nvme_local_port) { vha 662 drivers/scsi/qla2xxx/qla_nvme.c init_completion(&vha->nvme_del_done); vha 663 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, vha, 0x2116, vha 665 drivers/scsi/qla2xxx/qla_nvme.c vha->nvme_local_port); vha 666 drivers/scsi/qla2xxx/qla_nvme.c nv_ret = nvme_fc_unregister_localport(vha->nvme_local_port); vha 668 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, vha, 0x2115, vha 671 drivers/scsi/qla2xxx/qla_nvme.c wait_for_completion(&vha->nvme_del_done); vha 675 drivers/scsi/qla2xxx/qla_nvme.c int qla_nvme_register_hba(struct scsi_qla_host *vha) vha 685 drivers/scsi/qla2xxx/qla_nvme.c ha = vha->hw; vha 688 drivers/scsi/qla2xxx/qla_nvme.c WARN_ON(vha->nvme_local_port); vha 695 drivers/scsi/qla2xxx/qla_nvme.c pinfo.node_name = wwn_to_u64(vha->node_name); vha 696 drivers/scsi/qla2xxx/qla_nvme.c pinfo.port_name = wwn_to_u64(vha->port_name); vha 698 drivers/scsi/qla2xxx/qla_nvme.c pinfo.port_id = vha->d_id.b24; vha 700 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_info, vha, 0xffff, vha 703 drivers/scsi/qla2xxx/qla_nvme.c qla_nvme_fc_transport.dma_boundary = vha->host->dma_boundary; vha 706 drivers/scsi/qla2xxx/qla_nvme.c get_device(&ha->pdev->dev), &vha->nvme_local_port); vha 708 drivers/scsi/qla2xxx/qla_nvme.c ql_log(ql_log_warn, vha, 0xffff, vha 711 drivers/scsi/qla2xxx/qla_nvme.c vha->nvme_local_port->private = vha; vha 365 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 375 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb000, vha 386 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 417 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb001, vha 592 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 604 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb003, vha 614 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb004, vha 627 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb005, vha 643 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb006, vha 655 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb007, vha 702 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 714 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0xb008, vha 774 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 786 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0xb009, vha 866 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 875 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb157, vha 898 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 905 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb00a, vha 919 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 926 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb00b, vha 972 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 981 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x00b9, vha 994 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 999 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb00c, vha 1014 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 1024 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb00d, vha 1053 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 1060 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb00e, vha 1070 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 1074 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb00f, vha 1086 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 1095 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb010, vha 1107 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 1111 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb011, vha 1125 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb012, vha 1142 drivers/scsi/qla2xxx/qla_nx.c qla82xx_pinit_from_rom(scsi_qla_host_t *vha) vha 1149 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 1204 drivers/scsi/qla2xxx/qla_nx.c if (test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)) vha 1218 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x006e, vha 1231 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x0071, vha 1236 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x0072, vha 1241 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x010c, vha 1293 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x0116, vha 1746 drivers/scsi/qla2xxx/qla_nx.c qla82xx_pci_config(scsi_qla_host_t *vha) vha 1748 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 1754 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_init, vha, 0x0043, vha 1767 drivers/scsi/qla2xxx/qla_nx.c qla82xx_reset_chip(scsi_qla_host_t *vha) vha 1769 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 1776 drivers/scsi/qla2xxx/qla_nx.c void qla82xx_config_rings(struct scsi_qla_host *vha) vha 1778 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 1883 drivers/scsi/qla2xxx/qla_nx.c qla82xx_validate_firmware_blob(scsi_qla_host_t *vha, uint8_t fw_type) vha 1887 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 1915 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 1931 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x00a8, vha 1939 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x00a9, vha 1954 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 1970 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x00ab, vha 1978 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x00ac, vha 1996 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mbx_completion(scsi_qla_host_t *vha, uint16_t mb0) vha 2000 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2015 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_async, vha, 0x5053, vha 2031 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha; vha 2069 drivers/scsi/qla2xxx/qla_nx.c vha = pci_get_drvdata(ha->pdev); vha 2080 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mbx_completion(vha, MSW(stat)); vha 2088 drivers/scsi/qla2xxx/qla_nx.c qla2x00_async_event(vha, rsp, mb); vha 2091 drivers/scsi/qla2xxx/qla_nx.c qla24xx_process_response_queue(vha, rsp); vha 2094 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_async, vha, 0x5054, vha 2115 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha; vha 2136 drivers/scsi/qla2xxx/qla_nx.c vha = pci_get_drvdata(ha->pdev); vha 2139 drivers/scsi/qla2xxx/qla_nx.c if (qla2x00_check_reg32_for_disconnect(vha, host_int)) vha 2149 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mbx_completion(vha, MSW(stat)); vha 2157 drivers/scsi/qla2xxx/qla_nx.c qla2x00_async_event(vha, rsp, mb); vha 2160 drivers/scsi/qla2xxx/qla_nx.c qla24xx_process_response_queue(vha, rsp); vha 2163 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_async, vha, 0x5041, vha 2181 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha; vha 2198 drivers/scsi/qla2xxx/qla_nx.c vha = pci_get_drvdata(ha->pdev); vha 2200 drivers/scsi/qla2xxx/qla_nx.c if (qla2x00_check_reg32_for_disconnect(vha, host_int)) vha 2202 drivers/scsi/qla2xxx/qla_nx.c qla24xx_process_response_queue(vha, rsp); vha 2212 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha; vha 2232 drivers/scsi/qla2xxx/qla_nx.c vha = pci_get_drvdata(ha->pdev); vha 2235 drivers/scsi/qla2xxx/qla_nx.c if (qla2x00_check_reg32_for_disconnect(vha, host_int)) vha 2244 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mbx_completion(vha, MSW(stat)); vha 2252 drivers/scsi/qla2xxx/qla_nx.c qla2x00_async_event(vha, rsp, mb); vha 2255 drivers/scsi/qla2xxx/qla_nx.c qla24xx_process_response_queue(vha, rsp); vha 2258 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb013, vha 2272 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 2274 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mbx_intr_enable(vha); vha 2287 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 2290 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mbx_intr_disable(vha); vha 2319 drivers/scsi/qla2xxx/qla_nx.c qla82xx_set_idc_version(scsi_qla_host_t *vha) vha 2323 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2329 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb082, vha 2334 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb083, vha 2342 drivers/scsi/qla2xxx/qla_nx.c qla82xx_set_drv_active(scsi_qla_host_t *vha) vha 2345 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2388 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 2398 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_init, vha, 0x00bb, vha 2424 drivers/scsi/qla2xxx/qla_nx.c qla82xx_clear_qsnt_ready(scsi_qla_host_t *vha) vha 2426 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2435 drivers/scsi/qla2xxx/qla_nx.c qla82xx_load_fw(scsi_qla_host_t *vha) vha 2439 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2441 drivers/scsi/qla2xxx/qla_nx.c if (qla82xx_pinit_from_rom(vha) != QLA_SUCCESS) { vha 2442 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x009f, vha 2461 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x00a0, vha 2465 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x00a1, vha 2469 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x0108, vha 2474 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x00a2, vha 2478 drivers/scsi/qla2xxx/qla_nx.c blob = ha->hablob = qla2x00_request_firmware(vha); vha 2480 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x00a3, vha 2486 drivers/scsi/qla2xxx/qla_nx.c if (qla82xx_validate_firmware_blob(vha, vha 2489 drivers/scsi/qla2xxx/qla_nx.c if (qla82xx_validate_firmware_blob(vha, vha 2491 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x00a4, vha 2498 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x00a5, vha 2503 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x00a6, vha 2513 drivers/scsi/qla2xxx/qla_nx.c qla82xx_start_firmware(scsi_qla_host_t *vha) vha 2516 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2531 drivers/scsi/qla2xxx/qla_nx.c if (qla82xx_load_fw(vha) != QLA_SUCCESS) { vha 2532 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x00a7, vha 2539 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x00aa, vha 2553 drivers/scsi/qla2xxx/qla_nx.c qla82xx_read_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr, vha 2558 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2563 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x0106, vha 2578 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 2582 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb014, vha 2599 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb015, vha 2612 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 2616 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb016, vha 2629 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb017, vha 2633 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb018, vha 2644 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 2648 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb019, vha 2659 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb01a, vha 2674 drivers/scsi/qla2xxx/qla_nx.c qla82xx_read_optrom_data(struct scsi_qla_host *vha, void *buf, vha 2677 drivers/scsi/qla2xxx/qla_nx.c scsi_block_requests(vha->host); vha 2678 drivers/scsi/qla2xxx/qla_nx.c qla82xx_read_flash_data(vha, (uint32_t *)buf, offset, length); vha 2679 drivers/scsi/qla2xxx/qla_nx.c scsi_unblock_requests(vha->host); vha 2684 drivers/scsi/qla2xxx/qla_nx.c qla82xx_write_flash_data(struct scsi_qla_host *vha, uint32_t *dwptr, vha 2693 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2703 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb01b, vha 2714 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb01c, vha 2725 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb01d, vha 2737 drivers/scsi/qla2xxx/qla_nx.c ret = qla2x00_load_ram(vha, optrom_dma, vha 2741 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb01e, vha 2746 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb01f, vha 2763 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb020, vha 2772 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb021, vha 2782 drivers/scsi/qla2xxx/qla_nx.c qla82xx_write_optrom_data(struct scsi_qla_host *vha, void *buf, vha 2788 drivers/scsi/qla2xxx/qla_nx.c scsi_block_requests(vha->host); vha 2789 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_write_flash_data(vha, buf, offset, length >> 2); vha 2790 drivers/scsi/qla2xxx/qla_nx.c scsi_unblock_requests(vha->host); vha 2801 drivers/scsi/qla2xxx/qla_nx.c qla82xx_start_iocbs(scsi_qla_host_t *vha) vha 2803 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2833 drivers/scsi/qla2xxx/qla_nx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 2839 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb022, vha 2862 drivers/scsi/qla2xxx/qla_nx.c qla82xx_device_bootstrap(scsi_qla_host_t *vha) vha 2867 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2890 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x009e, vha 2895 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_start_firmware(vha); vha 2899 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x00ad, vha 2907 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x00ae, vha 2925 drivers/scsi/qla2xxx/qla_nx.c qla82xx_need_qsnt_handler(scsi_qla_host_t *vha) vha 2927 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 2931 drivers/scsi/qla2xxx/qla_nx.c if (vha->flags.online) { vha 2933 drivers/scsi/qla2xxx/qla_nx.c qla2x00_quiesce_io(vha); vha 2953 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb023, vha 2959 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb025, vha 2962 drivers/scsi/qla2xxx/qla_nx.c qla2x00_perform_loop_resync(vha); vha 2965 drivers/scsi/qla2xxx/qla_nx.c qla82xx_clear_qsnt_ready(vha); vha 2980 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb026, vha 2997 drivers/scsi/qla2xxx/qla_nx.c qla82xx_wait_for_state_change(scsi_qla_host_t *vha, uint32_t curr_state) vha 2999 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3013 drivers/scsi/qla2xxx/qla_nx.c qla8xxx_dev_failed_handler(scsi_qla_host_t *vha) vha 3015 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3018 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x00b8, vha 3030 drivers/scsi/qla2xxx/qla_nx.c vha->device_flags |= DFLG_DEV_FAILED; vha 3031 drivers/scsi/qla2xxx/qla_nx.c qla2x00_abort_all_cmds(vha, DID_NO_CONNECT << 16); vha 3032 drivers/scsi/qla2xxx/qla_nx.c qla2x00_mark_all_devices_lost(vha, 0); vha 3033 drivers/scsi/qla2xxx/qla_nx.c vha->flags.online = 0; vha 3034 drivers/scsi/qla2xxx/qla_nx.c vha->flags.init_done = 0; vha 3049 drivers/scsi/qla2xxx/qla_nx.c qla82xx_need_reset_handler(scsi_qla_host_t *vha) vha 3054 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3057 drivers/scsi/qla2xxx/qla_nx.c if (vha->flags.online) { vha 3059 drivers/scsi/qla2xxx/qla_nx.c qla2x00_abort_isp_cleanup(vha); vha 3060 drivers/scsi/qla2xxx/qla_nx.c ha->isp_ops->get_flash_version(vha, req->ring); vha 3061 drivers/scsi/qla2xxx/qla_nx.c ha->isp_ops->nvram_config(vha); vha 3067 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb028, vha 3073 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb029, vha 3084 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb02a, vha 3092 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x00b5, vha 3106 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb02b, vha 3111 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x00b6, vha 3119 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x00b7, vha 3124 drivers/scsi/qla2xxx/qla_nx.c if (qla82xx_md_collect(vha)) vha 3125 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb02c, vha 3128 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb04f, vha 3134 drivers/scsi/qla2xxx/qla_nx.c qla82xx_check_md_needed(scsi_qla_host_t *vha) vha 3136 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3144 drivers/scsi/qla2xxx/qla_nx.c rval = qla2x00_get_fw_version(vha); vha 3154 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb02d, vha 3163 drivers/scsi/qla2xxx/qla_nx.c qla82xx_md_free(vha); vha 3165 drivers/scsi/qla2xxx/qla_nx.c qla82xx_md_prep(vha); vha 3168 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb02e, vha 3176 drivers/scsi/qla2xxx/qla_nx.c qla82xx_check_fw_alive(scsi_qla_host_t *vha) vha 3181 drivers/scsi/qla2xxx/qla_nx.c fw_heartbeat_counter = qla82xx_rd_32(vha->hw, vha 3185 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_timer, vha, 0x6003, vha 3190 drivers/scsi/qla2xxx/qla_nx.c if (vha->fw_heartbeat_counter == fw_heartbeat_counter) { vha 3191 drivers/scsi/qla2xxx/qla_nx.c vha->seconds_since_last_heartbeat++; vha 3193 drivers/scsi/qla2xxx/qla_nx.c if (vha->seconds_since_last_heartbeat == 2) { vha 3194 drivers/scsi/qla2xxx/qla_nx.c vha->seconds_since_last_heartbeat = 0; vha 3198 drivers/scsi/qla2xxx/qla_nx.c vha->seconds_since_last_heartbeat = 0; vha 3199 drivers/scsi/qla2xxx/qla_nx.c vha->fw_heartbeat_counter = fw_heartbeat_counter; vha 3201 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_timer, vha, 0x6004, vha 3218 drivers/scsi/qla2xxx/qla_nx.c qla82xx_device_state_handler(scsi_qla_host_t *vha) vha 3224 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3228 drivers/scsi/qla2xxx/qla_nx.c if (!vha->flags.init_done) { vha 3229 drivers/scsi/qla2xxx/qla_nx.c qla82xx_set_drv_active(vha); vha 3230 drivers/scsi/qla2xxx/qla_nx.c qla82xx_set_idc_version(vha); vha 3235 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x009b, vha 3246 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_fatal, vha, 0x009c, vha 3257 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x009d, vha 3269 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_device_bootstrap(vha); vha 3278 drivers/scsi/qla2xxx/qla_nx.c qla82xx_need_reset_handler(vha); vha 3288 drivers/scsi/qla2xxx/qla_nx.c qla82xx_need_qsnt_handler(vha); vha 3309 drivers/scsi/qla2xxx/qla_nx.c qla8xxx_dev_failed_handler(vha); vha 3325 drivers/scsi/qla2xxx/qla_nx.c static int qla82xx_check_temp(scsi_qla_host_t *vha) vha 3328 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3335 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x600e, vha 3341 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x600f, vha 3349 drivers/scsi/qla2xxx/qla_nx.c int qla82xx_read_temperature(scsi_qla_host_t *vha) vha 3353 drivers/scsi/qla2xxx/qla_nx.c temp = qla82xx_rd_32(vha->hw, CRB_TEMP_STATE); vha 3357 drivers/scsi/qla2xxx/qla_nx.c void qla82xx_clear_pending_mbx(scsi_qla_host_t *vha) vha 3359 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3364 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x6010, vha 3371 drivers/scsi/qla2xxx/qla_nx.c void qla82xx_watchdog(scsi_qla_host_t *vha) vha 3374 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3379 drivers/scsi/qla2xxx/qla_nx.c if (qla82xx_check_temp(vha)) { vha 3380 drivers/scsi/qla2xxx/qla_nx.c set_bit(ISP_UNRECOVERABLE, &vha->dpc_flags); vha 3382 drivers/scsi/qla2xxx/qla_nx.c qla82xx_clear_pending_mbx(vha); vha 3384 drivers/scsi/qla2xxx/qla_nx.c !test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags)) { vha 3385 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x6001, vha 3387 drivers/scsi/qla2xxx/qla_nx.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 3389 drivers/scsi/qla2xxx/qla_nx.c !test_bit(ISP_QUIESCE_NEEDED, &vha->dpc_flags)) { vha 3390 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x6002, vha 3392 drivers/scsi/qla2xxx/qla_nx.c set_bit(ISP_QUIESCE_NEEDED, &vha->dpc_flags); vha 3394 drivers/scsi/qla2xxx/qla_nx.c !test_bit(ISP_UNRECOVERABLE, &vha->dpc_flags) && vha 3395 drivers/scsi/qla2xxx/qla_nx.c vha->flags.online == 1) { vha 3396 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb055, vha 3398 drivers/scsi/qla2xxx/qla_nx.c set_bit(ISP_UNRECOVERABLE, &vha->dpc_flags); vha 3400 drivers/scsi/qla2xxx/qla_nx.c qla82xx_clear_pending_mbx(vha); vha 3402 drivers/scsi/qla2xxx/qla_nx.c if (qla82xx_check_fw_alive(vha)) { vha 3403 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_timer, vha, 0x6011, vha 3409 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x6005, vha 3427 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb052, vha 3433 drivers/scsi/qla2xxx/qla_nx.c &vha->dpc_flags); vha 3435 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0x6006, vha 3438 drivers/scsi/qla2xxx/qla_nx.c &vha->dpc_flags); vha 3441 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x6007, "Firmware hung.\n"); vha 3442 drivers/scsi/qla2xxx/qla_nx.c qla82xx_clear_pending_mbx(vha); vha 3448 drivers/scsi/qla2xxx/qla_nx.c int qla82xx_load_risc(scsi_qla_host_t *vha, uint32_t *srisc_addr) vha 3451 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3454 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_device_state_handler(vha); vha 3458 drivers/scsi/qla2xxx/qla_nx.c qla83xx_reset_ownership(vha); vha 3460 drivers/scsi/qla2xxx/qla_nx.c rval = qla8044_device_state_handler(vha); vha 3466 drivers/scsi/qla2xxx/qla_nx.c qla82xx_set_reset_owner(scsi_qla_host_t *vha) vha 3468 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3474 drivers/scsi/qla2xxx/qla_nx.c dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); vha 3477 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb02f, vha 3483 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb030, vha 3486 drivers/scsi/qla2xxx/qla_nx.c qla8044_wr_direct(vha, QLA8044_CRB_DEV_STATE_INDEX, vha 3489 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb031, vha 3506 drivers/scsi/qla2xxx/qla_nx.c qla82xx_abort_isp(scsi_qla_host_t *vha) vha 3509 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3511 drivers/scsi/qla2xxx/qla_nx.c if (vha->device_flags & DFLG_DEV_FAILED) { vha 3512 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x8024, vha 3519 drivers/scsi/qla2xxx/qla_nx.c qla82xx_set_reset_owner(vha); vha 3523 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_device_state_handler(vha); vha 3527 drivers/scsi/qla2xxx/qla_nx.c qla83xx_reset_ownership(vha); vha 3529 drivers/scsi/qla2xxx/qla_nx.c rval = qla8044_device_state_handler(vha); vha 3539 drivers/scsi/qla2xxx/qla_nx.c qla82xx_restart_isp(vha); vha 3543 drivers/scsi/qla2xxx/qla_nx.c vha->flags.online = 1; vha 3544 drivers/scsi/qla2xxx/qla_nx.c if (test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { vha 3546 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x8027, vha 3553 drivers/scsi/qla2xxx/qla_nx.c ha->isp_ops->reset_adapter(vha); vha 3554 drivers/scsi/qla2xxx/qla_nx.c vha->flags.online = 0; vha 3556 drivers/scsi/qla2xxx/qla_nx.c &vha->dpc_flags); vha 3560 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0x8036, vha 3567 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_taskm, vha, 0x8029, vha 3570 drivers/scsi/qla2xxx/qla_nx.c set_bit(ISP_ABORT_RETRY, &vha->dpc_flags); vha 3590 drivers/scsi/qla2xxx/qla_nx.c int qla82xx_fcoe_ctx_reset(scsi_qla_host_t *vha) vha 3594 drivers/scsi/qla2xxx/qla_nx.c if (vha->flags.online) { vha 3596 drivers/scsi/qla2xxx/qla_nx.c qla2x00_abort_isp_cleanup(vha); vha 3602 drivers/scsi/qla2xxx/qla_nx.c qla2x00_try_to_stop_firmware(vha); vha 3605 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_restart_isp(vha); vha 3622 drivers/scsi/qla2xxx/qla_nx.c int qla2x00_wait_for_fcoe_ctx_reset(scsi_qla_host_t *vha) vha 3628 drivers/scsi/qla2xxx/qla_nx.c while ((test_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags) || vha 3629 drivers/scsi/qla2xxx/qla_nx.c test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)) vha 3635 drivers/scsi/qla2xxx/qla_nx.c if (!test_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags) && vha 3636 drivers/scsi/qla2xxx/qla_nx.c !test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)) { vha 3641 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb027, vha 3648 drivers/scsi/qla2xxx/qla_nx.c qla82xx_chip_reset_cleanup(scsi_qla_host_t *vha) vha 3652 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3662 drivers/scsi/qla2xxx/qla_nx.c fw_state = qla82xx_check_fw_alive(vha); vha 3664 drivers/scsi/qla2xxx/qla_nx.c fw_state = qla8044_check_fw_alive(vha); vha 3667 drivers/scsi/qla2xxx/qla_nx.c qla82xx_clear_pending_mbx(vha); vha 3672 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_init, vha, 0x00b0, vha 3697 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, vha 3701 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, vha 3713 drivers/scsi/qla2xxx/qla_nx.c if (qla2x00_eh_wait_for_pending_commands(vha, 0, 0, vha 3715 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_init, vha, 0x00b3, vha 3726 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_control(scsi_qla_host_t *vha, vha 3729 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3843 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_rdocm(scsi_qla_host_t *vha, vha 3846 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3865 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_rdmux(scsi_qla_host_t *vha, vha 3868 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3891 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_rdcrb(scsi_qla_host_t *vha, vha 3894 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3914 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_l2tag(scsi_qla_host_t *vha, vha 3917 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 3951 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb032, vha 3973 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_l1cache(scsi_qla_host_t *vha, vha 3976 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4008 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_queue(scsi_qla_host_t *vha, vha 4011 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4038 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_rdrom(scsi_qla_host_t *vha, vha 4041 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4064 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_rdmem(scsi_qla_host_t *vha, vha 4067 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4080 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb033, vha 4086 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb034, vha 4092 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb035, vha 4133 drivers/scsi/qla2xxx/qla_nx.c qla82xx_validate_template_chksum(scsi_qla_host_t *vha) vha 4135 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4148 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mark_entry_skipped(scsi_qla_host_t *vha, vha 4152 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb036, vha 4160 drivers/scsi/qla2xxx/qla_nx.c qla82xx_md_collect(scsi_qla_host_t *vha) vha 4162 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4174 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb037, vha 4183 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb038, vha 4189 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb054, vha 4196 drivers/scsi/qla2xxx/qla_nx.c if (qla82xx_validate_template_chksum(vha)) { vha 4197 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb039, vha 4203 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb03a, vha 4206 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb03b, vha 4213 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb03c, vha 4220 drivers/scsi/qla2xxx/qla_nx.c tmplt_hdr->driver_info[0] = vha->host_no; vha 4227 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb03d, vha 4232 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb04e, vha 4245 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb03e, vha 4255 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb03f, vha 4263 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb040, vha 4270 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb041, vha 4278 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mark_entry_skipped(vha, entry_hdr, i); vha 4281 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_minidump_process_control(vha, vha 4284 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mark_entry_skipped(vha, entry_hdr, i); vha 4289 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_rdcrb(vha, vha 4293 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_minidump_process_rdmem(vha, vha 4296 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mark_entry_skipped(vha, entry_hdr, i); vha 4302 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_rdrom(vha, vha 4309 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_minidump_process_l2tag(vha, vha 4312 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mark_entry_skipped(vha, entry_hdr, i); vha 4318 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_l1cache(vha, vha 4322 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_rdocm(vha, vha 4326 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_rdmux(vha, vha 4330 drivers/scsi/qla2xxx/qla_nx.c qla82xx_minidump_process_queue(vha, vha 4335 drivers/scsi/qla2xxx/qla_nx.c qla82xx_mark_entry_skipped(vha, entry_hdr, i); vha 4339 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb042, vha 4350 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb043, vha 4357 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb044, vha 4359 drivers/scsi/qla2xxx/qla_nx.c vha->host_no, ha->md_tmplt_hdr, vha->host_no, ha->md_dump); vha 4361 drivers/scsi/qla2xxx/qla_nx.c qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP); vha 4368 drivers/scsi/qla2xxx/qla_nx.c qla82xx_md_alloc(scsi_qla_host_t *vha) vha 4370 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4378 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb045, vha 4389 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb046, vha 4396 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb047, vha 4405 drivers/scsi/qla2xxx/qla_nx.c qla82xx_md_free(scsi_qla_host_t *vha) vha 4407 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4411 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb048, vha 4421 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb049, vha 4431 drivers/scsi/qla2xxx/qla_nx.c qla82xx_md_prep(scsi_qla_host_t *vha) vha 4433 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4437 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_md_get_template_size(vha); vha 4439 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb04a, vha 4445 drivers/scsi/qla2xxx/qla_nx.c rval = qla8044_md_get_template(vha); vha 4447 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_md_get_template(vha); vha 4450 drivers/scsi/qla2xxx/qla_nx.c ql_dbg(ql_dbg_p3p, vha, 0xb04b, vha 4454 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_md_alloc(vha); vha 4456 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb04c, vha 4460 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_info, vha, 0xb04d, vha 4475 drivers/scsi/qla2xxx/qla_nx.c qla82xx_beacon_on(struct scsi_qla_host *vha) vha 4479 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4482 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_mbx_beacon_ctl(vha, 1); vha 4485 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb050, vha 4496 drivers/scsi/qla2xxx/qla_nx.c qla82xx_beacon_off(struct scsi_qla_host *vha) vha 4500 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4503 drivers/scsi/qla2xxx/qla_nx.c rval = qla82xx_mbx_beacon_ctl(vha, 0); vha 4506 drivers/scsi/qla2xxx/qla_nx.c ql_log(ql_log_warn, vha, 0xb051, vha 4517 drivers/scsi/qla2xxx/qla_nx.c qla82xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) vha 4519 drivers/scsi/qla2xxx/qla_nx.c struct qla_hw_data *ha = vha->hw; vha 4524 drivers/scsi/qla2xxx/qla_nx.c scsi_block_requests(vha->host); vha 4527 drivers/scsi/qla2xxx/qla_nx.c qla82xx_set_reset_owner(vha); vha 4529 drivers/scsi/qla2xxx/qla_nx.c qla2x00_wait_for_chip_reset(vha); vha 4530 drivers/scsi/qla2xxx/qla_nx.c scsi_unblock_requests(vha->host); vha 47 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_direct(struct scsi_qla_host *vha, vha 50 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 59 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(struct scsi_qla_host *vha, vha 63 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 70 drivers/scsi/qla2xxx/qla_nx2.c qla8044_set_win_base(scsi_qla_host_t *vha, uint32_t addr) vha 74 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 80 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb087, vha 90 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(scsi_qla_host_t *vha, uint32_t addr, uint32_t *data) vha 93 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 95 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_set_win_base(vha, addr); vha 99 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb088, vha 105 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(scsi_qla_host_t *vha, uint32_t addr, uint32_t data) vha 108 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 110 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_set_win_base(vha, addr); vha 114 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb089, vha 129 drivers/scsi/qla2xxx/qla_nx2.c qla8044_read_write_crb_reg(struct scsi_qla_host *vha, vha 134 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, raddr, &value); vha 135 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, waddr, value); vha 139 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_wait_for_ready(struct scsi_qla_host *vha, uint32_t addr1, vha 148 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr1, &temp); vha 152 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb151, vha 162 drivers/scsi/qla2xxx/qla_nx2.c qla8044_ipmdio_rd_reg(struct scsi_qla_host *vha, vha 168 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_poll_wait_for_ready(vha, addr1, mask); vha 173 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr1, temp); vha 175 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_poll_wait_for_ready(vha, addr1, mask); vha 179 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr3, &ret); vha 186 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_wait_ipmdio_bus_idle(struct scsi_qla_host *vha, vha 195 drivers/scsi/qla2xxx/qla_nx2.c temp = qla8044_ipmdio_rd_reg(vha, addr1, addr3, mask, addr2); vha 199 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb152, vha 209 drivers/scsi/qla2xxx/qla_nx2.c qla8044_ipmdio_wr_reg(struct scsi_qla_host *vha, uint32_t addr1, vha 214 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_poll_wait_for_ready(vha, addr1, mask); vha 218 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr3, value); vha 219 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr1, addr); vha 221 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_poll_wait_for_ready(vha, addr1, mask); vha 238 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rmw_crb_reg(struct scsi_qla_host *vha, vha 244 drivers/scsi/qla2xxx/qla_nx2.c value = vha->reset_tmplt.array[p_rmw_hdr->index_a]; vha 246 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, raddr, &value); vha 252 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, waddr, value); vha 257 drivers/scsi/qla2xxx/qla_nx2.c qla8044_set_qsnt_ready(struct scsi_qla_host *vha) vha 260 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 262 drivers/scsi/qla2xxx/qla_nx2.c qsnt_state = qla8044_rd_direct(vha, QLA8044_CRB_DRV_STATE_INDEX); vha 264 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DRV_STATE_INDEX, qsnt_state); vha 265 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb08e, "%s(%ld): qsnt_state: 0x%08x\n", vha 266 drivers/scsi/qla2xxx/qla_nx2.c __func__, vha->host_no, qsnt_state); vha 270 drivers/scsi/qla2xxx/qla_nx2.c qla8044_clear_qsnt_ready(struct scsi_qla_host *vha) vha 273 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 275 drivers/scsi/qla2xxx/qla_nx2.c qsnt_state = qla8044_rd_direct(vha, QLA8044_CRB_DRV_STATE_INDEX); vha 277 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DRV_STATE_INDEX, qsnt_state); vha 278 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb08f, "%s(%ld): qsnt_state: 0x%08x\n", vha 279 drivers/scsi/qla2xxx/qla_nx2.c __func__, vha->host_no, qsnt_state); vha 308 drivers/scsi/qla2xxx/qla_nx2.c qla8044_lock_recovery(struct scsi_qla_host *vha) vha 311 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 331 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb08B, "%s:%d: IDC Lock recovery initiated\n" vha 362 drivers/scsi/qla2xxx/qla_nx2.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 385 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb114, vha 395 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb115, vha 402 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_lock_recovery(vha) == QLA_SUCCESS) { vha 405 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb116, vha 414 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb08a, vha 430 drivers/scsi/qla2xxx/qla_nx2.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 435 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb118, vha 448 drivers/scsi/qla2xxx/qla_nx2.c qla8044_flash_lock(scsi_qla_host_t *vha) vha 454 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 464 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb113, vha 477 drivers/scsi/qla2xxx/qla_nx2.c qla8044_flash_unlock(scsi_qla_host_t *vha) vha 479 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 488 drivers/scsi/qla2xxx/qla_nx2.c void qla8044_flash_lock_recovery(struct scsi_qla_host *vha) vha 491 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_flash_lock(vha)) { vha 493 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb120, "Resetting flash_lock\n"); vha 501 drivers/scsi/qla2xxx/qla_nx2.c qla8044_flash_unlock(vha); vha 508 drivers/scsi/qla2xxx/qla_nx2.c qla8044_read_flash_data(scsi_qla_host_t *vha, uint8_t *p_data, vha 514 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_flash_lock(vha) != QLA_SUCCESS) { vha 520 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb117, vha 527 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_wr_reg_indirect(vha, QLA8044_FLASH_DIRECT_WINDOW, vha 529 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb119, vha 537 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, vha 541 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb08c, vha 553 drivers/scsi/qla2xxx/qla_nx2.c qla8044_flash_unlock(vha); vha 563 drivers/scsi/qla2xxx/qla_nx2.c qla8044_read_optrom_data(struct scsi_qla_host *vha, void *buf, vha 566 drivers/scsi/qla2xxx/qla_nx2.c scsi_block_requests(vha->host); vha 567 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_read_flash_data(vha, buf, offset, length / 4) vha 569 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb08d, vha 573 drivers/scsi/qla2xxx/qla_nx2.c scsi_unblock_requests(vha->host); vha 578 drivers/scsi/qla2xxx/qla_nx2.c qla8044_need_reset(struct scsi_qla_host *vha) vha 582 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 584 drivers/scsi/qla2xxx/qla_nx2.c drv_active = qla8044_rd_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX); vha 585 drivers/scsi/qla2xxx/qla_nx2.c drv_state = qla8044_rd_direct(vha, QLA8044_CRB_DRV_STATE_INDEX); vha 604 drivers/scsi/qla2xxx/qla_nx2.c qla8044_write_list(struct scsi_qla_host *vha, vha 614 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, p_entry->arg1, p_entry->arg2); vha 630 drivers/scsi/qla2xxx/qla_nx2.c qla8044_read_write_list(struct scsi_qla_host *vha, vha 640 drivers/scsi/qla2xxx/qla_nx2.c qla8044_read_write_crb_reg(vha, p_entry->arg1, vha 660 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_reg(struct scsi_qla_host *vha, uint32_t addr, vha 668 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, addr, &value); vha 681 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, addr, &value); vha 694 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.seq_error++; vha 695 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb090, vha 713 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_list(struct scsi_qla_host *vha, vha 735 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_reg(vha, p_entry->arg1, vha 740 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_poll_reg(vha, vha 749 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, vha 751 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, vha 769 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_write_list(struct scsi_qla_host *vha, vha 786 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, vha 788 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, vha 791 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_poll_reg(vha, vha 795 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb091, vha 798 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb092, vha 800 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.seq_index); vha 816 drivers/scsi/qla2xxx/qla_nx2.c qla8044_read_modify_write(struct scsi_qla_host *vha, vha 830 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rmw_crb_reg(vha, p_entry->arg1, vha 846 drivers/scsi/qla2xxx/qla_nx2.c void qla8044_pause(struct scsi_qla_host *vha, vha 861 drivers/scsi/qla2xxx/qla_nx2.c qla8044_template_end(struct scsi_qla_host *vha, vha 864 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.template_end = 1; vha 866 drivers/scsi/qla2xxx/qla_nx2.c if (vha->reset_tmplt.seq_error == 0) { vha 867 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb093, vha 870 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb094, vha 886 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_read_list(struct scsi_qla_host *vha, vha 905 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, p_entry->ar_addr, vha 908 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_poll_reg(vha, p_entry->ar_addr, delay, vha 910 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb095, vha 913 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb096, vha 916 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.seq_index); vha 918 drivers/scsi/qla2xxx/qla_nx2.c index = vha->reset_tmplt.array_index; vha 919 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, vha 921 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.array[index++] = value; vha 923 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.array_index = 1; vha 941 drivers/scsi/qla2xxx/qla_nx2.c qla8044_process_reset_template(struct scsi_qla_host *vha, vha 948 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.seq_end = 0; vha 949 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.template_end = 0; vha 950 drivers/scsi/qla2xxx/qla_nx2.c entries = vha->reset_tmplt.hdr->entries; vha 951 drivers/scsi/qla2xxx/qla_nx2.c index = vha->reset_tmplt.seq_index; vha 953 drivers/scsi/qla2xxx/qla_nx2.c for (; (!vha->reset_tmplt.seq_end) && (index < entries); index++) { vha 959 drivers/scsi/qla2xxx/qla_nx2.c qla8044_write_list(vha, p_hdr); vha 962 drivers/scsi/qla2xxx/qla_nx2.c qla8044_read_write_list(vha, p_hdr); vha 965 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_list(vha, p_hdr); vha 968 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_write_list(vha, p_hdr); vha 971 drivers/scsi/qla2xxx/qla_nx2.c qla8044_read_modify_write(vha, p_hdr); vha 974 drivers/scsi/qla2xxx/qla_nx2.c qla8044_pause(vha, p_hdr); vha 977 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.seq_end = 1; vha 980 drivers/scsi/qla2xxx/qla_nx2.c qla8044_template_end(vha, p_hdr); vha 983 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_read_list(vha, p_hdr); vha 986 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb097, vha 996 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.seq_index = index; vha 1000 drivers/scsi/qla2xxx/qla_nx2.c qla8044_process_init_seq(struct scsi_qla_host *vha) vha 1002 drivers/scsi/qla2xxx/qla_nx2.c qla8044_process_reset_template(vha, vha 1003 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.init_offset); vha 1004 drivers/scsi/qla2xxx/qla_nx2.c if (vha->reset_tmplt.seq_end != 1) vha 1005 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb098, vha 1011 drivers/scsi/qla2xxx/qla_nx2.c qla8044_process_stop_seq(struct scsi_qla_host *vha) vha 1013 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.seq_index = 0; vha 1014 drivers/scsi/qla2xxx/qla_nx2.c qla8044_process_reset_template(vha, vha->reset_tmplt.stop_offset); vha 1015 drivers/scsi/qla2xxx/qla_nx2.c if (vha->reset_tmplt.seq_end != 1) vha 1016 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb099, vha 1021 drivers/scsi/qla2xxx/qla_nx2.c qla8044_process_start_seq(struct scsi_qla_host *vha) vha 1023 drivers/scsi/qla2xxx/qla_nx2.c qla8044_process_reset_template(vha, vha->reset_tmplt.start_offset); vha 1024 drivers/scsi/qla2xxx/qla_nx2.c if (vha->reset_tmplt.template_end != 1) vha 1025 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb09a, vha 1031 drivers/scsi/qla2xxx/qla_nx2.c qla8044_lockless_flash_read_u32(struct scsi_qla_host *vha, vha 1043 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb09b, "%s: Illegal addr = 0x%x\n", vha 1049 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, vha 1053 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb09c, vha 1064 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, vha 1067 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb09d, vha 1078 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, vha 1081 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb09f, vha 1093 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, vha 1096 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0a0, vha 1122 drivers/scsi/qla2xxx/qla_nx2.c qla8044_ms_mem_write_128b(struct scsi_qla_host *vha, vha 1128 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1138 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, MD_MIU_TEST_AGT_ADDR_HI, 0); vha 1140 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0a1, vha 1154 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, vha 1158 drivers/scsi/qla2xxx/qla_nx2.c ret_val += qla8044_wr_reg_indirect(vha, vha 1160 drivers/scsi/qla2xxx/qla_nx2.c ret_val += qla8044_wr_reg_indirect(vha, vha 1162 drivers/scsi/qla2xxx/qla_nx2.c ret_val += qla8044_wr_reg_indirect(vha, vha 1164 drivers/scsi/qla2xxx/qla_nx2.c ret_val += qla8044_wr_reg_indirect(vha, vha 1167 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0a2, vha 1174 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, MD_MIU_TEST_AGT_CTRL, vha 1176 drivers/scsi/qla2xxx/qla_nx2.c ret_val += qla8044_wr_reg_indirect(vha, MD_MIU_TEST_AGT_CTRL, vha 1179 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0a3, vha 1185 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, vha 1188 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0a4, vha 1199 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0a5, vha 1215 drivers/scsi/qla2xxx/qla_nx2.c qla8044_copy_bootloader(struct scsi_qla_host *vha) vha 1221 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1236 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0a6, vha 1243 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_lockless_flash_read_u32(vha, src, vha 1246 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0a7, vha 1250 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0a8, "%s: Read F/W from flash!\n", vha 1254 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_ms_mem_write_128b(vha, dest, vha 1257 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0a9, vha 1261 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0aa, vha 1273 drivers/scsi/qla2xxx/qla_nx2.c qla8044_restart(struct scsi_qla_host *vha) vha 1276 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1278 drivers/scsi/qla2xxx/qla_nx2.c qla8044_process_stop_seq(vha); vha 1282 drivers/scsi/qla2xxx/qla_nx2.c qla8044_get_minidump(vha); vha 1284 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb14c, vha 1287 drivers/scsi/qla2xxx/qla_nx2.c qla8044_process_init_seq(vha); vha 1289 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_copy_bootloader(vha)) { vha 1290 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0ab, vha 1302 drivers/scsi/qla2xxx/qla_nx2.c qla8044_process_start_seq(vha); vha 1317 drivers/scsi/qla2xxx/qla_nx2.c qla8044_check_cmd_peg_status(struct scsi_qla_host *vha) vha 1321 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1326 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0ac, vha 1339 drivers/scsi/qla2xxx/qla_nx2.c qla8044_start_firmware(struct scsi_qla_host *vha) vha 1343 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_restart(vha)) { vha 1344 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0ad, vha 1350 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0af, vha 1353 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_check_cmd_peg_status(vha); vha 1355 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0b0, vha 1368 drivers/scsi/qla2xxx/qla_nx2.c struct scsi_qla_host *vha = pci_get_drvdata(ha->pdev); vha 1370 drivers/scsi/qla2xxx/qla_nx2.c drv_active = qla8044_rd_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX); vha 1373 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0b1, vha 1375 drivers/scsi/qla2xxx/qla_nx2.c __func__, vha->host_no, drv_active); vha 1377 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX, drv_active); vha 1387 drivers/scsi/qla2xxx/qla_nx2.c qla8044_device_bootstrap(struct scsi_qla_host *vha) vha 1394 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1396 drivers/scsi/qla2xxx/qla_nx2.c need_reset = qla8044_need_reset(vha); vha 1399 drivers/scsi/qla2xxx/qla_nx2.c old_count = qla8044_rd_direct(vha, vha 1405 drivers/scsi/qla2xxx/qla_nx2.c count = qla8044_rd_direct(vha, vha 1412 drivers/scsi/qla2xxx/qla_nx2.c qla8044_flash_lock_recovery(vha); vha 1416 drivers/scsi/qla2xxx/qla_nx2.c qla8044_flash_lock_recovery(vha); vha 1420 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0b2, vha 1422 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DEV_STATE_INDEX, vha 1426 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_start_firmware(vha); vha 1430 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0b3, vha 1433 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DEV_STATE_INDEX, vha 1448 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0b4, vha 1450 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DEV_STATE_INDEX, QLA8XXX_DEV_READY); vha 1457 drivers/scsi/qla2xxx/qla_nx2.c qla8044_dump_reset_seq_hdr(struct scsi_qla_host *vha) vha 1461 drivers/scsi/qla2xxx/qla_nx2.c if (!vha->reset_tmplt.buff) { vha 1462 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0b5, vha 1467 drivers/scsi/qla2xxx/qla_nx2.c phdr = vha->reset_tmplt.buff; vha 1468 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0b6, vha 1486 drivers/scsi/qla2xxx/qla_nx2.c qla8044_reset_seq_checksum_test(struct scsi_qla_host *vha) vha 1489 drivers/scsi/qla2xxx/qla_nx2.c uint16_t *buff = (uint16_t *)vha->reset_tmplt.buff; vha 1490 drivers/scsi/qla2xxx/qla_nx2.c int u16_count = vha->reset_tmplt.hdr->size / sizeof(uint16_t); vha 1502 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0b7, vha 1515 drivers/scsi/qla2xxx/qla_nx2.c qla8044_read_reset_template(struct scsi_qla_host *vha) vha 1520 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.seq_error = 0; vha 1521 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.buff = vmalloc(QLA8044_RESTART_TEMPLATE_SIZE); vha 1522 drivers/scsi/qla2xxx/qla_nx2.c if (vha->reset_tmplt.buff == NULL) { vha 1523 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0b8, vha 1529 drivers/scsi/qla2xxx/qla_nx2.c p_buff = vha->reset_tmplt.buff; vha 1535 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0b9, vha 1540 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_read_flash_data(vha, p_buff, addr, tmplt_hdr_def_size)) { vha 1541 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0ba, vha 1546 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.hdr = vha 1547 drivers/scsi/qla2xxx/qla_nx2.c (struct qla8044_reset_template_hdr *) vha->reset_tmplt.buff; vha 1550 drivers/scsi/qla2xxx/qla_nx2.c tmplt_hdr_size = vha->reset_tmplt.hdr->hdr_size/sizeof(uint32_t); vha 1552 drivers/scsi/qla2xxx/qla_nx2.c (vha->reset_tmplt.hdr->signature != RESET_TMPLT_HDR_SIGNATURE)) { vha 1553 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0bb, vha 1560 drivers/scsi/qla2xxx/qla_nx2.c addr = QLA8044_RESET_TEMPLATE_ADDR + vha->reset_tmplt.hdr->hdr_size; vha 1561 drivers/scsi/qla2xxx/qla_nx2.c p_buff = vha->reset_tmplt.buff + vha->reset_tmplt.hdr->hdr_size; vha 1562 drivers/scsi/qla2xxx/qla_nx2.c tmplt_hdr_def_size = (vha->reset_tmplt.hdr->size - vha 1563 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.hdr->hdr_size)/sizeof(uint32_t); vha 1565 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0bc, vha 1567 drivers/scsi/qla2xxx/qla_nx2.c __func__, vha->reset_tmplt.hdr->size); vha 1570 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_read_flash_data(vha, p_buff, addr, tmplt_hdr_def_size)) { vha 1571 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0bd, vha 1577 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_reset_seq_checksum_test(vha)) { vha 1578 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0be, vha 1583 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0bf, vha 1588 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.init_offset = vha->reset_tmplt.buff + vha 1589 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.hdr->init_seq_offset; vha 1591 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.start_offset = vha->reset_tmplt.buff + vha 1592 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.hdr->start_seq_offset; vha 1594 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.stop_offset = vha->reset_tmplt.buff + vha 1595 drivers/scsi/qla2xxx/qla_nx2.c vha->reset_tmplt.hdr->hdr_size; vha 1597 drivers/scsi/qla2xxx/qla_nx2.c qla8044_dump_reset_seq_hdr(vha); vha 1602 drivers/scsi/qla2xxx/qla_nx2.c vfree(vha->reset_tmplt.buff); vha 1609 drivers/scsi/qla2xxx/qla_nx2.c qla8044_set_idc_dontreset(struct scsi_qla_host *vha) vha 1612 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1616 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0c0, vha 1622 drivers/scsi/qla2xxx/qla_nx2.c qla8044_set_rst_ready(struct scsi_qla_host *vha) vha 1625 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1627 drivers/scsi/qla2xxx/qla_nx2.c drv_state = qla8044_rd_direct(vha, QLA8044_CRB_DRV_STATE_INDEX); vha 1633 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0c1, vha 1635 drivers/scsi/qla2xxx/qla_nx2.c __func__, vha->host_no, drv_state); vha 1636 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DRV_STATE_INDEX, drv_state); vha 1646 drivers/scsi/qla2xxx/qla_nx2.c qla8044_need_reset_handler(struct scsi_qla_host *vha) vha 1650 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1652 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0c2, vha 1655 drivers/scsi/qla2xxx/qla_nx2.c if (vha->flags.online) { vha 1657 drivers/scsi/qla2xxx/qla_nx2.c qla2x00_abort_isp_cleanup(vha); vha 1658 drivers/scsi/qla2xxx/qla_nx2.c ha->isp_ops->get_flash_version(vha, vha->req->ring); vha 1659 drivers/scsi/qla2xxx/qla_nx2.c ha->isp_ops->nvram_config(vha); vha 1663 drivers/scsi/qla2xxx/qla_nx2.c dev_state = qla8044_rd_direct(vha, vha 1665 drivers/scsi/qla2xxx/qla_nx2.c drv_state = qla8044_rd_direct(vha, vha 1667 drivers/scsi/qla2xxx/qla_nx2.c drv_active = qla8044_rd_direct(vha, vha 1670 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0c5, vha 1672 drivers/scsi/qla2xxx/qla_nx2.c __func__, vha->host_no, drv_state, drv_active, dev_state); vha 1674 drivers/scsi/qla2xxx/qla_nx2.c qla8044_set_rst_ready(vha); vha 1681 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0c4, vha 1691 drivers/scsi/qla2xxx/qla_nx2.c dev_state = qla8044_rd_direct(vha, vha 1693 drivers/scsi/qla2xxx/qla_nx2.c drv_state = qla8044_rd_direct(vha, vha 1695 drivers/scsi/qla2xxx/qla_nx2.c drv_active = qla8044_rd_direct(vha, vha 1702 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0c7, vha 1704 drivers/scsi/qla2xxx/qla_nx2.c __func__, vha->host_no, ha->portnum, vha 1707 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX, vha 1717 drivers/scsi/qla2xxx/qla_nx2.c qla8044_device_bootstrap(vha); vha 1735 drivers/scsi/qla2xxx/qla_nx2.c qla8044_device_bootstrap(vha); vha 1740 drivers/scsi/qla2xxx/qla_nx2.c qla8044_set_drv_active(struct scsi_qla_host *vha) vha 1743 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1745 drivers/scsi/qla2xxx/qla_nx2.c drv_active = qla8044_rd_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX); vha 1751 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0c8, vha 1753 drivers/scsi/qla2xxx/qla_nx2.c __func__, vha->host_no, drv_active); vha 1754 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX, drv_active); vha 1758 drivers/scsi/qla2xxx/qla_nx2.c qla8044_check_drv_active(struct scsi_qla_host *vha) vha 1761 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1763 drivers/scsi/qla2xxx/qla_nx2.c drv_active = qla8044_rd_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX); vha 1771 drivers/scsi/qla2xxx/qla_nx2.c qla8044_clear_idc_dontreset(struct scsi_qla_host *vha) vha 1774 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1778 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0c9, vha 1785 drivers/scsi/qla2xxx/qla_nx2.c qla8044_set_idc_ver(struct scsi_qla_host *vha) vha 1790 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1792 drivers/scsi/qla2xxx/qla_nx2.c drv_active = qla8044_rd_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX); vha 1794 drivers/scsi/qla2xxx/qla_nx2.c idc_ver = qla8044_rd_direct(vha, vha 1798 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DRV_IDC_VERSION_INDEX, vha 1800 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0ca, vha 1804 drivers/scsi/qla2xxx/qla_nx2.c idc_ver = qla8044_rd_direct(vha, vha 1808 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0cb, vha 1830 drivers/scsi/qla2xxx/qla_nx2.c qla8044_update_idc_reg(struct scsi_qla_host *vha) vha 1834 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1836 drivers/scsi/qla2xxx/qla_nx2.c if (vha->flags.init_done) vha 1840 drivers/scsi/qla2xxx/qla_nx2.c qla8044_set_drv_active(vha); vha 1842 drivers/scsi/qla2xxx/qla_nx2.c drv_active = qla8044_rd_direct(vha, vha 1848 drivers/scsi/qla2xxx/qla_nx2.c qla8044_clear_idc_dontreset(vha); vha 1850 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_set_idc_ver(vha); vha 1864 drivers/scsi/qla2xxx/qla_nx2.c qla8044_need_qsnt_handler(struct scsi_qla_host *vha) vha 1868 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1870 drivers/scsi/qla2xxx/qla_nx2.c if (vha->flags.online) vha 1871 drivers/scsi/qla2xxx/qla_nx2.c qla2x00_quiesce_io(vha); vha 1875 drivers/scsi/qla2xxx/qla_nx2.c qla8044_set_qsnt_ready(vha); vha 1879 drivers/scsi/qla2xxx/qla_nx2.c drv_state = qla8044_rd_direct(vha, QLA8044_CRB_DRV_STATE_INDEX); vha 1880 drivers/scsi/qla2xxx/qla_nx2.c drv_active = qla8044_rd_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX); vha 1891 drivers/scsi/qla2xxx/qla_nx2.c clear_bit(ISP_QUIESCE_NEEDED, &vha->dpc_flags); vha 1892 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DEV_STATE_INDEX, vha 1894 drivers/scsi/qla2xxx/qla_nx2.c qla8044_clear_qsnt_ready(vha); vha 1895 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0cc, vha 1903 drivers/scsi/qla2xxx/qla_nx2.c drv_state = qla8044_rd_direct(vha, vha 1905 drivers/scsi/qla2xxx/qla_nx2.c drv_active = qla8044_rd_direct(vha, vha 1911 drivers/scsi/qla2xxx/qla_nx2.c dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); vha 1914 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DEV_STATE_INDEX, vha 1916 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0cd, vha 1928 drivers/scsi/qla2xxx/qla_nx2.c qla8044_device_state_handler(struct scsi_qla_host *vha) vha 1933 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 1935 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_update_idc_reg(vha); vha 1939 drivers/scsi/qla2xxx/qla_nx2.c dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); vha 1940 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0ce, vha 1952 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_check_drv_active(vha) == QLA_SUCCESS) { vha 1953 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb0cf, vha 1958 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, vha 1964 drivers/scsi/qla2xxx/qla_nx2.c dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); vha 1965 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0d0, vha 1976 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_device_bootstrap(vha); vha 1987 drivers/scsi/qla2xxx/qla_nx2.c qla8044_need_reset_handler(vha); vha 1991 drivers/scsi/qla2xxx/qla_nx2.c qla8044_need_qsnt_handler(vha); vha 1998 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0d1, vha 2012 drivers/scsi/qla2xxx/qla_nx2.c qla8xxx_dev_failed_handler(vha); vha 2018 drivers/scsi/qla2xxx/qla_nx2.c qla8xxx_dev_failed_handler(vha); vha 2038 drivers/scsi/qla2xxx/qla_nx2.c qla8044_check_temp(struct scsi_qla_host *vha) vha 2043 drivers/scsi/qla2xxx/qla_nx2.c temp = qla8044_rd_direct(vha, QLA8044_CRB_TEMP_STATE_INDEX); vha 2048 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb0d2, vha 2055 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb0d3, vha 2063 drivers/scsi/qla2xxx/qla_nx2.c int qla8044_read_temperature(scsi_qla_host_t *vha) vha 2067 drivers/scsi/qla2xxx/qla_nx2.c temp = qla8044_rd_direct(vha, QLA8044_CRB_TEMP_STATE_INDEX); vha 2078 drivers/scsi/qla2xxx/qla_nx2.c qla8044_check_fw_alive(struct scsi_qla_host *vha) vha 2084 drivers/scsi/qla2xxx/qla_nx2.c fw_heartbeat_counter = qla8044_rd_direct(vha, vha 2089 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0d4, vha 2092 drivers/scsi/qla2xxx/qla_nx2.c vha->host_no, __func__); vha 2096 drivers/scsi/qla2xxx/qla_nx2.c if (vha->fw_heartbeat_counter == fw_heartbeat_counter) { vha 2097 drivers/scsi/qla2xxx/qla_nx2.c vha->seconds_since_last_heartbeat++; vha 2099 drivers/scsi/qla2xxx/qla_nx2.c if (vha->seconds_since_last_heartbeat == 2) { vha 2100 drivers/scsi/qla2xxx/qla_nx2.c vha->seconds_since_last_heartbeat = 0; vha 2101 drivers/scsi/qla2xxx/qla_nx2.c halt_status1 = qla8044_rd_direct(vha, vha 2103 drivers/scsi/qla2xxx/qla_nx2.c halt_status2 = qla8044_rd_direct(vha, vha 2106 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0d5, vha 2111 drivers/scsi/qla2xxx/qla_nx2.c vha->host_no, __func__, halt_status1, vha 2116 drivers/scsi/qla2xxx/qla_nx2.c vha->seconds_since_last_heartbeat = 0; vha 2118 drivers/scsi/qla2xxx/qla_nx2.c vha->fw_heartbeat_counter = fw_heartbeat_counter; vha 2123 drivers/scsi/qla2xxx/qla_nx2.c qla8044_watchdog(struct scsi_qla_host *vha) vha 2127 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 2130 drivers/scsi/qla2xxx/qla_nx2.c if (!(test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) || vha 2131 drivers/scsi/qla2xxx/qla_nx2.c test_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags))) { vha 2132 drivers/scsi/qla2xxx/qla_nx2.c dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); vha 2134 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_check_fw_alive(vha)) { vha 2136 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb10a, vha 2138 drivers/scsi/qla2xxx/qla_nx2.c qla82xx_clear_pending_mbx(vha); vha 2141 drivers/scsi/qla2xxx/qla_nx2.c if (qla8044_check_temp(vha)) { vha 2142 drivers/scsi/qla2xxx/qla_nx2.c set_bit(ISP_UNRECOVERABLE, &vha->dpc_flags); vha 2144 drivers/scsi/qla2xxx/qla_nx2.c qla2xxx_wake_dpc(vha); vha 2146 drivers/scsi/qla2xxx/qla_nx2.c !test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags)) { vha 2147 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0d6, vha 2150 drivers/scsi/qla2xxx/qla_nx2.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2151 drivers/scsi/qla2xxx/qla_nx2.c qla2xxx_wake_dpc(vha); vha 2153 drivers/scsi/qla2xxx/qla_nx2.c !test_bit(ISP_QUIESCE_NEEDED, &vha->dpc_flags)) { vha 2154 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0d7, vha 2157 drivers/scsi/qla2xxx/qla_nx2.c set_bit(ISP_QUIESCE_NEEDED, &vha->dpc_flags); vha 2158 drivers/scsi/qla2xxx/qla_nx2.c qla2xxx_wake_dpc(vha); vha 2162 drivers/scsi/qla2xxx/qla_nx2.c halt_status = qla8044_rd_direct(vha, vha 2166 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, vha 2181 drivers/scsi/qla2xxx/qla_nx2.c &vha->dpc_flags); vha 2186 drivers/scsi/qla2xxx/qla_nx2.c &vha->dpc_flags); vha 2187 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0d9, vha 2191 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, vha 2196 drivers/scsi/qla2xxx/qla_nx2.c &vha->dpc_flags); vha 2199 drivers/scsi/qla2xxx/qla_nx2.c qla2xxx_wake_dpc(vha); vha 2207 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_control(struct scsi_qla_host *vha, vha 2216 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 2218 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0dd, "Entering fn: %s\n", __func__); vha 2228 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, crb_addr, vha 2234 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, crb_addr, &read_value); vha 2235 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, crb_addr, read_value); vha 2240 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, crb_addr, &read_value); vha 2247 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, crb_addr, read_value); vha 2250 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, crb_addr, &read_value); vha 2252 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, crb_addr, read_value); vha 2258 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, crb_addr, &read_value); vha 2269 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, vha 2284 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr, &read_value); vha 2306 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr, read_value); vha 2328 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdcrb(struct scsi_qla_host *vha, vha 2335 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0de, "Entering fn: %s\n", __func__); vha 2342 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, r_addr, &r_value); vha 2351 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdmem(struct scsi_qla_host *vha, vha 2359 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 2361 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0df, "Entering fn: %s\n", __func__); vha 2366 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0f0, vha 2371 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0f1, vha 2378 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0f2, vha 2384 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0f3, vha 2390 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, MD_MIU_TEST_AGT_ADDR_LO, r_addr); vha 2392 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, MD_MIU_TEST_AGT_ADDR_HI, r_value); vha 2394 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, MD_MIU_TEST_AGT_CTRL, r_value); vha 2396 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, MD_MIU_TEST_AGT_CTRL, r_value); vha 2399 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, MD_MIU_TEST_AGT_CTRL, vha 2411 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, MD_MIU_TEST_AGT_RDDATA[j], vha 2420 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0f4, vha 2430 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdrom(struct scsi_qla_host *vha, vha 2441 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0f5, "[%s]: fl_addr: 0x%x, count: 0x%x\n", vha 2444 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_lockless_flash_read_u32(vha, fl_addr, vha 2448 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0f6, vha 2459 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(struct scsi_qla_host *vha, vha 2464 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb0f7, vha 2466 drivers/scsi/qla2xxx/qla_nx2.c vha->host_no, index, entry_hdr->entry_type, vha 2471 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_l2tag(struct scsi_qla_host *vha, vha 2483 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0f8, "Entering fn: %s\n", __func__); vha 2498 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, t_r_addr, t_value); vha 2500 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, c_addr, c_value_w); vha 2505 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, c_addr, vha 2518 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr, &r_value); vha 2529 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_l1cache(struct scsi_qla_host *vha, vha 2549 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, t_r_addr, t_value); vha 2550 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, c_addr, c_value_w); vha 2553 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr, &r_value); vha 2563 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdocm(struct scsi_qla_host *vha, vha 2569 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 2571 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0f9, "Entering fn: %s\n", __func__); vha 2578 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0fa, vha 2587 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0fb, "Leaving fn: %s datacount: 0x%lx\n", vha 2594 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdmux(struct scsi_qla_host *vha, vha 2602 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0fc, "Entering fn: %s\n", __func__); vha 2612 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, s_addr, s_value); vha 2613 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, r_addr, &r_value); vha 2622 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_queue(struct scsi_qla_host *vha, vha 2632 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb0fd, "Entering fn: %s\n", __func__); vha 2640 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, s_addr, qid); vha 2643 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, r_addr, &r_value); vha 2654 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_pollrd(struct scsi_qla_host *vha, vha 2673 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, s_addr, s_value); vha 2676 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, s_addr, &r_value); vha 2682 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0fe, vha 2688 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, r_addr, &r_value); vha 2702 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdmux2(struct scsi_qla_host *vha, vha 2719 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, sel_addr1, sel_val1); vha 2723 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, sel_addr2, t_sel_val); vha 2724 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, read_addr, &data); vha 2728 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, sel_addr1, sel_val2); vha 2732 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, sel_addr2, t_sel_val); vha 2733 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, read_addr, &data); vha 2745 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_pollrdmwr(struct scsi_qla_host *vha, vha 2761 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr_1, value_1); vha 2765 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr_1, &r_value); vha 2772 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0ff, vha 2779 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr_2, &data); vha 2781 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr_2, data); vha 2782 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr_1, value_2); vha 2786 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr_1, &r_value); vha 2793 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb100, vha 2822 drivers/scsi/qla2xxx/qla_nx2.c qla8044_check_dma_engine_state(struct scsi_qla_host *vha) vha 2824 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 2837 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_rd_reg_indirect(vha, vha 2851 drivers/scsi/qla2xxx/qla_nx2.c qla8044_start_pex_dma(struct scsi_qla_host *vha, vha 2854 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 2866 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_wr_reg_indirect(vha, vha 2872 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_wr_reg_indirect(vha, vha 2877 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_wr_reg_indirect(vha, vha 2885 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_rd_reg_indirect(vha, vha 2908 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_pex_dma_read(struct scsi_qla_host *vha, vha 2911 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 2920 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_check_dma_engine_state(vha); vha 2922 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb147, vha 2932 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb148, vha 2967 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_ms_mem_write_128b(vha, vha 2971 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb14a, vha 2976 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb14b, vha 2981 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_start_pex_dma(vha, m_hdr); vha 3001 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rddfe(struct scsi_qla_host *vha, vha 3028 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr1, (0x40000000 | value)); vha 3032 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr1, &temp); vha 3039 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb153, vha 3043 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr2, &temp); vha 3048 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr2, wrVal); vha 3049 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr1, value); vha 3053 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr1, &temp); vha 3059 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb154, vha 3064 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr1, vha 3068 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr1, &temp); vha 3075 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb155, vha 3080 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr2, &data); vha 3097 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdmdio(struct scsi_qla_host *vha, vha 3125 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_poll_wait_ipmdio_bus_idle(vha, addr1, addr2, vha 3131 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_ipmdio_wr_reg(vha, addr1, addr3, mask, addr4, vha 3137 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_ipmdio_wr_reg(vha, addr1, addr3, mask, addr5, vha 3143 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_ipmdio_wr_reg(vha, addr1, addr3, mask, vha 3148 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_poll_wait_ipmdio_bus_idle(vha, addr1, addr2, vha 3154 drivers/scsi/qla2xxx/qla_nx2.c data = qla8044_ipmdio_rd_reg(vha, addr1, addr3, mask, addr7); vha 3174 drivers/scsi/qla2xxx/qla_nx2.c static uint32_t qla8044_minidump_process_pollwr(struct scsi_qla_host *vha, vha 3190 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr1, &r_value); vha 3198 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb156, "%s: TIMEOUT\n", __func__); vha 3202 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr2, value2); vha 3203 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, addr1, value1); vha 3207 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, addr1, &r_value); vha 3226 drivers/scsi/qla2xxx/qla_nx2.c qla8044_collect_md_data(struct scsi_qla_host *vha) vha 3236 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 3239 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb101, vha 3241 drivers/scsi/qla2xxx/qla_nx2.c __func__, vha->host_no); vha 3246 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb10d, vha 3255 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb10e, vha 3263 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb112, vha 3274 drivers/scsi/qla2xxx/qla_nx2.c if (qla82xx_validate_template_chksum(vha)) { vha 3275 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb109, vha 3285 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb11a, vha 3292 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb10f, vha 3298 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb102, vha 3301 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb10b, vha 3304 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb10c, vha 3321 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb103, vha 3335 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb104, vha 3345 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, entry_hdr, i); vha 3348 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_minidump_process_control(vha, vha 3351 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, entry_hdr, i); vha 3356 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdcrb(vha, vha 3360 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_minidump_pex_dma_read(vha, vha 3363 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_minidump_process_rdmem(vha, vha 3366 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, vha 3374 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_minidump_process_rdrom(vha, vha 3377 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, vha 3385 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_minidump_process_l2tag(vha, vha 3388 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, entry_hdr, i); vha 3396 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_l1cache(vha, vha 3400 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdocm(vha, vha 3404 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdmux(vha, vha 3408 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_queue(vha, vha 3412 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_minidump_process_pollrd(vha, vha 3415 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, entry_hdr, i); vha 3418 drivers/scsi/qla2xxx/qla_nx2.c qla8044_minidump_process_rdmux2(vha, vha 3422 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_minidump_process_pollrdmwr(vha, vha 3425 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, entry_hdr, i); vha 3428 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_minidump_process_rddfe(vha, entry_hdr, vha 3431 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, entry_hdr, i); vha 3434 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_minidump_process_rdmdio(vha, entry_hdr, vha 3437 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, entry_hdr, i); vha 3440 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_minidump_process_pollwr(vha, entry_hdr, vha 3443 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, entry_hdr, i); vha 3447 drivers/scsi/qla2xxx/qla_nx2.c qla8044_mark_entry_skipped(vha, entry_hdr, i); vha 3462 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb105, vha 3470 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb110, vha 3472 drivers/scsi/qla2xxx/qla_nx2.c vha->host_no, ha->md_tmplt_hdr, vha->host_no, ha->md_dump); vha 3474 drivers/scsi/qla2xxx/qla_nx2.c qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP); vha 3477 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_info, vha, 0xb106, vha 3485 drivers/scsi/qla2xxx/qla_nx2.c qla8044_get_minidump(struct scsi_qla_host *vha) vha 3487 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 3489 drivers/scsi/qla2xxx/qla_nx2.c if (!qla8044_collect_md_data(vha)) { vha 3493 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_fatal, vha, 0xb0db, vha 3501 drivers/scsi/qla2xxx/qla_nx2.c qla8044_poll_flash_status_reg(struct scsi_qla_host *vha) vha 3508 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, QLA8044_FLASH_STATUS, vha 3511 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb13c, vha 3529 drivers/scsi/qla2xxx/qla_nx2.c qla8044_write_flash_status_reg(struct scsi_qla_host *vha, vha 3535 drivers/scsi/qla2xxx/qla_nx2.c cmd = vha->hw->fdt_wrt_sts_reg_cmd; vha 3537 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_ADDR, vha 3540 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb125, vha 3545 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_WRDATA, data); vha 3547 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb126, vha 3552 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_CONTROL, vha 3555 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb127, vha 3560 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_poll_flash_status_reg(vha); vha 3562 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb128, vha 3573 drivers/scsi/qla2xxx/qla_nx2.c qla8044_unprotect_flash(scsi_qla_host_t *vha) vha 3576 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 3578 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_write_flash_status_reg(vha, ha->fdt_wrt_enable); vha 3580 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb139, vha 3590 drivers/scsi/qla2xxx/qla_nx2.c qla8044_protect_flash(scsi_qla_host_t *vha) vha 3593 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 3595 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_write_flash_status_reg(vha, ha->fdt_wrt_disable); vha 3597 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb13b, vha 3605 drivers/scsi/qla2xxx/qla_nx2.c qla8044_erase_flash_sector(struct scsi_qla_host *vha, vha 3611 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_poll_flash_status_reg(vha); vha 3613 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb12e, vha 3621 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, vha 3624 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb12f, vha 3627 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_ADDR, vha 3628 drivers/scsi/qla2xxx/qla_nx2.c QLA8044_FLASH_ERASE_SIG | vha->hw->fdt_erase_cmd); vha 3630 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb130, vha 3633 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_CONTROL, vha 3636 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb131, vha 3639 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_poll_flash_status_reg(vha); vha 3641 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb132, vha 3661 drivers/scsi/qla2xxx/qla_nx2.c qla8044_flash_write_u32(struct scsi_qla_host *vha, uint32_t addr, vha 3666 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_ADDR, vha 3669 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb134, vha 3673 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_WRDATA, *p_data); vha 3675 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb135, vha 3679 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_CONTROL, 0x3D); vha 3681 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb136, vha 3685 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_poll_flash_status_reg(vha); vha 3687 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb137, vha 3696 drivers/scsi/qla2xxx/qla_nx2.c qla8044_write_flash_buffer_mode(scsi_qla_host_t *vha, uint32_t *dwptr, vha 3704 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_user, vha, 0xb123, vha 3710 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, QLA8044_FLASH_SPI_CONTROL, &spi_val); vha 3711 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, QLA8044_FLASH_SPI_CONTROL, vha 3713 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, QLA8044_FLASH_ADDR, vha 3717 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_WRDATA, vha 3719 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, QLA8044_FLASH_CONTROL, vha 3722 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_poll_flash_status_reg(vha); vha 3724 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb124, vha 3731 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, QLA8044_FLASH_ADDR, vha 3737 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, QLA8044_FLASH_WRDATA, *dwptr++); vha 3738 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, QLA8044_FLASH_CONTROL, vha 3740 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_poll_flash_status_reg(vha); vha 3742 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb129, vha 3749 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, QLA8044_FLASH_ADDR, vha 3753 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, QLA8044_FLASH_WRDATA, *dwptr++); vha 3754 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, QLA8044_FLASH_CONTROL, vha 3756 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_poll_flash_status_reg(vha); vha 3758 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb12a, vha 3762 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, QLA8044_FLASH_SPI_STATUS, &spi_val); vha 3765 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb12b, vha 3769 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, QLA8044_FLASH_SPI_CONTROL, vha 3771 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_reg_indirect(vha, QLA8044_FLASH_SPI_CONTROL, vha 3779 drivers/scsi/qla2xxx/qla_nx2.c qla8044_write_flash_dword_mode(scsi_qla_host_t *vha, uint32_t *dwptr, vha 3786 drivers/scsi/qla2xxx/qla_nx2.c ret = qla8044_flash_write_u32(vha, faddr, dwptr); vha 3788 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb141, vha 3799 drivers/scsi/qla2xxx/qla_nx2.c qla8044_write_optrom_data(struct scsi_qla_host *vha, void *buf, vha 3823 drivers/scsi/qla2xxx/qla_nx2.c scsi_block_requests(vha->host); vha 3825 drivers/scsi/qla2xxx/qla_nx2.c qla8044_flash_lock(vha); vha 3826 drivers/scsi/qla2xxx/qla_nx2.c qla8044_unprotect_flash(vha); vha 3830 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_erase_flash_sector(vha, erase_offset); vha 3831 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_user, vha, 0xb138, vha 3835 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb121, vha 3842 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_user, vha, 0xb13f, vha 3849 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_write_flash_buffer_mode(vha, (uint32_t *)p_src, vha 3853 drivers/scsi/qla2xxx/qla_nx2.c ql_log(ql_log_warn, vha, 0xb122, vha 3856 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_write_flash_dword_mode(vha, vha 3863 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_user, vha, 0xb133, vha 3867 drivers/scsi/qla2xxx/qla_nx2.c qla8044_protect_flash(vha); vha 3868 drivers/scsi/qla2xxx/qla_nx2.c qla8044_flash_unlock(vha); vha 3869 drivers/scsi/qla2xxx/qla_nx2.c scsi_unblock_requests(vha->host); vha 3890 drivers/scsi/qla2xxx/qla_nx2.c scsi_qla_host_t *vha; vha 3908 drivers/scsi/qla2xxx/qla_nx2.c vha = pci_get_drvdata(ha->pdev); vha 3917 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb144, vha 3926 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb145, vha 3959 drivers/scsi/qla2xxx/qla_nx2.c qla82xx_mbx_completion(vha, MSW(stat)); vha 3967 drivers/scsi/qla2xxx/qla_nx2.c qla2x00_async_event(vha, rsp, mb); vha 3970 drivers/scsi/qla2xxx/qla_nx2.c qla24xx_process_response_queue(vha, rsp); vha 3973 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb146, vha 3998 drivers/scsi/qla2xxx/qla_nx2.c qla8044_clear_rst_ready(scsi_qla_host_t *vha) vha 4002 drivers/scsi/qla2xxx/qla_nx2.c drv_state = qla8044_rd_direct(vha, QLA8044_CRB_DRV_STATE_INDEX); vha 4009 drivers/scsi/qla2xxx/qla_nx2.c drv_state &= ~(1 << vha->hw->portnum); vha 4011 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb13d, vha 4013 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DRV_STATE_INDEX, drv_state); vha 4017 drivers/scsi/qla2xxx/qla_nx2.c qla8044_abort_isp(scsi_qla_host_t *vha) vha 4021 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 4024 drivers/scsi/qla2xxx/qla_nx2.c dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); vha 4027 drivers/scsi/qla2xxx/qla_nx2.c qla8044_set_idc_dontreset(vha); vha 4039 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb13e, vha 4045 drivers/scsi/qla2xxx/qla_nx2.c ql_dbg(ql_dbg_p3p, vha, 0xb140, vha 4047 drivers/scsi/qla2xxx/qla_nx2.c qla8044_wr_direct(vha, QLA8044_CRB_DEV_STATE_INDEX, vha 4054 drivers/scsi/qla2xxx/qla_nx2.c qla83xx_reset_ownership(vha); vha 4057 drivers/scsi/qla2xxx/qla_nx2.c rval = qla8044_device_state_handler(vha); vha 4059 drivers/scsi/qla2xxx/qla_nx2.c qla8044_clear_rst_ready(vha); vha 4066 drivers/scsi/qla2xxx/qla_nx2.c rval = qla82xx_restart_isp(vha); vha 4073 drivers/scsi/qla2xxx/qla_nx2.c qla8044_fw_dump(scsi_qla_host_t *vha, int hardware_locked) vha 4075 drivers/scsi/qla2xxx/qla_nx2.c struct qla_hw_data *ha = vha->hw; vha 4080 drivers/scsi/qla2xxx/qla_nx2.c scsi_block_requests(vha->host); vha 4083 drivers/scsi/qla2xxx/qla_nx2.c qla82xx_set_reset_owner(vha); vha 4085 drivers/scsi/qla2xxx/qla_nx2.c qla2x00_wait_for_chip_reset(vha); vha 4086 drivers/scsi/qla2xxx/qla_nx2.c scsi_unblock_requests(vha->host); vha 324 drivers/scsi/qla2xxx/qla_os.c qla2x00_start_timer(scsi_qla_host_t *vha, unsigned long interval) vha 326 drivers/scsi/qla2xxx/qla_os.c timer_setup(&vha->timer, qla2x00_timer, 0); vha 327 drivers/scsi/qla2xxx/qla_os.c vha->timer.expires = jiffies + interval * HZ; vha 328 drivers/scsi/qla2xxx/qla_os.c add_timer(&vha->timer); vha 329 drivers/scsi/qla2xxx/qla_os.c vha->timer_active = 1; vha 333 drivers/scsi/qla2xxx/qla_os.c qla2x00_restart_timer(scsi_qla_host_t *vha, unsigned long interval) vha 336 drivers/scsi/qla2xxx/qla_os.c if (vha->device_flags & DFLG_DEV_FAILED) { vha 337 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_timer, vha, 0x600d, vha 342 drivers/scsi/qla2xxx/qla_os.c mod_timer(&vha->timer, jiffies + interval * HZ); vha 346 drivers/scsi/qla2xxx/qla_os.c qla2x00_stop_timer(scsi_qla_host_t *vha) vha 348 drivers/scsi/qla2xxx/qla_os.c del_timer_sync(&vha->timer); vha 349 drivers/scsi/qla2xxx/qla_os.c vha->timer_active = 0; vha 364 drivers/scsi/qla2xxx/qla_os.c static void qla_init_base_qpair(struct scsi_qla_host *vha, struct req_que *req, vha 367 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 374 drivers/scsi/qla2xxx/qla_os.c ha->base_qpair->vha = vha; vha 392 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 397 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_fatal, vha, 0x003b, vha 405 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_fatal, vha, 0x003c, vha 412 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_warn, vha, 0x00e0, vha 417 drivers/scsi/qla2xxx/qla_os.c qla_init_base_qpair(vha, req, rsp); vha 423 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_fatal, vha, 0x0180, vha 539 drivers/scsi/qla2xxx/qla_os.c qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len) vha 541 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 560 drivers/scsi/qla2xxx/qla_os.c qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len) vha 565 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 608 drivers/scsi/qla2xxx/qla_os.c qla2x00_fw_version_str(struct scsi_qla_host *vha, char *str, size_t size) vha 611 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 646 drivers/scsi/qla2xxx/qla_os.c qla24xx_fw_version_str(struct scsi_qla_host *vha, char *str, size_t size) vha 648 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 657 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = sp->vha->hw; vha 712 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = sp->fcport->vha->hw; vha 754 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_tgt+ql_dbg_verbose, sp->vha, 0xe022, vha 760 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_tgt+ql_dbg_verbose, sp->vha, 0xe022, vha 803 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(host); vha 806 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 832 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_aer, vha, 0x9010, vha 837 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_aer, vha, 0x9011, vha 847 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_io + ql_dbg_verbose, vha, 0x3003, vha 853 drivers/scsi/qla2xxx/qla_os.c if (!vha->flags.difdix_supported && vha 855 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_io, vha, 0x3004, vha 870 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_io, vha, 0x3005, vha 892 drivers/scsi/qla2xxx/qla_os.c qla2xxx_init_sp(sp, vha, vha->hw->base_qpair, fcport); vha 903 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_io + ql_dbg_verbose, vha, 0x3013, vha 927 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(host); vha 930 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 938 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_io + ql_dbg_verbose, vha, 0x3076, vha 952 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_io, vha, 0x3077, vha 974 drivers/scsi/qla2xxx/qla_os.c qla2xxx_init_sp(sp, vha, qpair, fcport); vha 984 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_io + ql_dbg_verbose, vha, 0x3078, vha 1028 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(cmd->device->host); vha 1029 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1033 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_taskm, vha, 0x8005, vha 1065 drivers/scsi/qla2xxx/qla_os.c qla2x00_wait_for_hba_online(scsi_qla_host_t *vha) vha 1069 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1088 drivers/scsi/qla2xxx/qla_os.c static inline int test_fcport_count(scsi_qla_host_t *vha) vha 1090 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1095 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_init, vha, 0x00ec, vha 1097 drivers/scsi/qla2xxx/qla_os.c vha, vha->fcport_count); vha 1098 drivers/scsi/qla2xxx/qla_os.c res = (vha->fcport_count == 0); vha 1109 drivers/scsi/qla2xxx/qla_os.c qla2x00_wait_for_sess_deletion(scsi_qla_host_t *vha) vha 1113 drivers/scsi/qla2xxx/qla_os.c qla2x00_mark_all_devices_lost(vha, 0); vha 1116 drivers/scsi/qla2xxx/qla_os.c if (wait_event_timeout(vha->fcport_waitQ, vha 1117 drivers/scsi/qla2xxx/qla_os.c test_fcport_count(vha), HZ) > 0) vha 1121 drivers/scsi/qla2xxx/qla_os.c flush_workqueue(vha->hw->wq); vha 1137 drivers/scsi/qla2xxx/qla_os.c qla2x00_wait_for_hba_ready(scsi_qla_host_t *vha) vha 1139 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1142 drivers/scsi/qla2xxx/qla_os.c while ((qla2x00_reset_active(vha) || ha->dpc_active || vha 1144 drivers/scsi/qla2xxx/qla_os.c test_bit(FX00_RESET_RECOVERY, &vha->dpc_flags) || vha 1145 drivers/scsi/qla2xxx/qla_os.c test_bit(FX00_TARGET_SCAN, &vha->dpc_flags)) { vha 1153 drivers/scsi/qla2xxx/qla_os.c qla2x00_wait_for_chip_reset(scsi_qla_host_t *vha) vha 1157 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1227 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(cmd->device->host); vha 1234 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1240 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x8042, vha 1274 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_taskm, vha, 0x8002, vha 1276 drivers/scsi/qla2xxx/qla_os.c vha->host_no, id, lun, sp, cmd, sp->handle); vha 1285 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_taskm, vha, 0x8003, vha 1294 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_taskm, vha, 0xffff, vha 1309 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x801c, vha 1311 drivers/scsi/qla2xxx/qla_os.c vha->host_no, id, lun, ret); vha 1320 drivers/scsi/qla2xxx/qla_os.c qla2x00_eh_wait_for_pending_commands(scsi_qla_host_t *vha, unsigned int t, vha 1325 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1333 drivers/scsi/qla2xxx/qla_os.c req = vha->req; vha 1341 drivers/scsi/qla2xxx/qla_os.c if (vha->vp_idx != sp->vha->vp_idx) vha 1380 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(cmd->device->host); vha 1395 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x8009, vha 1396 drivers/scsi/qla2xxx/qla_os.c "%s RESET ISSUED nexus=%ld:%d:%llu cmd=%p.\n", name, vha->host_no, vha 1400 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_wait_for_hba_online(vha) != QLA_SUCCESS) { vha 1401 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_warn, vha, 0x800a, vha 1408 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_warn, vha, 0x800c, vha 1413 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_eh_wait_for_pending_commands(vha, cmd->device->id, vha 1415 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_warn, vha, 0x800d, vha 1420 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x800e, vha 1422 drivers/scsi/qla2xxx/qla_os.c vha->host_no, cmd->device->id, cmd->device->lun, cmd); vha 1427 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x800f, vha 1429 drivers/scsi/qla2xxx/qla_os.c reset_errors[err], vha->host_no, cmd->device->id, cmd->device->lun, vha 1437 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(cmd->device->host); vha 1438 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1441 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x803e, vha 1453 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(cmd->device->host); vha 1454 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1457 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x803f, vha 1484 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(cmd->device->host); vha 1489 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1492 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x8040, vha 1509 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_chip_is_down(vha)) vha 1512 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x8012, vha 1513 drivers/scsi/qla2xxx/qla_os.c "BUS RESET ISSUED nexus=%ld:%d:%llu.\n", vha->host_no, id, lun); vha 1515 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_wait_for_hba_online(vha) != QLA_SUCCESS) { vha 1516 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_fatal, vha, 0x8013, vha 1521 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_loop_reset(vha) == QLA_SUCCESS) vha 1528 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_eh_wait_for_pending_commands(vha, 0, 0, WAIT_HOST) != vha 1530 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_warn, vha, 0x8014, vha 1536 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_warn, vha, 0x802b, vha 1538 drivers/scsi/qla2xxx/qla_os.c (ret == FAILED) ? "FAILED" : "SUCCEEDED", vha->host_no, id, lun); vha 1561 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(cmd->device->host); vha 1562 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1569 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x8041, vha 1578 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x8018, vha 1579 drivers/scsi/qla2xxx/qla_os.c "ADAPTER RESET ISSUED nexus=%ld:%d:%llu.\n", vha->host_no, id, lun); vha 1585 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_reset_active(vha) || ha->optrom_state != QLA_SWAITING) vha 1588 drivers/scsi/qla2xxx/qla_os.c if (vha != base_vha) { vha 1589 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_vp_abort_isp(vha)) vha 1592 drivers/scsi/qla2xxx/qla_os.c if (IS_P3P_TYPE(vha->hw)) { vha 1593 drivers/scsi/qla2xxx/qla_os.c if (!qla82xx_fcoe_ctx_reset(vha)) { vha 1609 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_wait_for_hba_online(vha) != QLA_SUCCESS) { vha 1610 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_warn, vha, 0x802a, vha 1619 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_eh_wait_for_pending_commands(vha, 0, 0, WAIT_HOST) == vha 1624 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x8017, vha 1626 drivers/scsi/qla2xxx/qla_os.c (ret == FAILED) ? "FAILED" : "SUCCEEDED", vha->host_no, id, lun); vha 1642 drivers/scsi/qla2xxx/qla_os.c qla2x00_loop_reset(scsi_qla_host_t *vha) vha 1646 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1649 drivers/scsi/qla2xxx/qla_os.c return qlafx00_loop_reset(vha); vha 1653 drivers/scsi/qla2xxx/qla_os.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 1659 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_taskm, vha, 0x802c, vha 1668 drivers/scsi/qla2xxx/qla_os.c atomic_set(&vha->loop_state, LOOP_DOWN); vha 1669 drivers/scsi/qla2xxx/qla_os.c atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME); vha 1670 drivers/scsi/qla2xxx/qla_os.c qla2x00_mark_all_devices_lost(vha, 0); vha 1671 drivers/scsi/qla2xxx/qla_os.c ret = qla2x00_full_login_lip(vha); vha 1673 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_taskm, vha, 0x802d, vha 1679 drivers/scsi/qla2xxx/qla_os.c ret = qla2x00_lip_reset(vha); vha 1681 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_taskm, vha, 0x802e, vha 1686 drivers/scsi/qla2xxx/qla_os.c vha->marker_needed = 1; vha 1697 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = qp->vha; vha 1698 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1703 drivers/scsi/qla2xxx/qla_os.c if (qla2x00_chip_is_down(vha)) { vha 1710 drivers/scsi/qla2xxx/qla_os.c !test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) && vha 1729 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_taskm, vha, 0xffff, vha 1755 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = qp->vha; vha 1756 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1758 drivers/scsi/qla2xxx/qla_os.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 1773 drivers/scsi/qla2xxx/qla_os.c if (!vha->hw->tgt.tgt_ops || !tgt || vha 1774 drivers/scsi/qla2xxx/qla_os.c qla_ini_mode_enabled(vha)) { vha 1775 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf003, vha 1777 drivers/scsi/qla2xxx/qla_os.c vha->dpc_flags); vha 1796 drivers/scsi/qla2xxx/qla_os.c qla2x00_abort_all_cmds(scsi_qla_host_t *vha, int res) vha 1799 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 1832 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(sdev->host); vha 1833 drivers/scsi/qla2xxx/qla_os.c struct req_que *req = vha->req; vha 1835 drivers/scsi/qla2xxx/qla_os.c if (IS_T10_PI_CAPABLE(vha->hw)) vha 2700 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(shost); vha 2702 drivers/scsi/qla2xxx/qla_os.c if (vha->hw->flags.running_gold_fw) vha 2705 drivers/scsi/qla2xxx/qla_os.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 2706 drivers/scsi/qla2xxx/qla_os.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 2707 drivers/scsi/qla2xxx/qla_os.c set_bit(RSCN_UPDATE, &vha->dpc_flags); vha 2708 drivers/scsi/qla2xxx/qla_os.c set_bit(NPIV_CONFIG_NEEDED, &vha->dpc_flags); vha 2714 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(shost); vha 2716 drivers/scsi/qla2xxx/qla_os.c if (test_bit(UNLOADING, &vha->dpc_flags)) vha 2718 drivers/scsi/qla2xxx/qla_os.c if (!vha->host) vha 2720 drivers/scsi/qla2xxx/qla_os.c if (time > vha->hw->loop_reset_delay * HZ) vha 2723 drivers/scsi/qla2xxx/qla_os.c return atomic_read(&vha->loop_state) == LOOP_READY; vha 2728 drivers/scsi/qla2xxx/qla_os.c struct scsi_qla_host *vha = container_of(work, vha 2730 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 2738 drivers/scsi/qla2xxx/qla_os.c while (!list_empty(&vha->work_list) && i > 0) { vha 2739 drivers/scsi/qla2xxx/qla_os.c qla2x00_do_work(vha); vha 2743 drivers/scsi/qla2xxx/qla_os.c spin_lock_irqsave(&vha->work_lock, flags); vha 2744 drivers/scsi/qla2xxx/qla_os.c clear_bit(IOCB_WORK_ACTIVE, &vha->dpc_flags); vha 2745 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 3107 drivers/scsi/qla2xxx/qla_os.c ha->mr.fcport.vha = base_vha; vha 3508 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha; vha 3511 drivers/scsi/qla2xxx/qla_os.c vha = pci_get_drvdata(pdev); vha 3512 drivers/scsi/qla2xxx/qla_os.c ha = vha->hw; vha 3514 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xfffa, vha 3521 drivers/scsi/qla2xxx/qla_os.c set_bit(PFLG_DRIVER_REMOVING, &vha->pci_flags); vha 3529 drivers/scsi/qla2xxx/qla_os.c qlafx00_driver_shutdown(vha, 20); vha 3533 drivers/scsi/qla2xxx/qla_os.c qla2x00_disable_fce_trace(vha, NULL, NULL); vha 3539 drivers/scsi/qla2xxx/qla_os.c qla2x00_disable_eft_trace(vha); vha 3544 drivers/scsi/qla2xxx/qla_os.c qla2x00_abort_isp_cleanup(vha); vha 3547 drivers/scsi/qla2xxx/qla_os.c qla2x00_try_to_stop_firmware(vha); vha 3551 drivers/scsi/qla2xxx/qla_os.c if (vha->timer_active) vha 3552 drivers/scsi/qla2xxx/qla_os.c qla2x00_stop_timer(vha); vha 3555 drivers/scsi/qla2xxx/qla_os.c vha->flags.online = 0; vha 3559 drivers/scsi/qla2xxx/qla_os.c vha->flags.init_done = 0; vha 3563 drivers/scsi/qla2xxx/qla_os.c qla2x00_free_irqs(vha); vha 3568 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xfffe, vha 3576 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha; vha 3585 drivers/scsi/qla2xxx/qla_os.c vha = list_first_entry(&base_vha->list, scsi_qla_host_t, list); vha 3586 drivers/scsi/qla2xxx/qla_os.c scsi_host_get(vha->host); vha 3591 drivers/scsi/qla2xxx/qla_os.c qla_nvme_delete(vha); vha 3593 drivers/scsi/qla2xxx/qla_os.c fc_vport_terminate(vha->fc_vport); vha 3594 drivers/scsi/qla2xxx/qla_os.c scsi_host_put(vha->host); vha 3788 drivers/scsi/qla2xxx/qla_os.c qla2x00_free_device(scsi_qla_host_t *vha) vha 3790 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 3792 drivers/scsi/qla2xxx/qla_os.c qla2x00_abort_all_cmds(vha, DID_NO_CONNECT << 16); vha 3795 drivers/scsi/qla2xxx/qla_os.c if (vha->timer_active) vha 3796 drivers/scsi/qla2xxx/qla_os.c qla2x00_stop_timer(vha); vha 3798 drivers/scsi/qla2xxx/qla_os.c qla25xx_delete_queues(vha); vha 3799 drivers/scsi/qla2xxx/qla_os.c vha->flags.online = 0; vha 3803 drivers/scsi/qla2xxx/qla_os.c vha->flags.init_done = 0; vha 3807 drivers/scsi/qla2xxx/qla_os.c qla2x00_free_fcports(vha); vha 3809 drivers/scsi/qla2xxx/qla_os.c qla2x00_free_irqs(vha); vha 3821 drivers/scsi/qla2xxx/qla_os.c qla82xx_md_free(vha); vha 3826 drivers/scsi/qla2xxx/qla_os.c void qla2x00_free_fcports(struct scsi_qla_host *vha) vha 3830 drivers/scsi/qla2xxx/qla_os.c list_for_each_entry_safe(fcport, tfcport, &vha->vp_fcports, list) vha 3835 drivers/scsi/qla2xxx/qla_os.c qla2x00_schedule_rport_del(struct scsi_qla_host *vha, fc_port_t *fcport, vha 3847 drivers/scsi/qla2xxx/qla_os.c base_vha = pci_get_drvdata(vha->hw->pdev); vha 3848 drivers/scsi/qla2xxx/qla_os.c spin_lock_irqsave(vha->host->host_lock, flags); vha 3850 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(vha->host->host_lock, flags); vha 3851 drivers/scsi/qla2xxx/qla_os.c qlt_do_generation_tick(vha, &base_vha->total_fcport_update_gen); vha 3858 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_disc, fcport->vha, 0x2109, vha 3864 drivers/scsi/qla2xxx/qla_os.c qlt_do_generation_tick(vha, &now); vha 3877 drivers/scsi/qla2xxx/qla_os.c void qla2x00_mark_device_lost(scsi_qla_host_t *vha, fc_port_t *fcport, vha 3880 drivers/scsi/qla2xxx/qla_os.c if (IS_QLAFX00(vha->hw)) { vha 3882 drivers/scsi/qla2xxx/qla_os.c qla2x00_schedule_rport_del(vha, fcport, defer); vha 3887 drivers/scsi/qla2xxx/qla_os.c vha->vp_idx == fcport->vha->vp_idx) { vha 3889 drivers/scsi/qla2xxx/qla_os.c qla2x00_schedule_rport_del(vha, fcport, defer); vha 3901 drivers/scsi/qla2xxx/qla_os.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 3918 drivers/scsi/qla2xxx/qla_os.c qla2x00_mark_all_devices_lost(scsi_qla_host_t *vha, int defer) vha 3922 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_disc, vha, 0x20f1, vha 3925 drivers/scsi/qla2xxx/qla_os.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 3929 drivers/scsi/qla2xxx/qla_os.c if (vha->vp_idx != 0 && vha->vp_idx != fcport->vha->vp_idx) vha 3941 drivers/scsi/qla2xxx/qla_os.c qla2x00_schedule_rport_del(vha, fcport, defer); vha 3942 drivers/scsi/qla2xxx/qla_os.c else if (vha->vp_idx == fcport->vha->vp_idx) vha 3943 drivers/scsi/qla2xxx/qla_os.c qla2x00_schedule_rport_del(vha, fcport, defer); vha 4358 drivers/scsi/qla2xxx/qla_os.c qla2x00_set_exlogins_buffer(scsi_qla_host_t *vha) vha 4362 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 4371 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xd021, "EXLOGIN count: %d.\n", ql2xexlogins); vha 4373 drivers/scsi/qla2xxx/qla_os.c rval = qla_get_exlogin_status(vha, &size, &max_cnt); vha 4387 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xd024, vha 4391 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xd025, vha 4405 drivers/scsi/qla2xxx/qla_os.c rval = qla_set_exlogin_mem_cfg(vha, ha->exlogin_buf_dma); vha 4407 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_fatal, vha, 0xd033, vha 4433 drivers/scsi/qla2xxx/qla_os.c qla2x00_number_of_exch(scsi_qla_host_t *vha, u32 *ret_cnt, u16 max_cnt) vha 4436 drivers/scsi/qla2xxx/qla_os.c struct init_cb_81xx *icb = (struct init_cb_81xx *)&vha->hw->init_cb; vha 4439 drivers/scsi/qla2xxx/qla_os.c if (max_cnt > vha->hw->max_exchg) vha 4440 drivers/scsi/qla2xxx/qla_os.c max_cnt = vha->hw->max_exchg; vha 4442 drivers/scsi/qla2xxx/qla_os.c if (qla_ini_mode_enabled(vha)) { vha 4443 drivers/scsi/qla2xxx/qla_os.c if (vha->ql2xiniexchg > max_cnt) vha 4444 drivers/scsi/qla2xxx/qla_os.c vha->ql2xiniexchg = max_cnt; vha 4446 drivers/scsi/qla2xxx/qla_os.c if (vha->ql2xiniexchg > FW_DEF_EXCHANGES_CNT) vha 4447 drivers/scsi/qla2xxx/qla_os.c *ret_cnt = vha->ql2xiniexchg; vha 4449 drivers/scsi/qla2xxx/qla_os.c } else if (qla_tgt_mode_enabled(vha)) { vha 4450 drivers/scsi/qla2xxx/qla_os.c if (vha->ql2xexchoffld > max_cnt) { vha 4451 drivers/scsi/qla2xxx/qla_os.c vha->ql2xexchoffld = max_cnt; vha 4452 drivers/scsi/qla2xxx/qla_os.c icb->exchange_count = cpu_to_le16(vha->ql2xexchoffld); vha 4455 drivers/scsi/qla2xxx/qla_os.c if (vha->ql2xexchoffld > FW_DEF_EXCHANGES_CNT) vha 4456 drivers/scsi/qla2xxx/qla_os.c *ret_cnt = vha->ql2xexchoffld; vha 4457 drivers/scsi/qla2xxx/qla_os.c } else if (qla_dual_mode_enabled(vha)) { vha 4458 drivers/scsi/qla2xxx/qla_os.c temp = vha->ql2xiniexchg + vha->ql2xexchoffld; vha 4460 drivers/scsi/qla2xxx/qla_os.c vha->ql2xiniexchg -= (temp - max_cnt)/2; vha 4461 drivers/scsi/qla2xxx/qla_os.c vha->ql2xexchoffld -= (((temp - max_cnt)/2) + 1); vha 4463 drivers/scsi/qla2xxx/qla_os.c icb->exchange_count = cpu_to_le16(vha->ql2xexchoffld); vha 4472 drivers/scsi/qla2xxx/qla_os.c qla2x00_set_exchoffld_buffer(scsi_qla_host_t *vha) vha 4477 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 4486 drivers/scsi/qla2xxx/qla_os.c rval = qla_get_exchoffld_status(vha, &size, &max_cnt); vha 4493 drivers/scsi/qla2xxx/qla_os.c qla2x00_number_of_exch(vha, &actual_cnt, max_cnt); vha 4494 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xd014, vha 4509 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xd016, vha 4513 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xd017, vha 4544 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xd016, vha 4551 drivers/scsi/qla2xxx/qla_os.c rval = qla_set_exchoffld_mem_cfg(vha); vha 4553 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_fatal, vha, 0xd02e, vha 4560 drivers/scsi/qla2xxx/qla_os.c if (qla_ini_mode_enabled(vha)) vha 4563 drivers/scsi/qla2xxx/qla_os.c icb->exchange_count = cpu_to_le16(vha->ql2xexchoffld); vha 4782 drivers/scsi/qla2xxx/qla_os.c struct scsi_qla_host *vha = NULL; vha 4792 drivers/scsi/qla2xxx/qla_os.c vha = shost_priv(host); vha 4793 drivers/scsi/qla2xxx/qla_os.c memset(vha, 0, sizeof(scsi_qla_host_t)); vha 4795 drivers/scsi/qla2xxx/qla_os.c vha->host = host; vha 4796 drivers/scsi/qla2xxx/qla_os.c vha->host_no = host->host_no; vha 4797 drivers/scsi/qla2xxx/qla_os.c vha->hw = ha; vha 4799 drivers/scsi/qla2xxx/qla_os.c vha->qlini_mode = ql2x_ini_mode; vha 4800 drivers/scsi/qla2xxx/qla_os.c vha->ql2xexchoffld = ql2xexchoffld; vha 4801 drivers/scsi/qla2xxx/qla_os.c vha->ql2xiniexchg = ql2xiniexchg; vha 4803 drivers/scsi/qla2xxx/qla_os.c INIT_LIST_HEAD(&vha->vp_fcports); vha 4804 drivers/scsi/qla2xxx/qla_os.c INIT_LIST_HEAD(&vha->work_list); vha 4805 drivers/scsi/qla2xxx/qla_os.c INIT_LIST_HEAD(&vha->list); vha 4806 drivers/scsi/qla2xxx/qla_os.c INIT_LIST_HEAD(&vha->qla_cmd_list); vha 4807 drivers/scsi/qla2xxx/qla_os.c INIT_LIST_HEAD(&vha->qla_sess_op_cmd_list); vha 4808 drivers/scsi/qla2xxx/qla_os.c INIT_LIST_HEAD(&vha->logo_list); vha 4809 drivers/scsi/qla2xxx/qla_os.c INIT_LIST_HEAD(&vha->plogi_ack_list); vha 4810 drivers/scsi/qla2xxx/qla_os.c INIT_LIST_HEAD(&vha->qp_list); vha 4811 drivers/scsi/qla2xxx/qla_os.c INIT_LIST_HEAD(&vha->gnl.fcports); vha 4812 drivers/scsi/qla2xxx/qla_os.c INIT_LIST_HEAD(&vha->gpnid_list); vha 4813 drivers/scsi/qla2xxx/qla_os.c INIT_WORK(&vha->iocb_work, qla2x00_iocb_work_fn); vha 4815 drivers/scsi/qla2xxx/qla_os.c spin_lock_init(&vha->work_lock); vha 4816 drivers/scsi/qla2xxx/qla_os.c spin_lock_init(&vha->cmd_list_lock); vha 4817 drivers/scsi/qla2xxx/qla_os.c init_waitqueue_head(&vha->fcport_waitQ); vha 4818 drivers/scsi/qla2xxx/qla_os.c init_waitqueue_head(&vha->vref_waitq); vha 4820 drivers/scsi/qla2xxx/qla_os.c vha->gnl.size = sizeof(struct get_name_list_extended) * vha 4822 drivers/scsi/qla2xxx/qla_os.c vha->gnl.l = dma_alloc_coherent(&ha->pdev->dev, vha 4823 drivers/scsi/qla2xxx/qla_os.c vha->gnl.size, &vha->gnl.ldma, GFP_KERNEL); vha 4824 drivers/scsi/qla2xxx/qla_os.c if (!vha->gnl.l) { vha 4825 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_fatal, vha, 0xd04a, vha 4827 drivers/scsi/qla2xxx/qla_os.c scsi_host_put(vha->host); vha 4832 drivers/scsi/qla2xxx/qla_os.c vha->scan.size = ha->max_fibre_devices * sizeof(struct fab_scan_rp); vha 4833 drivers/scsi/qla2xxx/qla_os.c vha->scan.l = vmalloc(vha->scan.size); vha 4834 drivers/scsi/qla2xxx/qla_os.c if (!vha->scan.l) { vha 4835 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_fatal, vha, 0xd04a, vha 4837 drivers/scsi/qla2xxx/qla_os.c dma_free_coherent(&ha->pdev->dev, vha->gnl.size, vha 4838 drivers/scsi/qla2xxx/qla_os.c vha->gnl.l, vha->gnl.ldma); vha 4839 drivers/scsi/qla2xxx/qla_os.c vha->gnl.l = NULL; vha 4840 drivers/scsi/qla2xxx/qla_os.c scsi_host_put(vha->host); vha 4843 drivers/scsi/qla2xxx/qla_os.c INIT_DELAYED_WORK(&vha->scan.scan_work, qla_scan_work_fn); vha 4845 drivers/scsi/qla2xxx/qla_os.c sprintf(vha->host_str, "%s_%ld", QLA2XXX_DRIVER_NAME, vha->host_no); vha 4846 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_init, vha, 0x0041, vha 4848 drivers/scsi/qla2xxx/qla_os.c vha->host, vha->hw, vha, vha 4851 drivers/scsi/qla2xxx/qla_os.c return vha; vha 4855 drivers/scsi/qla2xxx/qla_os.c qla2x00_alloc_work(struct scsi_qla_host *vha, enum qla_work_type type) vha 4860 drivers/scsi/qla2xxx/qla_os.c if (test_bit(UNLOADING, &vha->dpc_flags)) vha 4863 drivers/scsi/qla2xxx/qla_os.c QLA_VHA_MARK_BUSY(vha, bail); vha 4869 drivers/scsi/qla2xxx/qla_os.c QLA_VHA_MARK_NOT_BUSY(vha); vha 4880 drivers/scsi/qla2xxx/qla_os.c qla2x00_post_work(struct scsi_qla_host *vha, struct qla_work_evt *e) vha 4885 drivers/scsi/qla2xxx/qla_os.c spin_lock_irqsave(&vha->work_lock, flags); vha 4886 drivers/scsi/qla2xxx/qla_os.c list_add_tail(&e->list, &vha->work_list); vha 4888 drivers/scsi/qla2xxx/qla_os.c if (!test_and_set_bit(IOCB_WORK_ACTIVE, &vha->dpc_flags)) vha 4891 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 4894 drivers/scsi/qla2xxx/qla_os.c queue_work(vha->hw->wq, &vha->iocb_work); vha 4900 drivers/scsi/qla2xxx/qla_os.c qla2x00_post_aen_work(struct scsi_qla_host *vha, enum fc_host_event_code code, vha 4905 drivers/scsi/qla2xxx/qla_os.c e = qla2x00_alloc_work(vha, QLA_EVT_AEN); vha 4911 drivers/scsi/qla2xxx/qla_os.c return qla2x00_post_work(vha, e); vha 4915 drivers/scsi/qla2xxx/qla_os.c qla2x00_post_idc_ack_work(struct scsi_qla_host *vha, uint16_t *mb) vha 4919 drivers/scsi/qla2xxx/qla_os.c e = qla2x00_alloc_work(vha, QLA_EVT_IDC_ACK); vha 4924 drivers/scsi/qla2xxx/qla_os.c return qla2x00_post_work(vha, e); vha 4929 drivers/scsi/qla2xxx/qla_os.c struct scsi_qla_host *vha, \ vha 4934 drivers/scsi/qla2xxx/qla_os.c e = qla2x00_alloc_work(vha, type); \ vha 4944 drivers/scsi/qla2xxx/qla_os.c return qla2x00_post_work(vha, e); \ vha 4955 drivers/scsi/qla2xxx/qla_os.c qla2x00_post_uevent_work(struct scsi_qla_host *vha, u32 code) vha 4959 drivers/scsi/qla2xxx/qla_os.c e = qla2x00_alloc_work(vha, QLA_EVT_UEVENT); vha 4964 drivers/scsi/qla2xxx/qla_os.c return qla2x00_post_work(vha, e); vha 4968 drivers/scsi/qla2xxx/qla_os.c qla2x00_uevent_emit(struct scsi_qla_host *vha, u32 code) vha 4976 drivers/scsi/qla2xxx/qla_os.c vha->host_no); vha 4982 drivers/scsi/qla2xxx/qla_os.c kobject_uevent_env(&vha->hw->pdev->dev.kobj, KOBJ_CHANGE, envp); vha 4986 drivers/scsi/qla2xxx/qla_os.c qlafx00_post_aenfx_work(struct scsi_qla_host *vha, uint32_t evtcode, vha 4991 drivers/scsi/qla2xxx/qla_os.c e = qla2x00_alloc_work(vha, QLA_EVT_AENFX); vha 4998 drivers/scsi/qla2xxx/qla_os.c return qla2x00_post_work(vha, e); vha 5008 drivers/scsi/qla2xxx/qla_os.c spin_lock_irqsave(&fcport->vha->work_lock, flags); vha 5010 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(&fcport->vha->work_lock, flags); vha 5017 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(&fcport->vha->work_lock, flags); vha 5023 drivers/scsi/qla2xxx/qla_os.c void qla24xx_create_new_sess(struct scsi_qla_host *vha, struct qla_work_evt *e) vha 5031 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 5035 drivers/scsi/qla2xxx/qla_os.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 5036 drivers/scsi/qla2xxx/qla_os.c fcport = qla2x00_find_fcport_by_wwpn(vha, e->u.new_sess.port_name, 1); vha 5044 drivers/scsi/qla2xxx/qla_os.c qlt_plogi_ack_link(vha, pla, fcport, QLT_PLOGI_LINK_SAME_WWN); vha 5051 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 5052 drivers/scsi/qla2xxx/qla_os.c fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 5072 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 5083 drivers/scsi/qla2xxx/qla_os.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 5085 drivers/scsi/qla2xxx/qla_os.c tfcp = qla2x00_find_fcport_by_wwpn(vha, vha 5089 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 5096 drivers/scsi/qla2xxx/qla_os.c list_add_tail(&fcport->list, &vha->vp_fcports); vha 5100 drivers/scsi/qla2xxx/qla_os.c qlt_plogi_ack_link(vha, pla, fcport, vha 5105 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 5110 drivers/scsi/qla2xxx/qla_os.c fcport->chip_reset = vha->hw->base_qpair->chip_reset; vha 5135 drivers/scsi/qla2xxx/qla_os.c qlt_plogi_ack_unref(vha, pla); vha 5139 drivers/scsi/qla2xxx/qla_os.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 5140 drivers/scsi/qla2xxx/qla_os.c tfcp = qla2x00_find_fcport_by_nportid(vha, vha 5146 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 5165 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 5169 drivers/scsi/qla2xxx/qla_os.c if (N2N_TOPO(vha->hw)) { vha 5172 drivers/scsi/qla2xxx/qla_os.c if (vha->flags.nvme_enabled) { vha 5181 drivers/scsi/qla2xxx/qla_os.c qla24xx_fcport_handle_login(vha, fcport); vha 5195 drivers/scsi/qla2xxx/qla_os.c static void qla_sp_retry(struct scsi_qla_host *vha, struct qla_work_evt *e) vha 5202 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_disc, vha, 0x2043, vha 5205 drivers/scsi/qla2xxx/qla_os.c qla24xx_sp_unmap(vha, sp); vha 5210 drivers/scsi/qla2xxx/qla_os.c qla2x00_do_work(struct scsi_qla_host *vha) vha 5217 drivers/scsi/qla2xxx/qla_os.c spin_lock_irqsave(&vha->work_lock, flags); vha 5218 drivers/scsi/qla2xxx/qla_os.c list_splice_init(&vha->work_list, &work); vha 5219 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 5225 drivers/scsi/qla2xxx/qla_os.c fc_host_post_event(vha->host, fc_get_event_number(), vha 5229 drivers/scsi/qla2xxx/qla_os.c qla81xx_idc_ack(vha, e->u.idc_ack.mb); vha 5232 drivers/scsi/qla2xxx/qla_os.c qla2x00_async_login(vha, e->u.logio.fcport, vha 5236 drivers/scsi/qla2xxx/qla_os.c rc = qla2x00_async_logout(vha, e->u.logio.fcport); vha 5239 drivers/scsi/qla2xxx/qla_os.c qla2x00_async_logout_done(vha, e->u.logio.fcport, vha 5243 drivers/scsi/qla2xxx/qla_os.c qla2x00_async_adisc(vha, e->u.logio.fcport, vha 5247 drivers/scsi/qla2xxx/qla_os.c qla2x00_uevent_emit(vha, e->u.uevent.code); vha 5250 drivers/scsi/qla2xxx/qla_os.c qlafx00_process_aen(vha, e); vha 5253 drivers/scsi/qla2xxx/qla_os.c qla24xx_async_gpnid(vha, &e->u.gpnid.id); vha 5256 drivers/scsi/qla2xxx/qla_os.c qla24xx_sp_unmap(vha, e->u.iosb.sp); vha 5259 drivers/scsi/qla2xxx/qla_os.c qla2x00_relogin(vha); vha 5262 drivers/scsi/qla2xxx/qla_os.c qla24xx_create_new_sess(vha, e); vha 5265 drivers/scsi/qla2xxx/qla_os.c qla24xx_async_gpdb(vha, e->u.fcport.fcport, vha 5269 drivers/scsi/qla2xxx/qla_os.c qla24xx_async_prli(vha, e->u.fcport.fcport); vha 5272 drivers/scsi/qla2xxx/qla_os.c qla24xx_async_gpsc(vha, e->u.fcport.fcport); vha 5275 drivers/scsi/qla2xxx/qla_os.c qla24xx_async_gnl(vha, e->u.fcport.fcport); vha 5278 drivers/scsi/qla2xxx/qla_os.c qla24xx_do_nack_work(vha, e); vha 5281 drivers/scsi/qla2xxx/qla_os.c rc = qla2x00_async_prlo(vha, e->u.logio.fcport); vha 5284 drivers/scsi/qla2xxx/qla_os.c qla2x00_async_prlo_done(vha, e->u.logio.fcport, vha 5288 drivers/scsi/qla2xxx/qla_os.c qla24xx_async_gpnft(vha, e->u.gpnft.fc4_type, vha 5292 drivers/scsi/qla2xxx/qla_os.c qla24xx_async_gpnft_done(vha, e->u.iosb.sp); vha 5295 drivers/scsi/qla2xxx/qla_os.c qla24xx_async_gnnft_done(vha, e->u.iosb.sp); vha 5298 drivers/scsi/qla2xxx/qla_os.c qla24xx_async_gnnid(vha, e->u.fcport.fcport); vha 5301 drivers/scsi/qla2xxx/qla_os.c qla24xx_async_gfpnid(vha, e->u.fcport.fcport); vha 5304 drivers/scsi/qla2xxx/qla_os.c qla_sp_retry(vha, e); vha 5307 drivers/scsi/qla2xxx/qla_os.c qla_do_iidma_work(vha, e->u.fcport.fcport); vha 5310 drivers/scsi/qla2xxx/qla_os.c qla24xx_els_dcmd2_iocb(vha, ELS_DCMD_PLOGI, vha 5317 drivers/scsi/qla2xxx/qla_os.c spin_lock_irqsave(&vha->work_lock, flags); vha 5318 drivers/scsi/qla2xxx/qla_os.c list_splice(&work, &vha->work_list); vha 5319 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 5327 drivers/scsi/qla2xxx/qla_os.c QLA_VHA_MARK_NOT_BUSY(vha); vha 5331 drivers/scsi/qla2xxx/qla_os.c int qla24xx_post_relogin_work(struct scsi_qla_host *vha) vha 5335 drivers/scsi/qla2xxx/qla_os.c e = qla2x00_alloc_work(vha, QLA_EVT_RELOGIN); vha 5338 drivers/scsi/qla2xxx/qla_os.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 5342 drivers/scsi/qla2xxx/qla_os.c return qla2x00_post_work(vha, e); vha 5348 drivers/scsi/qla2xxx/qla_os.c void qla2x00_relogin(struct scsi_qla_host *vha) vha 5354 drivers/scsi/qla2xxx/qla_os.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 5369 drivers/scsi/qla2xxx/qla_os.c if (vha->hw->current_topology != ISP_CFG_NL) { vha 5372 drivers/scsi/qla2xxx/qla_os.c qla24xx_handle_relogin_event(vha, &ea); vha 5373 drivers/scsi/qla2xxx/qla_os.c } else if (vha->hw->current_topology == vha 5377 drivers/scsi/qla2xxx/qla_os.c qla2x00_local_device_login(vha, vha 5382 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_disc, vha, 0x2003, vha 5386 drivers/scsi/qla2xxx/qla_os.c (vha, fcport); vha 5389 drivers/scsi/qla2xxx/qla_os.c &vha->dpc_flags); vha 5391 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_disc, vha, 0x2007, vha 5405 drivers/scsi/qla2xxx/qla_os.c if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) vha 5410 drivers/scsi/qla2xxx/qla_os.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 5412 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_disc, vha, 0x400e, vha 5806 drivers/scsi/qla2xxx/qla_os.c __qla83xx_set_drv_presence(scsi_qla_host_t *vha) vha 5809 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 5812 drivers/scsi/qla2xxx/qla_os.c rval = qla83xx_rd_reg(vha, QLA83XX_IDC_DRV_PRESENCE, &drv_presence); vha 5815 drivers/scsi/qla2xxx/qla_os.c rval = qla83xx_wr_reg(vha, QLA83XX_IDC_DRV_PRESENCE, vha 5823 drivers/scsi/qla2xxx/qla_os.c qla83xx_set_drv_presence(scsi_qla_host_t *vha) vha 5827 drivers/scsi/qla2xxx/qla_os.c qla83xx_idc_lock(vha, 0); vha 5828 drivers/scsi/qla2xxx/qla_os.c rval = __qla83xx_set_drv_presence(vha); vha 5829 drivers/scsi/qla2xxx/qla_os.c qla83xx_idc_unlock(vha, 0); vha 5835 drivers/scsi/qla2xxx/qla_os.c __qla83xx_clear_drv_presence(scsi_qla_host_t *vha) vha 5838 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 5841 drivers/scsi/qla2xxx/qla_os.c rval = qla83xx_rd_reg(vha, QLA83XX_IDC_DRV_PRESENCE, &drv_presence); vha 5844 drivers/scsi/qla2xxx/qla_os.c rval = qla83xx_wr_reg(vha, QLA83XX_IDC_DRV_PRESENCE, vha 5852 drivers/scsi/qla2xxx/qla_os.c qla83xx_clear_drv_presence(scsi_qla_host_t *vha) vha 5856 drivers/scsi/qla2xxx/qla_os.c qla83xx_idc_lock(vha, 0); vha 5857 drivers/scsi/qla2xxx/qla_os.c rval = __qla83xx_clear_drv_presence(vha); vha 5858 drivers/scsi/qla2xxx/qla_os.c qla83xx_idc_unlock(vha, 0); vha 5864 drivers/scsi/qla2xxx/qla_os.c qla83xx_need_reset_handler(scsi_qla_host_t *vha) vha 5866 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 5873 drivers/scsi/qla2xxx/qla_os.c qla83xx_rd_reg(vha, QLA83XX_IDC_DRIVER_ACK, &drv_ack); vha 5874 drivers/scsi/qla2xxx/qla_os.c qla83xx_rd_reg(vha, QLA83XX_IDC_DRV_PRESENCE, &drv_presence); vha 5879 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_warn, vha, 0xb067, vha 5888 drivers/scsi/qla2xxx/qla_os.c qla83xx_wr_reg(vha, QLA83XX_IDC_DRV_PRESENCE, vha 5893 drivers/scsi/qla2xxx/qla_os.c qla83xx_idc_unlock(vha, 0); vha 5895 drivers/scsi/qla2xxx/qla_os.c qla83xx_idc_lock(vha, 0); vha 5898 drivers/scsi/qla2xxx/qla_os.c qla83xx_wr_reg(vha, QLA83XX_IDC_DEV_STATE, QLA8XXX_DEV_COLD); vha 5899 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xb068, "HW State: COLD/RE-INIT.\n"); vha 5903 drivers/scsi/qla2xxx/qla_os.c qla83xx_device_bootstrap(scsi_qla_host_t *vha) vha 5908 drivers/scsi/qla2xxx/qla_os.c qla83xx_wr_reg(vha, QLA83XX_IDC_DEV_STATE, QLA8XXX_DEV_INITIALIZING); vha 5909 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xb069, "HW State: INITIALIZING.\n"); vha 5912 drivers/scsi/qla2xxx/qla_os.c __qla83xx_get_idc_control(vha, &idc_control); vha 5914 drivers/scsi/qla2xxx/qla_os.c __qla83xx_set_idc_control(vha, 0); vha 5916 drivers/scsi/qla2xxx/qla_os.c qla83xx_idc_unlock(vha, 0); vha 5917 drivers/scsi/qla2xxx/qla_os.c rval = qla83xx_restart_nic_firmware(vha); vha 5918 drivers/scsi/qla2xxx/qla_os.c qla83xx_idc_lock(vha, 0); vha 5921 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_fatal, vha, 0xb06a, vha 5923 drivers/scsi/qla2xxx/qla_os.c qla83xx_wr_reg(vha, QLA83XX_IDC_DEV_STATE, QLA8XXX_DEV_FAILED); vha 5924 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xb06b, "HW State: FAILED.\n"); vha 5926 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_p3p, vha, 0xb06c, vha 5928 drivers/scsi/qla2xxx/qla_os.c qla83xx_wr_reg(vha, QLA83XX_IDC_DEV_STATE, QLA8XXX_DEV_READY); vha 5929 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xb06d, "HW State: READY.\n"); vha 6486 drivers/scsi/qla2xxx/qla_os.c qla2xxx_wake_dpc(struct scsi_qla_host *vha) vha 6488 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 6491 drivers/scsi/qla2xxx/qla_os.c if (!test_bit(UNLOADING, &vha->dpc_flags) && t) vha 6503 drivers/scsi/qla2xxx/qla_os.c qla2x00_rst_aen(scsi_qla_host_t *vha) vha 6505 drivers/scsi/qla2xxx/qla_os.c if (vha->flags.online && !vha->flags.reset_active && vha 6506 drivers/scsi/qla2xxx/qla_os.c !atomic_read(&vha->loop_down_timer) && vha 6507 drivers/scsi/qla2xxx/qla_os.c !(test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags))) { vha 6509 drivers/scsi/qla2xxx/qla_os.c clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); vha 6515 drivers/scsi/qla2xxx/qla_os.c vha->marker_needed = 1; vha 6516 drivers/scsi/qla2xxx/qla_os.c } while (!atomic_read(&vha->loop_down_timer) && vha 6517 drivers/scsi/qla2xxx/qla_os.c (test_bit(RESET_MARKER_NEEDED, &vha->dpc_flags))); vha 6532 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = from_timer(vha, t, timer); vha 6538 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 6542 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_timer, vha, 0x6000, vha 6545 drivers/scsi/qla2xxx/qla_os.c qla2x00_restart_timer(vha, WATCH_INTERVAL); vha 6555 drivers/scsi/qla2xxx/qla_os.c qla2x00_check_reg16_for_disconnect(vha, w); vha 6559 drivers/scsi/qla2xxx/qla_os.c if (!vha->vp_idx && IS_P3P_TYPE(ha)) { vha 6560 drivers/scsi/qla2xxx/qla_os.c if (test_bit(ISP_QUIESCE_NEEDED, &vha->dpc_flags)) vha 6563 drivers/scsi/qla2xxx/qla_os.c qla82xx_watchdog(vha); vha 6565 drivers/scsi/qla2xxx/qla_os.c qla8044_watchdog(vha); vha 6568 drivers/scsi/qla2xxx/qla_os.c if (!vha->vp_idx && IS_QLAFX00(ha)) vha 6569 drivers/scsi/qla2xxx/qla_os.c qlafx00_timer_routine(vha); vha 6572 drivers/scsi/qla2xxx/qla_os.c if (atomic_read(&vha->loop_down_timer) > 0 && vha 6573 drivers/scsi/qla2xxx/qla_os.c !(test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)) && vha 6574 drivers/scsi/qla2xxx/qla_os.c !(test_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags)) vha 6575 drivers/scsi/qla2xxx/qla_os.c && vha->flags.online) { vha 6577 drivers/scsi/qla2xxx/qla_os.c if (atomic_read(&vha->loop_down_timer) == vha 6578 drivers/scsi/qla2xxx/qla_os.c vha->loop_down_abort_time) { vha 6580 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x6008, vha 6583 drivers/scsi/qla2xxx/qla_os.c if (!IS_QLA2100(ha) && vha->link_down_timeout) vha 6584 drivers/scsi/qla2xxx/qla_os.c atomic_set(&vha->loop_state, LOOP_DEAD); vha 6591 drivers/scsi/qla2xxx/qla_os.c if (!vha->vp_idx) { vha 6613 drivers/scsi/qla2xxx/qla_os.c &vha->dpc_flags); vha 6616 drivers/scsi/qla2xxx/qla_os.c &vha->dpc_flags); vha 6626 drivers/scsi/qla2xxx/qla_os.c if (atomic_dec_and_test(&vha->loop_down_timer) != 0) { vha 6627 drivers/scsi/qla2xxx/qla_os.c if (!(vha->device_flags & DFLG_NO_CABLE)) { vha 6628 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_warn, vha, 0x6009, vha 6633 drivers/scsi/qla2xxx/qla_os.c &vha->dpc_flags); vha 6636 drivers/scsi/qla2xxx/qla_os.c &vha->dpc_flags); vha 6639 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_timer, vha, 0x600a, vha 6641 drivers/scsi/qla2xxx/qla_os.c atomic_read(&vha->loop_down_timer)); vha 6644 drivers/scsi/qla2xxx/qla_os.c if (!vha->vp_idx && (ha->beacon_blink_led == 1)) { vha 6647 drivers/scsi/qla2xxx/qla_os.c set_bit(BEACON_BLINK_NEEDED, &vha->dpc_flags); vha 6653 drivers/scsi/qla2xxx/qla_os.c if (!list_empty(&vha->work_list)) { vha 6657 drivers/scsi/qla2xxx/qla_os.c spin_lock_irqsave(&vha->work_lock, flags); vha 6658 drivers/scsi/qla2xxx/qla_os.c if (!test_and_set_bit(IOCB_WORK_ACTIVE, &vha->dpc_flags)) vha 6660 drivers/scsi/qla2xxx/qla_os.c spin_unlock_irqrestore(&vha->work_lock, flags); vha 6662 drivers/scsi/qla2xxx/qla_os.c queue_work(vha->hw->wq, &vha->iocb_work); vha 6669 drivers/scsi/qla2xxx/qla_os.c if (!vha->vp_idx && vha 6673 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x3002, vha 6677 drivers/scsi/qla2xxx/qla_os.c set_bit(SET_NVME_ZIO_THRESHOLD_NEEDED, &vha->dpc_flags); vha 6681 drivers/scsi/qla2xxx/qla_os.c if (!vha->vp_idx && vha 6685 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0x3002, vha 6689 drivers/scsi/qla2xxx/qla_os.c set_bit(SET_ZIO_THRESHOLD_NEEDED, &vha->dpc_flags); vha 6694 drivers/scsi/qla2xxx/qla_os.c if ((test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) || vha 6695 drivers/scsi/qla2xxx/qla_os.c test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags) || vha 6696 drivers/scsi/qla2xxx/qla_os.c test_bit(FCPORT_UPDATE_NEEDED, &vha->dpc_flags) || vha 6698 drivers/scsi/qla2xxx/qla_os.c test_bit(RESET_MARKER_NEEDED, &vha->dpc_flags) || vha 6699 drivers/scsi/qla2xxx/qla_os.c test_bit(BEACON_BLINK_NEEDED, &vha->dpc_flags) || vha 6700 drivers/scsi/qla2xxx/qla_os.c test_bit(ISP_UNRECOVERABLE, &vha->dpc_flags) || vha 6701 drivers/scsi/qla2xxx/qla_os.c test_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags) || vha 6702 drivers/scsi/qla2xxx/qla_os.c test_bit(VP_DPC_NEEDED, &vha->dpc_flags) || vha 6703 drivers/scsi/qla2xxx/qla_os.c test_bit(RELOGIN_NEEDED, &vha->dpc_flags))) { vha 6704 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_timer, vha, 0x600b, vha 6708 drivers/scsi/qla2xxx/qla_os.c test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags), vha 6709 drivers/scsi/qla2xxx/qla_os.c test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags), vha 6710 drivers/scsi/qla2xxx/qla_os.c test_bit(FCPORT_UPDATE_NEEDED, &vha->dpc_flags), vha 6712 drivers/scsi/qla2xxx/qla_os.c test_bit(RESET_MARKER_NEEDED, &vha->dpc_flags)); vha 6713 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_timer, vha, 0x600c, vha 6717 drivers/scsi/qla2xxx/qla_os.c test_bit(BEACON_BLINK_NEEDED, &vha->dpc_flags), vha 6718 drivers/scsi/qla2xxx/qla_os.c test_bit(ISP_UNRECOVERABLE, &vha->dpc_flags), vha 6719 drivers/scsi/qla2xxx/qla_os.c test_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags), vha 6720 drivers/scsi/qla2xxx/qla_os.c test_bit(VP_DPC_NEEDED, &vha->dpc_flags), vha 6721 drivers/scsi/qla2xxx/qla_os.c test_bit(RELOGIN_NEEDED, &vha->dpc_flags)); vha 6722 drivers/scsi/qla2xxx/qla_os.c qla2xxx_wake_dpc(vha); vha 6725 drivers/scsi/qla2xxx/qla_os.c qla2x00_restart_timer(vha, WATCH_INTERVAL); vha 6776 drivers/scsi/qla2xxx/qla_os.c qla2x00_request_firmware(scsi_qla_host_t *vha) vha 6778 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 6817 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_warn, vha, 0x0063, vha 6839 drivers/scsi/qla2xxx/qla_os.c static void qla_pci_error_cleanup(scsi_qla_host_t *vha) vha 6841 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 6882 drivers/scsi/qla2xxx/qla_os.c qla2x00_mark_all_devices_lost(vha, 0); vha 6895 drivers/scsi/qla2xxx/qla_os.c list_for_each_entry(fcport, &vha->vp_fcports, list) vha 6914 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = pci_get_drvdata(pdev); vha 6915 drivers/scsi/qla2xxx/qla_os.c struct qla_hw_data *ha = vha->hw; vha 6917 drivers/scsi/qla2xxx/qla_os.c ql_dbg(ql_dbg_aer, vha, 0x9000, vha 6921 drivers/scsi/qla2xxx/qla_os.c ql_log(ql_log_info, vha, 0xffff, vha 6930 drivers/scsi/qla2xxx/qla_os.c set_bit(QPAIR_ONLINE_CHECK_NEEDED, &vha->dpc_flags); vha 6931 drivers/scsi/qla2xxx/qla_os.c qla2xxx_wake_dpc(vha); vha 6936 drivers/scsi/qla2xxx/qla_os.c qla_pci_error_cleanup(vha); vha 6940 drivers/scsi/qla2xxx/qla_os.c qla2x00_abort_all_cmds(vha, DID_NO_CONNECT << 16); vha 6942 drivers/scsi/qla2xxx/qla_os.c set_bit(QPAIR_ONLINE_CHECK_NEEDED, &vha->dpc_flags); vha 6943 drivers/scsi/qla2xxx/qla_os.c qla2xxx_wake_dpc(vha); vha 7122 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = (scsi_qla_host_t *)shost->hostdata; vha 7125 drivers/scsi/qla2xxx/qla_os.c if (USER_CTRL_IRQ(vha->hw) || !vha->hw->mqiobase) vha 7128 drivers/scsi/qla2xxx/qla_os.c rc = blk_mq_pci_map_queues(qmap, vha->hw->pdev, vha->irq_offset); vha 192 drivers/scsi/qla2xxx/qla_sup.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 224 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_user, vha, 0x708d, vha 312 drivers/scsi/qla2xxx/qla_sup.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 355 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_user, vha, 0x708e, vha 376 drivers/scsi/qla2xxx/qla_sup.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 415 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_user, vha, 0x708f, vha 477 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr, vha 482 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 548 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_find_flt_start(scsi_qla_host_t *vha, uint32_t *start) vha 553 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 587 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_flash_data(vha, dcode, pcihdr >> 2, 0x20); vha 594 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_flash_data(vha, dcode, pcids >> 2, 0x20); vha 609 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_flash_data(vha, dcode, pcihdr >> 2, sizeof(*fltl) >> 2); vha 618 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_fatal, vha, 0x0045, vha 620 drivers/scsi/qla2xxx/qla_sup.c ql_dump_buffer(ql_dbg_init + ql_dbg_buffer, vha, 0x010e, vha 630 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x0046, vha 637 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_get_flt_info(scsi_qla_host_t *vha, uint32_t flt_addr) vha 670 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 685 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, (void *)flt, flt_addr << 2, vha 691 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x0047, vha 702 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_fatal, vha, 0x0048, vha 713 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x0049, vha 719 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_dbg_init, vha, 0xffff, vha 933 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x004a, vha 943 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_get_fdt_info(scsi_qla_host_t *vha) vha 949 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 957 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, fdt, ha->flt_region_fdt << 2, vha 967 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x004c, vha 971 drivers/scsi/qla2xxx/qla_sup.c ql_dump_buffer(ql_dbg_init + ql_dbg_buffer, vha, 0x0113, vha 1032 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x004d, vha 1042 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_get_idc_param(scsi_qla_host_t *vha) vha 1046 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1053 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, req->ring, QLA82XX_IDC_PARAM_ADDR, 8); vha 1063 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x004e, vha 1071 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_get_flash_info(scsi_qla_host_t *vha) vha 1075 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1082 drivers/scsi/qla2xxx/qla_sup.c ret = qla2xxx_find_flt_start(vha, &flt_addr); vha 1086 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_get_flt_info(vha, flt_addr); vha 1087 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_get_fdt_info(vha); vha 1088 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_get_idc_param(vha); vha 1094 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_flash_npiv_conf(scsi_qla_host_t *vha) vha 1103 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1115 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, &hdr, ha->flt_region_npiv_conf << 2, vha 1120 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_user, vha, 0x7090, vha 1130 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7091, vha 1135 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, data, ha->flt_region_npiv_conf << 2, vha 1142 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_user, vha, 0x7092, vha 1172 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_user, vha, 0x7093, vha 1179 drivers/scsi/qla2xxx/qla_sup.c vport = fc_vport_create(vha->host, 0, &vid); vha 1181 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7094, vha 1191 drivers/scsi/qla2xxx/qla_sup.c qla24xx_unprotect_flash(scsi_qla_host_t *vha) vha 1193 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1197 drivers/scsi/qla2xxx/qla_sup.c return qla81xx_fac_do_write_enable(vha, 1); vha 1216 drivers/scsi/qla2xxx/qla_sup.c qla24xx_protect_flash(scsi_qla_host_t *vha) vha 1218 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1224 drivers/scsi/qla2xxx/qla_sup.c return qla81xx_fac_do_write_enable(vha, 0); vha 1250 drivers/scsi/qla2xxx/qla_sup.c qla24xx_erase_sector(scsi_qla_host_t *vha, uint32_t fdata) vha 1252 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1258 drivers/scsi/qla2xxx/qla_sup.c return qla81xx_fac_erase_sector(vha, flash_data_addr(ha, vha 1268 drivers/scsi/qla2xxx/qla_sup.c qla24xx_write_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr, vha 1277 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1287 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7095, vha 1292 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0x7095, vha 1294 drivers/scsi/qla2xxx/qla_sup.c ret = qla24xx_unprotect_flash(vha); vha 1296 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7096, vha 1308 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0x7095, vha 1311 drivers/scsi/qla2xxx/qla_sup.c ret = qla24xx_erase_sector(vha, fdata); vha 1313 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_user, vha, 0x7007, vha 1328 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0x7095, vha 1330 drivers/scsi/qla2xxx/qla_sup.c ret = qla2x00_load_ram(vha, optrom_dma, vha 1339 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7097, vha 1349 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7098, vha 1357 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_user, vha, 0x7006, vha 1363 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0x7095, vha 1365 drivers/scsi/qla2xxx/qla_sup.c ret = qla24xx_protect_flash(vha); vha 1367 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7099, vha 1378 drivers/scsi/qla2xxx/qla_sup.c qla2x00_read_nvram_data(scsi_qla_host_t *vha, void *buf, uint32_t naddr, vha 1383 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1397 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_nvram_data(scsi_qla_host_t *vha, void *buf, uint32_t naddr, vha 1400 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1420 drivers/scsi/qla2xxx/qla_sup.c qla2x00_write_nvram_data(scsi_qla_host_t *vha, void *buf, uint32_t naddr, vha 1427 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1454 drivers/scsi/qla2xxx/qla_sup.c qla24xx_write_nvram_data(scsi_qla_host_t *vha, void *buf, uint32_t naddr, vha 1457 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1482 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_user, vha, 0x709a, vha 1501 drivers/scsi/qla2xxx/qla_sup.c qla25xx_read_nvram_data(scsi_qla_host_t *vha, void *buf, uint32_t naddr, vha 1504 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1523 drivers/scsi/qla2xxx/qla_sup.c qla25xx_write_nvram_data(scsi_qla_host_t *vha, void *buf, uint32_t naddr, vha 1526 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1531 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2, vha 1534 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->write_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2, vha 1572 drivers/scsi/qla2xxx/qla_sup.c qla2x00_beacon_blink(struct scsi_qla_host *vha) vha 1578 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1625 drivers/scsi/qla2xxx/qla_sup.c qla2x00_beacon_on(struct scsi_qla_host *vha) vha 1630 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1636 drivers/scsi/qla2xxx/qla_sup.c if (qla2x00_set_fw_options(vha, ha->fw_options) != QLA_SUCCESS) { vha 1637 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x709b, vha 1682 drivers/scsi/qla2xxx/qla_sup.c qla2x00_beacon_off(struct scsi_qla_host *vha) vha 1685 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1695 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->beacon_blink(vha); /* This turns green LED off */ vha 1700 drivers/scsi/qla2xxx/qla_sup.c rval = qla2x00_set_fw_options(vha, ha->fw_options); vha 1702 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x709c, vha 1724 drivers/scsi/qla2xxx/qla_sup.c qla24xx_beacon_blink(struct scsi_qla_host *vha) vha 1729 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1775 drivers/scsi/qla2xxx/qla_sup.c qla83xx_beacon_blink(struct scsi_qla_host *vha) vha 1778 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1791 drivers/scsi/qla2xxx/qla_sup.c qla2x00_write_ram_word(vha, 0x1003, 0x40000230); vha 1792 drivers/scsi/qla2xxx/qla_sup.c qla2x00_write_ram_word(vha, 0x1004, 0x40000230); vha 1796 drivers/scsi/qla2xxx/qla_sup.c qla83xx_wr_reg(vha, led_select_value, 0x40000230); vha 1797 drivers/scsi/qla2xxx/qla_sup.c qla83xx_wr_reg(vha, led_select_value + 4, 0x40000230); vha 1801 drivers/scsi/qla2xxx/qla_sup.c qla83xx_rd_reg(vha, led_select_value, &led_10_value); vha 1802 drivers/scsi/qla2xxx/qla_sup.c qla83xx_rd_reg(vha, led_select_value + 0x10, &led_43_value); vha 1803 drivers/scsi/qla2xxx/qla_sup.c qla83xx_wr_reg(vha, led_select_value, 0x01f44000); vha 1805 drivers/scsi/qla2xxx/qla_sup.c qla83xx_wr_reg(vha, led_select_value, 0x400001f4); vha 1807 drivers/scsi/qla2xxx/qla_sup.c qla83xx_wr_reg(vha, led_select_value, led_10_value); vha 1808 drivers/scsi/qla2xxx/qla_sup.c qla83xx_wr_reg(vha, led_select_value + 0x10, led_43_value); vha 1813 drivers/scsi/qla2xxx/qla_sup.c rval = qla81xx_get_led_config(vha, orig_led_cfg); vha 1831 drivers/scsi/qla2xxx/qla_sup.c rval = qla81xx_set_led_config(vha, led_cfg); vha 1845 drivers/scsi/qla2xxx/qla_sup.c rval = qla81xx_set_led_config(vha, led_cfg); vha 1848 drivers/scsi/qla2xxx/qla_sup.c qla81xx_set_led_config(vha, orig_led_cfg); vha 1853 drivers/scsi/qla2xxx/qla_sup.c qla24xx_beacon_on(struct scsi_qla_host *vha) vha 1857 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1870 drivers/scsi/qla2xxx/qla_sup.c if (qla2x00_set_fw_options(vha, ha->fw_options) != QLA_SUCCESS) vha 1873 drivers/scsi/qla2xxx/qla_sup.c if (qla2x00_get_fw_options(vha, ha->fw_options) != vha 1875 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7009, vha 1905 drivers/scsi/qla2xxx/qla_sup.c qla24xx_beacon_off(struct scsi_qla_host *vha) vha 1909 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 1928 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->beacon_blink(vha); /* Will flip to all off. */ vha 1943 drivers/scsi/qla2xxx/qla_sup.c if (qla2x00_set_fw_options(vha, ha->fw_options) != QLA_SUCCESS) { vha 1944 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x704d, vha 1949 drivers/scsi/qla2xxx/qla_sup.c if (qla2x00_get_fw_options(vha, ha->fw_options) != QLA_SUCCESS) { vha 1950 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x704e, vha 2308 drivers/scsi/qla2xxx/qla_sup.c qla2x00_suspend_hba(struct scsi_qla_host *vha) vha 2312 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 2316 drivers/scsi/qla2xxx/qla_sup.c scsi_block_requests(vha->host); vha 2337 drivers/scsi/qla2xxx/qla_sup.c qla2x00_resume_hba(struct scsi_qla_host *vha) vha 2339 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 2343 drivers/scsi/qla2xxx/qla_sup.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2344 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_wake_dpc(vha); vha 2345 drivers/scsi/qla2xxx/qla_sup.c qla2x00_wait_for_chip_reset(vha); vha 2346 drivers/scsi/qla2xxx/qla_sup.c scsi_unblock_requests(vha->host); vha 2350 drivers/scsi/qla2xxx/qla_sup.c qla2x00_read_optrom_data(struct scsi_qla_host *vha, void *buf, vha 2355 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 2359 drivers/scsi/qla2xxx/qla_sup.c qla2x00_suspend_hba(vha); vha 2378 drivers/scsi/qla2xxx/qla_sup.c qla2x00_resume_hba(vha); vha 2384 drivers/scsi/qla2xxx/qla_sup.c qla2x00_write_optrom_data(struct scsi_qla_host *vha, void *buf, vha 2392 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 2396 drivers/scsi/qla2xxx/qla_sup.c qla2x00_suspend_hba(vha); vha 2597 drivers/scsi/qla2xxx/qla_sup.c qla2x00_resume_hba(vha); vha 2603 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_optrom_data(struct scsi_qla_host *vha, void *buf, vha 2606 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 2609 drivers/scsi/qla2xxx/qla_sup.c scsi_block_requests(vha->host); vha 2613 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_flash_data(vha, (void *)buf, offset >> 2, length >> 2); vha 2617 drivers/scsi/qla2xxx/qla_sup.c scsi_unblock_requests(vha->host); vha 2623 drivers/scsi/qla2xxx/qla_sup.c qla28xx_extract_sfub_and_verify(struct scsi_qla_host *vha, uint32_t *buf, vha 2641 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7097, vha 2651 drivers/scsi/qla2xxx/qla_sup.c qla28xx_get_flash_region(struct scsi_qla_host *vha, uint32_t start, vha 2654 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 2680 drivers/scsi/qla2xxx/qla_sup.c qla28xx_write_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr, vha 2683 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 2700 drivers/scsi/qla2xxx/qla_sup.c rval = qla28xx_get_flash_region(vha, offset, ®ion); vha 2703 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0xffff, vha 2713 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7095, vha 2725 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0xffff, vha 2778 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, vha 2789 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0xffff, vha 2795 drivers/scsi/qla2xxx/qla_sup.c rval = qla28xx_extract_sfub_and_verify(vha, dwptr, dwords, vha 2801 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0xffff, vha 2809 drivers/scsi/qla2xxx/qla_sup.c rval = qla81xx_fac_semaphore_access(vha, FAC_SEMAPHORE_LOCK); vha 2811 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0xffff, vha 2816 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0x7095, vha 2818 drivers/scsi/qla2xxx/qla_sup.c rval = qla24xx_unprotect_flash(vha); vha 2820 drivers/scsi/qla2xxx/qla_sup.c qla81xx_fac_semaphore_access(vha, FAC_SEMAPHORE_UNLOCK); vha 2821 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7096, "Failed unprotect flash\n"); vha 2830 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0x7095, vha 2832 drivers/scsi/qla2xxx/qla_sup.c rval = qla24xx_erase_sector(vha, fdata); vha 2834 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_user, vha, 0x7007, vha 2848 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0xffff, vha 2850 drivers/scsi/qla2xxx/qla_sup.c rval = qla24xx_protect_flash(vha); vha 2852 drivers/scsi/qla2xxx/qla_sup.c qla81xx_fac_semaphore_access(vha, vha 2854 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0xffff, vha 2859 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0xffff, vha 2861 drivers/scsi/qla2xxx/qla_sup.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2862 drivers/scsi/qla2xxx/qla_sup.c set_bit(ISP_ABORT_TO_ROM, &vha->dpc_flags); vha 2863 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_wake_dpc(vha); vha 2864 drivers/scsi/qla2xxx/qla_sup.c rval = qla2x00_wait_for_chip_reset(vha); vha 2866 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0xffff, vha 2873 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0xffff, vha 2875 drivers/scsi/qla2xxx/qla_sup.c rval = qla2xxx_write_remote_register(vha, vha 2878 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0xffff, vha 2884 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0xffff, vha 2886 drivers/scsi/qla2xxx/qla_sup.c rval = qla2x00_write_ram_word(vha, 0x7ffd0101, 0); vha 2888 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7096, vha 2896 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0xffff, vha 2898 drivers/scsi/qla2xxx/qla_sup.c rval = qla28xx_secure_flash_update(vha, 0, region.code, vha 2902 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0xffff, vha 2924 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0x7095, vha 2926 drivers/scsi/qla2xxx/qla_sup.c rval = qla2x00_load_ram(vha, optrom_dma, vha 2929 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7097, vha 2943 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn + ql_dbg_verbose, vha, 0x7095, vha 2945 drivers/scsi/qla2xxx/qla_sup.c rval = qla24xx_protect_flash(vha); vha 2947 drivers/scsi/qla2xxx/qla_sup.c qla81xx_fac_semaphore_access(vha, FAC_SEMAPHORE_UNLOCK); vha 2948 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x7099, vha 2954 drivers/scsi/qla2xxx/qla_sup.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 2955 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_wake_dpc(vha); vha 2957 drivers/scsi/qla2xxx/qla_sup.c rval = qla2x00_wait_for_hba_online(vha); vha 2959 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0xffff, vha 2972 drivers/scsi/qla2xxx/qla_sup.c qla24xx_write_optrom_data(struct scsi_qla_host *vha, void *buf, vha 2976 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 2979 drivers/scsi/qla2xxx/qla_sup.c scsi_block_requests(vha->host); vha 2984 drivers/scsi/qla2xxx/qla_sup.c rval = qla28xx_write_flash_data(vha, (uint32_t *)buf, vha 2987 drivers/scsi/qla2xxx/qla_sup.c rval = qla24xx_write_flash_data(vha, (uint32_t *)buf, vha 2991 drivers/scsi/qla2xxx/qla_sup.c scsi_unblock_requests(vha->host); vha 2997 drivers/scsi/qla2xxx/qla_sup.c qla25xx_read_optrom_data(struct scsi_qla_host *vha, void *buf, vha 3005 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 3021 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x00cc, vha 3035 drivers/scsi/qla2xxx/qla_sup.c rval = qla2x00_dump_ram(vha, optrom_dma, vha 3038 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x00f5, vha 3042 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x00f6, vha 3063 drivers/scsi/qla2xxx/qla_sup.c return qla24xx_read_optrom_data(vha, buf, offset, length); vha 3159 drivers/scsi/qla2xxx/qla_sup.c qla2x00_get_flash_version(scsi_qla_host_t *vha, void *mbuf) vha 3166 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 3186 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_fatal, vha, 0x0050, vha 3203 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_fatal, vha, 0x0051, vha 3218 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x0052, vha 3233 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x0053, vha 3238 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x0054, vha 3260 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init + ql_dbg_buffer, vha, 0x010a, vha 3263 drivers/scsi/qla2xxx/qla_sup.c ql_dump_buffer(ql_dbg_init + ql_dbg_buffer, vha, 0x010b, vha 3270 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x0057, vha 3278 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x0058, vha 3291 drivers/scsi/qla2xxx/qla_sup.c qla82xx_get_flash_version(scsi_qla_host_t *vha, void *mbuf) vha 3298 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 3313 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, dcode, pcihdr, 0x20 * 4); vha 3317 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_fatal, vha, 0x0154, vha 3326 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, dcode, pcids, 0x20 * 4); vha 3332 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_fatal, vha, 0x0155, vha 3345 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x0156, vha 3353 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x0157, vha 3361 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x0158, vha 3366 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x0159, vha 3381 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, dcode, ha->flt_region_fw << 2, 0x20); vha 3390 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x0153, vha 3400 drivers/scsi/qla2xxx/qla_sup.c qla24xx_get_flash_version(scsi_qla_host_t *vha, void *mbuf) vha 3408 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 3425 drivers/scsi/qla2xxx/qla_sup.c qla27xx_get_active_image(vha, &active_regions); vha 3433 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_flash_data(vha, dcode, pcihdr >> 2, 0x20); vha 3437 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_fatal, vha, 0x0059, vha 3446 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_flash_data(vha, dcode, pcids >> 2, 0x20); vha 3452 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_fatal, vha, 0x005a, vha 3454 drivers/scsi/qla2xxx/qla_sup.c ql_dump_buffer(ql_dbg_init, vha, 0x0059, dcode, 32); vha 3466 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x005b, vha 3474 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x005c, vha 3482 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x005d, vha 3487 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x005e, vha 3503 drivers/scsi/qla2xxx/qla_sup.c qla27xx_get_active_image(vha, &active_regions); vha 3508 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_flash_data(vha, dcode, faddr, 8); vha 3510 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x005f, vha 3513 drivers/scsi/qla2xxx/qla_sup.c ql_dump_buffer(ql_dbg_init, vha, 0x005f, dcode, 32); vha 3517 drivers/scsi/qla2xxx/qla_sup.c ql_dbg(ql_dbg_init, vha, 0x0060, vha 3531 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_flash_data(vha, (void *)dcode, ha->flt_region_gold_fw, 8); vha 3533 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x0056, vha 3535 drivers/scsi/qla2xxx/qla_sup.c ql_dump_buffer(ql_dbg_init, vha, 0x0056, dcode, 32); vha 3563 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_get_vpd_field(scsi_qla_host_t *vha, char *key, char *str, size_t size) vha 3565 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 3592 drivers/scsi/qla2xxx/qla_sup.c qla24xx_read_fcp_prio_cfg(scsi_qla_host_t *vha) vha 3596 drivers/scsi/qla2xxx/qla_sup.c struct qla_hw_data *ha = vha->hw; vha 3601 drivers/scsi/qla2xxx/qla_sup.c ql_log(ql_log_warn, vha, 0x00d5, vha 3612 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, ha->fcp_prio_cfg, vha 3615 drivers/scsi/qla2xxx/qla_sup.c if (!qla24xx_fcp_prio_cfg_valid(vha, ha->fcp_prio_cfg, 0)) vha 3623 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, &ha->fcp_prio_cfg->entry[0], vha 3627 drivers/scsi/qla2xxx/qla_sup.c if (!qla24xx_fcp_prio_cfg_valid(vha, ha->fcp_prio_cfg, 1)) vha 118 drivers/scsi/qla2xxx/qla_target.c static void qlt_alloc_qfull_cmd(struct scsi_qla_host *vha, vha 120 drivers/scsi/qla2xxx/qla_target.c static void qlt_disable_vha(struct scsi_qla_host *vha); vha 126 drivers/scsi/qla2xxx/qla_target.c static void qlt_send_term_imm_notif(struct scsi_qla_host *vha, vha 128 drivers/scsi/qla2xxx/qla_target.c static struct fc_port *qlt_create_sess(struct scsi_qla_host *vha, vha 164 drivers/scsi/qla2xxx/qla_target.c void qlt_do_generation_tick(struct scsi_qla_host *vha, int *dest) vha 166 drivers/scsi/qla2xxx/qla_target.c scsi_qla_host_t *base_vha = pci_get_drvdata(vha->hw->pdev); vha 173 drivers/scsi/qla2xxx/qla_target.c static inline int qlt_issue_marker(struct scsi_qla_host *vha, int vha_locked) vha 176 drivers/scsi/qla2xxx/qla_target.c if (unlikely(vha->marker_needed != 0)) { vha 177 drivers/scsi/qla2xxx/qla_target.c int rc = qla2x00_issue_marker(vha, vha_locked); vha 180 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe03d, vha 182 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 190 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *qlt_find_host_by_d_id(struct scsi_qla_host *vha, vha 196 drivers/scsi/qla2xxx/qla_target.c if (vha->d_id.b.area == d_id.area && vha 197 drivers/scsi/qla2xxx/qla_target.c vha->d_id.b.domain == d_id.domain && vha 198 drivers/scsi/qla2xxx/qla_target.c vha->d_id.b.al_pa == d_id.al_pa) vha 199 drivers/scsi/qla2xxx/qla_target.c return vha; vha 203 drivers/scsi/qla2xxx/qla_target.c host = btree_lookup32(&vha->hw->tgt.host_map, key); vha 205 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt + ql_dbg_verbose, vha, 0xf005, vha 212 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *qlt_find_host_by_vp_idx(struct scsi_qla_host *vha, vha 215 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 217 drivers/scsi/qla2xxx/qla_target.c if (vha->vp_idx == vp_idx) vha 218 drivers/scsi/qla2xxx/qla_target.c return vha; vha 222 drivers/scsi/qla2xxx/qla_target.c return ha->tgt.tgt_vp_map[vp_idx].vha; vha 227 drivers/scsi/qla2xxx/qla_target.c static inline void qlt_incr_num_pend_cmds(struct scsi_qla_host *vha) vha 231 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); vha 233 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_pend_cmds++; vha 234 drivers/scsi/qla2xxx/qla_target.c if (vha->hw->tgt.num_pend_cmds > vha->qla_stats.stat_max_pend_cmds) vha 235 drivers/scsi/qla2xxx/qla_target.c vha->qla_stats.stat_max_pend_cmds = vha 236 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_pend_cmds; vha 237 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.q_full_lock, flags); vha 239 drivers/scsi/qla2xxx/qla_target.c static inline void qlt_decr_num_pend_cmds(struct scsi_qla_host *vha) vha 243 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); vha 244 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_pend_cmds--; vha 245 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.q_full_lock, flags); vha 249 drivers/scsi/qla2xxx/qla_target.c static void qlt_queue_unknown_atio(scsi_qla_host_t *vha, vha 253 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 257 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_async, vha, 0x502c, vha 259 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 267 drivers/scsi/qla2xxx/qla_target.c u->vha = vha; vha 271 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->cmd_list_lock, flags); vha 272 drivers/scsi/qla2xxx/qla_target.c list_add_tail(&u->cmd_list, &vha->unknown_atio_list); vha 273 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->cmd_list_lock, flags); vha 275 drivers/scsi/qla2xxx/qla_target.c schedule_delayed_work(&vha->unknown_atio_work, 1); vha 281 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_exchange(vha->hw->base_qpair, NULL, atio, ha_locked, 0); vha 285 drivers/scsi/qla2xxx/qla_target.c static void qlt_try_to_dequeue_unknown_atios(struct scsi_qla_host *vha, vha 290 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 294 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry_safe(u, t, &vha->unknown_atio_list, cmd_list) { vha 296 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_async, vha, 0x502e, vha 299 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_exchange(vha->hw->base_qpair, NULL, vha 304 drivers/scsi/qla2xxx/qla_target.c host = qlt_find_host_by_d_id(vha, u->atio.u.isp24.fcp_hdr.d_id); vha 306 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_async + ql_dbg_verbose, vha, 0x502f, vha 310 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_async + ql_dbg_verbose, vha, 0x503a, vha 313 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_exchange(vha->hw->base_qpair, NULL, vha 316 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_async + ql_dbg_verbose, vha, 0x503d, vha 317 drivers/scsi/qla2xxx/qla_target.c "Reschedule u %p, vha %p, host %p\n", u, vha, host); vha 320 drivers/scsi/qla2xxx/qla_target.c schedule_delayed_work(&vha->unknown_atio_work, vha 327 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->cmd_list_lock, flags); vha 329 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->cmd_list_lock, flags); vha 336 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = container_of(to_delayed_work(work), vha 339 drivers/scsi/qla2xxx/qla_target.c qlt_try_to_dequeue_unknown_atios(vha, 0); vha 342 drivers/scsi/qla2xxx/qla_target.c static bool qlt_24xx_atio_pkt_all_vps(struct scsi_qla_host *vha, vha 345 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe072, vha 347 drivers/scsi/qla2xxx/qla_target.c __func__, vha->vp_idx, atio->u.raw.entry_type, vha 353 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *host = qlt_find_host_by_d_id(vha, vha 356 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe03e, vha 358 drivers/scsi/qla2xxx/qla_target.c "with unknown d_id %x:%x:%x\n", vha->vp_idx, vha 364 drivers/scsi/qla2xxx/qla_target.c qlt_queue_unknown_atio(vha, atio, ha_locked); vha 367 drivers/scsi/qla2xxx/qla_target.c if (unlikely(!list_empty(&vha->unknown_atio_list))) vha 368 drivers/scsi/qla2xxx/qla_target.c qlt_try_to_dequeue_unknown_atios(vha, ha_locked); vha 376 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *host = vha; vha 380 drivers/scsi/qla2xxx/qla_target.c qlt_issue_marker(vha, ha_locked); vha 384 drivers/scsi/qla2xxx/qla_target.c host = qlt_find_host_by_vp_idx(vha, vha 387 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe03f, vha 391 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, entry->u.isp24.vp_index); vha 400 drivers/scsi/qla2xxx/qla_target.c qla24xx_report_id_acquisition(vha, vha 408 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *host = qlt_find_host_by_vp_idx(vha, vha 413 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe00a, vha 416 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, entry->vp_index); vha 430 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe040, vha 432 drivers/scsi/qla2xxx/qla_target.c "type %x\n", vha->vp_idx, atio->u.raw.entry_type); vha 439 drivers/scsi/qla2xxx/qla_target.c void qlt_response_pkt_all_vps(struct scsi_qla_host *vha, vha 444 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe073, vha 446 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, __func__); vha 451 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *host = qlt_find_host_by_vp_idx(vha, vha 454 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe041, vha 457 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, entry->vp_index); vha 466 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *host = vha; vha 470 drivers/scsi/qla2xxx/qla_target.c host = qlt_find_host_by_vp_idx(vha, entry->u.isp24.vp_index); vha 472 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe042, vha 475 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, entry->u.isp24.vp_index); vha 484 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *host = vha; vha 488 drivers/scsi/qla2xxx/qla_target.c host = qlt_find_host_by_vp_idx(vha, vha 491 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe043, vha 495 drivers/scsi/qla2xxx/qla_target.c "vp_index %d\n", vha->vp_idx, vha 508 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *host = qlt_find_host_by_vp_idx(vha, vha 511 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe044, vha 514 drivers/scsi/qla2xxx/qla_target.c "vp_index %d\n", vha->vp_idx, entry->vp_index); vha 525 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *host = qlt_find_host_by_vp_idx(vha, vha 528 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe045, vha 531 drivers/scsi/qla2xxx/qla_target.c "vp_index %d\n", vha->vp_idx, entry->vp_index); vha 538 drivers/scsi/qla2xxx/qla_target.c qlt_response_pkt(vha, rsp, pkt); vha 547 drivers/scsi/qla2xxx/qla_target.c static int qla24xx_post_nack_work(struct scsi_qla_host *vha, fc_port_t *fcport, vha 552 drivers/scsi/qla2xxx/qla_target.c e = qla2x00_alloc_work(vha, QLA_EVT_NACK); vha 559 drivers/scsi/qla2xxx/qla_target.c return qla2x00_post_work(vha, e); vha 564 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = sp->vha; vha 567 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20f2, vha 571 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 573 drivers/scsi/qla2xxx/qla_target.c sp->fcport->chip_reset = vha->hw->base_qpair->chip_reset; vha 593 drivers/scsi/qla2xxx/qla_target.c vha->fcport_count++; vha 594 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 596 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 611 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 616 drivers/scsi/qla2xxx/qla_target.c int qla24xx_async_notify_ack(scsi_qla_host_t *vha, fc_port_t *fcport, vha 640 drivers/scsi/qla2xxx/qla_target.c sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC); vha 648 drivers/scsi/qla2xxx/qla_target.c qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha)+2); vha 653 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20f4, vha 670 drivers/scsi/qla2xxx/qla_target.c void qla24xx_do_nack_work(struct scsi_qla_host *vha, struct qla_work_evt *e) vha 679 drivers/scsi/qla2xxx/qla_target.c mutex_lock(&vha->vha_tgt.tgt_mutex); vha 680 drivers/scsi/qla2xxx/qla_target.c t = qlt_create_sess(vha, e->u.nack.fcport, 0); vha 681 drivers/scsi/qla2xxx/qla_target.c mutex_unlock(&vha->vha_tgt.tgt_mutex); vha 683 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_info, vha, 0xd034, vha 686 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_ops->put_sess(e->u.nack.fcport); vha 690 drivers/scsi/qla2xxx/qla_target.c qla24xx_async_notify_ack(vha, e->u.nack.fcport, vha 697 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = fcport->vha->hw; vha 710 drivers/scsi/qla2xxx/qla_target.c void qlt_fc_port_added(struct scsi_qla_host *vha, fc_port_t *fcport) vha 712 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 713 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 717 drivers/scsi/qla2xxx/qla_target.c if (!vha->hw->tgt.tgt_ops) vha 734 drivers/scsi/qla2xxx/qla_target.c mutex_lock(&vha->vha_tgt.tgt_mutex); vha 735 drivers/scsi/qla2xxx/qla_target.c sess = qlt_create_sess(vha, fcport, false); vha 736 drivers/scsi/qla2xxx/qla_target.c mutex_unlock(&vha->vha_tgt.tgt_mutex); vha 746 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x2107, vha 753 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04c, vha 755 drivers/scsi/qla2xxx/qla_target.c "(loop ID %d) reappeared\n", vha->vp_idx, vha 758 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf007, vha 767 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04d, vha 769 drivers/scsi/qla2xxx/qla_target.c "port %8phC (loop ID %d) became global\n", vha->vp_idx, vha 784 drivers/scsi/qla2xxx/qla_target.c qlt_plogi_ack_find_add(struct scsi_qla_host *vha, port_id_t *id, vha 789 drivers/scsi/qla2xxx/qla_target.c lockdep_assert_held(&vha->hw->hardware_lock); vha 791 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(pla, &vha->plogi_ack_list, list) { vha 793 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc + ql_dbg_verbose, vha, 0x210d, vha 797 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_imm_notif(vha, &pla->iocb, 1); vha 805 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_async, vha, 0x5088, vha 807 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 813 drivers/scsi/qla2xxx/qla_target.c list_add_tail(&pla->list, &vha->plogi_ack_list); vha 818 drivers/scsi/qla2xxx/qla_target.c void qlt_plogi_ack_unref(struct scsi_qla_host *vha, vha 832 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x5089, vha 850 drivers/scsi/qla2xxx/qla_target.c qla24xx_post_nack_work(vha, fcport, iocb, SRB_NACK_PLOGI); vha 852 drivers/scsi/qla2xxx/qla_target.c qla24xx_post_nack_work(vha, fcport, iocb, SRB_NACK_PRLI); vha 854 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(fcport, &vha->vp_fcports, list) { vha 866 drivers/scsi/qla2xxx/qla_target.c qlt_plogi_ack_link(struct scsi_qla_host *vha, struct qlt_plogi_ack_t *pla, vha 873 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf097, vha 893 drivers/scsi/qla2xxx/qla_target.c qlt_plogi_ack_unref(vha, sess->plogi_link[link]); vha 916 drivers/scsi/qla2xxx/qla_target.c qlt_send_first_logo(struct scsi_qla_host *vha, qlt_port_logo_t *logo) vha 921 drivers/scsi/qla2xxx/qla_target.c mutex_lock(&vha->vha_tgt.tgt_mutex); vha 923 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(tmp, &vha->logo_list, list) { vha 926 drivers/scsi/qla2xxx/qla_target.c mutex_unlock(&vha->vha_tgt.tgt_mutex); vha 931 drivers/scsi/qla2xxx/qla_target.c list_add_tail(&logo->list, &vha->logo_list); vha 933 drivers/scsi/qla2xxx/qla_target.c mutex_unlock(&vha->vha_tgt.tgt_mutex); vha 935 drivers/scsi/qla2xxx/qla_target.c res = qla24xx_els_dcmd_iocb(vha, ELS_DCMD_LOGO, logo->id); vha 937 drivers/scsi/qla2xxx/qla_target.c mutex_lock(&vha->vha_tgt.tgt_mutex); vha 939 drivers/scsi/qla2xxx/qla_target.c mutex_unlock(&vha->vha_tgt.tgt_mutex); vha 941 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf098, vha 952 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = sess->vha; vha 953 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 960 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf084, vha 969 drivers/scsi/qla2xxx/qla_target.c qla2x00_mark_device_lost(vha, sess, 0, 0); vha 977 drivers/scsi/qla2xxx/qla_target.c qlt_send_first_logo(vha, &logo); vha 987 drivers/scsi/qla2xxx/qla_target.c rc = qla2x00_post_async_logout_work(vha, sess, vha 990 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_warn, vha, 0xf085, vha 997 drivers/scsi/qla2xxx/qla_target.c rc = qla2x00_post_async_prlo_work(vha, sess, vha 1000 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_warn, vha, 0xf085, vha 1027 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf086, vha 1038 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0xf087, vha 1044 drivers/scsi/qla2xxx/qla_target.c qla24xx_async_notify_ack(vha, sess, vha 1060 drivers/scsi/qla2xxx/qla_target.c vha->fcport_count--; vha 1069 drivers/scsi/qla2xxx/qla_target.c if (!test_bit(UNLOADING, &vha->dpc_flags)) vha 1070 drivers/scsi/qla2xxx/qla_target.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1082 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf099, vha 1089 drivers/scsi/qla2xxx/qla_target.c qlt_plogi_ack_unref(vha, con); vha 1092 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf09a, vha 1102 drivers/scsi/qla2xxx/qla_target.c qlt_plogi_ack_unref(vha, own); vha 1111 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf001, vha 1113 drivers/scsi/qla2xxx/qla_target.c sess, sess->port_name, vha->fcport_count); vha 1119 drivers/scsi/qla2xxx/qla_target.c !(vha->vp_idx && test_bit(VPORT_DELETE, &vha->dpc_flags)) && vha 1120 drivers/scsi/qla2xxx/qla_target.c (!tgt || !tgt->tgt_stop) && !LOOP_TRANSITION(vha)) { vha 1121 drivers/scsi/qla2xxx/qla_target.c switch (vha->host->active_mode) { vha 1124 drivers/scsi/qla2xxx/qla_target.c set_bit(RELOGIN_NEEDED, &vha->dpc_flags); vha 1125 drivers/scsi/qla2xxx/qla_target.c qla2xxx_wake_dpc(vha); vha 1134 drivers/scsi/qla2xxx/qla_target.c if (vha->fcport_count == 0) vha 1135 drivers/scsi/qla2xxx/qla_target.c wake_up_all(&vha->fcport_waitQ); vha 1141 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = sess->vha; vha 1144 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, sess->vha, 0x210a, vha 1148 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&sess->vha->work_lock, flags); vha 1150 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&sess->vha->work_lock, flags); vha 1154 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&sess->vha->work_lock, flags); vha 1157 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_ops->clear_nacl_from_fcport_map(sess); vha 1164 drivers/scsi/qla2xxx/qla_target.c queue_work(sess->vha->hw->wq, &sess->free_work); vha 1168 drivers/scsi/qla2xxx/qla_target.c static int qlt_reset(struct scsi_qla_host *vha, void *iocb, int mcmd) vha 1170 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 1180 drivers/scsi/qla2xxx/qla_target.c atomic_inc(&vha->vha_tgt.qla_tgt->tgt_global_resets_count); vha 1182 drivers/scsi/qla2xxx/qla_target.c qlt_clear_tgt_db(vha->vha_tgt.qla_tgt); vha 1186 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_loop_id(vha, loop_id); vha 1190 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe000, vha 1197 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe047, vha 1199 drivers/scsi/qla2xxx/qla_target.c "loop_id %d)\n", vha->host_no, sess, sess->port_name, vha 1207 drivers/scsi/qla2xxx/qla_target.c if (sess->chip_reset != sess->vha->hw->base_qpair->chip_reset) { vha 1226 drivers/scsi/qla2xxx/qla_target.c if (sess->vha->fcport_count == 0) vha 1227 drivers/scsi/qla2xxx/qla_target.c wake_up_all(&sess->vha->fcport_waitQ); vha 1243 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, sess->vha, 0xffff, vha 1252 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&sess->vha->work_lock, flags); vha 1254 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&sess->vha->work_lock, flags); vha 1258 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&sess->vha->work_lock, flags); vha 1265 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, sess->vha, 0xe001, vha 1269 drivers/scsi/qla2xxx/qla_target.c WARN_ON(!queue_work(sess->vha->hw->wq, &sess->del_work)); vha 1275 drivers/scsi/qla2xxx/qla_target.c scsi_qla_host_t *vha = tgt->vha; vha 1277 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(sess, &vha->vp_fcports, list) { vha 1285 drivers/scsi/qla2xxx/qla_target.c static int qla24xx_get_loop_id(struct scsi_qla_host *vha, be_id_t s_id, vha 1288 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 1297 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf044, vha 1299 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, qla2x00_gid_list_size(ha)); vha 1304 drivers/scsi/qla2xxx/qla_target.c rc = qla24xx_gidlist_wait(vha, gid_list, gid_list_dma, &entries); vha 1306 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf045, vha 1308 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, rc); vha 1337 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha, vha 1341 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 1345 drivers/scsi/qla2xxx/qla_target.c if (vha->vha_tgt.qla_tgt->tgt_stop) vha 1350 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20f6, vha 1357 drivers/scsi/qla2xxx/qla_target.c sess->tgt = vha->vha_tgt.qla_tgt; vha 1370 drivers/scsi/qla2xxx/qla_target.c if (ha->tgt.tgt_ops->check_initiator_node_acl(vha, vha 1372 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf015, vha 1374 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, fcport->port_name); vha 1383 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20f7, vha 1391 drivers/scsi/qla2xxx/qla_target.c vha->vha_tgt.qla_tgt->sess_count++; vha 1393 drivers/scsi/qla2xxx/qla_target.c qlt_do_generation_tick(vha, &sess->generation); vha 1397 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf006, vha 1399 drivers/scsi/qla2xxx/qla_target.c sess, sess->se_sess, vha->vha_tgt.qla_tgt, vha 1400 drivers/scsi/qla2xxx/qla_target.c vha->vha_tgt.qla_tgt->sess_count); vha 1402 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04b, vha 1405 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, local ? "local " : "", fcport->port_name, vha 1417 drivers/scsi/qla2xxx/qla_target.c qlt_fc_port_deleted(struct scsi_qla_host *vha, fc_port_t *fcport, int max_gen) vha 1419 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 1423 drivers/scsi/qla2xxx/qla_target.c if (!vha->hw->tgt.tgt_ops) vha 1429 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 1431 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1435 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1440 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1441 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf092, vha 1449 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf008, "qla_tgt_fc_port_deleted %p", sess); vha 1452 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 1466 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, tgt->vha, 0xe002, vha 1478 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = tgt->vha; vha 1486 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04e, vha 1493 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xe003, "Stopping target for host %ld(%p)\n", vha 1494 drivers/scsi/qla2xxx/qla_target.c vha->host_no, vha); vha 1499 drivers/scsi/qla2xxx/qla_target.c mutex_lock(&vha->vha_tgt.tgt_mutex); vha 1502 drivers/scsi/qla2xxx/qla_target.c mutex_unlock(&vha->vha_tgt.tgt_mutex); vha 1505 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf009, vha 1515 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf00a, vha 1522 drivers/scsi/qla2xxx/qla_target.c (qla_tgt_mode_enabled(vha) || qla_dual_mode_enabled(vha))) vha 1523 drivers/scsi/qla2xxx/qla_target.c qlt_disable_vha(vha); vha 1536 drivers/scsi/qla2xxx/qla_target.c scsi_qla_host_t *vha = tgt->vha; vha 1539 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04f, vha 1545 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf00b, vha 1551 drivers/scsi/qla2xxx/qla_target.c mutex_lock(&vha->vha_tgt.tgt_mutex); vha 1554 drivers/scsi/qla2xxx/qla_target.c mutex_unlock(&vha->vha_tgt.tgt_mutex); vha 1556 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf00c, "Stop of tgt %p finished\n", vha 1559 drivers/scsi/qla2xxx/qla_target.c switch (vha->qlini_mode) { vha 1561 drivers/scsi/qla2xxx/qla_target.c vha->flags.online = 1; vha 1562 drivers/scsi/qla2xxx/qla_target.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 1573 drivers/scsi/qla2xxx/qla_target.c scsi_qla_host_t *vha = tgt->vha; vha 1578 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 1586 drivers/scsi/qla2xxx/qla_target.c for (i = 0; i < vha->hw->max_qpairs + 1; i++) { vha 1599 drivers/scsi/qla2xxx/qla_target.c list_del(&vha->vha_tgt.qla_tgt->tgt_list_entry); vha 1607 drivers/scsi/qla2xxx/qla_target.c if (vha->vp_idx) vha 1610 drivers/scsi/qla2xxx/qla_target.c vha->vha_tgt.target_lport_ptr) vha 1611 drivers/scsi/qla2xxx/qla_target.c ha->tgt.tgt_ops->remove_target(vha); vha 1613 drivers/scsi/qla2xxx/qla_target.c vha->vha_tgt.qla_tgt = NULL; vha 1615 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf00d, vha 1630 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, tgt->vha, 0xf050, vha 1636 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, tgt->vha, 0xf00e, vha 1661 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = qpair->vha; vha 1662 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 1669 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe004, "Sending NOTIFY_ACK (ha=%p)\n", ha); vha 1673 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe049, vha 1675 drivers/scsi/qla2xxx/qla_target.c "request packet\n", vha->vp_idx, __func__); vha 1679 drivers/scsi/qla2xxx/qla_target.c if (vha->vha_tgt.qla_tgt != NULL) vha 1680 drivers/scsi/qla2xxx/qla_target.c vha->vha_tgt.qla_tgt->notify_ack_expected++; vha 1706 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe005, vha 1708 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, nack->u.isp24.status); vha 1712 drivers/scsi/qla2xxx/qla_target.c qla2x00_start_iocbs(vha, qpair->req); vha 1717 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = mcmd->vha; vha 1718 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 1726 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe006, vha 1732 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe04a, vha 1734 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, __func__); vha 1757 drivers/scsi/qla2xxx/qla_target.c resp->vp_index = vha->vp_idx; vha 1787 drivers/scsi/qla2xxx/qla_target.c vha->vha_tgt.qla_tgt->abts_resp_expected++; vha 1794 drivers/scsi/qla2xxx/qla_target.c qla2x00_start_iocbs(vha, qpair->req); vha 1806 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = qpair->vha; vha 1807 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 1812 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe006, vha 1819 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe04a, vha 1821 drivers/scsi/qla2xxx/qla_target.c "request packet", vha->vp_idx, __func__); vha 1829 drivers/scsi/qla2xxx/qla_target.c resp->vp_index = vha->vp_idx; vha 1862 drivers/scsi/qla2xxx/qla_target.c vha->vha_tgt.qla_tgt->abts_resp_expected++; vha 1869 drivers/scsi/qla2xxx/qla_target.c qla2x00_start_iocbs(vha, qpair->req); vha 1875 drivers/scsi/qla2xxx/qla_target.c static void qlt_24xx_retry_term_exchange(struct scsi_qla_host *vha, vha 1884 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe04b, vha 1886 drivers/scsi/qla2xxx/qla_target.c "request packet\n", vha->vp_idx, __func__); vha 1907 drivers/scsi/qla2xxx/qla_target.c ctio->vp_index = vha->vp_idx; vha 1927 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe007, vha 1938 drivers/scsi/qla2xxx/qla_target.c qla2x00_start_iocbs(vha, qpair->req); vha 1953 drivers/scsi/qla2xxx/qla_target.c static void abort_cmds_for_lun(struct scsi_qla_host *vha, u64 lun, be_id_t s_id) vha 1961 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->cmd_list_lock, flags); vha 1962 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(op, &vha->qla_sess_op_cmd_list, cmd_list) { vha 1973 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(op, &vha->unknown_atio_list, cmd_list) { vha 1984 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(cmd, &vha->qla_cmd_list, cmd_list) { vha 1994 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->cmd_list_lock, flags); vha 1997 drivers/scsi/qla2xxx/qla_target.c static struct qla_qpair_hint *qlt_find_qphint(struct scsi_qla_host *vha, vha 2000 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 2003 drivers/scsi/qla2xxx/qla_target.c if (vha->flags.qpairs_available) { vha 2018 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = mcmd->vha->hw; vha 2060 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, mcmd->vha, 0xf052, vha 2062 drivers/scsi/qla2xxx/qla_target.c mcmd->vha->vp_idx, rc); vha 2068 drivers/scsi/qla2xxx/qla_target.c static int __qlt_24xx_handle_abts(struct scsi_qla_host *vha, vha 2071 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 2073 drivers/scsi/qla2xxx/qla_target.c struct qla_qpair_hint *h = &vha->vha_tgt.qla_tgt->qphints[0]; vha 2075 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf00f, vha 2077 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, abts->exchange_addr_to_abort); vha 2081 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf051, vha 2083 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, __func__); vha 2093 drivers/scsi/qla2xxx/qla_target.c mcmd->vha = vha; vha 2123 drivers/scsi/qla2xxx/qla_target.c static void qlt_24xx_handle_abts(struct scsi_qla_host *vha, vha 2126 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 2134 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf053, vha 2136 drivers/scsi/qla2xxx/qla_target.c "supported\n", vha->vp_idx); vha 2143 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf010, vha 2145 drivers/scsi/qla2xxx/qla_target.c "Address received\n", vha->vp_idx); vha 2151 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf011, vha 2153 drivers/scsi/qla2xxx/qla_target.c "tag=%d, param=%x)\n", vha->vp_idx, abts->fcp_hdr_le.s_id.domain, vha 2160 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, s_id); vha 2162 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf012, vha 2164 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 2180 drivers/scsi/qla2xxx/qla_target.c rc = __qlt_24xx_handle_abts(vha, abts, sess); vha 2182 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf054, vha 2184 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, rc); vha 2197 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *ha = mcmd->vha; vha 2257 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = cmd->vha; vha 2259 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_dif, vha, 0x3066, vha 2262 drivers/scsi/qla2xxx/qla_target.c vha, atio, scsi_status, sense_key, asc, ascq); vha 2264 drivers/scsi/qla2xxx/qla_target.c ctio = (struct ctio7_to_24xx *)qla2x00_alloc_iocbs(vha, NULL); vha 2266 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_async, vha, 0x3067, vha 2268 drivers/scsi/qla2xxx/qla_target.c vha->host_no, __func__); vha 2277 drivers/scsi/qla2xxx/qla_target.c ctio->vp_index = vha->vp_idx; vha 2309 drivers/scsi/qla2xxx/qla_target.c qla2x00_start_iocbs(vha, qpair->req); vha 2318 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = mcmd->sess->vha; vha 2319 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 2324 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf013, vha 2330 drivers/scsi/qla2xxx/qla_target.c if (!vha->flags.online || mcmd->reset_count != qpair->chip_reset) { vha 2335 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_async, vha, 0xe100, vha 2337 drivers/scsi/qla2xxx/qla_target.c vha->flags.online, qla2x00_reset_active(vha), vha 2349 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x2106, vha 2356 drivers/scsi/qla2xxx/qla_target.c qlt_send_notify_ack(vha->hw->base_qpair, vha 2444 drivers/scsi/qla2xxx/qla_target.c static void qlt_unmap_sg(struct scsi_qla_host *vha, struct qla_tgt_cmd *cmd) vha 2464 drivers/scsi/qla2xxx/qla_target.c ha = vha->hw; vha 2538 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, qpair->vha, 0x305b, vha 2540 drivers/scsi/qla2xxx/qla_target.c qpair->vha->vp_idx); vha 2677 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha; vha 2682 drivers/scsi/qla2xxx/qla_target.c vha = cmd->vha; vha 2686 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_dif, vha, 0xe00b, vha 2693 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_dif, vha, 0xe00c, vha 2700 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_dif, vha, 0xe00f, vha 2707 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_dif, vha, 0xe010, vha 2714 drivers/scsi/qla2xxx/qla_target.c ql_dump_buffer(ql_dbg_tgt_dif, vha, 0xe011, cmd->cdb, 16); vha 2774 drivers/scsi/qla2xxx/qla_target.c (IS_FWI2_CAPABLE(cmd->vha->hw) && vha 2903 drivers/scsi/qla2xxx/qla_target.c scsi_qla_host_t *vha = cmd->tgt->vha; vha 2904 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 3002 drivers/scsi/qla2xxx/qla_target.c scsi_qla_host_t *vha = cmd->vha; vha 3004 drivers/scsi/qla2xxx/qla_target.c ha = vha->hw; vha 3154 drivers/scsi/qla2xxx/qla_target.c tc.vha = vha; vha 3198 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = cmd->vha; vha 3239 drivers/scsi/qla2xxx/qla_target.c vha->flags.online, qla2x00_reset_active(vha), vha 3337 drivers/scsi/qla2xxx/qla_target.c qla2x00_start_iocbs(vha, qpair->req); vha 3343 drivers/scsi/qla2xxx/qla_target.c qlt_unmap_sg(vha, cmd); vha 3347 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_ops->free_cmd(cmd); vha 3355 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = cmd->vha; vha 3381 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_ops->handle_data(cmd); vha 3384 drivers/scsi/qla2xxx/qla_target.c vha->flags.online, qla2x00_reset_active(vha), vha 3420 drivers/scsi/qla2xxx/qla_target.c qla2x00_start_iocbs(vha, qpair->req); vha 3426 drivers/scsi/qla2xxx/qla_target.c qlt_unmap_sg(vha, cmd); vha 3446 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = cmd->vha; vha 3458 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_dif, vha, 0xf075, vha 3465 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_dif, vha, 0xe00d, vha 3481 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_dif, vha, 0xe00e, vha 3498 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_dif, vha, 0xe012, vha 3516 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_ops->handle_data(cmd); vha 3522 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_ops->free_cmd(cmd); vha 3532 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_ops->free_cmd(cmd); vha 3539 drivers/scsi/qla2xxx/qla_target.c static int __qlt_send_term_imm_notif(struct scsi_qla_host *vha, vha 3543 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 3547 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_tmr, vha, 0xe01c, vha 3550 drivers/scsi/qla2xxx/qla_target.c pkt = (request_t *)qla2x00_alloc_iocbs(vha, NULL); vha 3552 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe080, vha 3554 drivers/scsi/qla2xxx/qla_target.c "request packet\n", vha->vp_idx, __func__); vha 3584 drivers/scsi/qla2xxx/qla_target.c qla2x00_start_iocbs(vha, vha->req); vha 3588 drivers/scsi/qla2xxx/qla_target.c static void qlt_send_term_imm_notif(struct scsi_qla_host *vha, vha 3594 drivers/scsi/qla2xxx/qla_target.c rc = __qlt_send_term_imm_notif(vha, imm); vha 3606 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = qpair->vha; vha 3608 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 3613 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe009, "Sending TERM EXCH CTIO (ha=%p)\n", ha); vha 3616 drivers/scsi/qla2xxx/qla_target.c vha = cmd->vha; vha 3620 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe050, vha 3622 drivers/scsi/qla2xxx/qla_target.c "request packet\n", vha->vp_idx, __func__); vha 3628 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe051, vha 3630 drivers/scsi/qla2xxx/qla_target.c "incorrect state %d\n", vha->vp_idx, cmd, vha 3644 drivers/scsi/qla2xxx/qla_target.c ctio24->vp_index = vha->vp_idx; vha 3658 drivers/scsi/qla2xxx/qla_target.c qla2x00_start_iocbs(vha, qpair->req); vha 3666 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha; vha 3672 drivers/scsi/qla2xxx/qla_target.c vha = cmd->vha; vha 3674 drivers/scsi/qla2xxx/qla_target.c vha = qpair->vha; vha 3679 drivers/scsi/qla2xxx/qla_target.c qlt_alloc_qfull_cmd(vha, atio, 0, 0); vha 3685 drivers/scsi/qla2xxx/qla_target.c qlt_alloc_qfull_cmd(vha, atio, 0, 0); vha 3690 drivers/scsi/qla2xxx/qla_target.c qlt_unmap_sg(vha, cmd); vha 3691 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_ops->free_cmd(cmd); vha 3700 drivers/scsi/qla2xxx/qla_target.c static void qlt_init_term_exchange(struct scsi_qla_host *vha) vha 3705 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.leak_exchg_thresh_hold = vha 3706 drivers/scsi/qla2xxx/qla_target.c (vha->hw->cur_fw_xcb_count/100) * LEAK_EXCHG_THRESH_HOLD_PERCENT; vha 3709 drivers/scsi/qla2xxx/qla_target.c if (!list_empty(&vha->hw->tgt.q_full_list)) { vha 3711 drivers/scsi/qla2xxx/qla_target.c list_splice_init(&vha->hw->tgt.q_full_list, &free_list); vha 3719 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_qfull_cmds_alloc--; vha 3722 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_qfull_cmds_dropped = 0; vha 3725 drivers/scsi/qla2xxx/qla_target.c static void qlt_chk_exch_leak_thresh_hold(struct scsi_qla_host *vha) vha 3729 drivers/scsi/qla2xxx/qla_target.c total_leaked = vha->hw->tgt.num_qfull_cmds_dropped; vha 3731 drivers/scsi/qla2xxx/qla_target.c if (vha->hw->tgt.leak_exchg_thresh_hold && vha 3732 drivers/scsi/qla2xxx/qla_target.c (total_leaked > vha->hw->tgt.leak_exchg_thresh_hold)) { vha 3734 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe079, vha 3736 drivers/scsi/qla2xxx/qla_target.c total_leaked, vha->hw->cur_fw_xcb_count); vha 3738 drivers/scsi/qla2xxx/qla_target.c if (IS_P3P_TYPE(vha->hw)) vha 3739 drivers/scsi/qla2xxx/qla_target.c set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags); vha 3741 drivers/scsi/qla2xxx/qla_target.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 3742 drivers/scsi/qla2xxx/qla_target.c qla2xxx_wake_dpc(vha); vha 3750 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = tgt->vha; vha 3754 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf014, vha 3756 drivers/scsi/qla2xxx/qla_target.c "(se_cmd=%p, tag=%llu)", vha->vp_idx, cmd, &cmd->se_cmd, vha 3767 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf016, vha 3786 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, cmd->vha, 0xe074, vha 3794 drivers/scsi/qla2xxx/qla_target.c qlt_unmap_sg(cmd->vha, cmd); vha 3797 drivers/scsi/qla2xxx/qla_target.c qlt_decr_num_pend_cmds(cmd->vha); vha 3820 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = qpair->vha; vha 3823 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_dif, vha, 0xe013, vha 3848 drivers/scsi/qla2xxx/qla_target.c static void *qlt_ctio_to_cmd(struct scsi_qla_host *vha, vha 3861 drivers/scsi/qla2xxx/qla_target.c } else if (vha->hw->req_q_map[qid]) { vha 3862 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0x1000a, vha 3864 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, rsp->id, handle); vha 3865 drivers/scsi/qla2xxx/qla_target.c req = vha->hw->req_q_map[qid]; vha 3874 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe052, vha 3876 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, handle); vha 3882 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_async, vha, 0xe053, vha 3884 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, handle, req->id, rsp->id); vha 3890 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe054, vha 3892 drivers/scsi/qla2xxx/qla_target.c "support NULL handles\n", vha->vp_idx); vha 3902 drivers/scsi/qla2xxx/qla_target.c static void qlt_do_ctio_completion(struct scsi_qla_host *vha, vha 3905 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 3913 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf01d, vha 3920 drivers/scsi/qla2xxx/qla_target.c cmd = qlt_ctio_to_cmd(vha, rsp, handle, ctio); vha 3927 drivers/scsi/qla2xxx/qla_target.c qlt_unmap_sg(vha, cmd); vha 3933 drivers/scsi/qla2xxx/qla_target.c dev_info(&vha->hw->pdev->dev, vha 3935 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, cmd->atio.u.isp24.attr, vha 3946 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf058, vha 3950 drivers/scsi/qla2xxx/qla_target.c "TIMEOUT=b, INVALID_RX_ID=8)\n", vha->vp_idx, vha 3960 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf059, vha 3962 drivers/scsi/qla2xxx/qla_target.c "received (state %x, se_cmd %p)\n", vha->vp_idx, vha 3972 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20f8, vha 3983 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf073, vha 3987 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, status, cmd->state, se_cmd, vha 3995 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf05b, vha 3997 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, status, cmd->state, se_cmd); vha 4028 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf01e, vha 4032 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf05c, vha 4034 drivers/scsi/qla2xxx/qla_target.c "not return a CTIO complete\n", vha->vp_idx, cmd->state); vha 4039 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf01f, "Finishing failed CTIO\n"); vha 4046 drivers/scsi/qla2xxx/qla_target.c static inline int qlt_get_fcp_task_attr(struct scsi_qla_host *vha, vha 4068 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf05d, vha 4083 drivers/scsi/qla2xxx/qla_target.c scsi_qla_host_t *vha = cmd->vha; vha 4084 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 4097 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf082, vha 4118 drivers/scsi/qla2xxx/qla_target.c fcp_task_attr = qlt_get_fcp_task_attr(vha, vha 4122 drivers/scsi/qla2xxx/qla_target.c ret = ha->tgt.tgt_ops->handle_cmd(vha, cmd, cdb, data_length, vha 4133 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x3060, "Terminating work cmd %p", cmd); vha 4142 drivers/scsi/qla2xxx/qla_target.c qlt_decr_num_pend_cmds(vha); vha 4152 drivers/scsi/qla2xxx/qla_target.c scsi_qla_host_t *vha = cmd->vha; vha 4155 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->cmd_list_lock, flags); vha 4157 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->cmd_list_lock, flags); vha 4162 drivers/scsi/qla2xxx/qla_target.c void qlt_clr_qp_table(struct scsi_qla_host *vha) vha 4165 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 4166 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 4170 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_info, vha, 0x706c, vha 4187 drivers/scsi/qla2xxx/qla_target.c static void qlt_assign_qpair(struct scsi_qla_host *vha, vha 4191 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 4194 drivers/scsi/qla2xxx/qla_target.c if (vha->flags.qpairs_available) { vha 4200 drivers/scsi/qla2xxx/qla_target.c pci_get_drvdata(vha->hw->pdev); vha 4202 drivers/scsi/qla2xxx/qla_target.c qpair = vha->hw->base_qpair; vha 4211 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_info, vha, 0xd037, vha 4231 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_info, vha, 0xd038, vha 4253 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_info, vha, 0xd039, vha 4266 drivers/scsi/qla2xxx/qla_target.c static struct qla_tgt_cmd *qlt_get_tag(scsi_qla_host_t *vha, vha 4283 drivers/scsi/qla2xxx/qla_target.c cmd->tgt = vha->vha_tgt.qla_tgt; vha 4284 drivers/scsi/qla2xxx/qla_target.c qlt_incr_num_pend_cmds(vha); vha 4285 drivers/scsi/qla2xxx/qla_target.c cmd->vha = vha; vha 4297 drivers/scsi/qla2xxx/qla_target.c qlt_assign_qpair(vha, cmd); vha 4298 drivers/scsi/qla2xxx/qla_target.c cmd->reset_count = vha->hw->base_qpair->chip_reset; vha 4299 drivers/scsi/qla2xxx/qla_target.c cmd->vp_idx = vha->vp_idx; vha 4305 drivers/scsi/qla2xxx/qla_target.c static int qlt_handle_cmd_for_atio(struct scsi_qla_host *vha, vha 4308 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 4309 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 4316 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x3061, vha 4325 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, atio->u.isp24.fcp_hdr.s_id); vha 4332 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf002, vha 4342 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf004, vha 4349 drivers/scsi/qla2xxx/qla_target.c cmd = qlt_get_tag(vha, sess, atio); vha 4351 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x3062, vha 4352 drivers/scsi/qla2xxx/qla_target.c "qla_target(%d): Allocation of cmd failed\n", vha->vp_idx); vha 4360 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->cmd_list_lock, flags); vha 4361 drivers/scsi/qla2xxx/qla_target.c list_add_tail(&cmd->cmd_list, &vha->qla_cmd_list); vha 4362 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->cmd_list_lock, flags); vha 4365 drivers/scsi/qla2xxx/qla_target.c if (vha->flags.qpairs_available) { vha 4385 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = sess->vha; vha 4386 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 4389 drivers/scsi/qla2xxx/qla_target.c struct qla_qpair_hint *h = &vha->vha_tgt.qla_tgt->qphints[0]; vha 4393 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_tmr, vha, 0x10009, vha 4396 drivers/scsi/qla2xxx/qla_target.c "leak\n", vha->vp_idx); vha 4410 drivers/scsi/qla2xxx/qla_target.c mcmd->vha = vha; vha 4418 drivers/scsi/qla2xxx/qla_target.c abort_cmds_for_lun(vha, lun, a->u.isp24.fcp_hdr.s_id); vha 4421 drivers/scsi/qla2xxx/qla_target.c h = qlt_find_qphint(vha, mcmd->unpacked_lun); vha 4443 drivers/scsi/qla2xxx/qla_target.c static int qlt_handle_task_mgmt(struct scsi_qla_host *vha, void *iocb) vha 4446 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 4455 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, vha 4469 drivers/scsi/qla2xxx/qla_target.c static int __qlt_abort_task(struct scsi_qla_host *vha, vha 4473 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 4480 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf05f, vha 4482 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, __func__); vha 4500 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf060, vha 4502 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, rc); vha 4511 drivers/scsi/qla2xxx/qla_target.c static int qlt_abort_task(struct scsi_qla_host *vha, vha 4514 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 4522 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_loop_id(vha, loop_id); vha 4526 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf025, vha 4528 drivers/scsi/qla2xxx/qla_target.c "session\n", vha->vp_idx); vha 4529 drivers/scsi/qla2xxx/qla_target.c return qlt_sched_sess_work(vha->vha_tgt.qla_tgt, vha 4533 drivers/scsi/qla2xxx/qla_target.c return __qlt_abort_task(vha, iocb, sess); vha 4539 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, fcport->vha, 0xf093, vha 4562 drivers/scsi/qla2xxx/qla_target.c qlt_find_sess_invalidate_other(scsi_qla_host_t *vha, uint64_t wwn, vha 4570 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(other_sess, &vha->vp_fcports, list) { vha 4583 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_tmr, vha, 0x1000c, vha 4599 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_tmr, vha, 0xf01b, vha 4614 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_tmr, vha, 0x1000d, vha 4628 drivers/scsi/qla2xxx/qla_target.c static int abort_cmds_for_s_id(struct scsi_qla_host *vha, port_id_t *s_id) vha 4640 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->cmd_list_lock, flags); vha 4641 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(op, &vha->qla_sess_op_cmd_list, cmd_list) { vha 4650 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(op, &vha->unknown_atio_list, cmd_list) { vha 4659 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(cmd, &vha->qla_cmd_list, cmd_list) { vha 4667 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->cmd_list_lock, flags); vha 4672 drivers/scsi/qla2xxx/qla_target.c static int qlt_handle_login(struct scsi_qla_host *vha, vha 4683 drivers/scsi/qla2xxx/qla_target.c lockdep_assert_held(&vha->hw->hardware_lock); vha 4695 drivers/scsi/qla2xxx/qla_target.c abort_cmds_for_s_id(vha, &port_id); vha 4698 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 4699 drivers/scsi/qla2xxx/qla_target.c sess = qlt_find_sess_invalidate_other(vha, wwn, vha 4701 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 4703 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4706 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_imm_notif(vha, iocb, 1); vha 4715 drivers/scsi/qla2xxx/qla_target.c pla = qlt_plogi_ack_find_add(vha, &port_id, iocb); vha 4717 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc + ql_dbg_verbose, vha, 0xffff, vha 4721 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_imm_notif(vha, iocb, 1); vha 4727 drivers/scsi/qla2xxx/qla_target.c qlt_plogi_ack_link(vha, pla, conflict_sess, vha 4733 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4737 drivers/scsi/qla2xxx/qla_target.c qla24xx_post_newsess_work(vha, &port_id, vha 4742 drivers/scsi/qla2xxx/qla_target.c qla24xx_post_newsess_work(vha, &port_id, vha 4763 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4773 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_imm_notif(vha, iocb, 1); vha 4777 drivers/scsi/qla2xxx/qla_target.c qlt_plogi_ack_link(vha, pla, sess, QLT_PLOGI_LINK_SAME_WWN); vha 4801 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20f9, vha 4808 drivers/scsi/qla2xxx/qla_target.c qlt_plogi_ack_unref(vha, pla); vha 4833 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20f9, vha 4848 drivers/scsi/qla2xxx/qla_target.c static int qlt_24xx_handle_els(struct scsi_qla_host *vha, vha 4851 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 4852 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 4872 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0xf026, vha 4874 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, iocb->u.isp24.port_id[2], vha 4884 drivers/scsi/qla2xxx/qla_target.c res = qlt_handle_login(vha, iocb); vha 4889 drivers/scsi/qla2xxx/qla_target.c sess = qla2x00_find_fcport_by_wwpn(vha, vha 4893 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0xffff, vha 4897 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_imm_notif(vha, iocb, 1); vha 4901 drivers/scsi/qla2xxx/qla_target.c res = qlt_handle_login(vha, iocb); vha 4914 drivers/scsi/qla2xxx/qla_target.c sess = qlt_find_sess_invalidate_other(vha, wwn, port_id, vha 4925 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf09b, vha 4930 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_imm_notif(vha, iocb, 1); vha 4961 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, sess->vha, 0xffff, vha 4965 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_imm_notif(vha, iocb, 1); vha 4986 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_warn, sess->vha, 0xf095, vha 4989 drivers/scsi/qla2xxx/qla_target.c qlt_send_term_imm_notif(vha, iocb, 1); vha 4998 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf096, vha 5022 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20fa, vha 5025 drivers/scsi/qla2xxx/qla_target.c qla24xx_post_nack_work(vha, sess, iocb, vha 5029 drivers/scsi/qla2xxx/qla_target.c set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); vha 5030 drivers/scsi/qla2xxx/qla_target.c set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); vha 5031 drivers/scsi/qla2xxx/qla_target.c qla2xxx_wake_dpc(vha); vha 5035 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20fb, vha 5038 drivers/scsi/qla2xxx/qla_target.c qla24xx_post_nack_work(vha, sess, iocb, vha 5049 drivers/scsi/qla2xxx/qla_target.c qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS); vha 5057 drivers/scsi/qla2xxx/qla_target.c sess = qla2x00_find_fcport_by_loopid(vha, loop_id); vha 5067 drivers/scsi/qla2xxx/qla_target.c res = qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS_SESS); vha 5069 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20fc, vha 5091 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 5099 drivers/scsi/qla2xxx/qla_target.c sess = qla2x00_find_fcport_by_wwpn(vha, vha 5102 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20fd, vha 5114 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf061, vha 5116 drivers/scsi/qla2xxx/qla_target.c "received\n", vha->vp_idx, iocb->u.isp24.status_subcode); vha 5117 drivers/scsi/qla2xxx/qla_target.c res = qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS_SESS); vha 5121 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0xf026, vha 5123 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, iocb->u.isp24.status_subcode, res); vha 5131 drivers/scsi/qla2xxx/qla_target.c static void qlt_handle_imm_notify(struct scsi_qla_host *vha, vha 5134 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 5145 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf032, vha 5147 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, le16_to_cpu(iocb->u.isp24.nport_handle), vha 5150 drivers/scsi/qla2xxx/qla_target.c if (qlt_reset(vha, iocb, QLA_TGT_ABORT_ALL) == 0) vha 5157 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 5159 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf033, vha 5161 drivers/scsi/qla2xxx/qla_target.c "subcode %x)\n", vha->vp_idx, vha 5179 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf034, vha 5181 drivers/scsi/qla2xxx/qla_target.c "%#x, subcode %x)\n", vha->vp_idx, vha 5185 drivers/scsi/qla2xxx/qla_target.c if (qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS_SESS) == 0) vha 5191 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf035, vha 5192 drivers/scsi/qla2xxx/qla_target.c "qla_target(%d): Global TPRLO (%x)\n", vha->vp_idx, status); vha 5193 drivers/scsi/qla2xxx/qla_target.c if (qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS) == 0) vha 5199 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf036, vha 5200 drivers/scsi/qla2xxx/qla_target.c "qla_target(%d): Port config changed (%x)\n", vha->vp_idx, vha 5202 drivers/scsi/qla2xxx/qla_target.c if (qlt_reset(vha, iocb, QLA_TGT_ABORT_ALL) == 0) vha 5208 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf06a, vha 5210 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 5212 drivers/scsi/qla2xxx/qla_target.c if (qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS) == 0) vha 5217 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf06b, vha 5220 drivers/scsi/qla2xxx/qla_target.c "resource count)\n", vha->vp_idx); vha 5224 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf037, vha 5226 drivers/scsi/qla2xxx/qla_target.c "L %#x)\n", vha->vp_idx, vha 5230 drivers/scsi/qla2xxx/qla_target.c if (qlt_abort_task(vha, iocb) == 0) vha 5235 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf06c, vha 5237 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, vha->host_no); vha 5241 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf038, vha 5243 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, iocb->u.isp2x.task_flags); vha 5247 drivers/scsi/qla2xxx/qla_target.c if (qlt_24xx_handle_els(vha, iocb) == 0) vha 5251 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf06d, vha 5253 drivers/scsi/qla2xxx/qla_target.c "notify status %x\n", vha->vp_idx, status); vha 5269 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = qpair->vha; vha 5271 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 5281 drivers/scsi/qla2xxx/qla_target.c sess = qla2x00_find_fcport_by_nportid(vha, &id, 1); vha 5291 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x3063, vha 5293 drivers/scsi/qla2xxx/qla_target.c "request packet", vha->vp_idx, __func__); vha 5305 drivers/scsi/qla2xxx/qla_target.c ctio24->vp_index = vha->vp_idx; vha 5329 drivers/scsi/qla2xxx/qla_target.c qla2x00_start_iocbs(vha, qpair->req); vha 5339 drivers/scsi/qla2xxx/qla_target.c qlt_alloc_qfull_cmd(struct scsi_qla_host *vha, vha 5342 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 5343 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 5351 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x300a, vha 5356 drivers/scsi/qla2xxx/qla_target.c if ((vha->hw->tgt.num_qfull_cmds_alloc + 1) > MAX_QFULL_CMDS_ALLOC) { vha 5357 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_qfull_cmds_dropped++; vha 5358 drivers/scsi/qla2xxx/qla_target.c if (vha->hw->tgt.num_qfull_cmds_dropped > vha 5359 drivers/scsi/qla2xxx/qla_target.c vha->qla_stats.stat_max_qfull_cmds_dropped) vha 5360 drivers/scsi/qla2xxx/qla_target.c vha->qla_stats.stat_max_qfull_cmds_dropped = vha 5361 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_qfull_cmds_dropped; vha 5363 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x3068, vha 5365 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, __func__, vha 5366 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_qfull_cmds_dropped); vha 5368 drivers/scsi/qla2xxx/qla_target.c qlt_chk_exch_leak_thresh_hold(vha); vha 5373 drivers/scsi/qla2xxx/qla_target.c (vha, atio->u.isp24.fcp_hdr.s_id); vha 5381 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x3009, vha 5383 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, __func__); vha 5385 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_qfull_cmds_dropped++; vha 5386 drivers/scsi/qla2xxx/qla_target.c if (vha->hw->tgt.num_qfull_cmds_dropped > vha 5387 drivers/scsi/qla2xxx/qla_target.c vha->qla_stats.stat_max_qfull_cmds_dropped) vha 5388 drivers/scsi/qla2xxx/qla_target.c vha->qla_stats.stat_max_qfull_cmds_dropped = vha 5389 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_qfull_cmds_dropped; vha 5391 drivers/scsi/qla2xxx/qla_target.c qlt_chk_exch_leak_thresh_hold(vha); vha 5398 drivers/scsi/qla2xxx/qla_target.c qlt_incr_num_pend_cmds(vha); vha 5402 drivers/scsi/qla2xxx/qla_target.c cmd->tgt = vha->vha_tgt.qla_tgt; vha 5403 drivers/scsi/qla2xxx/qla_target.c cmd->vha = vha; vha 5416 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); vha 5417 drivers/scsi/qla2xxx/qla_target.c list_add_tail(&cmd->cmd_list, &vha->hw->tgt.q_full_list); vha 5419 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_qfull_cmds_alloc++; vha 5420 drivers/scsi/qla2xxx/qla_target.c if (vha->hw->tgt.num_qfull_cmds_alloc > vha 5421 drivers/scsi/qla2xxx/qla_target.c vha->qla_stats.stat_max_qfull_cmds_alloc) vha 5422 drivers/scsi/qla2xxx/qla_target.c vha->qla_stats.stat_max_qfull_cmds_alloc = vha 5423 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_qfull_cmds_alloc; vha 5424 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.q_full_lock, flags); vha 5430 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = qpair->vha; vha 5431 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 5443 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); vha 5445 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.q_full_lock, flags); vha 5449 drivers/scsi/qla2xxx/qla_target.c list_splice_init(&vha->hw->tgt.q_full_list, &q_full_list); vha 5450 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.q_full_lock, flags); vha 5464 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x3006, vha 5468 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x3007, vha 5472 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x3008, vha 5480 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.num_qfull_cmds_alloc--; vha 5495 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); vha 5496 drivers/scsi/qla2xxx/qla_target.c list_splice(&q_full_list, &vha->hw->tgt.q_full_list); vha 5497 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.q_full_lock, flags); vha 5508 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = qpair->vha; vha 5512 drivers/scsi/qla2xxx/qla_target.c qlt_alloc_qfull_cmd(vha, atio, status, 1); vha 5516 drivers/scsi/qla2xxx/qla_target.c qlt_chk_qfull_thresh_hold(struct scsi_qla_host *vha, struct qla_qpair *qpair, vha 5519 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 5536 drivers/scsi/qla2xxx/qla_target.c static void qlt_24xx_atio_pkt(struct scsi_qla_host *vha, vha 5539 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 5540 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 5545 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0x3064, vha 5560 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_io, vha, 0x3065, vha 5563 drivers/scsi/qla2xxx/qla_target.c "sending QUEUE_FULL\n", vha->vp_idx); vha 5574 drivers/scsi/qla2xxx/qla_target.c rc = qlt_chk_qfull_thresh_hold(vha, ha->base_qpair, vha 5580 drivers/scsi/qla2xxx/qla_target.c rc = qlt_handle_cmd_for_atio(vha, atio); vha 5582 drivers/scsi/qla2xxx/qla_target.c rc = qlt_handle_task_mgmt(vha, atio); vha 5589 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe05f, vha 5593 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe05f, vha 5599 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe060, vha 5601 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 5606 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe060, vha 5608 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 5622 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe05b, vha 5624 drivers/scsi/qla2xxx/qla_target.c "with error status %x\n", vha->vp_idx, vha 5629 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe02e, "%s", "IMMED_NOTIFY ATIO"); vha 5633 drivers/scsi/qla2xxx/qla_target.c qlt_handle_imm_notify(vha, (struct imm_ntfy_from_isp *)atio); vha 5640 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe05c, vha 5642 drivers/scsi/qla2xxx/qla_target.c "type %x\n", vha->vp_idx, atio->u.raw.entry_type); vha 5654 drivers/scsi/qla2xxx/qla_target.c static int qlt_chk_unresolv_exchg(struct scsi_qla_host *vha, vha 5657 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 5673 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_warn, vha, 0xffff, vha 5676 drivers/scsi/qla2xxx/qla_target.c vha, 0xffff, (uint8_t *)entry, sizeof(*entry)); vha 5679 drivers/scsi/qla2xxx/qla_target.c ha->isp_ops->fw_dump(vha, 1); vha 5681 drivers/scsi/qla2xxx/qla_target.c ha->isp_ops->fw_dump(vha, 0); vha 5683 drivers/scsi/qla2xxx/qla_target.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 5684 drivers/scsi/qla2xxx/qla_target.c qla2xxx_wake_dpc(vha); vha 5696 drivers/scsi/qla2xxx/qla_target.c static void qlt_handle_abts_completion(struct scsi_qla_host *vha, vha 5703 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 5705 drivers/scsi/qla2xxx/qla_target.c mcmd = qlt_ctio_to_cmd(vha, rsp, pkt->handle, pkt); vha 5707 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_async, vha, 0xe064, vha 5709 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 5714 drivers/scsi/qla2xxx/qla_target.c vha = mcmd->vha; vha 5715 drivers/scsi/qla2xxx/qla_target.c vha->vha_tgt.qla_tgt->abts_resp_expected--; vha 5717 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe038, vha 5724 drivers/scsi/qla2xxx/qla_target.c if (qlt_chk_unresolv_exchg(vha, rsp->qpair, entry)) { vha 5728 drivers/scsi/qla2xxx/qla_target.c qlt_24xx_retry_term_exchange(vha, rsp->qpair, vha 5731 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe063, vha 5733 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, entry->compl_status, vha 5745 drivers/scsi/qla2xxx/qla_target.c static void qlt_response_pkt(struct scsi_qla_host *vha, vha 5748 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 5751 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe05d, vha 5753 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, pkt->entry_type, vha->hw); vha 5768 drivers/scsi/qla2xxx/qla_target.c qlt_do_ctio_completion(vha, rsp, entry->handle, vha 5781 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe05e, vha 5783 drivers/scsi/qla2xxx/qla_target.c "status %x received\n", vha->vp_idx, vha 5788 drivers/scsi/qla2xxx/qla_target.c rc = qlt_chk_qfull_thresh_hold(vha, rsp->qpair, atio, 1); vha 5792 drivers/scsi/qla2xxx/qla_target.c rc = qlt_handle_cmd_for_atio(vha, atio); vha 5796 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe05f, vha 5800 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe05f, vha 5806 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe060, vha 5808 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 5813 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe060, vha 5815 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 5828 drivers/scsi/qla2xxx/qla_target.c qlt_do_ctio_completion(vha, rsp, entry->handle, vha 5838 drivers/scsi/qla2xxx/qla_target.c qlt_do_ctio_completion(vha, rsp, entry->handle, vha 5845 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe035, "%s", "IMMED_NOTIFY\n"); vha 5846 drivers/scsi/qla2xxx/qla_target.c qlt_handle_imm_notify(vha, (struct imm_ntfy_from_isp *)pkt); vha 5853 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe036, vha 5860 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe061, vha 5862 drivers/scsi/qla2xxx/qla_target.c "failed %x\n", vha->vp_idx, vha 5866 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe062, vha 5868 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 5873 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe037, vha 5874 drivers/scsi/qla2xxx/qla_target.c "ABTS_RECV_24XX: instance %d\n", vha->vp_idx); vha 5875 drivers/scsi/qla2xxx/qla_target.c qlt_24xx_handle_abts(vha, (struct abts_recv_from_24xx *)pkt); vha 5880 drivers/scsi/qla2xxx/qla_target.c qlt_handle_abts_completion(vha, rsp, pkt); vha 5882 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe064, vha 5884 drivers/scsi/qla2xxx/qla_target.c "received\n", vha->vp_idx); vha 5889 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe065, vha 5891 drivers/scsi/qla2xxx/qla_target.c "type %x\n", vha->vp_idx, pkt->entry_type); vha 5900 drivers/scsi/qla2xxx/qla_target.c void qlt_async_event(uint16_t code, struct scsi_qla_host *vha, vha 5903 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 5904 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 5924 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf03a, vha 5926 drivers/scsi/qla2xxx/qla_target.c "occurred", vha->vp_idx, code); vha 5929 drivers/scsi/qla2xxx/qla_target.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 5934 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf03b, vha 5936 drivers/scsi/qla2xxx/qla_target.c "(m[0]=%x, m[1]=%x, m[2]=%x, m[3]=%x)", vha->vp_idx, vha 5952 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf03c, vha 5954 drivers/scsi/qla2xxx/qla_target.c "(m[0]=%x, m[1]=%x, m[2]=%x, m[3]=%x)", vha->vp_idx, code, vha 5960 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf017, vha 5962 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, vha 5968 drivers/scsi/qla2xxx/qla_target.c vha->hw->exch_starvation++; vha 5969 drivers/scsi/qla2xxx/qla_target.c if (vha->hw->exch_starvation > 5) { vha 5970 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_warn, vha, 0xd03a, vha 5973 drivers/scsi/qla2xxx/qla_target.c vha->hw->exch_starvation = 0; vha 5974 drivers/scsi/qla2xxx/qla_target.c if (IS_P3P_TYPE(vha->hw)) vha 5976 drivers/scsi/qla2xxx/qla_target.c &vha->dpc_flags); vha 5979 drivers/scsi/qla2xxx/qla_target.c &vha->dpc_flags); vha 5980 drivers/scsi/qla2xxx/qla_target.c qla2xxx_wake_dpc(vha); vha 5986 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf03d, vha 5989 drivers/scsi/qla2xxx/qla_target.c "m[2]=%x, m[3]=%x)", vha->vp_idx, code, vha 5995 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf03e, vha 5997 drivers/scsi/qla2xxx/qla_target.c vha->hw->exch_starvation = 0; vha 5999 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf03f, vha 6008 drivers/scsi/qla2xxx/qla_target.c static fc_port_t *qlt_get_port_database(struct scsi_qla_host *vha, vha 6016 drivers/scsi/qla2xxx/qla_target.c fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); vha 6018 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf06f, vha 6020 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx); vha 6026 drivers/scsi/qla2xxx/qla_target.c rc = qla24xx_gpdb_wait(vha, fcport, 0); vha 6028 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf070, vha 6031 drivers/scsi/qla2xxx/qla_target.c "(loop_id=0x%04x)", vha->vp_idx, rc, loop_id); vha 6037 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 6038 drivers/scsi/qla2xxx/qla_target.c tfcp = qla2x00_find_fcport_by_wwpn(vha, fcport->port_name, 1); vha 6050 drivers/scsi/qla2xxx/qla_target.c if (vha->hw->current_topology == ISP_CFG_F) vha 6053 drivers/scsi/qla2xxx/qla_target.c list_add_tail(&fcport->list, &vha->vp_fcports); vha 6055 drivers/scsi/qla2xxx/qla_target.c vha->fcport_count++; vha 6063 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 6065 drivers/scsi/qla2xxx/qla_target.c switch (vha->host->active_mode) { vha 6069 drivers/scsi/qla2xxx/qla_target.c if (!IS_IIDMA_CAPABLE(vha->hw) || !vha->hw->flags.gpsc_supported) { vha 6072 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, vha, 0x20ff, vha 6074 drivers/scsi/qla2xxx/qla_target.c __func__, __LINE__, fcport->port_name, vha->fcport_count); vha 6075 drivers/scsi/qla2xxx/qla_target.c qla24xx_post_gpsc_work(vha, fcport); vha 6091 drivers/scsi/qla2xxx/qla_target.c static struct fc_port *qlt_make_local_sess(struct scsi_qla_host *vha, vha 6104 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf042, vha 6110 drivers/scsi/qla2xxx/qla_target.c mutex_lock(&vha->vha_tgt.tgt_mutex); vha 6114 drivers/scsi/qla2xxx/qla_target.c atomic_read(&vha->vha_tgt.qla_tgt->tgt_global_resets_count); vha 6116 drivers/scsi/qla2xxx/qla_target.c rc = qla24xx_get_loop_id(vha, s_id, &loop_id); vha 6118 drivers/scsi/qla2xxx/qla_target.c mutex_unlock(&vha->vha_tgt.tgt_mutex); vha 6120 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_info, vha, 0xf071, vha 6123 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, s_id.domain, s_id.area, s_id.al_pa); vha 6130 drivers/scsi/qla2xxx/qla_target.c qlt_send_first_logo(vha, &logo); vha 6136 drivers/scsi/qla2xxx/qla_target.c fcport = qlt_get_port_database(vha, loop_id); vha 6138 drivers/scsi/qla2xxx/qla_target.c mutex_unlock(&vha->vha_tgt.tgt_mutex); vha 6143 drivers/scsi/qla2xxx/qla_target.c atomic_read(&vha->vha_tgt.qla_tgt->tgt_global_resets_count)) { vha 6144 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf043, vha 6146 drivers/scsi/qla2xxx/qla_target.c "(counter was %d, new %d), retrying", vha->vp_idx, vha 6148 drivers/scsi/qla2xxx/qla_target.c atomic_read(&vha->vha_tgt. vha 6153 drivers/scsi/qla2xxx/qla_target.c sess = qlt_create_sess(vha, fcport, true); vha 6155 drivers/scsi/qla2xxx/qla_target.c mutex_unlock(&vha->vha_tgt.tgt_mutex); vha 6163 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = tgt->vha; vha 6164 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6177 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, s_id); vha 6181 drivers/scsi/qla2xxx/qla_target.c sess = qlt_make_local_sess(vha, s_id); vha 6194 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_tmr, vha, 0xf01c, vha 6202 drivers/scsi/qla2xxx/qla_target.c rc = __qlt_24xx_handle_abts(vha, &prm->abts, sess); vha 6225 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = tgt->vha; vha 6226 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6241 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, s_id); vha 6245 drivers/scsi/qla2xxx/qla_target.c sess = qlt_make_local_sess(vha, s_id); vha 6257 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_tmr, vha, 0xf020, vha 6287 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = tgt->vha; vha 6290 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf000, "Sess work (tgt %p)", tgt); vha 6397 drivers/scsi/qla2xxx/qla_target.c tgt->vha = base_vha; vha 6424 drivers/scsi/qla2xxx/qla_target.c int qlt_remove_target(struct qla_hw_data *ha, struct scsi_qla_host *vha) vha 6426 drivers/scsi/qla2xxx/qla_target.c if (!vha->vha_tgt.qla_tgt) vha 6429 drivers/scsi/qla2xxx/qla_target.c if (vha->fc_vport) { vha 6430 drivers/scsi/qla2xxx/qla_target.c qlt_release(vha->vha_tgt.qla_tgt); vha 6435 drivers/scsi/qla2xxx/qla_target.c qlt_init_term_exchange(vha); vha 6437 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe03c, "Unregistering target for host %ld(%p)", vha 6438 drivers/scsi/qla2xxx/qla_target.c vha->host_no, ha); vha 6439 drivers/scsi/qla2xxx/qla_target.c qlt_release(vha->vha_tgt.qla_tgt); vha 6455 drivers/scsi/qla2xxx/qla_target.c static void qlt_lport_dump(struct scsi_qla_host *vha, u64 wwpn, vha 6458 drivers/scsi/qla2xxx/qla_target.c pr_debug("qla2xxx HW vha->node_name: %8phC\n", vha->node_name); vha 6459 drivers/scsi/qla2xxx/qla_target.c pr_debug("qla2xxx HW vha->port_name: %8phC\n", vha->port_name); vha 6478 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha; vha 6487 drivers/scsi/qla2xxx/qla_target.c vha = tgt->vha; vha 6488 drivers/scsi/qla2xxx/qla_target.c ha = vha->hw; vha 6490 drivers/scsi/qla2xxx/qla_target.c host = vha->host; vha 6497 drivers/scsi/qla2xxx/qla_target.c if (vha->qlini_mode == QLA2XXX_INI_MODE_ENABLED) vha 6516 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe068, vha 6521 drivers/scsi/qla2xxx/qla_target.c qlt_lport_dump(vha, phys_wwpn, b); vha 6523 drivers/scsi/qla2xxx/qla_target.c if (memcmp(vha->port_name, b, WWN_SIZE)) { vha 6527 drivers/scsi/qla2xxx/qla_target.c rc = (*callback)(vha, target_lport_ptr, npiv_wwpn, npiv_wwnn); vha 6545 drivers/scsi/qla2xxx/qla_target.c void qlt_lport_deregister(struct scsi_qla_host *vha) vha 6547 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6548 drivers/scsi/qla2xxx/qla_target.c struct Scsi_Host *sh = vha->host; vha 6552 drivers/scsi/qla2xxx/qla_target.c vha->vha_tgt.target_lport_ptr = NULL; vha 6562 drivers/scsi/qla2xxx/qla_target.c void qlt_set_mode(struct scsi_qla_host *vha) vha 6564 drivers/scsi/qla2xxx/qla_target.c switch (vha->qlini_mode) { vha 6567 drivers/scsi/qla2xxx/qla_target.c vha->host->active_mode = MODE_TARGET; vha 6570 drivers/scsi/qla2xxx/qla_target.c vha->host->active_mode = MODE_INITIATOR; vha 6573 drivers/scsi/qla2xxx/qla_target.c vha->host->active_mode = MODE_DUAL; vha 6581 drivers/scsi/qla2xxx/qla_target.c static void qlt_clear_mode(struct scsi_qla_host *vha) vha 6583 drivers/scsi/qla2xxx/qla_target.c switch (vha->qlini_mode) { vha 6585 drivers/scsi/qla2xxx/qla_target.c vha->host->active_mode = MODE_UNKNOWN; vha 6588 drivers/scsi/qla2xxx/qla_target.c vha->host->active_mode = MODE_INITIATOR; vha 6592 drivers/scsi/qla2xxx/qla_target.c vha->host->active_mode = MODE_INITIATOR; vha 6605 drivers/scsi/qla2xxx/qla_target.c qlt_enable_vha(struct scsi_qla_host *vha) vha 6607 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6608 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 6613 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe069, vha 6619 drivers/scsi/qla2xxx/qla_target.c if (vha->qlini_mode == QLA2XXX_INI_MODE_ENABLED) vha 6626 drivers/scsi/qla2xxx/qla_target.c qlt_set_mode(vha); vha 6630 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf021, vha 6632 drivers/scsi/qla2xxx/qla_target.c if (vha->vp_idx) { vha 6633 drivers/scsi/qla2xxx/qla_target.c qla24xx_disable_vp(vha); vha 6634 drivers/scsi/qla2xxx/qla_target.c qla24xx_enable_vp(vha); vha 6650 drivers/scsi/qla2xxx/qla_target.c static void qlt_disable_vha(struct scsi_qla_host *vha) vha 6652 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6653 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; vha 6657 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe06a, vha 6665 drivers/scsi/qla2xxx/qla_target.c qlt_clear_mode(vha); vha 6668 drivers/scsi/qla2xxx/qla_target.c set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); vha 6669 drivers/scsi/qla2xxx/qla_target.c qla2xxx_wake_dpc(vha); vha 6670 drivers/scsi/qla2xxx/qla_target.c if (qla2x00_wait_for_hba_online(vha) != QLA_SUCCESS) vha 6671 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, vha, 0xe081, vha 6681 drivers/scsi/qla2xxx/qla_target.c qlt_vport_create(struct scsi_qla_host *vha, struct qla_hw_data *ha) vha 6683 drivers/scsi/qla2xxx/qla_target.c vha->vha_tgt.qla_tgt = NULL; vha 6685 drivers/scsi/qla2xxx/qla_target.c mutex_init(&vha->vha_tgt.tgt_mutex); vha 6686 drivers/scsi/qla2xxx/qla_target.c mutex_init(&vha->vha_tgt.tgt_host_action_mutex); vha 6688 drivers/scsi/qla2xxx/qla_target.c qlt_clear_mode(vha); vha 6698 drivers/scsi/qla2xxx/qla_target.c qlt_add_target(ha, vha); vha 6702 drivers/scsi/qla2xxx/qla_target.c qlt_rff_id(struct scsi_qla_host *vha) vha 6708 drivers/scsi/qla2xxx/qla_target.c if (qla_tgt_mode_enabled(vha)) { vha 6710 drivers/scsi/qla2xxx/qla_target.c } else if (qla_ini_mode_enabled(vha)) { vha 6712 drivers/scsi/qla2xxx/qla_target.c } else if (qla_dual_mode_enabled(vha)) vha 6728 drivers/scsi/qla2xxx/qla_target.c qlt_init_atio_q_entries(struct scsi_qla_host *vha) vha 6730 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6734 drivers/scsi/qla2xxx/qla_target.c if (qla_ini_mode_enabled(vha)) vha 6749 drivers/scsi/qla2xxx/qla_target.c qlt_24xx_process_atio_queue(struct scsi_qla_host *vha, uint8_t ha_locked) vha 6751 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6769 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_warn, vha, 0xd03c, vha 6779 drivers/scsi/qla2xxx/qla_target.c qlt_24xx_atio_pkt_all_vps(vha, vha 6798 drivers/scsi/qla2xxx/qla_target.c WRT_REG_DWORD(ISP_ATIO_Q_OUT(vha), ha->tgt.atio_ring_index); vha 6802 drivers/scsi/qla2xxx/qla_target.c qlt_24xx_config_rings(struct scsi_qla_host *vha) vha 6804 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6811 drivers/scsi/qla2xxx/qla_target.c WRT_REG_DWORD(ISP_ATIO_Q_IN(vha), 0); vha 6812 drivers/scsi/qla2xxx/qla_target.c WRT_REG_DWORD(ISP_ATIO_Q_OUT(vha), 0); vha 6813 drivers/scsi/qla2xxx/qla_target.c RD_REG_DWORD(ISP_ATIO_Q_OUT(vha)); vha 6825 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_init, vha, 0xf072, vha 6834 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_init, vha, 0xf072, vha 6841 drivers/scsi/qla2xxx/qla_target.c qlt_24xx_config_nvram_stage1(struct scsi_qla_host *vha, struct nvram_24xx *nv) vha 6843 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6849 drivers/scsi/qla2xxx/qla_target.c if (qla_tgt_mode_enabled(vha) || qla_dual_mode_enabled(vha)) { vha 6862 drivers/scsi/qla2xxx/qla_target.c if (qla_tgt_mode_enabled(vha)) vha 6865 drivers/scsi/qla2xxx/qla_target.c nv->exchange_count = cpu_to_le16(vha->ql2xexchoffld); vha 6871 drivers/scsi/qla2xxx/qla_target.c if (qla_tgt_mode_enabled(vha)) vha 6918 drivers/scsi/qla2xxx/qla_target.c if (vha->flags.init_done) vha 6919 drivers/scsi/qla2xxx/qla_target.c fc_host_supported_classes(vha->host) = vha 6924 drivers/scsi/qla2xxx/qla_target.c if (vha->flags.init_done) vha 6925 drivers/scsi/qla2xxx/qla_target.c fc_host_supported_classes(vha->host) = FC_COS_CLASS3; vha 6932 drivers/scsi/qla2xxx/qla_target.c qlt_24xx_config_nvram_stage2(struct scsi_qla_host *vha, vha 6935 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6947 drivers/scsi/qla2xxx/qla_target.c qlt_81xx_config_nvram_stage1(struct scsi_qla_host *vha, struct nvram_81xx *nv) vha 6949 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 6955 drivers/scsi/qla2xxx/qla_target.c if (qla_tgt_mode_enabled(vha) || qla_dual_mode_enabled(vha)) { vha 6968 drivers/scsi/qla2xxx/qla_target.c if (qla_tgt_mode_enabled(vha)) vha 6971 drivers/scsi/qla2xxx/qla_target.c nv->exchange_count = cpu_to_le16(vha->ql2xexchoffld); vha 6977 drivers/scsi/qla2xxx/qla_target.c if (qla_tgt_mode_enabled(vha)) vha 7021 drivers/scsi/qla2xxx/qla_target.c if (vha->flags.init_done) vha 7022 drivers/scsi/qla2xxx/qla_target.c fc_host_supported_classes(vha->host) = vha 7027 drivers/scsi/qla2xxx/qla_target.c if (vha->flags.init_done) vha 7028 drivers/scsi/qla2xxx/qla_target.c fc_host_supported_classes(vha->host) = FC_COS_CLASS3; vha 7035 drivers/scsi/qla2xxx/qla_target.c qlt_81xx_config_nvram_stage2(struct scsi_qla_host *vha, vha 7038 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 7060 drivers/scsi/qla2xxx/qla_target.c qlt_modify_vp_config(struct scsi_qla_host *vha, vha 7064 drivers/scsi/qla2xxx/qla_target.c if (qla_tgt_mode_enabled(vha) || qla_dual_mode_enabled(vha)) vha 7068 drivers/scsi/qla2xxx/qla_target.c if (qla_tgt_mode_enabled(vha)) vha 7110 drivers/scsi/qla2xxx/qla_target.c scsi_qla_host_t *vha; vha 7116 drivers/scsi/qla2xxx/qla_target.c vha = pci_get_drvdata(ha->pdev); vha 7120 drivers/scsi/qla2xxx/qla_target.c qlt_24xx_process_atio_queue(vha, 0); vha 7132 drivers/scsi/qla2xxx/qla_target.c scsi_qla_host_t *vha = op->vha; vha 7133 drivers/scsi/qla2xxx/qla_target.c struct qla_hw_data *ha = vha->hw; vha 7136 drivers/scsi/qla2xxx/qla_target.c if (qla2x00_reset_active(vha) || vha 7141 drivers/scsi/qla2xxx/qla_target.c qlt_24xx_process_atio_queue(vha, 0); vha 7145 drivers/scsi/qla2xxx/qla_target.c qlt_response_pkt_all_vps(vha, op->rsp, (response_t *)&op->atio); vha 7152 drivers/scsi/qla2xxx/qla_target.c qlt_handle_abts_recv(struct scsi_qla_host *vha, struct rsp_que *rsp, vha 7163 drivers/scsi/qla2xxx/qla_target.c qlt_response_pkt_all_vps(vha, rsp, pkt); vha 7168 drivers/scsi/qla2xxx/qla_target.c op->vha = vha; vha 7169 drivers/scsi/qla2xxx/qla_target.c op->chip_reset = vha->hw->base_qpair->chip_reset; vha 7217 drivers/scsi/qla2xxx/qla_target.c qlt_update_vp_map(struct scsi_qla_host *vha, int cmd) vha 7226 drivers/scsi/qla2xxx/qla_target.c key = vha->d_id.b24; vha 7230 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_vp_map[vha->vp_idx].vha = vha; vha 7233 drivers/scsi/qla2xxx/qla_target.c slot = btree_lookup32(&vha->hw->tgt.host_map, key); vha 7235 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf018, vha 7236 drivers/scsi/qla2xxx/qla_target.c "Save vha in host_map %p %06x\n", vha, key); vha 7237 drivers/scsi/qla2xxx/qla_target.c rc = btree_insert32(&vha->hw->tgt.host_map, vha 7238 drivers/scsi/qla2xxx/qla_target.c key, vha, GFP_ATOMIC); vha 7240 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_info, vha, 0xd03e, vha 7245 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf019, vha 7246 drivers/scsi/qla2xxx/qla_target.c "replace existing vha in host_map %p %06x\n", vha, key); vha 7247 drivers/scsi/qla2xxx/qla_target.c btree_update32(&vha->hw->tgt.host_map, key, vha); vha 7250 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_vp_map[vha->vp_idx].vha = NULL; vha 7253 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf01a, vha 7254 drivers/scsi/qla2xxx/qla_target.c "clear vha in host_map %p %06x\n", vha, key); vha 7255 drivers/scsi/qla2xxx/qla_target.c slot = btree_lookup32(&vha->hw->tgt.host_map, key); vha 7257 drivers/scsi/qla2xxx/qla_target.c btree_remove32(&vha->hw->tgt.host_map, key); vha 7258 drivers/scsi/qla2xxx/qla_target.c vha->d_id.b24 = 0; vha 7263 drivers/scsi/qla2xxx/qla_target.c void qlt_update_host_map(struct scsi_qla_host *vha, port_id_t id) vha 7266 drivers/scsi/qla2xxx/qla_target.c if (!vha->d_id.b24) { vha 7267 drivers/scsi/qla2xxx/qla_target.c vha->d_id = id; vha 7268 drivers/scsi/qla2xxx/qla_target.c qlt_update_vp_map(vha, SET_AL_PA); vha 7269 drivers/scsi/qla2xxx/qla_target.c } else if (vha->d_id.b24 != id.b24) { vha 7270 drivers/scsi/qla2xxx/qla_target.c qlt_update_vp_map(vha, RESET_AL_PA); vha 7271 drivers/scsi/qla2xxx/qla_target.c vha->d_id = id; vha 7272 drivers/scsi/qla2xxx/qla_target.c qlt_update_vp_map(vha, SET_AL_PA); vha 775 drivers/scsi/qla2xxx/qla_target.h struct scsi_qla_host *vha; vha 818 drivers/scsi/qla2xxx/qla_target.h struct scsi_qla_host *vha; vha 896 drivers/scsi/qla2xxx/qla_target.h struct scsi_qla_host *vha; vha 950 drivers/scsi/qla2xxx/qla_target.h struct scsi_qla_host *vha; vha 10 drivers/scsi/qla2xxx/qla_tmpl.c #define ISPREG(vha) (&(vha)->hw->iobase->isp24) vha 12 drivers/scsi/qla2xxx/qla_tmpl.c #define IOBASE(vha) IOBAR(ISPREG(vha)) vha 136 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t0(struct scsi_qla_host *vha, vha 139 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd100, vha 147 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t255(struct scsi_qla_host *vha, vha 150 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd1ff, vha 159 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t256(struct scsi_qla_host *vha, vha 167 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd200, vha 169 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_read_window(ISPREG(vha), addr, offset, count, width, buf, len); vha 175 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t257(struct scsi_qla_host *vha, vha 182 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd201, vha 184 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), IOBASE(vha), addr, buf); vha 185 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), offset, data, buf); vha 191 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t258(struct scsi_qla_host *vha, vha 201 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd202, vha 203 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), banksel, bank, buf); vha 204 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_read_window(ISPREG(vha), addr, offset, count, width, buf, len); vha 210 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t259(struct scsi_qla_host *vha, vha 219 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd203, vha 221 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), IOBASE(vha), addr, buf); vha 222 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), banksel, bank, buf); vha 223 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), offset, data, buf); vha 229 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t260(struct scsi_qla_host *vha, vha 234 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd204, vha 237 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_read_reg(ISPREG(vha), offset, buf, len); vha 243 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t261(struct scsi_qla_host *vha, vha 249 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd205, vha 251 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), offset, data, buf); vha 257 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t262(struct scsi_qla_host *vha, vha 265 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd206, vha 271 drivers/scsi/qla2xxx/qla_tmpl.c end = vha->hw->fw_memory_size; vha 275 drivers/scsi/qla2xxx/qla_tmpl.c start = vha->hw->fw_shared_ram_start; vha 276 drivers/scsi/qla2xxx/qla_tmpl.c end = vha->hw->fw_shared_ram_end; vha 282 drivers/scsi/qla2xxx/qla_tmpl.c start = vha->hw->fw_ddr_ram_start; vha 283 drivers/scsi/qla2xxx/qla_tmpl.c end = vha->hw->fw_ddr_ram_end; vha 294 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd022, vha 301 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd023, vha 311 drivers/scsi/qla2xxx/qla_tmpl.c qla24xx_dump_ram(vha->hw, start, buf, dwords, &buf); vha 319 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t263(struct scsi_qla_host *vha, vha 327 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc + ql_dbg_verbose, vha, 0xd207, vha 330 drivers/scsi/qla2xxx/qla_tmpl.c for (i = 0; i < vha->hw->max_req_queues; i++) { vha 331 drivers/scsi/qla2xxx/qla_tmpl.c struct req_que *req = vha->hw->req_q_map[i]; vha 344 drivers/scsi/qla2xxx/qla_tmpl.c for (i = 0; i < vha->hw->max_rsp_queues; i++) { vha 345 drivers/scsi/qla2xxx/qla_tmpl.c struct rsp_que *rsp = vha->hw->rsp_q_map[i]; vha 359 drivers/scsi/qla2xxx/qla_tmpl.c struct qla_hw_data *ha = vha->hw; vha 370 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd026, vha 386 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t264(struct scsi_qla_host *vha, vha 389 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd208, vha 391 drivers/scsi/qla2xxx/qla_tmpl.c if (vha->hw->fce) { vha 394 drivers/scsi/qla2xxx/qla_tmpl.c ent->t264.write_pointer = vha->hw->fce_wr; vha 395 drivers/scsi/qla2xxx/qla_tmpl.c ent->t264.base_pointer = vha->hw->fce_dma; vha 396 drivers/scsi/qla2xxx/qla_tmpl.c ent->t264.fce_enable_mb0 = vha->hw->fce_mb[0]; vha 397 drivers/scsi/qla2xxx/qla_tmpl.c ent->t264.fce_enable_mb2 = vha->hw->fce_mb[2]; vha 398 drivers/scsi/qla2xxx/qla_tmpl.c ent->t264.fce_enable_mb3 = vha->hw->fce_mb[3]; vha 399 drivers/scsi/qla2xxx/qla_tmpl.c ent->t264.fce_enable_mb4 = vha->hw->fce_mb[4]; vha 400 drivers/scsi/qla2xxx/qla_tmpl.c ent->t264.fce_enable_mb5 = vha->hw->fce_mb[5]; vha 401 drivers/scsi/qla2xxx/qla_tmpl.c ent->t264.fce_enable_mb6 = vha->hw->fce_mb[6]; vha 403 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_insertbuf(vha->hw->fce, FCE_SIZE, buf, len); vha 405 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd027, vha 414 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t265(struct scsi_qla_host *vha, vha 417 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc + ql_dbg_verbose, vha, 0xd209, vha 420 drivers/scsi/qla2xxx/qla_tmpl.c qla24xx_pause_risc(ISPREG(vha), vha->hw); vha 426 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t266(struct scsi_qla_host *vha, vha 429 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd20a, vha 432 drivers/scsi/qla2xxx/qla_tmpl.c WARN_ON_ONCE(qla24xx_soft_reset(vha->hw) != QLA_SUCCESS); vha 438 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t267(struct scsi_qla_host *vha, vha 444 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd20b, vha 446 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), offset, data, buf); vha 452 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t268(struct scsi_qla_host *vha, vha 455 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd20c, vha 459 drivers/scsi/qla2xxx/qla_tmpl.c if (vha->hw->eft) { vha 462 drivers/scsi/qla2xxx/qla_tmpl.c ent->t268.start_addr = vha->hw->eft_dma; vha 464 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_insertbuf(vha->hw->eft, EFT_SIZE, buf, len); vha 466 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd028, vha 472 drivers/scsi/qla2xxx/qla_tmpl.c if (vha->hw->exchoffld_buf) { vha 474 drivers/scsi/qla2xxx/qla_tmpl.c ent->t268.buf_size = vha->hw->exchoffld_size; vha 476 drivers/scsi/qla2xxx/qla_tmpl.c vha->hw->exchoffld_buf_dma; vha 478 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_insertbuf(vha->hw->exchoffld_buf, vha 479 drivers/scsi/qla2xxx/qla_tmpl.c vha->hw->exchoffld_size, buf, len); vha 481 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd028, vha 487 drivers/scsi/qla2xxx/qla_tmpl.c if (vha->hw->exlogin_buf) { vha 489 drivers/scsi/qla2xxx/qla_tmpl.c ent->t268.buf_size = vha->hw->exlogin_size; vha 491 drivers/scsi/qla2xxx/qla_tmpl.c vha->hw->exlogin_buf_dma; vha 493 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_insertbuf(vha->hw->exlogin_buf, vha 494 drivers/scsi/qla2xxx/qla_tmpl.c vha->hw->exlogin_size, buf, len); vha 496 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd028, vha 512 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_async, vha, 0xd02b, vha 522 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t269(struct scsi_qla_host *vha, vha 525 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd20d, vha 539 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t270(struct scsi_qla_host *vha, vha 545 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd20e, vha 547 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), IOBASE_ADDR, 0x40, buf); vha 549 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), 0xc0, addr|0x80000000, buf); vha 551 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_read_reg(ISPREG(vha), 0xc4, buf, len); vha 559 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t271(struct scsi_qla_host *vha, vha 565 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd20f, vha 567 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), IOBASE(vha), 0x40, buf); vha 568 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), 0xc4, data, buf); vha 569 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), 0xc0, addr, buf); vha 575 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t272(struct scsi_qla_host *vha, vha 581 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd210, vha 584 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd02c, vha 587 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_dump_mpi_ram(vha->hw, start, buf, dwords, &buf); vha 595 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t273(struct scsi_qla_host *vha, vha 602 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd211, vha 606 drivers/scsi/qla2xxx/qla_tmpl.c if (pci_read_config_dword(vha->hw->pdev, addr, &value)) vha 607 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd02d, vha 618 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t274(struct scsi_qla_host *vha, vha 625 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc + ql_dbg_verbose, vha, 0xd212, vha 628 drivers/scsi/qla2xxx/qla_tmpl.c for (i = 0; i < vha->hw->max_req_queues; i++) { vha 629 drivers/scsi/qla2xxx/qla_tmpl.c struct req_que *req = vha->hw->req_q_map[i]; vha 640 drivers/scsi/qla2xxx/qla_tmpl.c for (i = 0; i < vha->hw->max_rsp_queues; i++) { vha 641 drivers/scsi/qla2xxx/qla_tmpl.c struct rsp_que *rsp = vha->hw->rsp_q_map[i]; vha 653 drivers/scsi/qla2xxx/qla_tmpl.c struct qla_hw_data *ha = vha->hw; vha 664 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd02f, vha 680 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t275(struct scsi_qla_host *vha, vha 688 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc + ql_dbg_verbose, vha, 0xd213, vha 691 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd020, vha 698 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd030, vha 709 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t276(struct scsi_qla_host *vha, vha 712 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc + ql_dbg_verbose, vha, 0xd214, vha 718 drivers/scsi/qla2xxx/qla_tmpl.c uint type = vha->hw->pdev->device >> 4 & 0xf; vha 719 drivers/scsi/qla2xxx/qla_tmpl.c uint func = vha->hw->port_no & 0x3; vha 734 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t277(struct scsi_qla_host *vha, vha 741 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc + ql_dbg_verbose, vha, 0xd215, vha 744 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), cmd_addr, wr_cmd_data, buf); vha 745 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_read_reg(ISPREG(vha), data_addr, buf, len); vha 751 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_t278(struct scsi_qla_host *vha, vha 759 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc + ql_dbg_verbose, vha, 0xd216, vha 761 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), data_addr, wr_data, buf); vha 762 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_write_reg(ISPREG(vha), cmd_addr, wr_cmd_data, buf); vha 768 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_entry_other(struct scsi_qla_host *vha, vha 773 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd2ff, vha 826 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_walk_template(struct scsi_qla_host *vha, vha 834 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd01a, vha 838 drivers/scsi/qla2xxx/qla_tmpl.c ent = qla27xx_find_entry(type)(vha, ent, buf, len); vha 844 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd018, vha 848 drivers/scsi/qla2xxx/qla_tmpl.c ql_dbg(ql_dbg_misc, vha, 0xd019, vha 873 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_firmware_info(struct scsi_qla_host *vha, vha 876 drivers/scsi/qla2xxx/qla_tmpl.c tmp->firmware_version[0] = vha->hw->fw_major_version; vha 877 drivers/scsi/qla2xxx/qla_tmpl.c tmp->firmware_version[1] = vha->hw->fw_minor_version; vha 878 drivers/scsi/qla2xxx/qla_tmpl.c tmp->firmware_version[2] = vha->hw->fw_subminor_version; vha 880 drivers/scsi/qla2xxx/qla_tmpl.c vha->hw->fw_attributes_h << 16 | vha->hw->fw_attributes; vha 882 drivers/scsi/qla2xxx/qla_tmpl.c vha->hw->fw_attributes_ext[1] << 16 | vha->hw->fw_attributes_ext[0]; vha 886 drivers/scsi/qla2xxx/qla_tmpl.c ql27xx_edit_template(struct scsi_qla_host *vha, vha 891 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_firmware_info(vha, tmp); vha 923 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_execute_fwdt_template(struct scsi_qla_host *vha, vha 931 drivers/scsi/qla2xxx/qla_tmpl.c ql27xx_edit_template(vha, tmp); vha 932 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_walk_template(vha, tmp, buf, &len); vha 939 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdt_calculate_dump_size(struct scsi_qla_host *vha, void *p) vha 946 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_walk_template(vha, tmp, NULL, &len); vha 982 drivers/scsi/qla2xxx/qla_tmpl.c qla27xx_fwdump(scsi_qla_host_t *vha, int hardware_locked) vha 988 drivers/scsi/qla2xxx/qla_tmpl.c spin_lock_irqsave(&vha->hw->hardware_lock, flags); vha 991 drivers/scsi/qla2xxx/qla_tmpl.c if (!vha->hw->fw_dump) { vha 992 drivers/scsi/qla2xxx/qla_tmpl.c ql_log(ql_log_warn, vha, 0xd01e, "-> fwdump no buffer\n"); vha 993 drivers/scsi/qla2xxx/qla_tmpl.c } else if (vha->hw->fw_dumped) { vha 994 drivers/scsi/qla2xxx/qla_tmpl.c ql_log(ql_log_warn, vha, 0xd01f, vha 996 drivers/scsi/qla2xxx/qla_tmpl.c vha->hw->fw_dump); vha 998 drivers/scsi/qla2xxx/qla_tmpl.c struct fwdt *fwdt = vha->hw->fwdt; vha 1001 drivers/scsi/qla2xxx/qla_tmpl.c void *buf = vha->hw->fw_dump; vha 1004 drivers/scsi/qla2xxx/qla_tmpl.c ql_log(ql_log_warn, vha, 0xd011, vha 1007 drivers/scsi/qla2xxx/qla_tmpl.c ql_log(ql_log_warn, vha, 0xd012, vha 1011 drivers/scsi/qla2xxx/qla_tmpl.c len = qla27xx_execute_fwdt_template(vha, vha 1014 drivers/scsi/qla2xxx/qla_tmpl.c ql_log(ql_log_warn, vha, 0xd013, vha 1019 drivers/scsi/qla2xxx/qla_tmpl.c vha->hw->fw_dump_len = buf - (void *)vha->hw->fw_dump; vha 1020 drivers/scsi/qla2xxx/qla_tmpl.c vha->hw->fw_dumped = 1; vha 1022 drivers/scsi/qla2xxx/qla_tmpl.c ql_log(ql_log_warn, vha, 0xd015, vha 1024 drivers/scsi/qla2xxx/qla_tmpl.c vha->host_no, vha->hw->fw_dump, vha->hw->fw_dump_cap_flags); vha 1025 drivers/scsi/qla2xxx/qla_tmpl.c qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP); vha 1030 drivers/scsi/qla2xxx/qla_tmpl.c spin_unlock_irqrestore(&vha->hw->hardware_lock, flags); vha 343 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct scsi_qla_host *vha; vha 347 drivers/scsi/qla2xxx/tcm_qla2xxx.c vha = sess->vha; vha 349 drivers/scsi/qla2xxx/tcm_qla2xxx.c spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); vha 351 drivers/scsi/qla2xxx/tcm_qla2xxx.c spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); vha 420 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_handle_cmd(scsi_qla_host_t *vha, struct qla_tgt_cmd *cmd, vha 558 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: ABTS received\n", sess->vha->host_no); vha 563 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: 2G Abort Task received\n", sess->vha->host_no); vha 567 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: CLEAR_ACA received\n", sess->vha->host_no); vha 571 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: TARGET_RESET received\n", sess->vha->host_no); vha 575 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: LUN_RESET received\n", sess->vha->host_no); vha 579 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: CLEAR_TS received\n", sess->vha->host_no); vha 583 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: ABORT_TS received\n", sess->vha->host_no); vha 588 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->vha->host_no, tmr_func); vha 626 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct scsi_qla_host *vha = cmd->vha; vha 639 drivers/scsi/qla2xxx/tcm_qla2xxx.c vha->hw->tgt.tgt_ops->free_cmd(cmd); vha 667 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct scsi_qla_host *vha = cmd->vha; vha 681 drivers/scsi/qla2xxx/tcm_qla2xxx.c vha->hw->tgt.tgt_ops->free_cmd(cmd); vha 902 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct scsi_qla_host *vha = lport->qla_vha; vha 922 drivers/scsi/qla2xxx/tcm_qla2xxx.c qlt_enable_vha(vha); vha 928 drivers/scsi/qla2xxx/tcm_qla2xxx.c qlt_stop_phase1(vha->vha_tgt.qla_tgt); vha 1035 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct scsi_qla_host *vha = lport->qla_vha; vha 1040 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (vha->vha_tgt.qla_tgt && !vha->vha_tgt.qla_tgt->tgt_stop) vha 1041 drivers/scsi/qla2xxx/tcm_qla2xxx.c qlt_stop_phase1(vha->vha_tgt.qla_tgt); vha 1064 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct scsi_qla_host *vha = lport->qla_vha; vha 1084 drivers/scsi/qla2xxx/tcm_qla2xxx.c qlt_enable_vha(vha); vha 1090 drivers/scsi/qla2xxx/tcm_qla2xxx.c qlt_stop_phase1(vha->vha_tgt.qla_tgt); vha 1146 drivers/scsi/qla2xxx/tcm_qla2xxx.c static struct fc_port *tcm_qla2xxx_find_sess_by_s_id(scsi_qla_host_t *vha, vha 1154 drivers/scsi/qla2xxx/tcm_qla2xxx.c lport = vha->vha_tgt.target_lport_ptr; vha 1251 drivers/scsi/qla2xxx/tcm_qla2xxx.c scsi_qla_host_t *vha, vha 1259 drivers/scsi/qla2xxx/tcm_qla2xxx.c lport = vha->vha_tgt.target_lport_ptr; vha 1368 drivers/scsi/qla2xxx/tcm_qla2xxx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 1381 drivers/scsi/qla2xxx/tcm_qla2xxx.c lport = vha->vha_tgt.target_lport_ptr; vha 1425 drivers/scsi/qla2xxx/tcm_qla2xxx.c scsi_qla_host_t *vha, vha 1429 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct qla_hw_data *ha = vha->hw; vha 1437 drivers/scsi/qla2xxx/tcm_qla2xxx.c lport = vha->vha_tgt.target_lport_ptr; vha 1476 drivers/scsi/qla2xxx/tcm_qla2xxx.c scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); vha 1477 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_lport *lport = vha->vha_tgt.target_lport_ptr; vha 1590 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_lport_register_cb(struct scsi_qla_host *vha, vha 1594 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct qla_hw_data *ha = vha->hw; vha 1601 drivers/scsi/qla2xxx/tcm_qla2xxx.c vha->vha_tgt.target_lport_ptr = target_lport_ptr; vha 1602 drivers/scsi/qla2xxx/tcm_qla2xxx.c lport->qla_vha = vha; vha 1651 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct scsi_qla_host *vha = lport->qla_vha; vha 1660 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (vha->vha_tgt.qla_tgt && !vha->vha_tgt.qla_tgt->tgt_stopped) vha 1661 drivers/scsi/qla2xxx/tcm_qla2xxx.c qlt_stop_phase2(vha->vha_tgt.qla_tgt); vha 1663 drivers/scsi/qla2xxx/tcm_qla2xxx.c qlt_lport_deregister(vha);