• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/libsas/

Lines Matching refs:sas_ha

78 int sas_register_ha(struct sas_ha_struct *sas_ha)
82 spin_lock_init(&sas_ha->phy_port_lock);
83 sas_hash_addr(sas_ha->hashed_sas_addr, sas_ha->sas_addr);
85 if (sas_ha->lldd_queue_size == 0)
86 sas_ha->lldd_queue_size = 1;
87 else if (sas_ha->lldd_queue_size == -1)
88 sas_ha->lldd_queue_size = 128; /* Sanity */
90 sas_ha->state = SAS_HA_REGISTERED;
91 spin_lock_init(&sas_ha->state_lock);
93 error = sas_register_phys(sas_ha);
99 error = sas_register_ports(sas_ha);
105 error = sas_init_events(sas_ha);
111 if (sas_ha->lldd_max_execute_num > 1) {
112 error = sas_init_queue(sas_ha);
116 sas_ha->lldd_max_execute_num = 1;
120 INIT_LIST_HEAD(&sas_ha->eh_done_q);
125 sas_unregister_ports(sas_ha);
131 int sas_unregister_ha(struct sas_ha_struct *sas_ha)
137 spin_lock_irqsave(&sas_ha->state_lock, flags);
138 sas_ha->state = SAS_HA_UNREGISTERED;
139 spin_unlock_irqrestore(&sas_ha->state_lock, flags);
140 scsi_flush_work(sas_ha->core.shost);
142 sas_unregister_ports(sas_ha);
144 if (sas_ha->lldd_max_execute_num > 1) {
145 sas_shutdown_queue(sas_ha);
146 sas_ha->lldd_max_execute_num = 1;
172 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost);
173 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
175 to_sas_internal(sas_ha->core.shost->transportt);
179 sas_ha->notify_phy_event(asd_phy, PHYE_LOSS_OF_SIGNAL);
202 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost);
203 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
205 to_sas_internal(sas_ha->core.shost->transportt);
237 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost);
238 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
240 to_sas_internal(sas_ha->core.shost->transportt);