Lines Matching refs:sas_phy
38 struct sas_phy *sas_phy = phy->sas_phy.phy; in get_lrate_mode() local
43 phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode()
44 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode()
47 phy->sas_phy.linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode()
48 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode()
51 phy->sas_phy.linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode()
52 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode()
55 sas_phy->negotiated_linkrate = phy->sas_phy.linkrate; in get_lrate_mode()
56 sas_phy->maximum_linkrate_hw = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode()
57 sas_phy->minimum_linkrate_hw = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode()
58 sas_phy->maximum_linkrate = phy->phy_desc->max_sas_lrate; in get_lrate_mode()
59 sas_phy->minimum_linkrate = phy->phy_desc->min_sas_lrate; in get_lrate_mode()
62 phy->sas_phy.oob_mode = SAS_OOB_MODE; in get_lrate_mode()
64 phy->sas_phy.oob_mode = SATA_OOB_MODE; in get_lrate_mode()
82 sas_phy_disconnected(&phy->sas_phy); in asd_phy_event_tasklet()
83 sas_notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL, in asd_phy_event_tasklet()
91 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto); in asd_phy_event_tasklet()
92 sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE, GFP_ATOMIC); in asd_phy_event_tasklet()
97 sas_notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD, in asd_phy_event_tasklet()
105 sas_phy_disconnected(&phy->sas_phy); in asd_phy_event_tasklet()
106 sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_ERROR, GFP_ATOMIC); in asd_phy_event_tasklet()
139 if (phy->sas_phy.frame_rcvd[0] == 0x34 in asd_get_attached_sas_addr()
140 && phy->sas_phy.oob_mode == SATA_OOB_MODE) { in asd_get_attached_sas_addr()
141 struct asd_ha_struct *asd_ha = phy->sas_phy.ha->lldd_ha; in asd_get_attached_sas_addr()
149 (void *) phy->sas_phy.frame_rcvd; in asd_get_attached_sas_addr()
159 struct asd_sas_phy *sas_phy = &phy->sas_phy; in asd_form_port() local
169 memcmp(port->sas_addr, sas_phy->sas_addr, in asd_form_port()
172 sas_phy->attached_sas_addr, in asd_form_port()
187 memcpy(port->sas_addr, sas_phy->sas_addr, in asd_form_port()
190 sas_phy->attached_sas_addr, in asd_form_port()
194 port->phy_mask |= (1U << sas_phy->id); in asd_form_port()
198 __func__, phy->asd_port->phy_mask, sas_phy->id); in asd_form_port()
206 struct asd_sas_phy *sas_phy = &phy->sas_phy; in asd_deform_port() local
212 port->phy_mask &= ~(1U << sas_phy->id); in asd_deform_port()
230 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags); in asd_bytes_dmaed_tasklet()
231 memcpy(phy->sas_phy.frame_rcvd, edb->vaddr, size); in asd_bytes_dmaed_tasklet()
232 phy->sas_phy.frame_rcvd_size = size; in asd_bytes_dmaed_tasklet()
233 asd_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr); in asd_bytes_dmaed_tasklet()
234 spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags); in asd_bytes_dmaed_tasklet()
237 sas_notify_port_event(&phy->sas_phy, PORTE_BYTES_DMAED, GFP_ATOMIC); in asd_bytes_dmaed_tasklet()
246 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_link_reset_err_tasklet() local
271 sas_phy_disconnected(sas_phy); in asd_link_reset_err_tasklet()
273 sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, GFP_ATOMIC); in asd_link_reset_err_tasklet()
299 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_primitive_rcvd_tasklet() local
315 spin_lock_irqsave(&sas_phy->sas_prim_lock, flags); in asd_primitive_rcvd_tasklet()
316 sas_phy->sas_prim = ffs(cont); in asd_primitive_rcvd_tasklet()
317 spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags); in asd_primitive_rcvd_tasklet()
318 sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD, in asd_primitive_rcvd_tasklet()
340 sas_notify_port_event(sas_phy, PORTE_HARD_RESET, in asd_primitive_rcvd_tasklet()
407 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in escb_tasklet_complete() local
570 sas_phy_disconnected(sas_phy); in escb_tasklet_complete()
572 sas_notify_port_event(sas_phy, PORTE_TIMER_EVENT, GFP_ATOMIC); in escb_tasklet_complete()
661 __func__, phy_id,phy->sas_phy.linkrate, in control_phy_tasklet_complete()
662 phy->sas_phy.iproto); in control_phy_tasklet_complete()
786 if (phy->sas_phy.role == PHY_ROLE_INITIATOR) in asd_build_control_phy()
788 else if (phy->sas_phy.role == PHY_ROLE_TARGET) in asd_build_control_phy()