• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/libsas/

Lines Matching defs:sas_ha

79 int sas_register_ha(struct sas_ha_struct *sas_ha)
83 spin_lock_init(&sas_ha->phy_port_lock);
84 sas_hash_addr(sas_ha->hashed_sas_addr, sas_ha->sas_addr);
86 if (sas_ha->lldd_queue_size == 0)
87 sas_ha->lldd_queue_size = 1;
88 else if (sas_ha->lldd_queue_size == -1)
89 sas_ha->lldd_queue_size = 128; /* Sanity */
91 sas_ha->state = SAS_HA_REGISTERED;
92 spin_lock_init(&sas_ha->state_lock);
94 error = sas_register_phys(sas_ha);
100 error = sas_register_ports(sas_ha);
106 error = sas_init_events(sas_ha);
112 if (sas_ha->lldd_max_execute_num > 1) {
113 error = sas_init_queue(sas_ha);
117 sas_ha->lldd_max_execute_num = 1;
121 INIT_LIST_HEAD(&sas_ha->eh_done_q);
126 sas_unregister_ports(sas_ha);
132 int sas_unregister_ha(struct sas_ha_struct *sas_ha)
138 spin_lock_irqsave(&sas_ha->state_lock, flags);
139 sas_ha->state = SAS_HA_UNREGISTERED;
140 spin_unlock_irqrestore(&sas_ha->state_lock, flags);
141 scsi_flush_work(sas_ha->core.shost);
143 sas_unregister_ports(sas_ha);
145 if (sas_ha->lldd_max_execute_num > 1) {
146 sas_shutdown_queue(sas_ha);
147 sas_ha->lldd_max_execute_num = 1;
173 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost);
174 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
176 to_sas_internal(sas_ha->core.shost->transportt);
180 sas_ha->notify_phy_event(asd_phy, PHYE_LOSS_OF_SIGNAL);
203 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost);
204 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
206 to_sas_internal(sas_ha->core.shost->transportt);
238 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost);
239 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
241 to_sas_internal(sas_ha->core.shost->transportt);