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