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->core.shost->transportt); in sas_resume_port()
80 struct sas_ha_struct *sas_ha = phy->ha; in sas_form_port() local
84 to_sas_internal(sas_ha->core.shost->transportt); in sas_form_port()
95 wake_up(&sas_ha->eh_wait_q); in sas_form_port()
106 spin_lock_irqsave(&sas_ha->phy_port_lock, flags); in sas_form_port()
107 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port()
108 port = sas_ha->sas_port[i]; in sas_form_port()
120 if (i == sas_ha->num_phys) { in sas_form_port()
121 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port()
122 port = sas_ha->sas_port[i]; in sas_form_port()
134 if (i >= sas_ha->num_phys) { in sas_form_port()
136 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_form_port()
159 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_form_port()
188 flush_workqueue(sas_ha->disco_q); in sas_form_port()
201 struct sas_ha_struct *sas_ha = phy->ha; in sas_deform_port() local
204 to_sas_internal(sas_ha->core.shost->transportt); in sas_deform_port()
228 spin_lock_irqsave(&sas_ha->phy_port_lock, flags); in sas_deform_port()
248 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_deform_port()
257 flush_workqueue(sas_ha->disco_q); in sas_deform_port()
317 struct sas_ha_struct *sas_ha, int i) in sas_init_port() argument
327 port->ha = sas_ha; in sas_init_port()
332 int sas_register_ports(struct sas_ha_struct *sas_ha) in sas_register_ports() argument
337 for (i = 0; i < sas_ha->num_phys; i++) { in sas_register_ports()
338 struct asd_sas_port *port = sas_ha->sas_port[i]; in sas_register_ports()
340 sas_init_port(port, sas_ha, i); in sas_register_ports()
346 void sas_unregister_ports(struct sas_ha_struct *sas_ha) in sas_unregister_ports() argument
350 for (i = 0; i < sas_ha->num_phys; i++) in sas_unregister_ports()
351 if (sas_ha->sas_phy[i]->port) in sas_unregister_ports()
352 sas_deform_port(sas_ha->sas_phy[i], 0); in sas_unregister_ports()