Lines Matching defs:phy
152 * control the HBA phy rather than other expander phy if you want control
153 * other phy, you should use SMP command.
154 * @sas_phy: which phy in HBA phys.
164 struct pm8001_phy *phy;
168 phy = &pm8001_ha->phy[phy_id];
169 pm8001_ha->phy[phy_id].enable_completion = &completion;
185 pm8001_ha->phy[phy_id].minimum_linkrate =
189 pm8001_ha->phy[phy_id].maximum_linkrate =
192 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) {
200 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) {
208 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) {
221 if (pm8001_ha->phy[phy_id].phy_state ==
223 sas_phy_disconnected(&phy->sas_phy);
224 sas_notify_phy_event(&phy->sas_phy,
226 phy->phy_attached = 0;
229 if (pm8001_ha->phy[phy_id].phy_state ==
231 sas_phy_disconnected(&phy->sas_phy);
232 sas_notify_phy_event(&phy->sas_phy,
234 phy->phy_attached = 0;
249 struct sas_phy *phy = sas_phy->phy;
253 phy->invalid_dword_count = readl(qp);
254 phy->running_disparity_error_count = readl(&qp[1]);
255 phy->loss_of_dword_sync_count = readl(&qp[3]);
256 phy->phy_reset_problem_count = readl(&qp[4]);
286 pm8001_ha->phy[i].enable_completion = &completion;
297 /* give the phy enabling interrupt event time to come in (1s
814 struct sas_phy *phy;
821 phy = sas_get_local_phy(dev);
824 if (scsi_is_sas_phy_local(phy)) {
828 rc = sas_phy_reset(phy, 1);
831 "phy reset failed for device %x\n"
844 rc = sas_phy_reset(phy, 1);
850 sas_put_local_phy(phy);
863 struct sas_phy *phy;
873 phy = sas_get_local_phy(dev);
877 if (scsi_is_sas_phy_local(phy)) {
889 /*send phy reset to hard reset target */
890 rc = sas_phy_reset(phy, 1);
904 /*send phy reset to hard reset target */
905 rc = sas_phy_reset(phy, 1);
911 sas_put_local_phy(phy);
934 struct sas_phy *phy = sas_get_local_phy(dev);
936 rc = sas_phy_reset(phy, 1);
937 sas_put_local_phy(phy);
979 /* The task is not in Lun or failed, reset the phy */
983 "The task is not in Lun or failed, reset the phy\n");
1042 struct pm8001_phy *phy = pm8001_ha->phy + phy_id;
1043 port_id = phy->port->port_id;
1053 phy->port_reset_status = PORT_RESET_TMO;
1054 phy->reset_success = false;
1055 phy->enable_completion = &completion;
1056 phy->reset_completion = &completion_reset;
1060 phy->enable_completion = NULL;
1061 phy->reset_completion = NULL;
1074 "Waiting for local phy ctl\n");
1077 if (!ret || !phy->reset_success) {
1078 phy->enable_completion = NULL;
1079 phy->reset_completion = NULL;
1090 phy->reset_completion = NULL;
1091 WARN_ON(phy->port_reset_status ==
1093 if (phy->port_reset_status == PORT_RESET_TMO) {
1164 struct pm8001_phy *phy = sas_phy->lldd_phy;
1166 struct pm8001_port *port = phy->port;