Lines Matching defs:ha

32 void qla4xxx_dump_registers(struct scsi_qla_host *ha)
36 if (is_qla8022(ha)) {
39 i, readl(&ha->qla4_82xx_reg->mailbox_in[i]));
46 readw(&ha->reg->mailbox[i]));
51 readw(&ha->reg->flash_address));
54 readw(&ha->reg->flash_data));
57 readw(&ha->reg->ctrl_status));
59 if (is_qla4010(ha)) {
62 readw(&ha->reg->u1.isp4010.nvram));
63 } else if (is_qla4022(ha) | is_qla4032(ha)) {
66 readw(&ha->reg->u1.isp4022.intr_mask));
69 readw(&ha->reg->u1.isp4022.nvram));
72 readw(&ha->reg->u1.isp4022.semaphore));
76 readw(&ha->reg->req_q_in));
79 readw(&ha->reg->rsp_q_out));
81 if (is_qla4010(ha)) {
84 readw(&ha->reg->u2.isp4010.ext_hw_conf));
87 readw(&ha->reg->u2.isp4010.port_ctrl));
90 readw(&ha->reg->u2.isp4010.port_status));
93 readw(&ha->reg->u2.isp4010.req_q_out));
96 readw(&ha->reg->u2.isp4010.gp_out));
99 readw(&ha->reg->u2.isp4010.gp_in));
102 readw(&ha->reg->u2.isp4010.port_err_status));
103 } else if (is_qla4022(ha) | is_qla4032(ha)) {
107 readw(&ha->reg->u2.isp4022.p0.ext_hw_conf));
110 readw(&ha->reg->u2.isp4022.p0.port_ctrl));
113 readw(&ha->reg->u2.isp4022.p0.port_status));
116 readw(&ha->reg->u2.isp4022.p0.gp_out));
119 readw(&ha->reg->u2.isp4022.p0.gp_in));
122 readw(&ha->reg->u2.isp4022.p0.port_err_status));
125 &ha->reg->ctrl_status);
128 readw(&ha->reg->u2.isp4022.p1.req_q_out));
130 &ha->reg->ctrl_status);
134 void qla4_8xxx_dump_peg_reg(struct scsi_qla_host *ha)
138 halt_status1 = qla4_8xxx_rd_direct(ha, QLA8XXX_PEG_HALT_STATUS1);
139 halt_status2 = qla4_8xxx_rd_direct(ha, QLA8XXX_PEG_HALT_STATUS2);
141 if (is_qla8022(ha)) {
142 ql4_printk(KERN_INFO, ha,
147 " PEG_NET_4_PC: 0x%x\n", ha->host_no, __func__,
148 ha->pdev->device, halt_status1, halt_status2,
149 qla4_82xx_rd_32(ha, QLA82XX_CRB_PEG_NET_0 + 0x3c),
150 qla4_82xx_rd_32(ha, QLA82XX_CRB_PEG_NET_1 + 0x3c),
151 qla4_82xx_rd_32(ha, QLA82XX_CRB_PEG_NET_2 + 0x3c),
152 qla4_82xx_rd_32(ha, QLA82XX_CRB_PEG_NET_3 + 0x3c),
153 qla4_82xx_rd_32(ha, QLA82XX_CRB_PEG_NET_4 + 0x3c));
154 } else if (is_qla8032(ha) || is_qla8042(ha)) {
155 ql4_printk(KERN_INFO, ha,
158 ha->host_no, __func__, ha->pdev->device,