Lines Matching refs:sas_phy

56 	struct sas_phy *sas_phy = phy->sas_phy.phy;
61 phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS;
62 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS;
65 phy->sas_phy.linkrate = SAS_LINK_RATE_3_0_GBPS;
66 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS;
69 phy->sas_phy.linkrate = SAS_LINK_RATE_1_5_GBPS;
70 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_1_5_GBPS;
73 sas_phy->negotiated_linkrate = phy->sas_phy.linkrate;
74 sas_phy->maximum_linkrate_hw = SAS_LINK_RATE_3_0_GBPS;
75 sas_phy->minimum_linkrate_hw = SAS_LINK_RATE_1_5_GBPS;
76 sas_phy->maximum_linkrate = phy->phy_desc->max_sas_lrate;
77 sas_phy->minimum_linkrate = phy->phy_desc->min_sas_lrate;
80 phy->sas_phy.oob_mode = SAS_OOB_MODE;
82 phy->sas_phy.oob_mode = SATA_OOB_MODE;
101 sas_phy_disconnected(&phy->sas_phy);
102 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL);
109 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto);
110 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE);
115 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD);
122 sas_phy_disconnected(&phy->sas_phy);
123 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_ERROR);
156 if (phy->sas_phy.frame_rcvd[0] == 0x34
157 && phy->sas_phy.oob_mode == SATA_OOB_MODE) {
158 struct asd_ha_struct *asd_ha = phy->sas_phy.ha->lldd_ha;
166 (void *) phy->sas_phy.frame_rcvd;
176 struct asd_sas_phy *sas_phy = &phy->sas_phy;
186 memcmp(port->sas_addr, sas_phy->sas_addr,
189 sas_phy->attached_sas_addr,
204 memcpy(port->sas_addr, sas_phy->sas_addr,
207 sas_phy->attached_sas_addr,
211 port->phy_mask |= (1U << sas_phy->id);
215 __func__, phy->asd_port->phy_mask, sas_phy->id);
223 struct asd_sas_phy *sas_phy = &phy->sas_phy;
229 port->phy_mask &= ~(1U << sas_phy->id);
243 struct sas_ha_struct *sas_ha = phy->sas_phy.ha;
248 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags);
249 memcpy(phy->sas_phy.frame_rcvd, edb->vaddr, size);
250 phy->sas_phy.frame_rcvd_size = size;
251 asd_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr);
252 spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags);
255 sas_ha->notify_port_event(&phy->sas_phy, PORTE_BYTES_DMAED);
264 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
289 sas_phy_disconnected(sas_phy);
291 sas_ha->notify_port_event(sas_phy, PORTE_LINK_RESET_ERR);
317 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
333 spin_lock_irqsave(&sas_phy->sas_prim_lock, flags);
334 sas_phy->sas_prim = ffs(cont);
335 spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags);
336 sas_ha->notify_port_event(sas_phy,PORTE_BROADCAST_RCVD);
357 sas_ha->notify_port_event(sas_phy, PORTE_HARD_RESET);
423 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
586 sas_phy_disconnected(sas_phy);
588 sas_ha->notify_port_event(sas_phy, PORTE_TIMER_EVENT);
677 __func__, phy_id,phy->sas_phy.linkrate,
678 phy->sas_phy.iproto);
796 if (phy->sas_phy.role == PHY_ROLE_INITIATOR)
798 else if (phy->sas_phy.role == PHY_ROLE_TARGET)