Lines Matching refs:phy

36 	struct asd_sas_phy *phy = ev->phy;
38 clear_bit(PHYE_LOSS_OF_SIGNAL, &phy->phy_events_pending);
39 phy->error = 0;
40 sas_deform_port(phy, 1);
46 struct asd_sas_phy *phy = ev->phy;
48 clear_bit(PHYE_OOB_DONE, &phy->phy_events_pending);
49 phy->error = 0;
55 struct asd_sas_phy *phy = ev->phy;
56 struct sas_ha_struct *sas_ha = phy->ha;
57 struct asd_sas_port *port = phy->port;
61 clear_bit(PHYE_OOB_ERROR, &phy->phy_events_pending);
63 sas_deform_port(phy, 1);
65 if (!port && phy->enabled && i->dft->lldd_control_phy) {
66 phy->error++;
67 switch (phy->error) {
70 i->dft->lldd_control_phy(phy, PHY_FUNC_HARD_RESET,
75 phy->error = 0;
76 phy->enabled = 0;
77 i->dft->lldd_control_phy(phy, PHY_FUNC_DISABLE, NULL);
86 struct asd_sas_phy *phy = ev->phy;
87 struct sas_ha_struct *sas_ha = phy->ha;
91 clear_bit(PHYE_SPINUP_HOLD, &phy->phy_events_pending);
93 phy->error = 0;
94 i->dft->lldd_control_phy(phy, PHY_FUNC_RELEASE_SPINUP_HOLD, NULL);
121 struct asd_sas_phy *phy = sas_ha->sas_phy[i];
123 phy->error = 0;
124 INIT_LIST_HEAD(&phy->port_phy_el);
126 INIT_SAS_WORK(&phy->port_events[k].work, sas_port_event_fns[k]);
127 phy->port_events[k].phy = phy;
131 INIT_SAS_WORK(&phy->phy_events[k].work, sas_phy_event_fns[k]);
132 phy->phy_events[k].phy = phy;
135 phy->port = NULL;
136 phy->ha = sas_ha;
137 spin_lock_init(&phy->frame_rcvd_lock);
138 spin_lock_init(&phy->sas_prim_lock);
139 phy->frame_rcvd_size = 0;
141 phy->phy = sas_phy_alloc(&sas_ha->core.shost->shost_gendev, i);
142 if (!phy->phy)
145 phy->phy->identify.initiator_port_protocols =
146 phy->iproto;
147 phy->phy->identify.target_port_protocols = phy->tproto;
148 phy->phy->identify.sas_address = SAS_ADDR(sas_ha->sas_addr);
149 phy->phy->identify.phy_identifier = i;
150 phy->phy->minimum_linkrate_hw = SAS_LINK_RATE_UNKNOWN;
151 phy->phy->maximum_linkrate_hw = SAS_LINK_RATE_UNKNOWN;
152 phy->phy->minimum_linkrate = SAS_LINK_RATE_UNKNOWN;
153 phy->phy->maximum_linkrate = SAS_LINK_RATE_UNKNOWN;
154 phy->phy->negotiated_linkrate = SAS_LINK_RATE_UNKNOWN;
156 sas_phy_add(phy->phy);