Lines Matching defs:ha
14 * ha - Pointer to host adapter structure.
21 qla4xxx_lookup_ddb_by_fw_index(struct scsi_qla_host *ha, uint32_t fw_ddb_index)
26 (ha->fw_ddb_index_map[fw_ddb_index] !=
28 ddb_entry = ha->fw_ddb_index_map[fw_ddb_index];
32 ha->host_no, __func__, fw_ddb_index, ddb_entry));
38 __qla4xxx_enable_intrs(struct scsi_qla_host *ha)
40 if (is_qla4022(ha) | is_qla4032(ha)) {
42 &ha->reg->u1.isp4022.intr_mask);
43 readl(&ha->reg->u1.isp4022.intr_mask);
45 writel(set_rmask(CSR_SCSI_INTR_ENABLE), &ha->reg->ctrl_status);
46 readl(&ha->reg->ctrl_status);
48 set_bit(AF_INTERRUPTS_ON, &ha->flags);
52 __qla4xxx_disable_intrs(struct scsi_qla_host *ha)
54 if (is_qla4022(ha) | is_qla4032(ha)) {
56 &ha->reg->u1.isp4022.intr_mask);
57 readl(&ha->reg->u1.isp4022.intr_mask);
59 writel(clr_rmask(CSR_SCSI_INTR_ENABLE), &ha->reg->ctrl_status);
60 readl(&ha->reg->ctrl_status);
62 clear_bit(AF_INTERRUPTS_ON, &ha->flags);
66 qla4xxx_enable_intrs(struct scsi_qla_host *ha)
70 spin_lock_irqsave(&ha->hardware_lock, flags);
71 __qla4xxx_enable_intrs(ha);
72 spin_unlock_irqrestore(&ha->hardware_lock, flags);
76 qla4xxx_disable_intrs(struct scsi_qla_host *ha)
80 spin_lock_irqsave(&ha->hardware_lock, flags);
81 __qla4xxx_disable_intrs(ha);
82 spin_unlock_irqrestore(&ha->hardware_lock, flags);