Lines Matching refs:sas_phy

73 			while (sha->sas_phy[j]) {
74 if (sha->sas_phy[j] == phy)
102 while (sha->sas_phy[j]) {
103 if (sha->sas_phy[j] == phy)
163 int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
166 int rc = 0, phy_id = sas_phy->id;
168 struct sas_ha_struct *sha = sas_phy->ha;
171 while (sha->sas_phy[i]) {
172 if (sha->sas_phy[i] == sas_phy)
222 struct asd_sas_phy *sas_phy = &phy->sas_phy;
232 sas_notify_phy_event_gfp(sas_phy, PHYE_OOB_DONE, gfp_flags);
234 if (sas_phy->phy) {
235 struct sas_phy *sphy = sas_phy->phy;
237 sphy->negotiated_linkrate = sas_phy->linkrate;
262 sas_phy->frame_rcvd_size = phy->frame_rcvd_size;
264 sas_notify_port_event_gfp(sas_phy, PORTE_BYTES_DMAED, gfp_flags);
306 struct sas_phy *sphy = dev->phy;
307 struct asd_sas_phy *sas_phy = sha->sas_phy[sphy->number];
1013 struct asd_sas_phy *sas_phy = &mvi->phy[i].sas_phy;
1026 sas_phy->oob_mode = SATA_OOB_MODE;
1054 sas_phy->oob_mode = SAS_OOB_MODE;
1058 memcpy(sas_phy->attached_sas_addr,
1073 static void mvs_port_notify_formed(struct asd_sas_phy *sas_phy, int lock)
1075 struct sas_ha_struct *sas_ha = sas_phy->ha;
1077 struct mvs_phy *phy = sas_phy->lldd_phy;
1078 struct asd_sas_port *sas_port = sas_phy->port;
1084 while (sas_ha->sas_phy[i]) {
1085 if (sas_ha->sas_phy[i] == sas_phy)
1103 mvs_update_wideport(mvi, sas_phy->id);
1115 static void mvs_port_notify_deformed(struct asd_sas_phy *sas_phy, int lock)
1118 struct mvs_phy *phy = sas_phy->lldd_phy;
1120 struct asd_sas_port *port = sas_phy->port;
1134 void mvs_port_formed(struct asd_sas_phy *sas_phy)
1136 mvs_port_notify_formed(sas_phy, 1);
1139 void mvs_port_deformed(struct asd_sas_phy *sas_phy)
1141 mvs_port_notify_deformed(sas_phy, 1);
1371 struct sas_phy *phy = sas_get_local_phy(dev);
1882 struct asd_sas_phy *sas_phy = &phy->sas_phy;
1893 sas_phy_disconnected(sas_phy);
1895 sas_notify_phy_event_gfp(sas_phy,
1902 mvs_port_notify_formed(sas_phy, 0);
1908 sas_notify_port_event_gfp(sas_phy,
2029 mvs_port_notify_formed(&phy->sas_phy, 0);