Lines Matching refs:sas_phy

73 			while (sha->sas_phy[j]) {  in mvs_find_dev_mvi()
74 if (sha->sas_phy[j] == phy) in mvs_find_dev_mvi()
102 while (sha->sas_phy[j]) { in mvs_find_dev_phyno()
103 if (sha->sas_phy[j] == phy) in mvs_find_dev_phyno()
163 int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, in mvs_phy_control() argument
166 int rc = 0, phy_id = sas_phy->id; in mvs_phy_control()
168 struct sas_ha_struct *sha = sas_phy->ha; in mvs_phy_control()
171 while (sha->sas_phy[i]) { in mvs_phy_control()
172 if (sha->sas_phy[i] == sas_phy) in mvs_phy_control()
222 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_bytes_dmaed() local
233 sas_ha->notify_phy_event(sas_phy, PHYE_OOB_DONE); in mvs_bytes_dmaed()
235 if (sas_phy->phy) { in mvs_bytes_dmaed()
236 struct sas_phy *sphy = sas_phy->phy; in mvs_bytes_dmaed()
238 sphy->negotiated_linkrate = sas_phy->linkrate; in mvs_bytes_dmaed()
263 sas_phy->frame_rcvd_size = phy->frame_rcvd_size; in mvs_bytes_dmaed()
265 mvi->sas->notify_port_event(sas_phy, in mvs_bytes_dmaed()
308 struct sas_phy *sphy = dev->phy; in mvs_task_prep_smp()
309 struct asd_sas_phy *sas_phy = sha->sas_phy[sphy->number]; in mvs_task_prep_smp() local
1015 struct asd_sas_phy *sas_phy = &mvi->phy[i].sas_phy; in mvs_update_phyinfo() local
1028 sas_phy->oob_mode = SATA_OOB_MODE; in mvs_update_phyinfo()
1056 sas_phy->oob_mode = SAS_OOB_MODE; in mvs_update_phyinfo()
1060 memcpy(sas_phy->attached_sas_addr, in mvs_update_phyinfo()
1075 static void mvs_port_notify_formed(struct asd_sas_phy *sas_phy, int lock) in mvs_port_notify_formed() argument
1077 struct sas_ha_struct *sas_ha = sas_phy->ha; in mvs_port_notify_formed()
1079 struct mvs_phy *phy = sas_phy->lldd_phy; in mvs_port_notify_formed()
1080 struct asd_sas_port *sas_port = sas_phy->port; in mvs_port_notify_formed()
1086 while (sas_ha->sas_phy[i]) { in mvs_port_notify_formed()
1087 if (sas_ha->sas_phy[i] == sas_phy) in mvs_port_notify_formed()
1105 mvs_update_wideport(mvi, sas_phy->id); in mvs_port_notify_formed()
1117 static void mvs_port_notify_deformed(struct asd_sas_phy *sas_phy, int lock) in mvs_port_notify_deformed() argument
1120 struct mvs_phy *phy = sas_phy->lldd_phy; in mvs_port_notify_deformed()
1122 struct asd_sas_port *port = sas_phy->port; in mvs_port_notify_deformed()
1136 void mvs_port_formed(struct asd_sas_phy *sas_phy) in mvs_port_formed() argument
1138 mvs_port_notify_formed(sas_phy, 1); in mvs_port_formed()
1141 void mvs_port_deformed(struct asd_sas_phy *sas_phy) in mvs_port_deformed() argument
1143 mvs_port_notify_deformed(sas_phy, 1); in mvs_port_deformed()
1373 struct sas_phy *phy = sas_get_local_phy(dev); in mvs_debug_I_T_nexus_reset()
1885 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_work_queue() local
1896 sas_phy_disconnected(sas_phy); in mvs_work_queue()
1898 sas_ha->notify_phy_event(sas_phy, in mvs_work_queue()
1905 mvs_port_notify_formed(sas_phy, 0); in mvs_work_queue()
1911 sas_ha->notify_port_event(sas_phy, in mvs_work_queue()
2032 mvs_port_notify_formed(&phy->sas_phy, 0); in mvs_int_port()