• Home
  • Raw
  • Download

Lines Matching refs:sas_phy

55 	struct sas_phy *sas_phy = phy->sas_phy.phy;  in get_lrate_mode()  local
60 phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode()
61 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode()
64 phy->sas_phy.linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode()
65 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode()
68 phy->sas_phy.linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode()
69 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode()
72 sas_phy->negotiated_linkrate = phy->sas_phy.linkrate; in get_lrate_mode()
73 sas_phy->maximum_linkrate_hw = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode()
74 sas_phy->minimum_linkrate_hw = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode()
75 sas_phy->maximum_linkrate = phy->phy_desc->max_sas_lrate; in get_lrate_mode()
76 sas_phy->minimum_linkrate = phy->phy_desc->min_sas_lrate; in get_lrate_mode()
79 phy->sas_phy.oob_mode = SAS_OOB_MODE; in get_lrate_mode()
81 phy->sas_phy.oob_mode = SATA_OOB_MODE; in get_lrate_mode()
100 sas_phy_disconnected(&phy->sas_phy); in asd_phy_event_tasklet()
101 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL); in asd_phy_event_tasklet()
108 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto); in asd_phy_event_tasklet()
109 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); in asd_phy_event_tasklet()
114 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD); in asd_phy_event_tasklet()
121 sas_phy_disconnected(&phy->sas_phy); in asd_phy_event_tasklet()
122 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_ERROR); in asd_phy_event_tasklet()
155 if (phy->sas_phy.frame_rcvd[0] == 0x34 in asd_get_attached_sas_addr()
156 && phy->sas_phy.oob_mode == SATA_OOB_MODE) { in asd_get_attached_sas_addr()
157 struct asd_ha_struct *asd_ha = phy->sas_phy.ha->lldd_ha; in asd_get_attached_sas_addr()
165 (void *) phy->sas_phy.frame_rcvd; in asd_get_attached_sas_addr()
175 struct asd_sas_phy *sas_phy = &phy->sas_phy; in asd_form_port() local
185 memcmp(port->sas_addr, sas_phy->sas_addr, in asd_form_port()
188 sas_phy->attached_sas_addr, in asd_form_port()
203 memcpy(port->sas_addr, sas_phy->sas_addr, in asd_form_port()
206 sas_phy->attached_sas_addr, in asd_form_port()
210 port->phy_mask |= (1U << sas_phy->id); in asd_form_port()
214 __func__, phy->asd_port->phy_mask, sas_phy->id); in asd_form_port()
222 struct asd_sas_phy *sas_phy = &phy->sas_phy; in asd_deform_port() local
228 port->phy_mask &= ~(1U << sas_phy->id); in asd_deform_port()
242 struct sas_ha_struct *sas_ha = phy->sas_phy.ha; in asd_bytes_dmaed_tasklet()
247 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags); in asd_bytes_dmaed_tasklet()
248 memcpy(phy->sas_phy.frame_rcvd, edb->vaddr, size); in asd_bytes_dmaed_tasklet()
249 phy->sas_phy.frame_rcvd_size = size; in asd_bytes_dmaed_tasklet()
250 asd_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr); in asd_bytes_dmaed_tasklet()
251 spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags); in asd_bytes_dmaed_tasklet()
254 sas_ha->notify_port_event(&phy->sas_phy, PORTE_BYTES_DMAED); in asd_bytes_dmaed_tasklet()
263 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_link_reset_err_tasklet() local
288 sas_phy_disconnected(sas_phy); in asd_link_reset_err_tasklet()
290 sas_ha->notify_port_event(sas_phy, PORTE_LINK_RESET_ERR); in asd_link_reset_err_tasklet()
316 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_primitive_rcvd_tasklet() local
332 spin_lock_irqsave(&sas_phy->sas_prim_lock, flags); in asd_primitive_rcvd_tasklet()
333 sas_phy->sas_prim = ffs(cont); in asd_primitive_rcvd_tasklet()
334 spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags); in asd_primitive_rcvd_tasklet()
335 sas_ha->notify_port_event(sas_phy,PORTE_BROADCAST_RCVD); in asd_primitive_rcvd_tasklet()
356 sas_ha->notify_port_event(sas_phy, PORTE_HARD_RESET); in asd_primitive_rcvd_tasklet()
422 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in escb_tasklet_complete() local
585 sas_phy_disconnected(sas_phy); in escb_tasklet_complete()
587 sas_ha->notify_port_event(sas_phy, PORTE_TIMER_EVENT); in escb_tasklet_complete()
676 __func__, phy_id,phy->sas_phy.linkrate, in control_phy_tasklet_complete()
677 phy->sas_phy.iproto); in control_phy_tasklet_complete()
795 if (phy->sas_phy.role == PHY_ROLE_INITIATOR) in asd_build_control_phy()
797 else if (phy->sas_phy.role == PHY_ROLE_TARGET) in asd_build_control_phy()