/linux-6.3-rc2/drivers/net/ethernet/realtek/ |
A D | r8169_phy_config.c | 18 struct phy_device *phydev); 25 __phy_write(phydev, 0x1e, extpage); in r8168d_modify_extpage() 36 __phy_write(phydev, 0x05, parm); in r8168d_phy_param() 47 __phy_write(phydev, 0x13, parm); in r8168g_phy_param() 61 phy_lock_mdio_bus(phydev); in __rtl_writephy_batch() 68 phy_unlock_mdio_bus(phydev); in __rtl_writephy_batch() 86 rtl8168g_config_eee_phy(phydev); in rtl8168h_config_eee_phy() 94 rtl8168h_config_eee_phy(phydev); in rtl8125a_config_eee_phy() 457 val = phy_read(phydev, 0x0d); in rtl8168d_1_common() 486 rtl8168d_1_common(phydev); in rtl8168d_1_hw_phy_config() [all …]
|
/linux-6.3-rc2/drivers/net/phy/ |
A D | phy.c | 62 phydev->phy_link_change(phydev, true); in phy_link_up() 68 phydev->phy_link_change(phydev, false); in phy_link_down() 156 return phydev->drv->config_intr(phydev); in phy_config_interrupt() 191 if (phydev->drv && phydev->drv->aneg_done) in phy_aneg_done() 192 return phydev->drv->aneg_done(phydev); in phy_aneg_done() 492 phydev->drv->get_strings(phydev, data); in phy_ethtool_get_strings() 515 ret = phydev->drv->get_sset_count(phydev); in phy_ethtool_get_sset_count() 881 return phydev->drv->config_aneg(phydev); in phy_config_aneg() 1268 phydev_name(phydev), phydev); in phy_request_interrupt() 1293 free_irq(phydev->irq, phydev); in phy_free_interrupt() [all …]
|
A D | vitesse.c | 114 err = vsc824x_add_skew(phydev); in vsc824x_config_init() 134 phy_write(phydev, 0x1f, 0x2a30); in vsc73xx_config_init() 136 phy_write(phydev, 0x1f, 0x0000); in vsc73xx_config_init() 150 phy_write(phydev, 0x1f, 0x2a30); in vsc738x_config_init() 152 phy_write(phydev, 0x1f, 0x52b5); in vsc738x_config_init() 203 vsc73xx_config_init(phydev); in vsc738x_config_init() 235 vsc73xx_config_init(phydev); in vsc739x_config_init() 322 phy_error(phydev); in vsc82xx_handle_interrupt() 329 phy_trigger_machine(phydev); in vsc82xx_handle_interrupt() 357 if (phydev->autoneg == AUTONEG_ENABLE || phydev->speed > SPEED_100) in vsc82x4_config_autocross_enable() [all …]
|
A D | phy-c45.c | 26 phydev->pma_extable = val; in genphy_c45_baset1_able() 262 linkmode_and(phydev->advertising, phydev->advertising, in genphy_c45_an_config_aneg() 423 phydev->link = 0; in genphy_c45_read_link() 437 if (!phy_polling_mode(phydev) || !phydev->link) { in genphy_c45_read_link() 453 phydev->link = link; in genphy_c45_read_link() 477 phydev->pause = 0; in genphy_c45_baset1_read_lpa() 528 phydev->pause = 0; in genphy_c45_read_lpa() 818 linkmode_and(phydev->supported_eee, phydev->supported_eee, in genphy_c45_read_eee_cap1() 872 return genphy_c45_write_eee_adv(phydev, phydev->advertising_eee); in genphy_c45_an_config_eee_aneg() 1052 phydev->pause = 0; in genphy_c45_read_status() [all …]
|
A D | bcm7xxx.c | 86 bcm_phy_r_rc_cal_reset(phydev); in bcm7xxx_28nm_d0_afe_config_init() 155 rev = phydev->phy_id & ~phydev->drv->phy_id_mask; in bcm7xxx_28nm_config_init() 158 phydev_name(phydev), phydev->drv->name, rev, patch); in bcm7xxx_28nm_config_init() 165 phy_read(phydev, MII_BMSR); in bcm7xxx_28nm_config_init() 383 phy_write(phydev, MII_BMCR, in bcm7xxx_28nm_ephy_eee_enable() 391 u8 rev = phydev->phy_id & ~phydev->drv->phy_id_mask; in bcm7xxx_28nm_ephy_config_init() 395 phydev_name(phydev), phydev->drv->name, rev); in bcm7xxx_28nm_ephy_config_init() 402 phy_read(phydev, MII_BMSR); in bcm7xxx_28nm_ephy_config_init() 752 ret = phy_write(phydev, in bcm7xxx_suspend() 820 phydev->priv = priv; in bcm7xxx_28nm_probe() [all …]
|
A D | phy_device.c | 377 irq_wake_thread(phydev->irq, phydev); in mdio_bus_phy_resume() 1079 phydev->mii_ts->link_state(phydev->mii_ts, phydev); in phy_link_change() 1234 ret = phydev->drv->soft_reset(phydev); in phy_init_hw() 1248 ret = phydev->drv->config_init(phydev); in phy_init_hw() 1254 ret = phydev->drv->config_intr(phydev); in phy_init_hw() 1485 dev->phydev = phydev; in phy_attach_direct() 1814 phydev->attached_dev->phydev = NULL; in phy_detach() 1952 if (!phydev || !phydev->drv) in phy_reset_after_clk_enable() 3105 err = phydev->drv->probe(phydev); in phy_probe() 3207 if (phydev->drv && phydev->drv->remove) in phy_remove() [all …]
|
A D | bcm-phy-lib.c | 35 phy_lock_mdio_bus(phydev); in bcm_phy_write_exp() 37 phy_unlock_mdio_bus(phydev); in bcm_phy_write_exp() 64 phy_lock_mdio_bus(phydev); in bcm_phy_read_exp() 66 phy_unlock_mdio_bus(phydev); in bcm_phy_read_exp() 96 phy_lock_mdio_bus(phydev); in bcm_phy_modify_exp() 98 phy_unlock_mdio_bus(phydev); in bcm_phy_modify_exp() 215 phy_error(phydev); in bcm_phy_handle_interrupt() 226 phy_error(phydev); in bcm_phy_handle_interrupt() 273 phy_lock_mdio_bus(phydev); in bcm_phy_read_rdb() 297 phy_lock_mdio_bus(phydev); in bcm_phy_write_rdb() [all …]
|
A D | microchip.c | 41 rc = phy_read(phydev, LAN88XX_INT_STS); in lan88xx_phy_config_intr() 63 phy_error(phydev); in lan88xx_handle_interrupt() 70 phy_trigger_machine(phydev); in lan88xx_handle_interrupt() 81 genphy_suspend(phydev); in lan88xx_suspend() 93 save_page = phy_save_page(phydev); in lan88xx_TR_reg_set() 269 phydev->priv = priv; in lan88xx_probe() 298 switch (phydev->mdix_ctrl) { in lan88xx_set_mdix() 333 lan88xx_config_TR_regs(phydev); in lan88xx_config_init() 340 lan88xx_set_mdix(phydev); in lan88xx_config_aneg() 342 return genphy_config_aneg(phydev); in lan88xx_config_aneg() [all …]
|
A D | realtek.c | 125 phydev->priv = priv; in rtl821x_probe() 255 phy_error(phydev); in rtl8201_handle_interrupt() 262 phy_trigger_machine(phydev); in rtl8201_handle_interrupt() 273 phy_error(phydev); in rtl821x_handle_interrupt() 279 phy_error(phydev); in rtl821x_handle_interrupt() 297 phy_error(phydev); in rtl8211f_handle_interrupt() 320 if (phydev->speed == SPEED_100 && phydev->autoneg == AUTONEG_DISABLE) { in rtl8211_config_aneg() 516 if (!phydev->link) in rtlgen_get_speed() 525 phydev->speed = SPEED_10; in rtlgen_get_speed() 739 phydev->speed = SPEED_100; in rtl9000a_config_init() [all …]
|
A D | at803x.c | 854 phydev->priv = priv; in at803x_probe() 1143 phy_error(phydev); in at803x_handle_interrupt() 1150 phy_error(phydev); in at803x_handle_interrupt() 1172 if (phydev->state == PHY_NOLINK && phydev->mdio.reset_gpio) { in at803x_link_change_notify() 1267 if (phydev->autoneg == AUTONEG_ENABLE && old_link && phydev->link) in at803x_read_status() 1272 phydev->pause = 0; in at803x_read_status() 1273 phydev->asym_pause = 0; in at803x_read_status() 1283 if (phydev->autoneg == AUTONEG_ENABLE && phydev->autoneg_complete) in at803x_read_status() 1317 ret = at803x_config_mdix(phydev, phydev->mdix_ctrl); in at803x_config_aneg() 1679 if (!phydev->suspended) in qca83xx_resume() [all …]
|
A 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)) 403 if (!phy_on_sfp(phydev)) { in bcm54xx_config_init() 444 bcm54xx_ptp_stop(phydev); in bcm54xx_suspend() 468 ret = genphy_resume(phydev); in bcm54xx_resume() 550 phydev->priv = priv; in bcm54616s_probe() 575 phydev->port = PORT_FIBRE; in bcm54616s_probe() 757 phy_error(phydev); in brcm_fet_handle_interrupt() [all …]
|
A D | marvell-88x2222.c | 115 switch (phydev->speed) { in mv2222_set_sgmii_speed() 406 phydev->speed = SPEED_100; in mv2222_read_status_1g() 408 phydev->speed = SPEED_10; in mv2222_read_status_1g() 434 phydev->link = 0; in mv2222_read_status() 449 phydev->link = link; in mv2222_read_status() 491 dev = &phydev->mdio.dev; in mv2222_sfp_insert() 494 phydev->port = sfp_parse_port(phydev->sfp_bus, id, sfp_supported); in mv2222_sfp_insert() 531 phydev->port = PORT_NONE; in mv2222_sfp_remove() 539 priv = phydev->priv; in mv2222_sfp_link_up() 548 priv = phydev->priv; in mv2222_sfp_link_down() [all …]
|
A D | marvell.c | 368 phy_error(phydev); in marvell_handle_interrupt() 407 err = marvell_set_polarity(phydev, phydev->mdix_ctrl); in marvell_config_aneg() 574 err = marvell_set_polarity(phydev, phydev->mdix_ctrl); in m88e1121_config_aneg() 654 linkmode_and(phydev->advertising, phydev->advertising, in marvell_config_aneg_fiber() 874 phydev, in m88e1111_config_init_sgmii() 893 phydev, in m88e1111_config_init_rtbi() 905 phydev, in m88e1111_config_init_rtbi() 975 linkmode_or(phydev->advertising, phydev->advertising, in m88e1111_config_init() 1155 err = marvell_set_polarity(phydev, phydev->mdix_ctrl); in m88e1116r_config_init() 1269 err = marvell_set_polarity(phydev, phydev->mdix_ctrl); in m88e1118_config_aneg() [all …]
|
A D | bcm84881.c | 50 if (!phydev->is_c45 || in bcm84881_probe() 67 phydev->supported); in bcm84881_get_features() 69 phydev->supported); in bcm84881_get_features() 139 phydev->link = 0; in bcm84881_read_status() 155 if (phydev->autoneg == AUTONEG_ENABLE && !phydev->autoneg_complete) in bcm84881_read_status() 156 phydev->link = false; in bcm84881_read_status() 161 phydev->pause = 0; in bcm84881_read_status() 162 phydev->asym_pause = 0; in bcm84881_read_status() 163 phydev->mdix = 0; in bcm84881_read_status() 165 if (!phydev->link) in bcm84881_read_status() [all …]
|
A D | motorcomm.c | 857 phydev->priv = priv; in yt8521_probe() 1119 phydev->pause = 0; in yt8521_adjust_status() 1122 phydev->pause = 1; in yt8521_adjust_status() 1125 phydev->pause = 1; in yt8521_adjust_status() 1154 phydev->pause = 0; in yt8521_read_status_paged() 1283 phydev->link = 1; in yt8521_read_status() 1299 phydev->link = 0; in yt8521_read_status() 1788 linkmode_and(phydev->advertising, phydev->advertising, in ytphy_utp_config_advert() 1853 ctl = mii_bmcr_encode_fixed(phydev->speed, phydev->duplex); in ytphy_utp_config_aneg() 2101 yt8521_prepare_fiber_features(phydev, phydev->supported); in yt8521_get_features_paged() [all …]
|
A D | lxt.c | 109 phy_error(phydev); in lxt970_handle_interrupt() 115 phy_error(phydev); in lxt970_handle_interrupt() 122 phy_trigger_machine(phydev); in lxt970_handle_interrupt() 170 phy_error(phydev); in lxt971_handle_interrupt() 212 phydev->link = 0; in lxt973a2_update_link() 214 phydev->link = 1; in lxt973a2_update_link() 253 phydev->speed = SPEED_10; in lxt973a2_read_status() 255 phydev->pause = phydev->asym_pause = 0; in lxt973a2_read_status() 273 phydev->pause = phydev->asym_pause = 0; in lxt973a2_read_status() 297 phydev->priv = NULL; in lxt973_probe() [all …]
|
A D | icplus.c | 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() 142 phydev->link = 1; in ip175c_config_init() 188 genphy_read_status(phydev); in ip175c_read_status() 199 genphy_config_aneg(phydev); in ip175c_config_aneg() 230 phydev->priv = priv; in ip101a_g_probe() 341 phydev->mdix = ETH_TP_MDI; in ip101a_g_read_status() 355 switch (phydev->mdix_ctrl) { in ip101a_g_config_mdix() 442 phy_error(phydev); in ip101a_g_handle_interrupt() [all …]
|
A D | marvell10g.c | 502 if (!phydev->is_c45 || in mv3310_probe() 833 phydev->supported, in mv3310_get_features() 837 phydev->supported, in mv3310_get_features() 922 if (!phydev->link) in mv3310_update_interface() 966 phydev->link = 1; in mv3310_read_status_10gbaser() 992 phydev->link = 0; in mv3310_read_status_copper() 1029 phydev->port = PORT_TP; in mv3310_read_status_copper() 1059 phydev->link = 0; in mv3310_read_status() 1060 phydev->pause = 0; in mv3310_read_status() 1061 phydev->asym_pause = 0; in mv3310_read_status() [all …]
|
A D | micrel.c | 1438 phydev->pause = phydev->asym_pause = 0; in ksz8873mll_read_status() 1487 phydev->drv->config_intr(phydev); in ksz9031_read_status() 1827 phydev->drv->config_intr(phydev); in kszphy_suspend() 1877 phydev->drv->config_intr(phydev); in kszphy_resume() 2519 struct phy_device *phydev = shared->phydev; in lan8814_ptpci_gettime64() local 2537 struct phy_device *phydev = shared->phydev; in lan8814_ptpci_settime64() local 2675 struct phy_device *phydev = shared->phydev; in lan8814_ptpci_adjtime() local 2688 struct phy_device *phydev = shared->phydev; in lan8814_ptpci_adjfine() local 3051 ptp_priv->phydev = phydev; in lan8814_ptp_init() 3096 shared->phydev = phydev; in lan8814_ptp_probe_once() [all …]
|
A D | dp83822.c | 305 phy_error(phydev); in dp83822_handle_interrupt() 313 phy_error(phydev); in dp83822_handle_interrupt() 426 linkmode_and(phydev->advertising, phydev->advertising, in dp83822_config_init() 430 phydev->supported); in dp83822_config_init() 434 phydev->supported); in dp83822_config_init() 436 phydev->supported); in dp83822_config_init() 490 return phydev->drv->config_init(phydev); in dp83822_phy_reset() 556 phydev->priv = dp83822; in dp83822_probe() 562 dp83822_of_init(phydev); in dp83822_probe() 577 genphy_suspend(phydev); in dp83822_suspend() [all …]
|
A D | dp83td510.c | 99 phy_error(phydev); in dp83td510_handle_interrupt() 108 phy_error(phydev); in dp83td510_handle_interrupt() 115 phy_trigger_machine(phydev); in dp83td510_handle_interrupt() 125 phydev->speed = SPEED_UNKNOWN; in dp83td510_read_status() 127 phydev->pause = 0; in dp83td510_read_status() 128 phydev->asym_pause = 0; in dp83td510_read_status() 134 if (phydev->link) { in dp83td510_read_status() 136 phydev->duplex = DUPLEX_FULL; in dp83td510_read_status() 137 phydev->speed = SPEED_10; in dp83td510_read_status() 193 if (!phydev->link) in dp83td510_get_sqi() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | phy.h | 1127 return mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum); in phy_read() 1415 return phydev && phydev->mii_ts && phydev->mii_ts->hwtstamp; in phy_has_hwtstamp() 1424 return phydev && phydev->mii_ts && phydev->mii_ts->rxtstamp; in phy_has_rxtstamp() 1434 return phydev && phydev->mii_ts && phydev->mii_ts->ts_info; in phy_has_tsinfo() 1443 return phydev && phydev->mii_ts && phydev->mii_ts->txtstamp; in phy_has_txtstamp() 1448 return phydev->mii_ts->hwtstamp(phydev->mii_ts, ifr); in phy_hwtstamp() 1454 return phydev->mii_ts->rxtstamp(phydev->mii_ts, skb, type); in phy_rxtstamp() 1460 return phydev->mii_ts->ts_info(phydev->mii_ts, tsinfo); in phy_ts_info() 1466 phydev->mii_ts->txtstamp(phydev->mii_ts, skb, type); in phy_txtstamp() 1783 if (!phydev->drv) in phy_read_status() [all …]
|
/linux-6.3-rc2/drivers/net/phy/mscc/ |
A D | mscc_main.c | 179 mutex_lock(&phydev->lock); in vsc85xx_led_cntl_set() 1718 switch (phydev->phy_id & phydev->drv->phy_id_mask) { in vsc8584_config_init() 1828 rc = vsc85xx_mac_if_set(phydev, phydev->interface); in vsc85xx_config_init() 1836 phy_id = phydev->drv->phy_id & phydev->drv->phy_id_mask; in vsc85xx_config_init() 2158 phy_error(phydev); in vsc85xx_handle_interrupt() 2174 rc = vsc85xx_mdix_set(phydev, phydev->mdix_ctrl); in vsc85xx_config_aneg() 2185 rc = vsc85xx_mdix_get(phydev, &phydev->mdix); in vsc85xx_read_status() 2203 phydev->priv = vsc8531; in vsc8514_probe() 2206 devm_phy_package_join(&phydev->mdio.dev, phydev, in vsc8514_probe() 2235 devm_phy_package_join(&phydev->mdio.dev, phydev, in vsc8574_probe() [all …]
|
A D | mscc_ptp.c | 251 if (!phydev->link) in vsc85xx_ts_set_latencies() 613 struct phy_device *phydev = ptp->phydev; in vsc85xx_adjfine() local 647 struct phy_device *phydev = ptp->phydev; in __vsc85xx_gettime() local 684 struct phy_device *phydev = ptp->phydev; in vsc85xx_gettime() local 698 struct phy_device *phydev = ptp->phydev; in __vsc85xx_settime() local 734 struct phy_device *phydev = ptp->phydev; in vsc85xx_settime() local 747 struct phy_device *phydev = ptp->phydev; in vsc85xx_adjtime() local 1052 struct phy_device *phydev = vsc8531->ptp->phydev; in vsc85xx_hwtstamp() local 1245 return phydev->priv; in vsc8584_base_priv() 1509 switch (phydev->phy_id & phydev->drv->phy_id_mask) { in vsc8584_ptp_init() [all …]
|
A D | mscc_serdes.c | 14 static int pll5g_detune(struct phy_device *phydev) in pll5g_detune() argument 22 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in pll5g_detune() 36 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in pll5g_tune() 50 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in vsc85xx_sd6g_pll_cfg_wr() 77 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in vsc85xx_sd6g_common_cfg_wr() 105 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in vsc85xx_sd6g_des_cfg_wr() 328 ret = pll5g_detune(phydev); in vsc85xx_sd6g_config_v2() 522 ret = pll5g_tune(phydev); in vsc85xx_sd6g_config_v2() 550 ret = vsc8584_cmd(phydev, val); in vsc85xx_sd6g_config_v2() 568 ret = vsc8584_cmd(phydev, val); in vsc85xx_sd6g_config_v2() [all …]
|