Searched refs:phy_state (Results 1 - 25 of 34) sorted by relevance

12

/linux-master/drivers/net/phy/
H A DuPD60620.c37 int phy_state; local
40 phy_state = phy_read(phydev, MII_BMSR);
41 if (phy_state < 0)
42 return phy_state;
49 if (phy_state & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS)) {
50 phy_state = phy_read(phydev, PHY_PHYSCR);
51 if (phy_state < 0)
52 return phy_state;
54 if (phy_state & (PHY_PHYSCR_10MB | PHY_PHYSCR_100MB)) {
59 if (phy_state
[all...]
H A Dphylink.c76 struct phylink_link_state phy_state; member in struct:phylink
1331 link_state = pl->phy_state;
1459 link_state = pl->phy_state;
1489 link_state.link &= pl->phy_state.link;
1492 if (pl->phydev && pl->phy_state.link) {
1498 pl->phy_state.interface) {
1502 link_state.interface = pl->phy_state.interface;
1507 if (pl->phy_state.rate_matching) {
1509 pl->phy_state.rate_matching;
1510 link_state.speed = pl->phy_state
[all...]
H A Dphy.c45 static const char *phy_state_to_str(enum phy_state st)
62 enum phy_state old_state)
1394 enum phy_state old_state = phydev->state;
1499 enum phy_state old_state;
/linux-master/drivers/scsi/libsas/
H A Dsas_expander.c203 phy->phy_state = PHY_VACANT;
206 phy->phy_state = PHY_NOT_PRESENT;
209 phy->phy_state = PHY_EMPTY; /* do not know yet */
219 if (phy->phy_state == PHY_VACANT) {
612 if (phy->phy_state == PHY_VACANT ||
613 phy->phy_state == PHY_NOT_PRESENT)
737 if (phy->phy_state == PHY_VACANT ||
738 phy->phy_state == PHY_NOT_PRESENT)
862 phy->phy_state = PHY_DEVICE_DISCOVERED;
1052 if (phy->phy_state
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/hwss/dcn314/
H A Ddcn314_hwseq.c412 if (link->phy_state.symclk_ref_cnts.otg > 0) {
422 link->phy_state.symclk_state = SYMCLK_ON_TX_OFF;
445 link->phy_state.symclk_state = SYMCLK_OFF_TX_OFF;
/linux-master/drivers/scsi/pm8001/
H A Dpm8001_sas.c192 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 ==
229 if (pm8001_ha->phy[phy_id].phy_state ==
H A Dpm8001_hwi.c109 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[0] =
111 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[1] =
113 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[2] =
115 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[3] =
117 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[4] =
119 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[5] =
121 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[6] =
123 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[7] =
3126 phy->phy_state = PHY_STATE_LINK_UP_SPC;
3204 phy->phy_state
[all...]
H A Dpm8001_sas.h248 u8 phy_state; member in struct:pm8001_phy
411 u32 phy_state[8]; member in struct:general_status_table::__anon1304
H A Dpm80xx_hwi.c3114 phy->phy_state = PHY_STATE_LINK_UP_SPCV;
3147 phy->phy_state = PHY_STATE_LINK_UP_SPCV;
3229 phy->phy_state = PHY_STATE_LINK_UP_SPCV;
3343 phy->phy_state = PHY_LINK_DOWN;
3433 phy->phy_state = PHY_LINK_DISABLE;
3601 phy->phy_state = PHY_STATE_LINK_UP_SPCV;
3634 phy->phy_state = PHY_LINK_DISABLE;
/linux-master/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.h191 #define be_phy_state_unknown(phy_state) (phy_state > BE_PHY_UNCERTIFIED)
192 #define be_phy_unqualified(phy_state) \
193 (phy_state == BE_PHY_UNQUALIFIED || \
194 phy_state == BE_PHY_UNCERTIFIED)
195 #define be_phy_misconfigured(phy_state) \
196 (phy_state == BE_PHY_INCOMPATIBLE || \
197 phy_state == BE_PHY_UNQUALIFIED || \
198 phy_state == BE_PHY_UNCERTIFIED)
H A Dbe.h669 u8 phy_state; /* state of sfp optics (functional, faulted, etc.,) */ member in struct:be_adapter
/linux-master/include/scsi/
H A Dlibsas.h85 enum ex_phy_state phy_state; member in struct:ex_phy
/linux-master/drivers/gpu/drm/amd/display/dc/
H A Ddc_hw_types.h1087 struct phy_state { struct
H A Ddc.h1657 struct phy_state phy_state; member in struct:dc_link
/linux-master/drivers/gpu/drm/amd/display/dc/hwss/dcn32/
H A Ddcn32_hwseq.c816 link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
1284 if (link->phy_state.symclk_ref_cnts.otg > 0) {
1294 link->phy_state.symclk_state = SYMCLK_ON_TX_OFF;
1317 link->phy_state.symclk_state = SYMCLK_OFF_TX_OFF;
/linux-master/drivers/gpu/drm/amd/display/dc/hwss/dce110/
H A Ddce110_hwseq.c1504 stream->link->phy_state.symclk_ref_cnts.otg = 1;
1505 if (stream->link->phy_state.symclk_state == SYMCLK_OFF_TX_OFF)
1506 stream->link->phy_state.symclk_state = SYMCLK_ON_TX_OFF;
1508 stream->link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
2184 pipe_ctx_old->stream->link->phy_state.symclk_ref_cnts.otg = 0;
3084 link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
3100 link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
3162 link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
3186 link->phy_state.symclk_state = SYMCLK_OFF_TX_OFF;
/linux-master/drivers/scsi/hisi_sas/
H A Dhisi_sas_v2_hw.c1626 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); local
1629 if (phy_state & 1 << i)
1636 if (phy_state & 1 << 8)
2730 u32 phy_state, sl_ctrl, txid_auto; local
2738 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE);
2739 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state);
2740 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0,
H A Dhisi_sas.h454 u32 phy_state; member in struct:hisi_hba
H A Dhisi_sas_v3_hw.c1102 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); local
1105 if (phy_state & BIT(i))
1639 u32 phy_state, sl_ctrl, txid_auto; local
1647 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE);
1648 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state);
1649 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0,
1695 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); local
1696 int rdy = phy_state & (1 << phy_no);
H A Dhisi_sas_main.c1505 hisi_hba->phy_state = hisi_hba->hw->get_phys_state(hisi_hba);
1548 if (!(hisi_hba->phy_state & BIT(phy_no)))
1566 hisi_sas_rescan_topology(hisi_hba, hisi_hba->phy_state);
H A Dhisi_sas_v1_hw.c1440 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); local
1443 (phy_state & 1 << phy_no) ? 1 : 0,
/linux-master/drivers/gpu/drm/amd/display/dc/hwss/dcn20/
H A Ddcn20_hwseq.c877 stream->link->phy_state.symclk_ref_cnts.otg = 1;
878 if (stream->link->phy_state.symclk_state == SYMCLK_OFF_TX_OFF)
879 stream->link->phy_state.symclk_state = SYMCLK_ON_TX_OFF;
881 stream->link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
2736 link->phy_state.symclk_ref_cnts.otg = 0;
2737 if (link->phy_state.symclk_state == SYMCLK_ON_TX_OFF) {
2740 link->phy_state.symclk_state = SYMCLK_OFF_TX_OFF;
/linux-master/drivers/net/fddi/
H A Ddefza.h553 u32 phy_state; /* PHY state */ member in struct:fza_cmd_status
/linux-master/include/linux/
H A Dphy.h481 * enum phy_state - PHY state machine states:
518 enum phy_state { enum
682 enum phy_state state;
/linux-master/drivers/gpu/drm/amd/display/dc/hwss/dcn10/
H A Ddcn10_hwseq.c988 stream->link->phy_state.symclk_ref_cnts.otg = 1;
989 if (stream->link->phy_state.symclk_state == SYMCLK_OFF_TX_OFF)
990 stream->link->phy_state.symclk_state = SYMCLK_ON_TX_OFF;
992 stream->link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
1112 pipe_ctx->stream->link->phy_state.symclk_ref_cnts.otg = 0;

Completed in 457 milliseconds

12