Lines Matching defs:vha

114 	scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev);
118 if (qla_pci_disconnected(vha, reg))
144 if (qla_pci_disconnected(vha, reg))
201 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev);
205 if (qla_pci_disconnected(vha, reg))
229 if (qla_pci_disconnected(vha, reg))
708 qla2xxx_dump_post_process(scsi_qla_host_t *vha, int rval)
710 struct qla_hw_data *ha = vha->hw;
713 ql_log(ql_log_warn, vha, 0xd000,
718 ql_log(ql_log_info, vha, 0xd001,
720 vha->host_no, ha->fw_dump, ha->fw_dump_cap_flags);
722 qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP);
726 void qla2xxx_dump_fw(scsi_qla_host_t *vha)
730 spin_lock_irqsave(&vha->hw->hardware_lock, flags);
731 vha->hw->isp_ops->fw_dump(vha);
732 spin_unlock_irqrestore(&vha->hw->hardware_lock, flags);
737 * @vha: HA context
740 qla2300_fw_dump(scsi_qla_host_t *vha)
744 struct qla_hw_data *ha = vha->hw;
754 ql_log(ql_log_warn, vha, 0xd002,
760 ql_log(ql_log_warn, vha, 0xd003,
892 * @vha: HA context
895 qla2100_fw_dump(scsi_qla_host_t *vha)
901 struct qla_hw_data *ha = vha->hw;
910 ql_log(ql_log_warn, vha, 0xd004,
916 ql_log(ql_log_warn, vha, 0xd005,
1078 qla24xx_fw_dump(scsi_qla_host_t *vha)
1082 struct qla_hw_data *ha = vha->hw;
1101 ql_log(ql_log_warn, vha, 0xd006,
1107 ql_log(ql_log_warn, vha, 0xd007,
1324 qla25xx_fw_dump(scsi_qla_host_t *vha)
1328 struct qla_hw_data *ha = vha->hw;
1343 ql_log(ql_log_warn, vha, 0xd008,
1349 ql_log(ql_log_warn, vha, 0xd009,
1637 qla81xx_fw_dump(scsi_qla_host_t *vha)
1641 struct qla_hw_data *ha = vha->hw;
1656 ql_log(ql_log_warn, vha, 0xd00a,
1662 ql_log(ql_log_warn, vha, 0xd00b,
1952 qla83xx_fw_dump(scsi_qla_host_t *vha)
1956 struct qla_hw_data *ha = vha->hw;
1971 ql_log(ql_log_warn, vha, 0xd00c,
1977 ql_log(ql_log_warn, vha, 0xd00d,
2394 ql_log(ql_log_warn, vha, 0xd00e,
2398 ql_log(ql_log_warn, vha, 0xd00f, "try a bigger hammer!!!\n");
2419 ql_log(ql_log_warn, vha, 0xd010,
2458 const scsi_qla_host_t *vha, uint msg_id)
2460 if (vha) {
2461 const struct pci_dev *pdev = vha->hw->pdev;
2465 dev_name(&(pdev->dev)), msg_id, vha->host_no);
2478 * It is to be used when vha is available. It formats the message
2484 * vha: Pointer to the scsi_qla_host_t.
2490 ql_dbg(uint level, scsi_qla_host_t *vha, uint id, const char *fmt, ...)
2496 ql_ktrace(1, level, pbuf, NULL, vha, id, fmt);
2502 ql_dbg_prefix(pbuf, ARRAY_SIZE(pbuf), NULL, vha, id);
2517 * It is to be used when vha is not available and pci is available,
2559 * It is to be used when vha is available. It formats the message
2565 * vha: Pointer to the scsi_qla_host_t
2571 ql_log(uint level, scsi_qla_host_t *vha, uint id, const char *fmt, ...)
2580 ql_ktrace(0, level, pbuf, NULL, vha, id, fmt);
2583 ql_dbg_prefix(pbuf, ARRAY_SIZE(pbuf), NULL, vha, id);
2610 * It is to be used when vha is not available and pci is available,
2663 ql_dump_regs(uint level, scsi_qla_host_t *vha, uint id)
2666 struct qla_hw_data *ha = vha->hw;
2682 ql_dbg(level, vha, id, "Mailbox registers:\n");
2684 ql_dbg(level, vha, id,
2689 ql_dump_buffer(uint level, scsi_qla_host_t *vha, uint id, const void *buf,
2697 ql_dbg(level, vha, id,
2699 ql_dbg(level, vha, id,
2702 ql_dbg(level, vha, id, "%04x: ", cnt);
2710 * It is to be used when vha is available. It formats the message
2716 * vha: Pointer to the scsi_qla_host_t
2732 ql_ktrace(0, level, pbuf, NULL, qpair ? qpair->vha : NULL, id, fmt);
2736 qpair ? qpair->vha : NULL, id);
2763 * It is to be used when vha is available. It formats the message
2769 * vha: Pointer to the scsi_qla_host_t.
2782 ql_ktrace(1, level, pbuf, NULL, qpair ? qpair->vha : NULL, id, fmt);
2794 qpair ? qpair->vha : NULL, id + ql_dbg_offset);