Lines Matching defs:vha
36 struct qla_hw_data *ha = sp->vha->hw;
73 qla24xx_fcp_prio_cfg_valid(scsi_qla_host_t *vha,
89 ql_dbg(ql_dbg_user, vha, 0x7051,
96 ql_dbg(ql_dbg_user, vha, 0x7052,
113 ql_dbg(ql_dbg_user, vha, 0x7053,
118 ql_dbg(ql_dbg_user, vha, 0x7054,
132 scsi_qla_host_t *vha = shost_priv(host);
133 struct qla_hw_data *ha = vha->hw;
157 qla24xx_update_all_fcp_prio(vha);
172 qla24xx_update_all_fcp_prio(vha);
210 ql_log(ql_log_warn, vha, 0x7050,
226 if (!qla24xx_fcp_prio_cfg_valid(vha, ha->fcp_prio_cfg, 1)) {
240 qla24xx_update_all_fcp_prio(vha);
261 scsi_qla_host_t *vha;
277 vha = shost_priv(host);
278 ha = vha->hw;
282 vha = shost_priv(host);
283 ha = vha->hw;
287 if (!vha->flags.online) {
288 ql_log(ql_log_warn, vha, 0x7005, "Host not online.\n");
295 ql_dbg(ql_dbg_user, vha, 0x7001,
304 ql_dbg(ql_dbg_user, vha, 0x7002,
318 if (qla2x00_fabric_login(vha, fcport, &nextlid)) {
319 ql_dbg(ql_dbg_user, vha, 0x7003,
331 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
338 fcport->vha = vha;
371 ql_log(ql_log_warn, vha, 0x7008,
381 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
397 ql_dbg(ql_dbg_user, vha, 0x700a,
405 ql_log(ql_log_warn, vha, 0x700e,
447 scsi_qla_host_t *vha = shost_priv(host);
448 struct qla_hw_data *ha = vha->hw;
459 ql_log(ql_log_warn, vha, 0x700f,
468 ql_log(ql_log_warn, vha, 0x7010,
476 ql_log(ql_log_warn, vha, 0x7011,
484 if (!vha->flags.online) {
485 ql_log(ql_log_warn, vha, 0x7012,
499 loop_id = vha->mgmt_svr_loop_id;
502 ql_dbg(ql_dbg_user, vha, 0x7013,
513 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
515 ql_log(ql_log_warn, vha, 0x7014,
522 fcport->vha = vha;
529 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
531 ql_log(ql_log_warn, vha, 0x7015,
544 ql_dbg(ql_dbg_user, vha, 0x7016,
553 ql_log(ql_log_warn, vha, 0x7017,
574 qla81xx_reset_loopback_mode(scsi_qla_host_t *vha, uint16_t *config,
580 struct qla_hw_data *ha = vha->hw;
591 ql_dbg(ql_dbg_user, vha, 0x70bf, "new_config[0]=%02x\n",
598 ret = qla81xx_set_port_config(vha, new_config);
600 ql_log(ql_log_warn, vha, 0x7025,
611 ql_dbg(ql_dbg_user, vha, 0x7026,
618 ql_dbg(ql_dbg_user, vha, 0x7027,
624 ql_dbg(ql_dbg_user, vha, 0x70c5,
630 ql_dbg(ql_dbg_user, vha, 0x70c6,
645 qla81xx_set_loopback_mode(scsi_qla_host_t *vha, uint16_t *config,
651 struct qla_hw_data *ha = vha->hw;
660 ql_dbg(ql_dbg_user, vha, 0x70be,
666 ret = qla81xx_set_port_config(vha, new_config);
668 ql_log(ql_log_warn, vha, 0x7021,
689 ql_dbg(ql_dbg_user, vha, 0x7022,
691 ret = qla81xx_reset_loopback_mode(vha, new_config, 0, 0);
697 qla2xxx_dump_fw(vha);
698 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
703 ql_dbg(ql_dbg_user, vha, 0x70c3,
708 ql_dbg(ql_dbg_user, vha, 0x7023,
725 scsi_qla_host_t *vha = shost_priv(host);
726 struct qla_hw_data *ha = vha->hw;
741 if (!vha->flags.online) {
742 ql_log(ql_log_warn, vha, 0x7019, "Host is not online.\n");
753 ql_log(ql_log_warn, vha, 0x701a,
763 ql_log(ql_log_warn, vha, 0x701b,
771 ql_log(ql_log_warn, vha, 0x701c,
784 ql_log(ql_log_warn, vha, 0x701d,
793 ql_log(ql_log_warn, vha, 0x7004,
811 if (atomic_read(&vha->loop_state) == LOOP_READY &&
818 ql_dbg(ql_dbg_user, vha, 0x701e,
821 rval = qla2x00_echo_test(vha, &elreq, response);
827 if (qla81xx_get_port_config(vha, config)) {
828 ql_log(ql_log_warn, vha, 0x701f,
835 ql_dbg(ql_dbg_user, vha, 0x70c4,
842 ql_dbg(ql_dbg_user, vha, 0x70c0,
847 rval = qla81xx_set_loopback_mode(vha,
850 rval = qla81xx_reset_loopback_mode(vha,
853 rval = qla81xx_set_loopback_mode(vha, config,
862 ql_dbg(ql_dbg_user, vha, 0x7028,
866 rval = qla2x00_loopback_test(vha, &elreq, response);
870 ql_log(ql_log_warn, vha, 0x7029,
872 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
873 qla2xxx_wake_dpc(vha);
874 qla2x00_wait_for_chip_reset(vha);
877 if (qla81xx_restart_mpi_firmware(vha) !=
879 ql_log(ql_log_warn, vha, 0x702a,
894 ret = qla81xx_reset_loopback_mode(vha,
902 qla2xxx_dump_fw(vha);
904 &vha->dpc_flags);
911 ql_dbg(ql_dbg_user, vha, 0x702b,
914 rval = qla2x00_loopback_test(vha, &elreq, response);
919 ql_log(ql_log_warn, vha, 0x702c,
926 ql_dbg(ql_dbg_user, vha, 0x702d,
968 scsi_qla_host_t *vha = shost_priv(host);
969 struct qla_hw_data *ha = vha->hw;
974 ql_dbg(ql_dbg_user, vha, 0x702f, "Not 84xx, exiting.\n");
980 rval = qla84xx_reset_chip(vha, flag == A84_ISSUE_RESET_DIAG_FW);
983 ql_log(ql_log_warn, vha, 0x7030,
988 ql_dbg(ql_dbg_user, vha, 0x7031,
1004 scsi_qla_host_t *vha = shost_priv(host);
1005 struct qla_hw_data *ha = vha->hw;
1017 ql_dbg(ql_dbg_user, vha, 0x7032,
1025 ql_log(ql_log_warn, vha, 0x7033,
1031 ql_log(ql_log_warn, vha, 0x7034,
1043 ql_log(ql_log_warn, vha, 0x7035,
1054 ql_log(ql_log_warn, vha, 0x7036,
1078 rval = qla2x00_issue_iocb_timeout(vha, mn, mn_dma, 0, 120);
1081 ql_log(ql_log_warn, vha, 0x7037,
1086 ql_dbg(ql_dbg_user, vha, 0x7038,
1114 scsi_qla_host_t *vha = shost_priv(host);
1115 struct qla_hw_data *ha = vha->hw;
1126 ql_log(ql_log_warn, vha, 0x703a,
1133 ql_log(ql_log_warn, vha, 0x703c,
1148 ql_log(ql_log_warn, vha, 0x703d,
1157 ql_log(ql_log_warn, vha, 0x703e,
1170 ql_log(ql_log_warn, vha, 0x703f,
1199 ql_log(ql_log_warn, vha, 0x7040,
1208 ql_log(ql_log_warn, vha, 0x7041,
1220 ql_log(ql_log_warn, vha, 0x7042,
1258 rval = qla2x00_issue_iocb(vha, mn, mn_dma, 0);
1261 ql_log(ql_log_warn, vha, 0x7043,
1267 ql_dbg(ql_dbg_user, vha, 0x7044,
1310 scsi_qla_host_t *vha = shost_priv(host);
1318 if (!IS_IIDMA_CAPABLE(vha->hw)) {
1319 ql_log(ql_log_info, vha, 0x7046, "iiDMA not supported.\n");
1325 ql_log(ql_log_warn, vha, 0x7048,
1330 list_for_each_entry(fcport, &vha->vp_fcports, list) {
1343 ql_log(ql_log_warn, vha, 0x7049,
1349 ql_log(ql_log_warn, vha, 0x704a,
1355 ql_log(ql_log_warn, vha, 0x704b,
1361 rval = qla2x00_set_idma_speed(vha, fcport->loop_id,
1364 rval = qla2x00_get_idma_speed(vha, fcport->loop_id,
1368 ql_log(ql_log_warn, vha, 0x704c,
1394 qla2x00_optrom_setup(struct bsg_job *bsg_job, scsi_qla_host_t *vha,
1400 struct qla_hw_data *ha = vha->hw;
1407 ql_log(ql_log_warn, vha, 0x7055,
1413 ql_log(ql_log_info, vha, 0x7056,
1419 ql_dbg(ql_dbg_user, vha, 0x7057, "is_update=%d.\n", is_update);
1431 ql_log(ql_log_warn, vha, 0x7058,
1452 ql_log(ql_log_warn, vha, 0x7059,
1468 scsi_qla_host_t *vha = shost_priv(host);
1469 struct qla_hw_data *ha = vha->hw;
1476 rval = qla2x00_optrom_setup(bsg_job, vha, 0);
1482 ha->isp_ops->read_optrom(vha, ha->optrom_buffer,
1505 scsi_qla_host_t *vha = shost_priv(host);
1506 struct qla_hw_data *ha = vha->hw;
1510 rval = qla2x00_optrom_setup(bsg_job, vha, 1);
1523 rval = ha->isp_ops->write_optrom(vha, ha->optrom_buffer,
1546 scsi_qla_host_t *vha = shost_priv(host);
1547 struct qla_hw_data *ha = vha->hw;
1569 rval = qla2x00_write_sfp(vha, sfp_dma, sfp,
1599 scsi_qla_host_t *vha = shost_priv(host);
1600 struct qla_hw_data *ha = vha->hw;
1616 rval = qla2x00_read_sfp(vha, sfp_dma, sfp,
1650 scsi_qla_host_t *vha = shost_priv(host);
1651 struct qla_hw_data *ha = vha->hw;
1668 rval = qla2x00_write_sfp(vha, sfp_dma, sfp,
1697 scsi_qla_host_t *vha = shost_priv(host);
1698 struct qla_hw_data *ha = vha->hw;
1715 rval = qla2x00_write_sfp(vha, sfp_dma, sfp,
1743 scsi_qla_host_t *vha = shost_priv(host);
1744 struct qla_hw_data *ha = vha->hw;
1760 rval = qla2x00_read_sfp(vha, sfp_dma, sfp,
1793 scsi_qla_host_t *vha = shost_priv(host);
1794 struct qla_hw_data *ha = vha->hw;
1806 ql_log(ql_log_warn, vha, 0x70a0,
1812 if (test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) ||
1813 test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) ||
1814 test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) {
1820 if (!vha->flags.online) {
1821 ql_log(ql_log_warn, vha, 0x70a1,
1828 if (vha->device_flags & DFLG_NO_CABLE) {
1829 ql_log(ql_log_warn, vha, 0x70a2,
1837 ql_log(ql_log_warn, vha, 0x70a3,
1845 ql_log(ql_log_warn, vha, 0x70a4,
1852 if (vha->self_login_loop_id == 0) {
1854 vha->bidir_fcport.vha = vha;
1855 vha->bidir_fcport.d_id.b.al_pa = vha->d_id.b.al_pa;
1856 vha->bidir_fcport.d_id.b.area = vha->d_id.b.area;
1857 vha->bidir_fcport.d_id.b.domain = vha->d_id.b.domain;
1858 vha->bidir_fcport.loop_id = vha->loop_id;
1860 if (qla2x00_fabric_login(vha, &(vha->bidir_fcport), &nextlid)) {
1861 ql_log(ql_log_warn, vha, 0x70a7,
1863 vha->bidir_fcport.d_id.b24);
1868 vha->self_login_loop_id = nextlid - 1;
1874 vha->bidir_fcport.loop_id = vha->self_login_loop_id;
1897 ql_dbg(ql_dbg_user, vha, 0x70a9,
1912 ql_log(ql_log_warn, vha, 0x70aa,
1918 sp = qla2x00_get_sp(vha, &(vha->bidir_fcport), GFP_KERNEL);
1920 ql_dbg(ql_dbg_user, vha, 0x70ac,
1935 rval = qla2x00_start_bidir(sp, vha, tot_dsds);
1971 scsi_qla_host_t *vha = shost_priv(host);
1972 struct qla_hw_data *ha = vha->hw;
1985 ql_dump_buffer(ql_dbg_user + ql_dbg_verbose , vha, 0x70cf,
1988 if (!vha->flags.online) {
1989 ql_log(ql_log_warn, vha, 0x70d0,
2000 ql_log(ql_log_warn, vha, 0x70c7,
2012 ql_log(ql_log_warn, vha, 0x70c8,
2019 ql_dbg(ql_dbg_user, vha, 0x70c9,
2029 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
2031 ql_log(ql_log_warn, vha, 0x70ca,
2038 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
2040 ql_log(ql_log_warn, vha, 0x70cb,
2047 fcport->vha = vha;
2057 ql_dbg(ql_dbg_user, vha, 0x70cc,
2063 ql_log(ql_log_warn, vha, 0x70cd,
2094 scsi_qla_host_t *vha = shost_priv(host);
2105 rval = qla2x00_write_serdes_word(vha, sr.addr, sr.val);
2109 rval = qla2x00_read_serdes_word(vha, sr.addr, &sr.val);
2115 ql_dbg(ql_dbg_user, vha, 0x708c,
2136 scsi_qla_host_t *vha = shost_priv(host);
2147 rval = qla8044_write_serdes_word(vha, sr.addr, sr.val);
2151 rval = qla8044_read_serdes_word(vha, sr.addr, &sr.val);
2157 ql_dbg(ql_dbg_user, vha, 0x7020,
2178 scsi_qla_host_t *vha = shost_priv(host);
2179 struct qla_hw_data *ha = vha->hw;
2210 scsi_qla_host_t *vha = shost_priv(host);
2211 struct qla_hw_data *ha = vha->hw;
2256 scsi_qla_host_t *vha = shost_priv(host);
2257 struct qla_hw_data *ha = vha->hw;
2268 if (vha->flags.bbcr_enable)
2274 rval = qla2x00_get_adapter_id(vha, &loop_id, &al_pa,
2283 state = (vha->bbcr >> 12) & 0x1;
2290 bbcr.negotiated_bbscn = (vha->bbcr >> 8) & 0xf;
2293 bbcr.configured_bbscn = vha->bbcr & 0xf;
2316 scsi_qla_host_t *vha = shost_priv(host);
2317 struct qla_hw_data *ha = vha->hw;
2325 if (test_bit(UNLOADING, &vha->dpc_flags))
2331 if (qla2x00_reset_active(vha))
2340 ql_log(ql_log_warn, vha, 0x70e2,
2348 ql_dump_buffer(ql_dbg_user + ql_dbg_verbose, vha, 0x70e5,
2374 scsi_qla_host_t *vha = shost_priv(host);
2378 if (!IS_QLA83XX(vha->hw) && !IS_QLA27XX(vha->hw) &&
2379 !IS_QLA28XX(vha->hw))
2384 ql_log(ql_log_warn, vha, 0x70db,
2393 vha, dd->buf, sizeof(dd->buf), dd->options);
2416 scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job));
2418 struct qla_hw_data *ha = vha->hw;
2422 qla27xx_get_active_image(vha, &active_regions);
2426 qla28xx_get_aux_images(vha, &active_regions);
2433 ql_dbg(ql_dbg_user, vha, 0x70e1,
2435 __func__, vha->host_no, regions.global_image,
2541 scsi_qla_host_t *vha;
2551 vha = shost_priv(host);
2554 vha = shost_priv(host);
2557 if (qla2x00_chip_is_down(vha)) {
2558 ql_dbg(ql_dbg_user, vha, 0x709f,
2564 ql_dbg(ql_dbg_user, vha, 0x7000,
2582 ql_log(ql_log_warn, vha, 0x705a, "Unsupported BSG request.\n");
2592 scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job));
2593 struct qla_hw_data *ha = vha->hw;
2616 ql_log(ql_log_warn, vha, 0x7089,
2621 ql_dbg(ql_dbg_user, vha, 0x708a,
2633 ql_log(ql_log_info, vha, 0x708b, "SRB not found to abort.\n");