Home
last modified time | relevance | path

Searched full:phydev (Results 1 – 25 of 214) sorted by relevance

123456789

/linux-5.10/drivers/net/phy/
Dphy.c59 static void phy_link_up(struct phy_device *phydev) in phy_link_up() argument
61 phydev->phy_link_change(phydev, true); in phy_link_up()
62 phy_led_trigger_change_speed(phydev); in phy_link_up()
65 static void phy_link_down(struct phy_device *phydev) in phy_link_down() argument
67 phydev->phy_link_change(phydev, false); in phy_link_down()
68 phy_led_trigger_change_speed(phydev); in phy_link_down()
71 static const char *phy_pause_str(struct phy_device *phydev) in phy_pause_str() argument
75 if (phydev->autoneg == AUTONEG_DISABLE) in phy_pause_str()
79 phydev->advertising); in phy_pause_str()
81 phydev->advertising); in phy_pause_str()
[all …]
Dbcm-phy-lib.c19 int __bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val) in __bcm_phy_write_exp() argument
23 rc = __phy_write(phydev, MII_BCM54XX_EXP_SEL, reg); in __bcm_phy_write_exp()
27 return __phy_write(phydev, MII_BCM54XX_EXP_DATA, val); in __bcm_phy_write_exp()
31 int bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val) in bcm_phy_write_exp() argument
35 phy_lock_mdio_bus(phydev); in bcm_phy_write_exp()
36 rc = __bcm_phy_write_exp(phydev, reg, val); in bcm_phy_write_exp()
37 phy_unlock_mdio_bus(phydev); in bcm_phy_write_exp()
43 int __bcm_phy_read_exp(struct phy_device *phydev, u16 reg) in __bcm_phy_read_exp() argument
47 val = __phy_write(phydev, MII_BCM54XX_EXP_SEL, reg); in __bcm_phy_read_exp()
51 val = __phy_read(phydev, MII_BCM54XX_EXP_DATA); in __bcm_phy_read_exp()
[all …]
Dphy-c45.c13 * @phydev: target phy_device struct
15 int genphy_c45_pma_setup_forced(struct phy_device *phydev) in genphy_c45_pma_setup_forced() argument
20 if (phydev->duplex != DUPLEX_FULL) in genphy_c45_pma_setup_forced()
23 ctrl1 = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL1); in genphy_c45_pma_setup_forced()
27 ctrl2 = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL2); in genphy_c45_pma_setup_forced()
38 switch (phydev->speed) { in genphy_c45_pma_setup_forced()
70 ret = phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL1, ctrl1); in genphy_c45_pma_setup_forced()
74 ret = phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL2, ctrl2); in genphy_c45_pma_setup_forced()
78 return genphy_c45_an_disable_aneg(phydev); in genphy_c45_pma_setup_forced()
84 * @phydev: target phy_device struct
[all …]
Dbroadcom.c19 #define BRCM_PHY_MODEL(phydev) \ argument
20 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask)
22 #define BRCM_PHY_REV(phydev) \ argument
23 ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask))
29 static int bcm54xx_config_clock_delay(struct phy_device *phydev);
31 static int bcm54210e_config_init(struct phy_device *phydev) in bcm54210e_config_init() argument
35 bcm54xx_config_clock_delay(phydev); in bcm54210e_config_init()
37 if (phydev->dev_flags & PHY_BRCM_EN_MASTER_MODE) { in bcm54210e_config_init()
38 val = phy_read(phydev, MII_CTRL1000); in bcm54210e_config_init()
40 phy_write(phydev, MII_CTRL1000, val); in bcm54210e_config_init()
[all …]
Dphy_device.c201 void phy_device_free(struct phy_device *phydev) in phy_device_free() argument
203 put_device(&phydev->mdio.dev); in phy_device_free()
209 struct phy_device *phydev; in phy_mdio_device_free() local
211 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_free()
212 phy_device_free(phydev); in phy_mdio_device_free()
222 struct phy_device *phydev; in phy_mdio_device_remove() local
224 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_remove()
225 phy_device_remove(phydev); in phy_mdio_device_remove()
234 static bool mdio_bus_phy_may_suspend(struct phy_device *phydev) in mdio_bus_phy_may_suspend() argument
236 struct device_driver *drv = phydev->mdio.dev.driver; in mdio_bus_phy_may_suspend()
[all …]
Dmarvell10g.c114 static int mv3310_hwmon_read_temp_reg(struct phy_device *phydev) in mv3310_hwmon_read_temp_reg() argument
116 return phy_read_mmd(phydev, MDIO_MMD_VEND2, MV_V2_TEMP); in mv3310_hwmon_read_temp_reg()
119 static int mv2110_hwmon_read_temp_reg(struct phy_device *phydev) in mv2110_hwmon_read_temp_reg() argument
121 return phy_read_mmd(phydev, MDIO_MMD_PCS, MV_PCS_TEMP); in mv2110_hwmon_read_temp_reg()
124 static int mv10g_hwmon_read_temp_reg(struct phy_device *phydev) in mv10g_hwmon_read_temp_reg() argument
126 if (phydev->drv->phy_id == MARVELL_PHY_ID_88X3310) in mv10g_hwmon_read_temp_reg()
127 return mv3310_hwmon_read_temp_reg(phydev); in mv10g_hwmon_read_temp_reg()
129 return mv2110_hwmon_read_temp_reg(phydev); in mv10g_hwmon_read_temp_reg()
135 struct phy_device *phydev = dev_get_drvdata(dev); in mv3310_hwmon_read() local
144 temp = mv10g_hwmon_read_temp_reg(phydev); in mv3310_hwmon_read()
[all …]
Dvitesse.c78 static int vsc824x_add_skew(struct phy_device *phydev) in vsc824x_add_skew() argument
83 extcon = phy_read(phydev, MII_VSC8244_EXT_CON1); in vsc824x_add_skew()
94 err = phy_write(phydev, MII_VSC8244_EXT_CON1, extcon); in vsc824x_add_skew()
99 static int vsc824x_config_init(struct phy_device *phydev) in vsc824x_config_init() argument
103 err = phy_write(phydev, MII_VSC8244_AUX_CONSTAT, in vsc824x_config_init()
108 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) in vsc824x_config_init()
109 err = vsc824x_add_skew(phydev); in vsc824x_config_init()
116 static int vsc73xx_read_page(struct phy_device *phydev) in vsc73xx_read_page() argument
118 return __phy_read(phydev, VSC73XX_EXT_PAGE_ACCESS); in vsc73xx_read_page()
121 static int vsc73xx_write_page(struct phy_device *phydev, int page) in vsc73xx_write_page() argument
[all …]
Drealtek.c65 static int rtl821x_read_page(struct phy_device *phydev) in rtl821x_read_page() argument
67 return __phy_read(phydev, RTL821x_PAGE_SELECT); in rtl821x_read_page()
70 static int rtl821x_write_page(struct phy_device *phydev, int page) in rtl821x_write_page() argument
72 return __phy_write(phydev, RTL821x_PAGE_SELECT, page); in rtl821x_write_page()
75 static int rtl8201_ack_interrupt(struct phy_device *phydev) in rtl8201_ack_interrupt() argument
79 err = phy_read(phydev, RTL8201F_ISR); in rtl8201_ack_interrupt()
84 static int rtl821x_ack_interrupt(struct phy_device *phydev) in rtl821x_ack_interrupt() argument
88 err = phy_read(phydev, RTL821x_INSR); in rtl821x_ack_interrupt()
93 static int rtl8211f_ack_interrupt(struct phy_device *phydev) in rtl8211f_ack_interrupt() argument
97 err = phy_read_paged(phydev, 0xa43, RTL8211F_INSR); in rtl8211f_ack_interrupt()
[all …]
Dmarvell.c285 static int marvell_read_page(struct phy_device *phydev) in marvell_read_page() argument
287 return __phy_read(phydev, MII_MARVELL_PHY_PAGE); in marvell_read_page()
290 static int marvell_write_page(struct phy_device *phydev, int page) in marvell_write_page() argument
292 return __phy_write(phydev, MII_MARVELL_PHY_PAGE, page); in marvell_write_page()
295 static int marvell_set_page(struct phy_device *phydev, int page) in marvell_set_page() argument
297 return phy_write(phydev, MII_MARVELL_PHY_PAGE, page); in marvell_set_page()
300 static int marvell_ack_interrupt(struct phy_device *phydev) in marvell_ack_interrupt() argument
305 err = phy_read(phydev, MII_M1011_IEVENT); in marvell_ack_interrupt()
313 static int marvell_config_intr(struct phy_device *phydev) in marvell_config_intr() argument
317 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) in marvell_config_intr()
[all …]
Dat803x.c165 static int at803x_debug_reg_read(struct phy_device *phydev, u16 reg) in at803x_debug_reg_read() argument
169 ret = phy_write(phydev, AT803X_DEBUG_ADDR, reg); in at803x_debug_reg_read()
173 return phy_read(phydev, AT803X_DEBUG_DATA); in at803x_debug_reg_read()
176 static int at803x_debug_reg_mask(struct phy_device *phydev, u16 reg, in at803x_debug_reg_mask() argument
182 ret = at803x_debug_reg_read(phydev, reg); in at803x_debug_reg_mask()
190 return phy_write(phydev, AT803X_DEBUG_DATA, val); in at803x_debug_reg_mask()
193 static int at803x_enable_rx_delay(struct phy_device *phydev) in at803x_enable_rx_delay() argument
195 return at803x_debug_reg_mask(phydev, AT803X_DEBUG_REG_0, 0, in at803x_enable_rx_delay()
199 static int at803x_enable_tx_delay(struct phy_device *phydev) in at803x_enable_tx_delay() argument
201 return at803x_debug_reg_mask(phydev, AT803X_DEBUG_REG_5, 0, in at803x_enable_tx_delay()
[all …]
Dbcm7xxx.c46 static int bcm7xxx_28nm_d0_afe_config_init(struct phy_device *phydev) in bcm7xxx_28nm_d0_afe_config_init() argument
49 bcm_phy_write_misc(phydev, AFE_RXCONFIG_0, 0xeb15); in bcm7xxx_28nm_d0_afe_config_init()
52 bcm_phy_write_misc(phydev, AFE_RXCONFIG_1, 0x9b2f); in bcm7xxx_28nm_d0_afe_config_init()
55 bcm_phy_write_misc(phydev, AFE_RXCONFIG_2, 0x2003); in bcm7xxx_28nm_d0_afe_config_init()
58 bcm_phy_write_misc(phydev, AFE_RX_LP_COUNTER, 0x7fc0); in bcm7xxx_28nm_d0_afe_config_init()
61 bcm_phy_write_misc(phydev, AFE_TX_CONFIG, 0x431); in bcm7xxx_28nm_d0_afe_config_init()
64 bcm_phy_write_misc(phydev, AFE_VDCA_ICTRL_0, 0xa7da); in bcm7xxx_28nm_d0_afe_config_init()
67 bcm_phy_write_misc(phydev, AFE_VDAC_OTHERS_0, 0xa020); in bcm7xxx_28nm_d0_afe_config_init()
72 bcm_phy_write_misc(phydev, AFE_HPF_TRIM_OTHERS, 0x00e3); in bcm7xxx_28nm_d0_afe_config_init()
75 phy_write(phydev, MII_BRCM_CORE_BASE1E, 0x0010); in bcm7xxx_28nm_d0_afe_config_init()
[all …]
Dbcm84881.c23 static int bcm84881_wait_init(struct phy_device *phydev) in bcm84881_wait_init() argument
27 return phy_read_mmd_poll_timeout(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL1, in bcm84881_wait_init()
32 static int bcm84881_config_init(struct phy_device *phydev) in bcm84881_config_init() argument
34 switch (phydev->interface) { in bcm84881_config_init()
45 static int bcm84881_probe(struct phy_device *phydev) in bcm84881_probe() argument
50 if (!phydev->is_c45 || in bcm84881_probe()
51 (phydev->c45_ids.devices_in_package & mmd_mask) != mmd_mask) in bcm84881_probe()
57 static int bcm84881_get_features(struct phy_device *phydev) in bcm84881_get_features() argument
61 ret = genphy_c45_pma_read_abilities(phydev); in bcm84881_get_features()
67 phydev->supported); in bcm84881_get_features()
[all …]
Ddp83822.c122 static int dp83822_ack_interrupt(struct phy_device *phydev) in dp83822_ack_interrupt() argument
126 err = phy_read(phydev, MII_DP83822_MISR1); in dp83822_ack_interrupt()
130 err = phy_read(phydev, MII_DP83822_MISR2); in dp83822_ack_interrupt()
137 static int dp83822_set_wol(struct phy_device *phydev, in dp83822_set_wol() argument
140 struct net_device *ndev = phydev->attached_dev; in dp83822_set_wol()
153 phy_write_mmd(phydev, DP83822_DEVADDR, MII_DP83822_WOL_DA1, in dp83822_set_wol()
155 phy_write_mmd(phydev, DP83822_DEVADDR, MII_DP83822_WOL_DA2, in dp83822_set_wol()
157 phy_write_mmd(phydev, DP83822_DEVADDR, MII_DP83822_WOL_DA3, in dp83822_set_wol()
160 value = phy_read_mmd(phydev, DP83822_DEVADDR, in dp83822_set_wol()
168 phy_write_mmd(phydev, DP83822_DEVADDR, in dp83822_set_wol()
[all …]
Dmicrochip.c24 static int lan88xx_read_page(struct phy_device *phydev) in lan88xx_read_page() argument
26 return __phy_read(phydev, LAN88XX_EXT_PAGE_ACCESS); in lan88xx_read_page()
29 static int lan88xx_write_page(struct phy_device *phydev, int page) in lan88xx_write_page() argument
31 return __phy_write(phydev, LAN88XX_EXT_PAGE_ACCESS, page); in lan88xx_write_page()
34 static int lan88xx_phy_config_intr(struct phy_device *phydev) in lan88xx_phy_config_intr() argument
38 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in lan88xx_phy_config_intr()
40 rc = phy_write(phydev, LAN88XX_INT_MASK, 0x7FFF); in lan88xx_phy_config_intr()
41 rc = phy_read(phydev, LAN88XX_INT_STS); in lan88xx_phy_config_intr()
42 rc = phy_write(phydev, LAN88XX_INT_MASK, in lan88xx_phy_config_intr()
46 rc = phy_write(phydev, LAN88XX_INT_MASK, 0); in lan88xx_phy_config_intr()
[all …]
Ddp83869.c155 static int dp83869_read_status(struct phy_device *phydev) in dp83869_read_status() argument
157 struct dp83869_private *dp83869 = phydev->priv; in dp83869_read_status()
160 ret = genphy_read_status(phydev); in dp83869_read_status()
164 if (linkmode_test_bit(ETHTOOL_LINK_MODE_FIBRE_BIT, phydev->supported)) { in dp83869_read_status()
165 if (phydev->link) { in dp83869_read_status()
167 phydev->speed = SPEED_100; in dp83869_read_status()
169 phydev->speed = SPEED_UNKNOWN; in dp83869_read_status()
170 phydev->duplex = DUPLEX_UNKNOWN; in dp83869_read_status()
177 static int dp83869_ack_interrupt(struct phy_device *phydev) in dp83869_ack_interrupt() argument
179 int err = phy_read(phydev, MII_DP83869_ISR); in dp83869_ack_interrupt()
[all …]
Daquantia_main.c149 static int aqr107_get_sset_count(struct phy_device *phydev) in aqr107_get_sset_count() argument
154 static void aqr107_get_strings(struct phy_device *phydev, u8 *data) in aqr107_get_strings() argument
163 static u64 aqr107_get_stat(struct phy_device *phydev, int index) in aqr107_get_stat() argument
171 val = phy_read_mmd(phydev, MDIO_MMD_C22EXT, stat->reg); in aqr107_get_stat()
177 val = phy_read_mmd(phydev, MDIO_MMD_C22EXT, stat->reg + 1); in aqr107_get_stat()
187 static void aqr107_get_stats(struct phy_device *phydev, in aqr107_get_stats() argument
190 struct aqr107_priv *priv = phydev->priv; in aqr107_get_stats()
195 val = aqr107_get_stat(phydev, i); in aqr107_get_stats()
197 phydev_err(phydev, "Reading HW Statistics failed for %s\n", in aqr107_get_stats()
206 static int aqr_config_aneg(struct phy_device *phydev) in aqr_config_aneg() argument
[all …]
Dnxp-tja11xx.c73 struct phy_device *phydev; member
93 static int tja11xx_check(struct phy_device *phydev, u8 reg, u16 mask, u16 set) in tja11xx_check() argument
97 return phy_read_poll_timeout(phydev, reg, val, (val & mask) == set, in tja11xx_check()
101 static int phy_modify_check(struct phy_device *phydev, u8 reg, in phy_modify_check() argument
106 ret = phy_modify(phydev, reg, mask, set); in phy_modify_check()
110 return tja11xx_check(phydev, reg, mask, set); in phy_modify_check()
113 static int tja11xx_enable_reg_write(struct phy_device *phydev) in tja11xx_enable_reg_write() argument
115 return phy_set_bits(phydev, MII_ECTRL, MII_ECTRL_CONFIG_EN); in tja11xx_enable_reg_write()
118 static int tja11xx_enable_link_control(struct phy_device *phydev) in tja11xx_enable_link_control() argument
120 return phy_set_bits(phydev, MII_ECTRL, MII_ECTRL_LINK_CONTROL); in tja11xx_enable_link_control()
[all …]
Dbcm-phy-lib.h30 int __bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val);
31 int __bcm_phy_read_exp(struct phy_device *phydev, u16 reg);
32 int __bcm_phy_modify_exp(struct phy_device *phydev, u16 reg, u16 mask, u16 set);
33 int bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val);
34 int bcm_phy_read_exp(struct phy_device *phydev, u16 reg);
35 int bcm_phy_modify_exp(struct phy_device *phydev, u16 reg, u16 mask, u16 set);
37 static inline int bcm_phy_write_exp_sel(struct phy_device *phydev, in bcm_phy_write_exp_sel() argument
40 return bcm_phy_write_exp(phydev, reg | MII_BCM54XX_EXP_SEL_ER, val); in bcm_phy_write_exp_sel()
43 int bcm54xx_auxctl_write(struct phy_device *phydev, u16 regnum, u16 val);
44 int bcm54xx_auxctl_read(struct phy_device *phydev, u16 regnum);
[all …]
Dmicrel.c134 static int kszphy_extended_write(struct phy_device *phydev, in kszphy_extended_write() argument
137 phy_write(phydev, MII_KSZPHY_EXTREG, KSZPHY_EXTREG_WRITE | regnum); in kszphy_extended_write()
138 return phy_write(phydev, MII_KSZPHY_EXTREG_WRITE, val); in kszphy_extended_write()
141 static int kszphy_extended_read(struct phy_device *phydev, in kszphy_extended_read() argument
144 phy_write(phydev, MII_KSZPHY_EXTREG, regnum); in kszphy_extended_read()
145 return phy_read(phydev, MII_KSZPHY_EXTREG_READ); in kszphy_extended_read()
148 static int kszphy_ack_interrupt(struct phy_device *phydev) in kszphy_ack_interrupt() argument
153 rc = phy_read(phydev, MII_KSZPHY_INTCS); in kszphy_ack_interrupt()
158 static int kszphy_config_intr(struct phy_device *phydev) in kszphy_config_intr() argument
160 const struct kszphy_type *type = phydev->drv->driver_data; in kszphy_config_intr()
[all …]
/linux-5.10/drivers/net/ethernet/realtek/
Dr8169_phy_config.c18 struct phy_device *phydev);
20 static void r8168d_modify_extpage(struct phy_device *phydev, int extpage, in r8168d_modify_extpage() argument
23 int oldpage = phy_select_page(phydev, 0x0007); in r8168d_modify_extpage()
25 __phy_write(phydev, 0x1e, extpage); in r8168d_modify_extpage()
26 __phy_modify(phydev, reg, mask, val); in r8168d_modify_extpage()
28 phy_restore_page(phydev, oldpage, 0); in r8168d_modify_extpage()
31 static void r8168d_phy_param(struct phy_device *phydev, u16 parm, in r8168d_phy_param() argument
34 int oldpage = phy_select_page(phydev, 0x0005); in r8168d_phy_param()
36 __phy_write(phydev, 0x05, parm); in r8168d_phy_param()
37 __phy_modify(phydev, 0x06, mask, val); in r8168d_phy_param()
[all …]
/linux-5.10/drivers/net/phy/mscc/
Dmscc_ptp.c26 /* phydev->bus->mdio_lock should be locked when using this function */
27 static int phy_ts_base_write(struct phy_device *phydev, u32 regnum, u16 val) in phy_ts_base_write() argument
29 struct vsc8531_private *priv = phydev->priv; in phy_ts_base_write()
31 WARN_ON_ONCE(!mutex_is_locked(&phydev->mdio.bus->mdio_lock)); in phy_ts_base_write()
32 return __mdiobus_write(phydev->mdio.bus, priv->ts_base_addr, regnum, in phy_ts_base_write()
36 /* phydev->bus->mdio_lock should be locked when using this function */
37 static int phy_ts_base_read(struct phy_device *phydev, u32 regnum) in phy_ts_base_read() argument
39 struct vsc8531_private *priv = phydev->priv; in phy_ts_base_read()
41 WARN_ON_ONCE(!mutex_is_locked(&phydev->mdio.bus->mdio_lock)); in phy_ts_base_read()
42 return __mdiobus_read(phydev->mdio.bus, priv->ts_base_addr, regnum); in phy_ts_base_read()
[all …]
Dmscc_main.c110 static int vsc85xx_phy_read_page(struct phy_device *phydev) in vsc85xx_phy_read_page() argument
112 return __phy_read(phydev, MSCC_EXT_PAGE_ACCESS); in vsc85xx_phy_read_page()
115 static int vsc85xx_phy_write_page(struct phy_device *phydev, int page) in vsc85xx_phy_write_page() argument
117 return __phy_write(phydev, MSCC_EXT_PAGE_ACCESS, page); in vsc85xx_phy_write_page()
120 static int vsc85xx_get_sset_count(struct phy_device *phydev) in vsc85xx_get_sset_count() argument
122 struct vsc8531_private *priv = phydev->priv; in vsc85xx_get_sset_count()
130 static void vsc85xx_get_strings(struct phy_device *phydev, u8 *data) in vsc85xx_get_strings() argument
132 struct vsc8531_private *priv = phydev->priv; in vsc85xx_get_strings()
143 static u64 vsc85xx_get_stat(struct phy_device *phydev, int i) in vsc85xx_get_stat() argument
145 struct vsc8531_private *priv = phydev->priv; in vsc85xx_get_stat()
[all …]
Dmscc_macsec.c22 static u32 vsc8584_macsec_phy_read(struct phy_device *phydev, in vsc8584_macsec_phy_read() argument
29 rc = phy_select_page(phydev, MSCC_PHY_PAGE_MACSEC); in vsc8584_macsec_phy_read()
33 __phy_write(phydev, MSCC_EXT_PAGE_MACSEC_20, in vsc8584_macsec_phy_read()
42 __phy_write(phydev, MSCC_EXT_PAGE_MACSEC_19, in vsc8584_macsec_phy_read()
49 val = __phy_read(phydev, MSCC_EXT_PAGE_MACSEC_19); in vsc8584_macsec_phy_read()
52 val_l = __phy_read(phydev, MSCC_EXT_PAGE_MACSEC_17); in vsc8584_macsec_phy_read()
53 val_h = __phy_read(phydev, MSCC_EXT_PAGE_MACSEC_18); in vsc8584_macsec_phy_read()
56 phy_restore_page(phydev, rc, rc); in vsc8584_macsec_phy_read()
61 static void vsc8584_macsec_phy_write(struct phy_device *phydev, in vsc8584_macsec_phy_write() argument
67 rc = phy_select_page(phydev, MSCC_PHY_PAGE_MACSEC); in vsc8584_macsec_phy_write()
[all …]
/linux-5.10/include/linux/
Dphy.h73 * Set phydev->irq to PHY_POLL if interrupts are not supported,
267 * Represents a shared structure between different phydev's in the same
639 void (*phy_link_change)(struct phy_device *phydev, bool up);
706 int (*soft_reset)(struct phy_device *phydev);
712 int (*config_init)(struct phy_device *phydev);
718 int (*probe)(struct phy_device *phydev);
722 * abilities it has. Should only set phydev->supported.
724 int (*get_features)(struct phy_device *phydev);
728 int (*suspend)(struct phy_device *phydev);
730 int (*resume)(struct phy_device *phydev);
[all …]
/linux-5.10/net/ethtool/
Dcabletest.c19 static int ethnl_cable_test_started(struct phy_device *phydev, u8 cmd) in ethnl_cable_test_started() argument
35 err = ethnl_fill_reply_header(skb, phydev->attached_dev, in ethnl_cable_test_started()
47 return ethnl_multicast(skb, phydev->attached_dev); in ethnl_cable_test_started()
51 phydev_err(phydev, "%s: Error %pe\n", __func__, ERR_PTR(err)); in ethnl_cable_test_started()
72 if (!dev->phydev) { in ethnl_act_cable_test()
88 ret = ops->start_cable_test(dev->phydev, info->extack); in ethnl_act_cable_test()
93 ethnl_cable_test_started(dev->phydev, in ethnl_act_cable_test()
103 int ethnl_cable_test_alloc(struct phy_device *phydev, u8 cmd) in ethnl_cable_test_alloc() argument
110 phydev->skb = genlmsg_new(SZ_16K, GFP_KERNEL); in ethnl_cable_test_alloc()
111 if (!phydev->skb) in ethnl_cable_test_alloc()
[all …]

123456789