Lines Matching defs:phy

149   * control the HBA phy rather than other expander phy if you want control
150 * other phy, you should use SMP command.
151 * @sas_phy: which phy in HBA phys.
161 struct pm8001_phy *phy;
165 phy = &pm8001_ha->phy[phy_id];
166 pm8001_ha->phy[phy_id].enable_completion = &completion;
171 pm8001_ha->phy[phy_id].minimum_linkrate =
175 pm8001_ha->phy[phy_id].maximum_linkrate =
178 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) {
186 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) {
194 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) {
207 if (pm8001_ha->phy[phy_id].phy_state ==
209 sas_phy_disconnected(&phy->sas_phy);
210 sas_notify_phy_event(&phy->sas_phy,
212 phy->phy_attached = 0;
215 if (pm8001_ha->phy[phy_id].phy_state ==
217 sas_phy_disconnected(&phy->sas_phy);
218 sas_notify_phy_event(&phy->sas_phy,
220 phy->phy_attached = 0;
235 struct sas_phy *phy = sas_phy->phy;
240 phy->invalid_dword_count = qp[0];
241 phy->running_disparity_error_count = qp[1];
242 phy->loss_of_dword_sync_count = qp[3];
243 phy->phy_reset_problem_count = qp[4];
273 pm8001_ha->phy[i].enable_completion = &completion;
284 /* give the phy enabling interrupt event time to come in (1s
643 struct ex_phy *phy;
646 phy = &parent_dev->ex_dev.ex_phy[phy_id];
647 if (SAS_ADDR(phy->attached_sas_addr)
1001 struct sas_phy *phy;
1008 phy = sas_get_local_phy(dev);
1011 if (scsi_is_sas_phy_local(phy)) {
1015 rc = sas_phy_reset(phy, 1);
1018 "phy reset failed for device %x\n"
1032 rc = sas_phy_reset(phy, 1);
1038 sas_put_local_phy(phy);
1051 struct sas_phy *phy;
1061 phy = sas_get_local_phy(dev);
1065 if (scsi_is_sas_phy_local(phy)) {
1078 /*send phy reset to hard reset target */
1079 rc = sas_phy_reset(phy, 1);
1094 /*send phy reset to hard reset target */
1095 rc = sas_phy_reset(phy, 1);
1101 sas_put_local_phy(phy);
1114 struct sas_phy *phy = sas_get_local_phy(dev);
1117 rc = sas_phy_reset(phy, 1);
1118 sas_put_local_phy(phy);
1166 /* The task is not in Lun or failed, reset the phy */
1170 "The task is not in Lun or failed, reset the phy\n");
1226 struct pm8001_phy *phy = pm8001_ha->phy + phy_id;
1236 phy->port_reset_status = PORT_RESET_TMO;
1237 phy->reset_success = false;
1238 phy->enable_completion = &completion;
1239 phy->reset_completion = &completion_reset;
1243 phy->enable_completion = NULL;
1244 phy->reset_completion = NULL;
1257 "Waiting for local phy ctl\n");
1260 if (!ret || !phy->reset_success) {
1261 phy->enable_completion = NULL;
1262 phy->reset_completion = NULL;
1273 phy->reset_completion = NULL;
1274 WARN_ON(phy->port_reset_status ==
1276 if (phy->port_reset_status == PORT_RESET_TMO) {