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()
96 struct sas_ha_struct *sas_ha = phy->ha; in sas_form_port() local
99 to_sas_internal(sas_ha->core.shost->transportt); in sas_form_port()
110 wake_up(&sas_ha->eh_wait_q); in sas_form_port()
121 spin_lock_irqsave(&sas_ha->phy_port_lock, flags); in sas_form_port()
122 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port()
123 port = sas_ha->sas_port[i]; in sas_form_port()
135 if (i == sas_ha->num_phys) { in sas_form_port()
136 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port()
137 port = sas_ha->sas_port[i]; in sas_form_port()
149 if (i >= sas_ha->num_phys) { in sas_form_port()
152 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_form_port()
174 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_form_port()
196 flush_workqueue(sas_ha->disco_q); in sas_form_port()
209 struct sas_ha_struct *sas_ha = phy->ha; in sas_deform_port() local
212 to_sas_internal(sas_ha->core.shost->transportt); in sas_deform_port()
236 spin_lock_irqsave(&sas_ha->phy_port_lock, flags); in sas_deform_port()
256 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); in sas_deform_port()
316 struct sas_ha_struct *sas_ha, int i) in sas_init_port() argument
326 port->ha = sas_ha; in sas_init_port()
331 int sas_register_ports(struct sas_ha_struct *sas_ha) in sas_register_ports() argument
336 for (i = 0; i < sas_ha->num_phys; i++) { in sas_register_ports()
337 struct asd_sas_port *port = sas_ha->sas_port[i]; in sas_register_ports()
339 sas_init_port(port, sas_ha, i); in sas_register_ports()
345 void sas_unregister_ports(struct sas_ha_struct *sas_ha) in sas_unregister_ports() argument
349 for (i = 0; i < sas_ha->num_phys; i++) in sas_unregister_ports()
350 if (sas_ha->sas_phy[i]->port) in sas_unregister_ports()
351 sas_deform_port(sas_ha->sas_phy[i], 0); in sas_unregister_ports()