/kernel/linux/linux-5.10/drivers/net/phy/ |
H A D | uPD60620.c | 37 int phy_state; in upd60620_read_status() local 40 phy_state = phy_read(phydev, MII_BMSR); in upd60620_read_status() 41 if (phy_state < 0) in upd60620_read_status() 42 return phy_state; in upd60620_read_status() 49 if (phy_state & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS)) { in upd60620_read_status() 50 phy_state = phy_read(phydev, PHY_PHYSCR); in upd60620_read_status() 51 if (phy_state < 0) in upd60620_read_status() 52 return phy_state; in upd60620_read_status() 54 if (phy_state & (PHY_PHYSCR_10MB | PHY_PHYSCR_100MB)) { in upd60620_read_status() 59 if (phy_state in upd60620_read_status() [all...] |
H A D | phylink.c | 71 struct phylink_link_state phy_state; member 565 link_state = pl->phy_state; in phylink_mac_initial_config() 665 link_state = pl->phy_state; in phylink_resolve() 694 link_state.link &= pl->phy_state.link; in phylink_resolve() 697 if (pl->phydev && pl->phy_state.link) { in phylink_resolve() 703 pl->phy_state.interface) { in phylink_resolve() 707 link_state.interface = pl->phy_state.interface; in phylink_resolve() 711 link_state.pause = pl->phy_state.pause; in phylink_resolve() 849 pl->phy_state.interface = iface; in phylink_create() 943 pl->phy_state in phylink_phy_change() [all...] |
H A D | phy.c | 44 static const char *phy_state_to_str(enum phy_state st) in phy_state_to_str() 60 enum phy_state old_state) in phy_process_state_change() 1125 enum phy_state old_state; in phy_stop() 1204 enum phy_state old_state; in phy_state_machine()
|
/kernel/linux/linux-6.6/drivers/net/phy/ |
H A D | uPD60620.c | 37 int phy_state; in upd60620_read_status() local 40 phy_state = phy_read(phydev, MII_BMSR); in upd60620_read_status() 41 if (phy_state < 0) in upd60620_read_status() 42 return phy_state; in upd60620_read_status() 49 if (phy_state & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS)) { in upd60620_read_status() 50 phy_state = phy_read(phydev, PHY_PHYSCR); in upd60620_read_status() 51 if (phy_state < 0) in upd60620_read_status() 52 return phy_state; in upd60620_read_status() 54 if (phy_state & (PHY_PHYSCR_10MB | PHY_PHYSCR_100MB)) { in upd60620_read_status() 59 if (phy_state in upd60620_read_status() [all...] |
H A D | phylink.c | 76 struct phylink_link_state phy_state; member 1307 link_state = pl->phy_state; in phylink_mac_initial_config() 1435 link_state = pl->phy_state; in phylink_resolve() 1465 link_state.link &= pl->phy_state.link; in phylink_resolve() 1468 if (pl->phydev && pl->phy_state.link) { in phylink_resolve() 1474 pl->phy_state.interface) { in phylink_resolve() 1478 link_state.interface = pl->phy_state.interface; in phylink_resolve() 1483 if (pl->phy_state.rate_matching) { in phylink_resolve() 1485 pl->phy_state.rate_matching; in phylink_resolve() 1486 link_state.speed = pl->phy_state in phylink_resolve() [all...] |
H A D | phy.c | 45 static const char *phy_state_to_str(enum phy_state st) in phy_state_to_str() 62 enum phy_state old_state) in phy_process_state_change() 1365 enum phy_state old_state; in phy_stop() 1445 enum phy_state old_state; in phy_state_machine()
|
/kernel/linux/linux-5.10/drivers/scsi/libsas/ |
H A D | sas_expander.c | 220 phy->phy_state = PHY_VACANT; in sas_set_ex_phy() 223 phy->phy_state = PHY_NOT_PRESENT; in sas_set_ex_phy() 226 phy->phy_state = PHY_EMPTY; /* do not know yet */ in sas_set_ex_phy() 236 if (phy->phy_state == PHY_VACANT) { in sas_set_ex_phy() 634 if (phy->phy_state == PHY_VACANT || in sas_ex_disable_port() 635 phy->phy_state == PHY_NOT_PRESENT) in sas_ex_disable_port() 759 if (phy->phy_state == PHY_VACANT || in sas_ex_get_linkrate() 760 phy->phy_state == PHY_NOT_PRESENT) in sas_ex_get_linkrate() 929 phy->phy_state = PHY_DEVICE_DISCOVERED; in sas_ex_join_wide_port() 1121 if (phy->phy_state in sas_find_sub_addr() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/libsas/ |
H A D | sas_expander.c | 203 phy->phy_state = PHY_VACANT; in sas_set_ex_phy() 206 phy->phy_state = PHY_NOT_PRESENT; in sas_set_ex_phy() 209 phy->phy_state = PHY_EMPTY; /* do not know yet */ in sas_set_ex_phy() 219 if (phy->phy_state == PHY_VACANT) { in sas_set_ex_phy() 612 if (phy->phy_state == PHY_VACANT || in sas_ex_disable_port() 613 phy->phy_state == PHY_NOT_PRESENT) in sas_ex_disable_port() 737 if (phy->phy_state == PHY_VACANT || in sas_ex_get_linkrate() 738 phy->phy_state == PHY_NOT_PRESENT) in sas_ex_get_linkrate() 862 phy->phy_state = PHY_DEVICE_DISCOVERED; in sas_ex_join_wide_port() 1052 if (phy->phy_state in sas_find_sub_addr() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/pm8001/ |
H A D | pm8001_sas.c | 192 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control() 200 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control() 208 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control() 221 if (pm8001_ha->phy[phy_id].phy_state == in pm8001_phy_control() 229 if (pm8001_ha->phy[phy_id].phy_state == in pm8001_phy_control()
|
H A D | pm8001_hwi.c | 109 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[0] = in read_general_status_table() 111 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[1] = in read_general_status_table() 113 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[2] = in read_general_status_table() 115 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[3] = in read_general_status_table() 117 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[4] = in read_general_status_table() 119 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[5] = in read_general_status_table() 121 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[6] = in read_general_status_table() 123 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[7] = in read_general_status_table() 3182 phy->phy_state = PHY_STATE_LINK_UP_SPC; in hw_event_sas_phy_up() 3260 phy->phy_state in hw_event_sata_phy_up() [all...] |
H A D | pm8001_sas.h | 251 u8 phy_state; member 414 u32 phy_state[8]; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn314/ |
H A D | dcn314_hwseq.c | 453 if (link->phy_state.symclk_ref_cnts.otg > 0) { in apply_symclk_on_tx_off_wa() 463 link->phy_state.symclk_state = SYMCLK_ON_TX_OFF; in apply_symclk_on_tx_off_wa() 486 link->phy_state.symclk_state = SYMCLK_OFF_TX_OFF; in dcn314_disable_link_output()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/emulex/benet/ |
H A D | be_cmds.h | 191 #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)
|
/kernel/linux/linux-6.6/drivers/net/ethernet/emulex/benet/ |
H A D | be_cmds.h | 191 #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)
|
/kernel/linux/linux-5.10/drivers/scsi/pm8001/ |
H A D | pm8001_sas.c | 178 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control() 186 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control() 194 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control() 207 if (pm8001_ha->phy[phy_id].phy_state == in pm8001_phy_control() 215 if (pm8001_ha->phy[phy_id].phy_state == in pm8001_phy_control()
|
H A D | pm8001_hwi.c | 108 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[0] = in read_general_status_table() 110 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[1] = in read_general_status_table() 112 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[2] = in read_general_status_table() 114 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[3] = in read_general_status_table() 116 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[4] = in read_general_status_table() 118 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[5] = in read_general_status_table() 120 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[6] = in read_general_status_table() 122 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[7] = in read_general_status_table() 3308 phy->phy_state = PHY_STATE_LINK_UP_SPC; in hw_event_sas_phy_up() 3384 phy->phy_state in hw_event_sata_phy_up() [all...] |
H A D | pm8001_sas.h | 247 u8 phy_state; member 411 u32 phy_state[8]; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce110/ |
H A D | dce110_hw_sequencer.c | 1446 stream->link->phy_state.symclk_ref_cnts.otg = 1; in dce110_enable_stream_timing() 1447 if (stream->link->phy_state.symclk_state == SYMCLK_OFF_TX_OFF) in dce110_enable_stream_timing() 1448 stream->link->phy_state.symclk_state = SYMCLK_ON_TX_OFF; in dce110_enable_stream_timing() 1450 stream->link->phy_state.symclk_state = SYMCLK_ON_TX_ON; in dce110_enable_stream_timing() 2128 pipe_ctx_old->stream->link->phy_state.symclk_ref_cnts.otg = 0; in dce110_reset_hw_ctx_wrap() 3022 link->phy_state.symclk_state = SYMCLK_ON_TX_ON; in dce110_enable_lvds_link_output() 3038 link->phy_state.symclk_state = SYMCLK_ON_TX_ON; in dce110_enable_tmds_link_output() 3100 link->phy_state.symclk_state = SYMCLK_ON_TX_ON; in dce110_enable_dp_link_output() 3123 link->phy_state.symclk_state = SYMCLK_OFF_TX_OFF; in dce110_disable_link_output()
|
/kernel/linux/linux-5.10/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_v3_hw.c | 1048 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in get_wideport_bitmap_v3_hw() local 1051 if (phy_state & BIT(i)) in get_wideport_bitmap_v3_hw() 1576 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v3_hw() local 1584 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v3_hw() 1585 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v3_hw() 1586 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0); in phy_down_v3_hw() 1633 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in int_phy_up_down_bcast_v3_hw() local 1634 int rdy = phy_state & (1 << phy_no); in int_phy_up_down_bcast_v3_hw()
|
H A D | hisi_sas_v2_hw.c | 1626 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in get_wideport_bitmap_v2_hw() local 1629 if (phy_state & 1 << i) in get_wideport_bitmap_v2_hw() 1636 if (phy_state & 1 << 8) in get_wideport_bitmap_v2_hw() 2734 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v2_hw() local 2742 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v2_hw() 2743 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v2_hw() 2744 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0); in phy_down_v2_hw()
|
H A D | hisi_sas.h | 466 u32 phy_state; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn20/ |
H A D | dcn20_hwseq.c | 734 stream->link->phy_state.symclk_ref_cnts.otg = 1; in dcn20_enable_stream_timing() 735 if (stream->link->phy_state.symclk_state == SYMCLK_OFF_TX_OFF) in dcn20_enable_stream_timing() 736 stream->link->phy_state.symclk_state = SYMCLK_ON_TX_OFF; in dcn20_enable_stream_timing() 738 stream->link->phy_state.symclk_state = SYMCLK_ON_TX_ON; in dcn20_enable_stream_timing() 2537 link->phy_state.symclk_ref_cnts.otg = 0; in dcn20_reset_back_end_for_pipe() 2538 if (link->phy_state.symclk_state == SYMCLK_ON_TX_OFF) { in dcn20_reset_back_end_for_pipe() 2541 link->phy_state.symclk_state = SYMCLK_OFF_TX_OFF; in dcn20_reset_back_end_for_pipe()
|
/kernel/linux/linux-6.6/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_v2_hw.c | 1626 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in get_wideport_bitmap_v2_hw() local 1629 if (phy_state & 1 << i) in get_wideport_bitmap_v2_hw() 1636 if (phy_state & 1 << 8) in get_wideport_bitmap_v2_hw() 2730 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v2_hw() local 2738 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v2_hw() 2739 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v2_hw() 2740 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0, in phy_down_v2_hw()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_hwseq.c | 832 link->phy_state.symclk_state = SYMCLK_ON_TX_ON; in dcn32_init_hw() 1301 if (link->phy_state.symclk_ref_cnts.otg > 0) { in apply_symclk_on_tx_off_wa() 1311 link->phy_state.symclk_state = SYMCLK_ON_TX_OFF; in apply_symclk_on_tx_off_wa() 1333 link->phy_state.symclk_state = SYMCLK_OFF_TX_OFF; in dcn32_disable_link_output()
|
/kernel/linux/linux-5.10/drivers/net/fddi/ |
H A D | defza.h | 553 u32 phy_state; /* PHY state */ member
|