Lines Matching refs:ha
15 * ha - Pointer to host adapter structure.
22 qla4xxx_lookup_ddb_by_fw_index(struct scsi_qla_host *ha, uint32_t fw_ddb_index)
27 (ha->fw_ddb_index_map[fw_ddb_index] !=
29 ddb_entry = ha->fw_ddb_index_map[fw_ddb_index];
33 ha->host_no, __func__, fw_ddb_index, ddb_entry));
39 __qla4xxx_enable_intrs(struct scsi_qla_host *ha)
41 if (is_qla4022(ha) | is_qla4032(ha)) {
43 &ha->reg->u1.isp4022.intr_mask);
44 readl(&ha->reg->u1.isp4022.intr_mask);
46 writel(set_rmask(CSR_SCSI_INTR_ENABLE), &ha->reg->ctrl_status);
47 readl(&ha->reg->ctrl_status);
49 set_bit(AF_INTERRUPTS_ON, &ha->flags);
53 __qla4xxx_disable_intrs(struct scsi_qla_host *ha)
55 if (is_qla4022(ha) | is_qla4032(ha)) {
57 &ha->reg->u1.isp4022.intr_mask);
58 readl(&ha->reg->u1.isp4022.intr_mask);
60 writel(clr_rmask(CSR_SCSI_INTR_ENABLE), &ha->reg->ctrl_status);
61 readl(&ha->reg->ctrl_status);
63 clear_bit(AF_INTERRUPTS_ON, &ha->flags);
67 qla4xxx_enable_intrs(struct scsi_qla_host *ha)
71 spin_lock_irqsave(&ha->hardware_lock, flags);
72 __qla4xxx_enable_intrs(ha);
73 spin_unlock_irqrestore(&ha->hardware_lock, flags);
77 qla4xxx_disable_intrs(struct scsi_qla_host *ha)
81 spin_lock_irqsave(&ha->hardware_lock, flags);
82 __qla4xxx_disable_intrs(ha);
83 spin_unlock_irqrestore(&ha->hardware_lock, flags);