Lines Matching refs:sas_ha
17 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member() local
20 SAS_ADDR_SIZE) != 0 || (sas_ha->strict_wide_ports && in phy_is_wideport_member()
30 struct sas_ha_struct *sas_ha = phy->ha; in sas_resume_port() local
31 struct sas_internal *si = to_sas_internal(sas_ha->shost->transportt); in sas_resume_port()
107 struct sas_ha_struct *sas_ha = phy->ha; in sas_form_port() local
111 to_sas_internal(sas_ha->shost->transportt); in sas_form_port()
122 wake_up(&sas_ha->eh_wait_q); in sas_form_port()
133 spin_lock_irqsave(&sas_ha->phy_port_lock, flags); in sas_form_port()
134 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port()
135 port = sas_ha->sas_port[i]; in sas_form_port()
148 if (i == sas_ha->num_phys) { in sas_form_port()
149 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port()
150 port = sas_ha->sas_port[i]; in sas_form_port()
162 if (i >= sas_ha->num_phys) { in sas_form_port()
165 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_form_port()
169 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_form_port()
198 flush_workqueue(sas_ha->disco_q); in sas_form_port()
211 struct sas_ha_struct *sas_ha = phy->ha; in sas_deform_port() local
214 to_sas_internal(sas_ha->shost->transportt); in sas_deform_port()
238 spin_lock_irqsave(&sas_ha->phy_port_lock, flags); in sas_deform_port()
257 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_deform_port()
266 flush_workqueue(sas_ha->disco_q); in sas_deform_port()
326 struct sas_ha_struct *sas_ha, int i) in sas_init_port() argument
336 port->ha = sas_ha; in sas_init_port()
341 int sas_register_ports(struct sas_ha_struct *sas_ha) in sas_register_ports() argument
346 for (i = 0; i < sas_ha->num_phys; i++) { in sas_register_ports()
347 struct asd_sas_port *port = sas_ha->sas_port[i]; in sas_register_ports()
349 sas_init_port(port, sas_ha, i); in sas_register_ports()
355 void sas_unregister_ports(struct sas_ha_struct *sas_ha) in sas_unregister_ports() argument
359 for (i = 0; i < sas_ha->num_phys; i++) in sas_unregister_ports()
360 if (sas_ha->sas_phy[i]->port) in sas_unregister_ports()
361 sas_deform_port(sas_ha->sas_phy[i], 0); in sas_unregister_ports()