Lines Matching refs:sas_phy
71 while (sha->sas_phy[j]) {
72 if (sha->sas_phy[j] == phy)
102 while (sha->sas_phy[j]) {
103 if (sha->sas_phy[j] == phy)
164 int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
167 int rc = 0, phy_id = sas_phy->id;
169 struct sas_ha_struct *sha = sas_phy->ha;
172 while (sha->sas_phy[i]) {
173 if (sha->sas_phy[i] == sas_phy)
223 struct asd_sas_phy *sas_phy = &phy->sas_phy;
233 sas_notify_phy_event(sas_phy, PHYE_OOB_DONE, gfp_flags);
235 if (sas_phy->phy) {
236 struct sas_phy *sphy = sas_phy->phy;
238 sphy->negotiated_linkrate = sas_phy->linkrate;
263 sas_phy->frame_rcvd_size = phy->frame_rcvd_size;
265 sas_notify_port_event(sas_phy, PORTE_BYTES_DMAED, gfp_flags);
307 struct sas_phy *sphy = dev->phy;
308 struct asd_sas_phy *sas_phy = sha->sas_phy[sphy->number];
1007 struct asd_sas_phy *sas_phy = &mvi->phy[i].sas_phy;
1020 sas_phy->oob_mode = SATA_OOB_MODE;
1048 sas_phy->oob_mode = SAS_OOB_MODE;
1052 memcpy(sas_phy->attached_sas_addr,
1067 static void mvs_port_notify_formed(struct asd_sas_phy *sas_phy, int lock)
1069 struct sas_ha_struct *sas_ha = sas_phy->ha;
1071 struct mvs_phy *phy = sas_phy->lldd_phy;
1072 struct asd_sas_port *sas_port = sas_phy->port;
1078 while (sas_ha->sas_phy[i]) {
1079 if (sas_ha->sas_phy[i] == sas_phy)
1097 mvs_update_wideport(mvi, sas_phy->id);
1109 static void mvs_port_notify_deformed(struct asd_sas_phy *sas_phy, int lock)
1112 struct mvs_phy *phy = sas_phy->lldd_phy;
1114 struct asd_sas_port *port = sas_phy->port;
1128 void mvs_port_formed(struct asd_sas_phy *sas_phy)
1130 mvs_port_notify_formed(sas_phy, 1);
1133 void mvs_port_deformed(struct asd_sas_phy *sas_phy)
1135 mvs_port_notify_deformed(sas_phy, 1);
1252 struct sas_phy *phy = sas_get_local_phy(dev);
1712 struct asd_sas_phy *sas_phy = &phy->sas_phy;
1723 sas_phy_disconnected(sas_phy);
1725 sas_notify_phy_event(sas_phy,
1732 mvs_port_notify_formed(sas_phy, 0);
1738 sas_notify_port_event(sas_phy,
1859 mvs_port_notify_formed(&phy->sas_phy, 0);