Lines Matching refs:ha

33 	struct qla_hw_data *ha = vha->hw;
41 SET_TARGET_ID(ha, ms_pkt->loop_id, SIMPLE_NAME_SERVER);
43 ms_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2);
65 * Returns a pointer to the @ha's ms_iocb.
70 struct qla_hw_data *ha = vha->hw;
79 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2);
125 struct qla_hw_data *ha = vha->hw;
135 if (IS_FWI2_CAPABLE(ha))
159 if (IS_FWI2_CAPABLE(ha)) {
207 struct qla_hw_data *ha = vha->hw;
210 if (IS_QLA2100(ha) || IS_QLA2200(ha))
213 arg.iocb = ha->ms_iocb;
214 arg.req_dma = ha->ct_sns_dma;
215 arg.rsp_dma = ha->ct_sns_dma;
222 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg);
225 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GA_NXT_CMD,
227 ct_rsp = &ha->ct_sns->p.rsp;
233 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
295 struct qla_hw_data *ha = vha->hw;
299 if (IS_QLA2100(ha) || IS_QLA2200(ha))
305 arg.iocb = ha->ms_iocb;
306 arg.req_dma = ha->ct_sns_dma;
307 arg.rsp_dma = ha->ct_sns_dma;
314 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg);
317 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GID_PT_CMD, gid_pt_rsp_size);
318 ct_rsp = &ha->ct_sns->p.rsp;
324 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
335 for (i = 0; i < ha->max_fibre_devices; i++) {
354 if (i == ha->max_fibre_devices)
377 struct qla_hw_data *ha = vha->hw;
380 if (IS_QLA2100(ha) || IS_QLA2200(ha))
383 arg.iocb = ha->ms_iocb;
384 arg.req_dma = ha->ct_sns_dma;
385 arg.rsp_dma = ha->ct_sns_dma;
390 for (i = 0; i < ha->max_fibre_devices; i++) {
393 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg);
396 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GPN_ID_CMD,
398 ct_rsp = &ha->ct_sns->p.rsp;
404 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
441 struct qla_hw_data *ha = vha->hw;
447 if (IS_QLA2100(ha) || IS_QLA2200(ha))
450 arg.iocb = ha->ms_iocb;
451 arg.req_dma = ha->ct_sns_dma;
452 arg.rsp_dma = ha->ct_sns_dma;
457 for (i = 0; i < ha->max_fibre_devices; i++) {
460 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg);
463 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GNN_ID_CMD,
465 ct_rsp = &ha->ct_sns->p.rsp;
471 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
576 struct qla_hw_data *ha = vha->hw;
578 if (IS_QLA2100(ha) || IS_QLA2200(ha))
671 struct qla_hw_data *ha = vha->hw;
673 if (IS_QLA2100(ha) || IS_QLA2200(ha)) {
766 struct qla_hw_data *ha = vha->hw;
768 if (IS_QLA2100(ha) || IS_QLA2200(ha))
851 struct qla_hw_data *ha = vha->hw;
853 if (IS_QLAFX00(ha))
855 ha->model_number, ha->mr.fw_version, qla2x00_version_str);
858 ha->model_number, ha->fw_major_version, ha->fw_minor_version,
859 ha->fw_subminor_version, qla2x00_version_str);
871 struct qla_hw_data *ha = vha->hw;
873 if (IS_QLA2100(ha) || IS_QLA2200(ha)) {
968 * Returns a pointer to the @ha's sns_cmd.
976 struct qla_hw_data *ha = vha->hw;
978 sns_cmd = ha->sns_cmd;
982 put_unaligned_le64(ha->sns_cmd_dma, &sns_cmd->p.cmd.buffer_address);
1006 struct qla_hw_data *ha = vha->hw;
1020 rval = qla2x00_send_sns(vha, ha->sns_cmd_dma, GA_NXT_SNS_CMD_SIZE / 2,
1072 struct qla_hw_data *ha = vha->hw;
1089 rval = qla2x00_send_sns(vha, ha->sns_cmd_dma, GID_PT_SNS_CMD_SIZE / 2,
1104 for (i = 0; i < ha->max_fibre_devices; i++) {
1123 if (i == ha->max_fibre_devices)
1143 struct qla_hw_data *ha = vha->hw;
1147 for (i = 0; i < ha->max_fibre_devices; i++) {
1159 rval = qla2x00_send_sns(vha, ha->sns_cmd_dma,
1199 struct qla_hw_data *ha = vha->hw;
1203 for (i = 0; i < ha->max_fibre_devices; i++) {
1215 rval = qla2x00_send_sns(vha, ha->sns_cmd_dma,
1261 struct qla_hw_data *ha = vha->hw;
1277 rval = qla2x00_send_sns(vha, ha->sns_cmd_dma, RFT_ID_SNS_CMD_SIZE / 2,
1310 struct qla_hw_data *ha = vha->hw;
1333 rval = qla2x00_send_sns(vha, ha->sns_cmd_dma, RNN_ID_SNS_CMD_SIZE / 2,
1365 struct qla_hw_data *ha = vha->hw;
1371 rval = ha->isp_ops->fabric_login(vha, vha->mgmt_svr_loop_id, 0xff, 0xff,
1397 * Returns a pointer to the @ha's ms_iocb.
1404 struct qla_hw_data *ha = vha->hw;
1406 ms_pkt = ha->ms_iocb;
1411 SET_TARGET_ID(ha, ms_pkt->loop_id, vha->mgmt_svr_loop_id);
1413 ms_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2);
1419 put_unaligned_le64(ha->ct_sns_dma, &ms_pkt->req_dsd.address);
1422 put_unaligned_le64(ha->ct_sns_dma, &ms_pkt->rsp_dsd.address);
1434 * Returns a pointer to the @ha's ms_iocb.
1441 struct qla_hw_data *ha = vha->hw;
1443 ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb;
1449 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2);
1455 put_unaligned_le64(ha->ct_sns_dma, &ct_pkt->dsd[0].address);
1458 put_unaligned_le64(ha->ct_sns_dma, &ct_pkt->dsd[1].address);
1468 struct qla_hw_data *ha = vha->hw;
1469 ms_iocb_entry_t *ms_pkt = ha->ms_iocb;
1470 struct ct_entry_24xx *ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb;
1472 if (IS_FWI2_CAPABLE(ha)) {
1505 qla25xx_fdmi_port_speed_capability(struct qla_hw_data *ha)
1509 if (IS_CNA_CAPABLE(ha))
1511 if (IS_QLA28XX(ha) || IS_QLA27XX(ha)) {
1512 if (ha->max_supported_speed == 2) {
1513 if (ha->min_supported_speed <= 6)
1516 if (ha->max_supported_speed == 2 ||
1517 ha->max_supported_speed == 1) {
1518 if (ha->min_supported_speed <= 5)
1521 if (ha->max_supported_speed == 2 ||
1522 ha->max_supported_speed == 1 ||
1523 ha->max_supported_speed == 0) {
1524 if (ha->min_supported_speed <= 4)
1527 if (ha->max_supported_speed == 1 ||
1528 ha->max_supported_speed == 0) {
1529 if (ha->min_supported_speed <= 3)
1532 if (ha->max_supported_speed == 0) {
1533 if (ha->min_supported_speed <= 2)
1538 if (IS_QLA2031(ha)) {
1539 if ((ha->pdev->subsystem_vendor == 0x103C) &&
1540 ((ha->pdev->subsystem_device == 0x8002) ||
1541 (ha->pdev->subsystem_device == 0x8086))) {
1549 if (IS_QLA25XX(ha) || IS_QLAFX00(ha))
1552 if (IS_QLA24XX_TYPE(ha))
1555 if (IS_QLA23XX(ha))
1561 qla25xx_fdmi_port_speed_currently(struct qla_hw_data *ha)
1563 switch (ha->link_data_rate) {
1598 struct qla_hw_data *ha = vha->hw;
1630 if (IS_FWI2_CAPABLE(ha)) {
1635 uint32_t sn = ((ha->serial0 & 0x1f) << 16) |
1636 (ha->serial2 << 8) | ha->serial1;
1652 "%s", ha->model_number);
1664 "%s", ha->model_desc);
1675 if (IS_FWI2_CAPABLE(ha)) {
1688 "HW:%s", ha->adapter_id);
1713 "%d.%02d", ha->bios_revision[1], ha->bios_revision[0]);
1725 ha->isp_ops->fw_version_str(vha, eiter->a.fw_version,
1760 eiter->a.max_ct_len = cpu_to_be32(ha->frame_payload_size >> 2);
1816 "BIOS %d.%02d", ha->bios_revision[1], ha->bios_revision[0]);
1852 struct qla_hw_data *ha = vha->hw;
1883 qla25xx_fdmi_port_speed_capability(ha));
1894 qla25xx_fdmi_port_speed_currently(ha));
1904 eiter->a.max_frame_size = cpu_to_be32(ha->frame_payload_size);
2105 "ISP%04x", ha->pdev->device);
2150 struct qla_hw_data *ha = vha->hw;
2167 ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, 0, size);
2170 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, RHBA_CMD, size);
2171 ct_rsp = &ha->ct_sns->p.rsp;
2206 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
2207 sizeof(*ha->ms_iocb));
2240 struct qla_hw_data *ha = vha->hw;
2246 ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, DHBA_REQ_SIZE,
2249 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, DHBA_CMD, DHBA_RSP_SIZE);
2250 ct_rsp = &ha->ct_sns->p.rsp;
2256 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
2284 struct qla_hw_data *ha = vha->hw;
2300 ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, 0, size);
2302 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, RPRT_CMD, size);
2303 ct_rsp = &ha->ct_sns->p.rsp;
2326 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
2327 sizeof(*ha->ms_iocb));
2363 struct qla_hw_data *ha = vha->hw;
2385 ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, 0, size);
2388 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, RPA_CMD, size);
2389 ct_rsp = &ha->ct_sns->p.rsp;
2415 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
2416 sizeof(*ha->ms_iocb));
2454 struct qla_hw_data *ha = vha->hw;
2456 if (IS_QLA2100(ha) || IS_QLA2200(ha) ||
2457 IS_QLAFX00(ha))
2532 struct qla_hw_data *ha = vha->hw;
2538 if (!IS_IIDMA_CAPABLE(ha))
2541 arg.iocb = ha->ms_iocb;
2542 arg.req_dma = ha->ct_sns_dma;
2543 arg.rsp_dma = ha->ct_sns_dma;
2548 for (i = 0; i < ha->max_fibre_devices; i++) {
2551 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg);
2554 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GFPN_ID_CMD,
2556 ct_rsp = &ha->ct_sns->p.rsp;
2562 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
2640 struct qla_hw_data *ha = vha->hw;
2646 if (!IS_IIDMA_CAPABLE(ha))
2648 if (!ha->flags.gpsc_supported)
2655 arg.iocb = ha->ms_iocb;
2656 arg.req_dma = ha->ct_sns_dma;
2657 arg.rsp_dma = ha->ct_sns_dma;
2662 for (i = 0; i < ha->max_fibre_devices; i++) {
2668 ct_req = qla24xx_prep_ct_fm_req(ha->ct_sns, GPSC_CMD,
2670 ct_rsp = &ha->ct_sns->p.rsp;
2677 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
2694 ha->flags.gpsc_supported = 0;
2734 struct qla_hw_data *ha = vha->hw;
2738 for (i = 0; i < ha->max_fibre_devices; i++) {
2744 if (!IS_FWI2_CAPABLE(ha))
2747 arg.iocb = ha->ms_iocb;
2748 arg.req_dma = ha->ct_sns_dma;
2749 arg.rsp_dma = ha->ct_sns_dma;
2755 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg);
2758 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GFF_ID_CMD,
2760 ct_rsp = &ha->ct_sns->p.rsp;
2766 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma,
2847 struct qla_hw_data *ha = vha->hw;
2873 ha->flags.gpsc_supported = 0;
3149 struct qla_hw_data *ha = vha->hw;
3155 if (!ha->num_vhosts)
3158 spin_lock_irqsave(&ha->vport_slock, flags);
3159 list_for_each_entry(vp, &ha->vp_list, list) {
3166 spin_unlock_irqrestore(&ha->vport_slock, flags);
3420 struct qla_hw_data *ha = vha->hw;
3421 int num_fibre_dev = ha->max_fibre_devices;