Lines Matching refs:sha
60 struct sas_ha_struct *sha = dev->port->ha; in mvs_find_dev_mvi() local
64 while (sha->sas_port[i]) { in mvs_find_dev_mvi()
65 if (sha->sas_port[i] == dev->port) { in mvs_find_dev_mvi()
66 spin_lock(&sha->sas_port[i]->phy_list_lock); in mvs_find_dev_mvi()
67 phy = container_of(sha->sas_port[i]->phy_list.next, in mvs_find_dev_mvi()
69 spin_unlock(&sha->sas_port[i]->phy_list_lock); in mvs_find_dev_mvi()
71 while (sha->sas_phy[j]) { in mvs_find_dev_mvi()
72 if (sha->sas_phy[j] == phy) in mvs_find_dev_mvi()
80 hi = j/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_find_dev_mvi()
81 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[hi]; in mvs_find_dev_mvi()
92 struct sas_ha_struct *sha = dev->port->ha; in mvs_find_dev_phyno() local
94 while (sha->sas_port[i]) { in mvs_find_dev_phyno()
95 if (sha->sas_port[i] == dev->port) { in mvs_find_dev_phyno()
98 spin_lock(&sha->sas_port[i]->phy_list_lock); in mvs_find_dev_phyno()
100 &sha->sas_port[i]->phy_list, port_phy_el) { in mvs_find_dev_phyno()
102 while (sha->sas_phy[j]) { in mvs_find_dev_phyno()
103 if (sha->sas_phy[j] == phy) in mvs_find_dev_phyno()
112 spin_unlock(&sha->sas_port[i]->phy_list_lock); in mvs_find_dev_phyno()
169 struct sas_ha_struct *sha = sas_phy->ha; in mvs_phy_control() local
172 while (sha->sas_phy[i]) { in mvs_phy_control()
173 if (sha->sas_phy[i] == sas_phy) in mvs_phy_control()
177 hi = i/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_phy_control()
178 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[hi]; in mvs_phy_control()
273 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_scan_start() local
274 struct mvs_prv_info *mvs_prv = sha->lldd_ha; in mvs_scan_start()
276 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_scan_start()
279 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[j]; in mvs_scan_start()
288 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_scan_finished() local
289 struct mvs_prv_info *mvs_prv = sha->lldd_ha; in mvs_scan_finished()
294 sas_drain_work(sha); in mvs_scan_finished()
302 struct sas_ha_struct *sha = mvi->sas; in mvs_task_prep_smp() local
308 struct asd_sas_phy *sas_phy = sha->sas_phy[sphy->number]; in mvs_task_prep_smp()
1926 int mvs_gpio_write(struct sas_ha_struct *sha, u8 reg_type, u8 reg_index, in mvs_gpio_write() argument
1929 struct mvs_prv_info *mvs_prv = sha->lldd_ha; in mvs_gpio_write()