• Home
  • Raw
  • Download

Lines Matching refs:phy

36 	struct asd_sas_phy *phy = ev->phy;  in sas_phye_loss_of_signal()  local
38 clear_bit(PHYE_LOSS_OF_SIGNAL, &phy->phy_events_pending); in sas_phye_loss_of_signal()
39 phy->error = 0; in sas_phye_loss_of_signal()
40 sas_deform_port(phy, 1); in sas_phye_loss_of_signal()
46 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_done() local
48 clear_bit(PHYE_OOB_DONE, &phy->phy_events_pending); in sas_phye_oob_done()
49 phy->error = 0; in sas_phye_oob_done()
55 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_error() local
56 struct sas_ha_struct *sas_ha = phy->ha; in sas_phye_oob_error()
57 struct asd_sas_port *port = phy->port; in sas_phye_oob_error()
61 clear_bit(PHYE_OOB_ERROR, &phy->phy_events_pending); in sas_phye_oob_error()
63 sas_deform_port(phy, 1); in sas_phye_oob_error()
65 if (!port && phy->enabled && i->dft->lldd_control_phy) { in sas_phye_oob_error()
66 phy->error++; in sas_phye_oob_error()
67 switch (phy->error) { in sas_phye_oob_error()
70 i->dft->lldd_control_phy(phy, PHY_FUNC_HARD_RESET, in sas_phye_oob_error()
75 phy->error = 0; in sas_phye_oob_error()
76 phy->enabled = 0; in sas_phye_oob_error()
77 i->dft->lldd_control_phy(phy, PHY_FUNC_DISABLE, NULL); in sas_phye_oob_error()
86 struct asd_sas_phy *phy = ev->phy; in sas_phye_spinup_hold() local
87 struct sas_ha_struct *sas_ha = phy->ha; in sas_phye_spinup_hold()
91 clear_bit(PHYE_SPINUP_HOLD, &phy->phy_events_pending); in sas_phye_spinup_hold()
93 phy->error = 0; in sas_phye_spinup_hold()
94 i->dft->lldd_control_phy(phy, PHY_FUNC_RELEASE_SPINUP_HOLD, NULL); in sas_phye_spinup_hold()
100 struct asd_sas_phy *phy = ev->phy; in sas_phye_resume_timeout() local
102 clear_bit(PHYE_RESUME_TIMEOUT, &phy->phy_events_pending); in sas_phye_resume_timeout()
105 if (!phy->suspended) { in sas_phye_resume_timeout()
106 dev_info(&phy->phy->dev, "resume timeout cancelled\n"); in sas_phye_resume_timeout()
110 phy->error = 0; in sas_phye_resume_timeout()
111 phy->suspended = 0; in sas_phye_resume_timeout()
112 sas_deform_port(phy, 1); in sas_phye_resume_timeout()
142 struct asd_sas_phy *phy = sas_ha->sas_phy[i]; in sas_register_phys() local
144 phy->error = 0; in sas_register_phys()
145 INIT_LIST_HEAD(&phy->port_phy_el); in sas_register_phys()
147 INIT_SAS_WORK(&phy->port_events[k].work, sas_port_event_fns[k]); in sas_register_phys()
148 phy->port_events[k].phy = phy; in sas_register_phys()
152 INIT_SAS_WORK(&phy->phy_events[k].work, sas_phy_event_fns[k]); in sas_register_phys()
153 phy->phy_events[k].phy = phy; in sas_register_phys()
156 phy->port = NULL; in sas_register_phys()
157 phy->ha = sas_ha; in sas_register_phys()
158 spin_lock_init(&phy->frame_rcvd_lock); in sas_register_phys()
159 spin_lock_init(&phy->sas_prim_lock); in sas_register_phys()
160 phy->frame_rcvd_size = 0; in sas_register_phys()
162 phy->phy = sas_phy_alloc(&sas_ha->core.shost->shost_gendev, i); in sas_register_phys()
163 if (!phy->phy) in sas_register_phys()
166 phy->phy->identify.initiator_port_protocols = in sas_register_phys()
167 phy->iproto; in sas_register_phys()
168 phy->phy->identify.target_port_protocols = phy->tproto; in sas_register_phys()
169 phy->phy->identify.sas_address = SAS_ADDR(sas_ha->sas_addr); in sas_register_phys()
170 phy->phy->identify.phy_identifier = i; in sas_register_phys()
171 phy->phy->minimum_linkrate_hw = SAS_LINK_RATE_UNKNOWN; in sas_register_phys()
172 phy->phy->maximum_linkrate_hw = SAS_LINK_RATE_UNKNOWN; in sas_register_phys()
173 phy->phy->minimum_linkrate = SAS_LINK_RATE_UNKNOWN; in sas_register_phys()
174 phy->phy->maximum_linkrate = SAS_LINK_RATE_UNKNOWN; in sas_register_phys()
175 phy->phy->negotiated_linkrate = SAS_LINK_RATE_UNKNOWN; in sas_register_phys()
177 sas_phy_add(phy->phy); in sas_register_phys()