Home
last modified time | relevance | path

Searched refs:phydev (Results 1 – 25 of 230) sorted by relevance

12345678910

/linux/drivers/net/ethernet/realtek/
A Dr8169_phy_config.c18 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()
109 struct phy_device *phydev) in rtl8169s_hw_phy_config() argument
476 val = phy_read(phydev, 0x0d); in rtl8168d_1_hw_phy_config()
[all …]
/linux/drivers/net/phy/
A Dphy.c61 phydev->phy_link_change(phydev, true); in phy_link_up()
67 phydev->phy_link_change(phydev, false); in phy_link_down()
127 return phydev->drv->config_intr(phydev); in phy_config_interrupt()
162 if (phydev->drv && phydev->drv->aneg_done) in phy_aneg_done()
163 return phydev->drv->aneg_done(phydev); in phy_aneg_done()
458 phydev->drv->get_strings(phydev, data); in phy_ethtool_get_strings()
655 return phydev->drv->config_aneg(phydev); in phy_config_aneg()
1000 phydev_name(phydev), phydev); in phy_request_interrupt()
1025 free_irq(phydev->irq, phydev); in phy_free_interrupt()
1415 if (phydev->drv && phydev->drv->set_wol) in phy_ethtool_set_wol()
[all …]
A Dvitesse.c114 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 Dphy_device.c285 if (phydev->attached_dev && phydev->adjust_link) in mdio_bus_phy_suspend()
1013 phydev->mii_ts->link_state(phydev->mii_ts, phydev); in phy_link_change()
1168 ret = phydev->drv->soft_reset(phydev); in phy_init_hw()
1182 ret = phydev->drv->config_init(phydev); in phy_init_hw()
1188 ret = phydev->drv->config_intr(phydev); in phy_init_hw()
1419 dev->phydev = phydev; in phy_attach_direct()
1730 phydev->attached_dev->phydev = NULL; in phy_detach()
1868 if (!phydev || !phydev->drv) in phy_reset_after_clk_enable()
3028 err = phydev->drv->probe(phydev); in phy_probe()
3113 if (phydev->drv && phydev->drv->remove) in phy_remove()
[all …]
A Dbcm7xxx.c86 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 Dphy-c45.c81 switch (phydev->speed) { in genphy_c45_pma_setup_forced()
139 linkmode_and(phydev->advertising, phydev->advertising, in genphy_c45_an_config_aneg()
274 phydev->link = 0; in genphy_c45_read_link()
288 if (!phy_polling_mode(phydev) || !phydev->link) { in genphy_c45_read_link()
304 phydev->link = link; in genphy_c45_read_link()
333 phydev->pause = 0; in genphy_c45_read_lpa()
470 phydev->supported, in genphy_c45_pma_read_abilities()
474 phydev->supported, in genphy_c45_pma_read_abilities()
478 phydev->supported, in genphy_c45_pma_read_abilities()
487 phydev->supported, in genphy_c45_pma_read_abilities()
[all …]
A Dbcm-phy-lib.c35 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 Drealtek.c119 phydev->priv = priv; in rtl821x_probe()
249 phy_error(phydev); in rtl8201_handle_interrupt()
256 phy_trigger_machine(phydev); in rtl8201_handle_interrupt()
267 phy_error(phydev); in rtl821x_handle_interrupt()
273 phy_error(phydev); in rtl821x_handle_interrupt()
291 phy_error(phydev); in rtl8211f_handle_interrupt()
314 if (phydev->speed == SPEED_100 && phydev->autoneg == AUTONEG_DISABLE) { in rtl8211_config_aneg()
508 if (!phydev->link) in rtlgen_get_speed()
517 phydev->speed = SPEED_10; in rtlgen_get_speed()
731 phydev->speed = SPEED_100; in rtl9000a_config_init()
[all …]
A 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))
381 if (!phy_on_sfp(phydev)) { in bcm54xx_config_init()
442 ret = genphy_resume(phydev); in bcm54xx_resume()
524 phydev->priv = priv; in bcm54616s_probe()
549 phydev->port = PORT_FIBRE; in bcm54616s_probe()
589 val = phy_read(phydev, reg); in brcm_phy_setbits()
711 phy_error(phydev); in brcm_fet_handle_interrupt()
[all …]
A Dat803x.c775 phydev->priv = priv; in at803x_probe()
1006 phy_error(phydev); in at803x_handle_interrupt()
1013 phy_error(phydev); in at803x_handle_interrupt()
1035 if (phydev->state == PHY_NOLINK && phydev->mdio.reset_gpio) { in at803x_link_change_notify()
1126 if (phydev->autoneg == AUTONEG_ENABLE && old_link && phydev->link) in at803x_read_status()
1131 phydev->pause = 0; in at803x_read_status()
1132 phydev->asym_pause = 0; in at803x_read_status()
1142 if (phydev->autoneg == AUTONEG_ENABLE && phydev->autoneg_complete) in at803x_read_status()
1175 ret = at803x_config_mdix(phydev, phydev->mdix_ctrl); in at803x_config_aneg()
1691 if (phydev->link && phydev->speed == SPEED_2500) in qca808x_read_status()
[all …]
A Dmicrochip.c41 rc = phy_read(phydev, LAN88XX_INT_STS); in lan88xx_phy_config_intr()
51 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()
[all …]
A Dmarvell.c366 phy_error(phydev); in marvell_handle_interrupt()
405 err = marvell_set_polarity(phydev, phydev->mdix_ctrl); in marvell_config_aneg()
570 err = marvell_set_polarity(phydev, phydev->mdix_ctrl); in m88e1121_config_aneg()
650 linkmode_and(phydev->advertising, phydev->advertising, in marvell_config_aneg_fiber()
870 phydev, in m88e1111_config_init_sgmii()
889 phydev, in m88e1111_config_init_rtbi()
901 phydev, in m88e1111_config_init_rtbi()
1137 err = marvell_set_polarity(phydev, phydev->mdix_ctrl); in m88e1116r_config_init()
1218 err = marvell_set_polarity(phydev, phydev->mdix_ctrl); in m88e1118_config_aneg()
1526 phydev->link = 0; in marvell_read_status_page_an()
[all …]
A Dmarvell-88x2222.c115 switch (phydev->speed) { in mv2222_set_sgmii_speed()
340 phydev->speed = SPEED_10000; in mv2222_read_status_10g()
404 phydev->speed = SPEED_1000; in mv2222_read_status_1g()
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()
490 dev = &phydev->mdio.dev; in mv2222_sfp_insert()
536 priv = phydev->priv; in mv2222_sfp_link_up()
545 priv = phydev->priv; in mv2222_sfp_link_down()
[all …]
A Dmarvell10g.c494 if (!phydev->is_c45 || in mv3310_probe()
728 phydev->supported, in mv3310_get_features()
732 phydev->supported, in mv3310_get_features()
817 if (!phydev->link) in mv3310_update_interface()
861 phydev->link = 1; in mv3310_read_status_10gbaser()
887 phydev->link = 0; in mv3310_read_status_copper()
924 phydev->port = PORT_TP; in mv3310_read_status_copper()
954 phydev->link = 0; in mv3310_read_status()
955 phydev->pause = 0; in mv3310_read_status()
956 phydev->asym_pause = 0; in mv3310_read_status()
[all …]
A Dicplus.c138 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 Dbcm84881.c50 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 Dlxt.c109 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 Dmicrel.c225 phy_error(phydev); in kszphy_handle_interrupt()
380 linkmode_and(phydev->supported, phydev->supported, mask); in ksz8041_config_init()
383 linkmode_and(phydev->advertising, phydev->advertising, mask); in ksz8041_config_init()
482 return ksz8081_config_mdix(phydev, phydev->mdix_ctrl); in ksz8081_config_aneg()
1110 phydev->link = 1; in ksz8873mll_read_status()
1111 phydev->pause = phydev->asym_pause = 0; in ksz8873mll_read_status()
1159 if (phydev->drv->config_intr && phy_interrupt_is_valid(phydev)) in ksz9031_read_status()
1160 phydev->drv->config_intr(phydev); in ksz9031_read_status()
1214 return ksz886x_config_mdix(phydev, phydev->mdix_ctrl); in ksz886x_config_aneg()
1307 phydev->drv->config_intr(phydev); in kszphy_suspend()
[all …]
A Dphy-core.c367 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_resolve_aneg_linkmode()
400 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_check_downshift()
423 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_resolve_min_speed()
476 if (phydev->drv && phydev->drv->read_mmd) { in __phy_read_mmd()
477 val = phydev->drv->read_mmd(phydev, devad, regnum); in __phy_read_mmd()
479 val = __mdiobus_c45_read(phydev->mdio.bus, phydev->mdio.addr, in __phy_read_mmd()
532 if (phydev->drv && phydev->drv->write_mmd) { in __phy_write_mmd()
533 ret = phydev->drv->write_mmd(phydev, devad, regnum, val); in __phy_write_mmd()
535 ret = __mdiobus_c45_write(phydev->mdio.bus, phydev->mdio.addr, in __phy_write_mmd()
755 return phydev->drv->read_page(phydev); in __phy_read_page()
[all …]
A Ddp83869.c165 if (phydev->link) { in dp83869_read_status()
226 phy_error(phydev); in dp83869_handle_interrupt()
232 phy_error(phydev); in dp83869_handle_interrupt()
459 phydev_err(phydev, in dp83869_set_downshift()
645 linkmode_and(phydev->advertising, phydev->advertising, in dp83869_configure_fiber()
653 phydev->supported); in dp83869_configure_fiber()
656 phydev->supported); in dp83869_configure_fiber()
658 phydev->supported); in dp83869_configure_fiber()
677 linkmode_or(phydev->advertising, phydev->advertising, in dp83869_configure_fiber()
678 phydev->supported); in dp83869_configure_fiber()
[all …]
A Daquantia_main.c290 phy_error(phydev); in aqr_handle_interrupt()
312 phydev->lp_advertising, in aqr_read_status()
315 phydev->lp_advertising, in aqr_read_status()
332 phydev->speed = SPEED_10; in aqr107_read_rate()
335 phydev->speed = SPEED_100; in aqr107_read_rate()
370 if (!phydev->link || phydev->autoneg == AUTONEG_DISABLE) in aqr107_read_status()
514 aqr107_chip_info(phydev); in aqr107_config_init()
530 aqr107_chip_info(phydev); in aqcs109_config_init()
549 if (phydev->state != PHY_RUNNING || phydev->autoneg == AUTONEG_DISABLE) in aqr107_link_change_notify()
602 phydev->priv = devm_kzalloc(&phydev->mdio.dev, in aqr107_probe()
[all …]
/linux/drivers/net/phy/mscc/
A Dmscc_main.c179 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 Dmscc_ptp.c251 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
1248 return phydev->priv; in vsc8584_base_priv()
1512 switch (phydev->phy_id & phydev->drv->phy_id_mask) { in vsc8584_ptp_init()
[all …]
A Dmscc_serdes.c14 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 …]
/linux/include/linux/
A Dphy.h1000 return mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum); in phy_read()
1288 return phydev && phydev->mii_ts && phydev->mii_ts->hwtstamp; in phy_has_hwtstamp()
1297 return phydev && phydev->mii_ts && phydev->mii_ts->rxtstamp; in phy_has_rxtstamp()
1307 return phydev && phydev->mii_ts && phydev->mii_ts->ts_info; in phy_has_tsinfo()
1316 return phydev && phydev->mii_ts && phydev->mii_ts->txtstamp; in phy_has_txtstamp()
1321 return phydev->mii_ts->hwtstamp(phydev->mii_ts, ifr); in phy_hwtstamp()
1327 return phydev->mii_ts->rxtstamp(phydev->mii_ts, skb, type); in phy_rxtstamp()
1333 return phydev->mii_ts->ts_info(phydev->mii_ts, tsinfo); in phy_ts_info()
1339 phydev->mii_ts->txtstamp(phydev->mii_ts, skb, type); in phy_txtstamp()
1632 if (!phydev->drv) in phy_read_status()
[all …]

Completed in 1908 milliseconds

12345678910