Lines Matching refs:sas_ha
33 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member() local
36 SAS_ADDR_SIZE) != 0 || (sas_ha->strict_wide_ports && in phy_is_wideport_member()
46 struct sas_ha_struct *sas_ha = phy->ha; in sas_resume_port() local
47 struct sas_internal *si = to_sas_internal(sas_ha->core.shost->transportt); in sas_resume_port()
95 struct sas_ha_struct *sas_ha = phy->ha; in sas_form_port() local
98 to_sas_internal(sas_ha->core.shost->transportt); in sas_form_port()
109 wake_up(&sas_ha->eh_wait_q); in sas_form_port()
120 spin_lock_irqsave(&sas_ha->phy_port_lock, flags); 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()
135 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port()
136 port = sas_ha->sas_port[i]; in sas_form_port()
148 if (i >= sas_ha->num_phys) { in sas_form_port()
151 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_form_port()
173 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_form_port()
206 struct sas_ha_struct *sas_ha = phy->ha; in sas_deform_port() local
209 to_sas_internal(sas_ha->core.shost->transportt); in sas_deform_port()
232 spin_lock_irqsave(&sas_ha->phy_port_lock, flags); in sas_deform_port()
252 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_deform_port()
319 struct sas_ha_struct *sas_ha, int i) in sas_init_port() argument
328 port->ha = sas_ha; in sas_init_port()
333 int sas_register_ports(struct sas_ha_struct *sas_ha) in sas_register_ports() argument
338 for (i = 0; i < sas_ha->num_phys; i++) { in sas_register_ports()
339 struct asd_sas_port *port = sas_ha->sas_port[i]; in sas_register_ports()
341 sas_init_port(port, sas_ha, i); in sas_register_ports()
347 void sas_unregister_ports(struct sas_ha_struct *sas_ha) in sas_unregister_ports() argument
351 for (i = 0; i < sas_ha->num_phys; i++) in sas_unregister_ports()
352 if (sas_ha->sas_phy[i]->port) in sas_unregister_ports()
353 sas_deform_port(sas_ha->sas_phy[i], 0); in sas_unregister_ports()