/Linux-v6.6/drivers/net/ethernet/intel/e1000e/ |
D | ich8lan.h | 110 #define PHY_REG(page, reg) (((page) << PHY_PAGE_SHIFT) | \ macro 112 #define IGP3_KMRN_DIAG PHY_REG(770, 19) /* KMRN Diagnostic */ 113 #define IGP3_VR_CTRL PHY_REG(776, 18) /* Voltage Regulator Control */ 120 #define BM_PORT_GEN_CFG PHY_REG(BM_PORT_CTRL_PAGE, 17) 121 #define BM_RCTL PHY_REG(BM_WUC_PAGE, 0) 122 #define BM_WUC PHY_REG(BM_WUC_PAGE, 1) 123 #define BM_WUFC PHY_REG(BM_WUC_PAGE, 2) 124 #define BM_WUS PHY_REG(BM_WUC_PAGE, 3) 139 #define HV_LED_CONFIG PHY_REG(768, 30) /* LED Configuration */ 140 #define HV_MUX_DATA_CTRL PHY_REG(776, 16) [all …]
|
D | ethtool.c | 1376 e1e_rphy(hw, PHY_REG(2, 21), &phy_reg); in e1000_integrated_phy_loopback() 1379 e1e_wphy(hw, PHY_REG(2, 21), phy_reg); in e1000_integrated_phy_loopback() 1384 e1e_rphy(hw, PHY_REG(769, 16), &phy_reg); in e1000_integrated_phy_loopback() 1385 e1e_wphy(hw, PHY_REG(769, 16), phy_reg | 0x000C); in e1000_integrated_phy_loopback() 1387 e1e_rphy(hw, PHY_REG(776, 16), &phy_reg); in e1000_integrated_phy_loopback() 1388 e1e_wphy(hw, PHY_REG(776, 16), phy_reg | 0x0040); in e1000_integrated_phy_loopback() 1390 e1e_rphy(hw, PHY_REG(769, 16), &phy_reg); in e1000_integrated_phy_loopback() 1391 e1e_wphy(hw, PHY_REG(769, 16), phy_reg | 0x0040); in e1000_integrated_phy_loopback() 1393 e1e_rphy(hw, PHY_REG(769, 20), &phy_reg); in e1000_integrated_phy_loopback() 1394 e1e_wphy(hw, PHY_REG(769, 20), phy_reg | 0x0400); in e1000_integrated_phy_loopback() [all …]
|
D | ich8lan.c | 1503 PHY_REG(776, 20), in e1000_check_for_copper_link_ich8lan() 1516 PHY_REG(776, 20), in e1000_check_for_copper_link_ich8lan() 1528 PHY_REG(776, 20), in e1000_check_for_copper_link_ich8lan() 2292 ret_val = e1e_wphy_locked(hw, PHY_REG(770, 19), 0x0100); in e1000_k1_gig_workaround_hv() 2298 ret_val = e1e_wphy_locked(hw, PHY_REG(770, 19), 0x4100); in e1000_k1_gig_workaround_hv() 2477 ret_val = e1e_wphy(hw, PHY_REG(769, 25), 0x4431); in e1000_hv_phy_workarounds_ich8lan() 2592 e1e_rphy(hw, PHY_REG(769, 20), &phy_reg); in e1000_lv_jumbo_workaround_ich8lan() 2593 ret_val = e1e_wphy(hw, PHY_REG(769, 20), phy_reg | BIT(14)); in e1000_lv_jumbo_workaround_ich8lan() 2656 e1e_rphy(hw, PHY_REG(769, 23), &data); in e1000_lv_jumbo_workaround_ich8lan() 2659 ret_val = e1e_wphy(hw, PHY_REG(769, 23), data); in e1000_lv_jumbo_workaround_ich8lan() [all …]
|
D | regs.h | 243 #define I82579_DFT_CTRL PHY_REG(769, 20)
|
D | netdev.c | 3079 e1e_rphy(hw, PHY_REG(770, 26), &phy_data); in e1000_setup_rctl() 3082 e1e_wphy(hw, PHY_REG(770, 26), phy_data); in e1000_setup_rctl()
|
/Linux-v6.6/drivers/phy/rockchip/ |
D | phy-rockchip-dphy-rx0.c | 109 #define PHY_REG(_offset, _width, _shift) \ macro 113 [GRF_DPHY_RX0_TURNREQUEST] = PHY_REG(RK3399_GRF_SOC_CON9, 4, 0), 114 [GRF_DPHY_RX0_CLK_INV_SEL] = PHY_REG(RK3399_GRF_SOC_CON9, 1, 10), 115 [GRF_DPHY_RX1_CLK_INV_SEL] = PHY_REG(RK3399_GRF_SOC_CON9, 1, 11), 116 [GRF_DPHY_RX0_ENABLE] = PHY_REG(RK3399_GRF_SOC_CON21, 4, 0), 117 [GRF_DPHY_RX0_FORCERXMODE] = PHY_REG(RK3399_GRF_SOC_CON21, 4, 4), 118 [GRF_DPHY_RX0_FORCETXSTOPMODE] = PHY_REG(RK3399_GRF_SOC_CON21, 4, 8), 119 [GRF_DPHY_RX0_TURNDISABLE] = PHY_REG(RK3399_GRF_SOC_CON21, 4, 12), 120 [GRF_DPHY_TX0_FORCERXMODE] = PHY_REG(RK3399_GRF_SOC_CON22, 4, 0), 121 [GRF_DPHY_TX0_FORCETXSTOPMODE] = PHY_REG(RK3399_GRF_SOC_CON22, 4, 4), [all …]
|
D | phy-rockchip-inno-csidphy.c | 92 #define PHY_REG(_offset, _width, _shift) \ macro 96 [GRF_DPHY_CSIPHY_FORCERXMODE] = PHY_REG(RK1808_GRF_PD_VI_CON_OFFSET, 4, 0), 97 [GRF_DPHY_CSIPHY_CLKLANE_EN] = PHY_REG(RK1808_GRF_PD_VI_CON_OFFSET, 1, 8), 98 [GRF_DPHY_CSIPHY_DATALANE_EN] = PHY_REG(RK1808_GRF_PD_VI_CON_OFFSET, 4, 4), 102 [GRF_DPHY_CSIPHY_FORCERXMODE] = PHY_REG(RK3326_GRF_PD_VI_CON_OFFSET, 4, 0), 103 [GRF_DPHY_CSIPHY_CLKLANE_EN] = PHY_REG(RK3326_GRF_PD_VI_CON_OFFSET, 1, 8), 104 [GRF_DPHY_CSIPHY_DATALANE_EN] = PHY_REG(RK3326_GRF_PD_VI_CON_OFFSET, 4, 4), 108 [GRF_DPHY_CSIPHY_FORCERXMODE] = PHY_REG(RK3368_GRF_SOC_CON6_OFFSET, 4, 8), 112 [GRF_DPHY_CSIPHY_FORCERXMODE] = PHY_REG(RK3568_GRF_VI_CON0, 4, 0), 113 [GRF_DPHY_CSIPHY_DATALANE_EN] = PHY_REG(RK3568_GRF_VI_CON0, 4, 4), [all …]
|
D | phy-rockchip-inno-dsidphy.c | 37 #define PHY_REG(first, second) (FIRST_ADDRESS(first) | \ macro 287 u32 reg = PHY_REG(first, second) << 2; in phy_update_bits()
|
/Linux-v6.6/drivers/net/dsa/ |
D | lan9303_mdio.c | 18 #define PHY_REG(x) (((x) >> 1) & 0x1f) macro 27 mdio->bus->write(mdio->bus, PHY_ADDR(reg), PHY_REG(reg), val); in lan9303_mdio_real_write() 45 return mdio->bus->read(mdio->bus, PHY_ADDR(reg), PHY_REG(reg)); in lan9303_mdio_real_read()
|
/Linux-v6.6/drivers/net/ethernet/intel/e1000/ |
D | e1000_hw.h | 2912 #define PHY_REG(page, reg) \ macro 2916 PHY_REG(769, 17) /* Port General Configuration */ 2918 PHY_REG(769, 25) /* Rate Adapter Control Register */ 2921 PHY_REG(770, 16) /* KMRN FIFO's control/status register */ 2923 PHY_REG(770, 17) /* KMRN Power Management Control Register */ 2925 PHY_REG(770, 18) /* KMRN Inband Control Register */ 2927 PHY_REG(770, 19) /* KMRN Diagnostic register */ 2930 PHY_REG(770, 20) /* KMRN Acknowledge Timeouts register */ 2933 PHY_REG(776, 18) /* Voltage regulator control register */ 2938 PHY_REG(776, 19) /* IGP3 Capability Register */ [all …]
|
/Linux-v6.6/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | reg.h | 230 #define PHY_REG 0x02F3 macro
|