Lines Matching refs:sha
80 struct sas_ha_struct *sha = dev->port->ha; in mvs_find_dev_mvi() local
84 while (sha->sas_port[i]) { in mvs_find_dev_mvi()
85 if (sha->sas_port[i] == dev->port) { in mvs_find_dev_mvi()
86 phy = container_of(sha->sas_port[i]->phy_list.next, in mvs_find_dev_mvi()
89 while (sha->sas_phy[j]) { in mvs_find_dev_mvi()
90 if (sha->sas_phy[j] == phy) in mvs_find_dev_mvi()
98 hi = j/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_find_dev_mvi()
99 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[hi]; in mvs_find_dev_mvi()
110 struct sas_ha_struct *sha = dev->port->ha; in mvs_find_dev_phyno() local
112 while (sha->sas_port[i]) { in mvs_find_dev_phyno()
113 if (sha->sas_port[i] == dev->port) { in mvs_find_dev_phyno()
116 &sha->sas_port[i]->phy_list, port_phy_el) { in mvs_find_dev_phyno()
118 while (sha->sas_phy[j]) { in mvs_find_dev_phyno()
119 if (sha->sas_phy[j] == phy) in mvs_find_dev_phyno()
184 struct sas_ha_struct *sha = sas_phy->ha; in mvs_phy_control() local
187 while (sha->sas_phy[i]) { in mvs_phy_control()
188 if (sha->sas_phy[i] == sas_phy) in mvs_phy_control()
192 hi = i/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_phy_control()
193 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[hi]; in mvs_phy_control()
290 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_scan_start() local
291 struct mvs_prv_info *mvs_prv = sha->lldd_ha; in mvs_scan_start()
293 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_scan_start()
296 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[j]; in mvs_scan_start()
305 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_scan_finished() local
306 struct mvs_prv_info *mvs_prv = sha->lldd_ha; in mvs_scan_finished()
311 sas_drain_work(sha); in mvs_scan_finished()
319 struct sas_ha_struct *sha = mvi->sas; in mvs_task_prep_smp() local
325 struct asd_sas_phy *sas_phy = sha->sas_phy[sphy->number]; in mvs_task_prep_smp()
2113 int mvs_gpio_write(struct sas_ha_struct *sha, u8 reg_type, u8 reg_index, in mvs_gpio_write() argument
2116 struct mvs_prv_info *mvs_prv = sha->lldd_ha; in mvs_gpio_write()