/linux-6.1.9/drivers/net/ethernet/realtek/ |
D | r8169_phy_config.c | 18 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-6.1.9/drivers/net/phy/ |
D | phy.c | 60 static void phy_link_up(struct phy_device *phydev) in phy_link_up() argument 62 phydev->phy_link_change(phydev, true); in phy_link_up() 63 phy_led_trigger_change_speed(phydev); in phy_link_up() 66 static void phy_link_down(struct phy_device *phydev) in phy_link_down() argument 68 phydev->phy_link_change(phydev, false); in phy_link_down() 69 phy_led_trigger_change_speed(phydev); in phy_link_down() 72 static const char *phy_pause_str(struct phy_device *phydev) in phy_pause_str() argument 76 if (phydev->autoneg == AUTONEG_DISABLE) in phy_pause_str() 80 phydev->advertising); in phy_pause_str() 82 phydev->advertising); in phy_pause_str() [all …]
|
D | phy-c45.c | 15 static bool genphy_c45_baset1_able(struct phy_device *phydev) in genphy_c45_baset1_able() argument 19 if (phydev->pma_extable == -ENODATA) { in genphy_c45_baset1_able() 20 val = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_EXTABLE); in genphy_c45_baset1_able() 24 phydev->pma_extable = val; in genphy_c45_baset1_able() 27 return !!(phydev->pma_extable & MDIO_PMA_EXTABLE_BT1); in genphy_c45_baset1_able() 34 static bool genphy_c45_pma_can_sleep(struct phy_device *phydev) in genphy_c45_pma_can_sleep() argument 38 stat1 = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_STAT1); in genphy_c45_pma_can_sleep() 49 int genphy_c45_pma_resume(struct phy_device *phydev) in genphy_c45_pma_resume() argument 51 if (!genphy_c45_pma_can_sleep(phydev)) in genphy_c45_pma_resume() 54 return phy_clear_bits_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL1, in genphy_c45_pma_resume() [all …]
|
D | vitesse.c | 83 static int vsc824x_add_skew(struct phy_device *phydev) in vsc824x_add_skew() argument 88 extcon = phy_read(phydev, MII_VSC8244_EXT_CON1); in vsc824x_add_skew() 99 err = phy_write(phydev, MII_VSC8244_EXT_CON1, extcon); in vsc824x_add_skew() 104 static int vsc824x_config_init(struct phy_device *phydev) in vsc824x_config_init() argument 108 err = phy_write(phydev, MII_VSC8244_AUX_CONSTAT, in vsc824x_config_init() 113 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) in vsc824x_config_init() 114 err = vsc824x_add_skew(phydev); in vsc824x_config_init() 121 static int vsc73xx_read_page(struct phy_device *phydev) in vsc73xx_read_page() argument 123 return __phy_read(phydev, VSC73XX_EXT_PAGE_ACCESS); in vsc73xx_read_page() 126 static int vsc73xx_write_page(struct phy_device *phydev, int page) in vsc73xx_write_page() argument [all …]
|
D | bcm7xxx.c | 51 static int bcm7xxx_28nm_d0_afe_config_init(struct phy_device *phydev) in bcm7xxx_28nm_d0_afe_config_init() argument 54 bcm_phy_write_misc(phydev, AFE_RXCONFIG_0, 0xeb15); in bcm7xxx_28nm_d0_afe_config_init() 57 bcm_phy_write_misc(phydev, AFE_RXCONFIG_1, 0x9b2f); in bcm7xxx_28nm_d0_afe_config_init() 60 bcm_phy_write_misc(phydev, AFE_RXCONFIG_2, 0x2003); in bcm7xxx_28nm_d0_afe_config_init() 63 bcm_phy_write_misc(phydev, AFE_RX_LP_COUNTER, 0x7fc0); in bcm7xxx_28nm_d0_afe_config_init() 66 bcm_phy_write_misc(phydev, AFE_TX_CONFIG, 0x431); in bcm7xxx_28nm_d0_afe_config_init() 69 bcm_phy_write_misc(phydev, AFE_VDCA_ICTRL_0, 0xa7da); in bcm7xxx_28nm_d0_afe_config_init() 72 bcm_phy_write_misc(phydev, AFE_VDAC_OTHERS_0, 0xa020); in bcm7xxx_28nm_d0_afe_config_init() 77 bcm_phy_write_misc(phydev, AFE_HPF_TRIM_OTHERS, 0x00e3); in bcm7xxx_28nm_d0_afe_config_init() 80 phy_write(phydev, MII_BRCM_CORE_BASE1E, 0x0010); in bcm7xxx_28nm_d0_afe_config_init() [all …]
|
D | phy_device.c | 204 void phy_device_free(struct phy_device *phydev) in phy_device_free() argument 206 put_device(&phydev->mdio.dev); in phy_device_free() 212 struct phy_device *phydev; in phy_mdio_device_free() local 214 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_free() 215 phy_device_free(phydev); in phy_mdio_device_free() 226 struct phy_device *phydev; in phy_mdio_device_remove() local 228 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_remove() 229 phy_device_remove(phydev); in phy_mdio_device_remove() 237 static bool mdio_bus_phy_may_suspend(struct phy_device *phydev) in mdio_bus_phy_may_suspend() argument 239 struct device_driver *drv = phydev->mdio.dev.driver; in mdio_bus_phy_may_suspend() [all …]
|
D | bcm-phy-lib.c | 19 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 …]
|
D | realtek.c | 85 static int rtl821x_read_page(struct phy_device *phydev) in rtl821x_read_page() argument 87 return __phy_read(phydev, RTL821x_PAGE_SELECT); in rtl821x_read_page() 90 static int rtl821x_write_page(struct phy_device *phydev, int page) in rtl821x_write_page() argument 92 return __phy_write(phydev, RTL821x_PAGE_SELECT, page); in rtl821x_write_page() 95 static int rtl821x_probe(struct phy_device *phydev) in rtl821x_probe() argument 97 struct device *dev = &phydev->mdio.dev; in rtl821x_probe() 99 u32 phy_id = phydev->drv->phy_id; in rtl821x_probe() 106 ret = phy_read_paged(phydev, 0xa43, RTL8211F_PHYCR1); in rtl821x_probe() 116 ret = phy_read_paged(phydev, 0xa43, RTL8211F_PHYCR2); in rtl821x_probe() 125 phydev->priv = priv; in rtl821x_probe() [all …]
|
D | microchip.c | 24 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 …]
|
D | at803x.c | 321 static int at803x_debug_reg_write(struct phy_device *phydev, u16 reg, u16 data) in at803x_debug_reg_write() argument 325 ret = phy_write(phydev, AT803X_DEBUG_ADDR, reg); in at803x_debug_reg_write() 329 return phy_write(phydev, AT803X_DEBUG_DATA, data); in at803x_debug_reg_write() 332 static int at803x_debug_reg_read(struct phy_device *phydev, u16 reg) in at803x_debug_reg_read() argument 336 ret = phy_write(phydev, AT803X_DEBUG_ADDR, reg); in at803x_debug_reg_read() 340 return phy_read(phydev, AT803X_DEBUG_DATA); in at803x_debug_reg_read() 343 static int at803x_debug_reg_mask(struct phy_device *phydev, u16 reg, in at803x_debug_reg_mask() argument 349 ret = at803x_debug_reg_read(phydev, reg); in at803x_debug_reg_mask() 357 return phy_write(phydev, AT803X_DEBUG_DATA, val); in at803x_debug_reg_mask() 360 static int at803x_write_page(struct phy_device *phydev, int page) in at803x_write_page() argument [all …]
|
D | broadcom.c | 20 #define BRCM_PHY_MODEL(phydev) \ argument 21 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask) 23 #define BRCM_PHY_REV(phydev) \ argument 24 ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask)) 35 static int bcm54xx_config_clock_delay(struct phy_device *phydev) in bcm54xx_config_clock_delay() argument 40 val = bcm54xx_auxctl_read(phydev, MII_BCM54XX_AUXCTL_SHDWSEL_MISC); in bcm54xx_config_clock_delay() 42 if (phydev->interface == PHY_INTERFACE_MODE_RGMII || in bcm54xx_config_clock_delay() 43 phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID) { in bcm54xx_config_clock_delay() 47 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID || in bcm54xx_config_clock_delay() 48 phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID) { in bcm54xx_config_clock_delay() [all …]
|
D | marvell-88x2222.c | 64 static int mv2222_tx_enable(struct phy_device *phydev) in mv2222_tx_enable() argument 66 return phy_clear_bits_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_TXDIS, in mv2222_tx_enable() 71 static int mv2222_tx_disable(struct phy_device *phydev) in mv2222_tx_disable() argument 73 return phy_set_bits_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_TXDIS, in mv2222_tx_disable() 77 static int mv2222_soft_reset(struct phy_device *phydev) in mv2222_soft_reset() argument 81 ret = phy_write_mmd(phydev, MDIO_MMD_VEND2, MV_PORT_RST, in mv2222_soft_reset() 86 return phy_read_mmd_poll_timeout(phydev, MDIO_MMD_VEND2, MV_PORT_RST, in mv2222_soft_reset() 91 static int mv2222_disable_aneg(struct phy_device *phydev) in mv2222_disable_aneg() argument 93 int ret = phy_clear_bits_mmd(phydev, MDIO_MMD_PCS, MV_1GBX_CTRL, in mv2222_disable_aneg() 98 return mv2222_soft_reset(phydev); in mv2222_disable_aneg() [all …]
|
D | marvell.c | 311 static int marvell_read_page(struct phy_device *phydev) in marvell_read_page() argument 313 return __phy_read(phydev, MII_MARVELL_PHY_PAGE); in marvell_read_page() 316 static int marvell_write_page(struct phy_device *phydev, int page) in marvell_write_page() argument 318 return __phy_write(phydev, MII_MARVELL_PHY_PAGE, page); in marvell_write_page() 321 static int marvell_set_page(struct phy_device *phydev, int page) in marvell_set_page() argument 323 return phy_write(phydev, MII_MARVELL_PHY_PAGE, page); in marvell_set_page() 326 static int marvell_ack_interrupt(struct phy_device *phydev) in marvell_ack_interrupt() argument 331 err = phy_read(phydev, MII_M1011_IEVENT); in marvell_ack_interrupt() 339 static int marvell_config_intr(struct phy_device *phydev) in marvell_config_intr() argument 343 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in marvell_config_intr() [all …]
|
D | bcm84881.c | 23 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 …]
|
D | lxt.c | 62 static int lxt970_ack_interrupt(struct phy_device *phydev) in lxt970_ack_interrupt() argument 66 err = phy_read(phydev, MII_BMSR); in lxt970_ack_interrupt() 71 err = phy_read(phydev, MII_LXT970_ISR); in lxt970_ack_interrupt() 79 static int lxt970_config_intr(struct phy_device *phydev) in lxt970_config_intr() argument 83 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in lxt970_config_intr() 84 err = lxt970_ack_interrupt(phydev); in lxt970_config_intr() 88 err = phy_write(phydev, MII_LXT970_IER, MII_LXT970_IER_IEN); in lxt970_config_intr() 90 err = phy_write(phydev, MII_LXT970_IER, 0); in lxt970_config_intr() 94 err = lxt970_ack_interrupt(phydev); in lxt970_config_intr() 100 static irqreturn_t lxt970_handle_interrupt(struct phy_device *phydev) in lxt970_handle_interrupt() argument [all …]
|
D | micrel.c | 278 struct phy_device *phydev; member 300 struct phy_device *phydev; member 367 static int kszphy_extended_write(struct phy_device *phydev, in kszphy_extended_write() argument 370 phy_write(phydev, MII_KSZPHY_EXTREG, KSZPHY_EXTREG_WRITE | regnum); in kszphy_extended_write() 371 return phy_write(phydev, MII_KSZPHY_EXTREG_WRITE, val); in kszphy_extended_write() 374 static int kszphy_extended_read(struct phy_device *phydev, in kszphy_extended_read() argument 377 phy_write(phydev, MII_KSZPHY_EXTREG, regnum); in kszphy_extended_read() 378 return phy_read(phydev, MII_KSZPHY_EXTREG_READ); in kszphy_extended_read() 381 static int kszphy_ack_interrupt(struct phy_device *phydev) in kszphy_ack_interrupt() argument 386 rc = phy_read(phydev, MII_KSZPHY_INTCS); in kszphy_ack_interrupt() [all …]
|
D | icplus.c | 94 static int ip175c_config_init(struct phy_device *phydev) in ip175c_config_init() argument 102 err = mdiobus_write(phydev->mdio.bus, 30, 0, 0x175c); in ip175c_config_init() 107 err = mdiobus_read(phydev->mdio.bus, 30, 0); in ip175c_config_init() 113 err = mdiobus_write(phydev->mdio.bus, 29, 31, 0x175c); in ip175c_config_init() 118 err = mdiobus_write(phydev->mdio.bus, 29, 22, 0x420); in ip175c_config_init() 124 err = mdiobus_write(phydev->mdio.bus, i, in ip175c_config_init() 131 err = mdiobus_read(phydev->mdio.bus, i, MII_BMCR); in ip175c_config_init() 138 if (phydev->mdio.addr != 4) { in ip175c_config_init() 139 phydev->state = PHY_RUNNING; in ip175c_config_init() 140 phydev->speed = SPEED_100; in ip175c_config_init() [all …]
|
D | marvell10g.c | 145 bool (*has_downshift)(struct phy_device *phydev); 147 int (*get_mactype)(struct phy_device *phydev); 148 int (*set_mactype)(struct phy_device *phydev, int mactype); 150 int (*init_interface)(struct phy_device *phydev, int mactype); 153 int (*hwmon_read_temp_reg)(struct phy_device *phydev); 169 static const struct mv3310_chip *to_mv3310_chip(struct phy_device *phydev) in to_mv3310_chip() argument 171 return phydev->drv->driver_data; in to_mv3310_chip() 186 static int mv3310_hwmon_read_temp_reg(struct phy_device *phydev) in mv3310_hwmon_read_temp_reg() argument 188 return phy_read_mmd(phydev, MDIO_MMD_VEND2, MV_V2_TEMP); in mv3310_hwmon_read_temp_reg() 191 static int mv2110_hwmon_read_temp_reg(struct phy_device *phydev) in mv2110_hwmon_read_temp_reg() argument [all …]
|
D | aquantia_main.c | 178 static int aqr107_get_sset_count(struct phy_device *phydev) in aqr107_get_sset_count() argument 183 static void aqr107_get_strings(struct phy_device *phydev, u8 *data) in aqr107_get_strings() argument 192 static u64 aqr107_get_stat(struct phy_device *phydev, int index) in aqr107_get_stat() argument 200 val = phy_read_mmd(phydev, MDIO_MMD_C22EXT, stat->reg); in aqr107_get_stat() 206 val = phy_read_mmd(phydev, MDIO_MMD_C22EXT, stat->reg + 1); in aqr107_get_stat() 216 static void aqr107_get_stats(struct phy_device *phydev, in aqr107_get_stats() argument 219 struct aqr107_priv *priv = phydev->priv; in aqr107_get_stats() 224 val = aqr107_get_stat(phydev, i); in aqr107_get_stats() 226 phydev_err(phydev, "Reading HW Statistics failed for %s\n", in aqr107_get_stats() 235 static int aqr_config_aneg(struct phy_device *phydev) in aqr_config_aneg() argument [all …]
|
D | dp83td510.c | 51 static int dp83td510_config_intr(struct phy_device *phydev) in dp83td510_config_intr() argument 55 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in dp83td510_config_intr() 57 ret = phy_write_mmd(phydev, MDIO_MMD_VEND2, DP83TD510E_PHY_STS, in dp83td510_config_intr() 62 ret = phy_write_mmd(phydev, MDIO_MMD_VEND2, in dp83td510_config_intr() 68 ret = phy_set_bits_mmd(phydev, MDIO_MMD_VEND2, in dp83td510_config_intr() 74 ret = phy_write_mmd(phydev, MDIO_MMD_VEND2, in dp83td510_config_intr() 79 ret = phy_clear_bits_mmd(phydev, MDIO_MMD_VEND2, in dp83td510_config_intr() 86 ret = phy_write_mmd(phydev, MDIO_MMD_VEND2, DP83TD510E_PHY_STS, in dp83td510_config_intr() 93 static irqreturn_t dp83td510_handle_interrupt(struct phy_device *phydev) in dp83td510_handle_interrupt() argument 97 ret = phy_read_mmd(phydev, MDIO_MMD_VEND2, DP83TD510E_PHY_STS); in dp83td510_handle_interrupt() [all …]
|
D | dp83822.c | 123 static int dp83822_set_wol(struct phy_device *phydev, in dp83822_set_wol() argument 126 struct net_device *ndev = phydev->attached_dev; in dp83822_set_wol() 139 phy_write_mmd(phydev, DP83822_DEVADDR, MII_DP83822_WOL_DA1, in dp83822_set_wol() 141 phy_write_mmd(phydev, DP83822_DEVADDR, MII_DP83822_WOL_DA2, in dp83822_set_wol() 143 phy_write_mmd(phydev, DP83822_DEVADDR, MII_DP83822_WOL_DA3, in dp83822_set_wol() 146 value = phy_read_mmd(phydev, DP83822_DEVADDR, in dp83822_set_wol() 154 phy_write_mmd(phydev, DP83822_DEVADDR, in dp83822_set_wol() 157 phy_write_mmd(phydev, DP83822_DEVADDR, in dp83822_set_wol() 160 phy_write_mmd(phydev, DP83822_DEVADDR, in dp83822_set_wol() 169 phy_read(phydev, MII_DP83822_MISR2); in dp83822_set_wol() [all …]
|
/linux-6.1.9/drivers/net/phy/mscc/ |
D | mscc_main.c | 110 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 …]
|
D | mscc_ptp.c | 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() 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() 62 static u32 vsc85xx_ts_read_csr(struct phy_device *phydev, enum ts_blk blk, in vsc85xx_ts_read_csr() argument 65 struct vsc8531_private *priv = phydev->priv; in vsc85xx_ts_read_csr() [all …]
|
D | mscc_serdes.c | 14 static int pll5g_detune(struct phy_device *phydev) in pll5g_detune() argument 19 rd_dat = vsc85xx_csr_read(phydev, MACRO_CTRL, PHY_S6G_PLL5G_CFG2); in pll5g_detune() 22 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in pll5g_detune() 25 dev_err(&phydev->mdio.dev, "%s: write error\n", __func__); in pll5g_detune() 29 static int pll5g_tune(struct phy_device *phydev) in pll5g_tune() argument 34 rd_dat = vsc85xx_csr_read(phydev, MACRO_CTRL, PHY_S6G_PLL5G_CFG2); in pll5g_tune() 36 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in pll5g_tune() 39 dev_err(&phydev->mdio.dev, "%s: write error\n", __func__); in pll5g_tune() 43 static int vsc85xx_sd6g_pll_cfg_wr(struct phy_device *phydev, in vsc85xx_sd6g_pll_cfg_wr() argument 50 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in vsc85xx_sd6g_pll_cfg_wr() [all …]
|
/linux-6.1.9/include/linux/ |
D | phy.h | 726 void (*phy_link_change)(struct phy_device *phydev, bool up); 796 int (*soft_reset)(struct phy_device *phydev); 802 int (*config_init)(struct phy_device *phydev); 808 int (*probe)(struct phy_device *phydev); 814 int (*get_features)(struct phy_device *phydev); 828 int (*get_rate_matching)(struct phy_device *phydev, 833 int (*suspend)(struct phy_device *phydev); 835 int (*resume)(struct phy_device *phydev); 843 int (*config_aneg)(struct phy_device *phydev); 846 int (*aneg_done)(struct phy_device *phydev); [all …]
|