Home
last modified time | relevance | path

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

12345678910>>...17

/openbmc/linux/drivers/net/ethernet/realtek/
H 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()
457 val = phy_read(phydev, 0x0d); in rtl8168d_1_common()
486 rtl8168d_1_common(phydev); in rtl8168d_1_hw_phy_config()
[all …]
/openbmc/linux/drivers/net/phy/
H A Dphy.c69 phydev->drv->link_change_notify(phydev); in phy_process_state_change()
75 phydev->phy_link_change(phydev, true); in phy_link_up()
81 phydev->phy_link_change(phydev, false); in phy_link_down()
169 return phydev->drv->config_intr(phydev); in phy_config_interrupt()
204 if (phydev->drv && phydev->drv->aneg_done) in phy_aneg_done()
205 return phydev->drv->aneg_done(phydev); in phy_aneg_done()
539 phydev->drv->get_strings(phydev, data); in phy_ethtool_get_strings()
928 return phydev->drv->config_aneg(phydev); in phy_config_aneg()
1329 phydev_name(phydev), phydev); in phy_request_interrupt()
1354 free_irq(phydev->irq, phydev); in phy_free_interrupt()
[all …]
H 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()
312 phy_error(phydev); in vsc82xx_handle_interrupt()
319 phy_trigger_machine(phydev); in vsc82xx_handle_interrupt()
347 if (phydev->autoneg == AUTONEG_ENABLE || phydev->speed > SPEED_100) in vsc82x4_config_autocross_enable()
[all …]
H A Dphy-c45.c26 phydev->pma_extable = val; in genphy_c45_baset1_able()
271 linkmode_and(phydev->advertising, phydev->advertising, in genphy_c45_an_config_aneg()
432 phydev->link = 0; in genphy_c45_read_link()
446 if (!phy_polling_mode(phydev) || !phydev->link) { in genphy_c45_read_link()
462 phydev->link = link; in genphy_c45_read_link()
486 phydev->pause = 0; in genphy_c45_baset1_read_lpa()
537 phydev->pause = 0; in genphy_c45_read_lpa()
827 linkmode_and(phydev->supported_eee, phydev->supported_eee, in genphy_c45_read_eee_cap1()
881 return genphy_c45_write_eee_adv(phydev, phydev->advertising_eee); in genphy_c45_an_config_eee_aneg()
1087 phydev->pause = 0; in genphy_c45_read_status()
[all …]
H A Dbcm7xxx.c85 bcm_phy_r_rc_cal_reset(phydev); in bcm7xxx_28nm_d0_afe_config_init()
154 rev = phydev->phy_id & ~phydev->drv->phy_id_mask; in bcm7xxx_28nm_config_init()
157 phydev_name(phydev), phydev->drv->name, rev, patch); in bcm7xxx_28nm_config_init()
164 phy_read(phydev, MII_BMSR); in bcm7xxx_28nm_config_init()
382 phy_write(phydev, MII_BMCR, in bcm7xxx_28nm_ephy_eee_enable()
390 u8 rev = phydev->phy_id & ~phydev->drv->phy_id_mask; in bcm7xxx_28nm_ephy_config_init()
394 phydev_name(phydev), phydev->drv->name, rev); in bcm7xxx_28nm_ephy_config_init()
401 phy_read(phydev, MII_BMSR); in bcm7xxx_28nm_ephy_config_init()
751 ret = phy_write(phydev, in bcm7xxx_suspend()
820 phydev->priv = priv; in bcm7xxx_28nm_probe()
[all …]
H A Dphy_device.c381 irq_wake_thread(phydev->irq, phydev); in mdio_bus_phy_resume()
1082 phydev->mii_ts->link_state(phydev->mii_ts, phydev); in phy_link_change()
1237 ret = phydev->drv->soft_reset(phydev); in phy_init_hw()
1251 ret = phydev->drv->config_init(phydev); in phy_init_hw()
1257 ret = phydev->drv->config_intr(phydev); in phy_init_hw()
1493 dev->phydev = phydev; in phy_attach_direct()
1824 phydev->attached_dev->phydev = NULL; in phy_detach()
1964 if (!phydev || !phydev->drv) in phy_reset_after_clk_enable()
3107 phyled->phydev = phydev; in of_phy_led()
3289 err = phydev->drv->probe(phydev); in phy_probe()
[all …]
H A Dmicrochip.c41 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 …]
H A Dat803x.c865 phydev->priv = priv; in at803x_probe()
1122 phy_error(phydev); in at803x_handle_interrupt()
1129 phy_error(phydev); in at803x_handle_interrupt()
1151 if (phydev->state == PHY_NOLINK && phydev->mdio.reset_gpio) { in at803x_link_change_notify()
1246 if (phydev->autoneg == AUTONEG_ENABLE && old_link && phydev->link) in at803x_read_status()
1251 phydev->pause = 0; in at803x_read_status()
1252 phydev->asym_pause = 0; in at803x_read_status()
1262 if (phydev->autoneg == AUTONEG_ENABLE && phydev->autoneg_complete) in at803x_read_status()
1296 ret = at803x_config_mdix(phydev, phydev->mdix_ctrl); in at803x_config_aneg()
1826 if (phydev->link) { in qca808x_read_status()
[all …]
H A Drealtek.c132 phydev->priv = priv; in rtl821x_probe()
262 phy_error(phydev); in rtl8201_handle_interrupt()
280 phy_error(phydev); in rtl821x_handle_interrupt()
286 phy_error(phydev); in rtl821x_handle_interrupt()
304 phy_error(phydev); in rtl8211f_handle_interrupt()
327 if (phydev->speed == SPEED_100 && phydev->autoneg == AUTONEG_DISABLE) { in rtl8211_config_aneg()
453 if (!phydev->wol_enabled) in rtl821x_resume()
546 if (!phydev->link) in rtlgen_get_speed()
555 phydev->speed = SPEED_10; in rtlgen_get_speed()
769 phydev->speed = SPEED_100; in rtl9000a_config_init()
[all …]
H 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 …]
H A Dmediatek-ge-soc.c421 switch (phydev->drv->phy_id) { in tx_amp_fill_result()
719 __phy_write(phydev, 0x12, 0xc); in mt798x_phy_common_finetune()
1118 switch (phydev->drv->phy_id) { in mt798x_phy_config_init()
1120 mt7981_phy_finetune(phydev); in mt798x_phy_config_init()
1123 mt7988_phy_finetune(phydev); in mt798x_phy_config_init()
1128 mt798x_phy_eee(phydev); in mt798x_phy_config_init()
1454 if (phydev->mdio.addr > 3) in mt7988_phy_probe()
1457 err = devm_phy_package_join(&phydev->mdio.dev, phydev, 0, in mt7988_phy_probe()
1468 shared = phydev->shared->priv; in mt7988_phy_probe()
1471 phydev->priv = priv; in mt7988_phy_probe()
[all …]
H A Dbroadcom.c24 #define BRCM_PHY_MODEL(phydev) \ argument
25 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask)
27 #define BRCM_PHY_REV(phydev) \ argument
28 ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask))
416 if (!phy_on_sfp(phydev)) { in bcm54xx_config_init()
486 bcm54xx_ptp_stop(phydev); in bcm54xx_suspend()
493 if (phydev->wol_enabled) in bcm54xx_suspend()
617 phydev->priv = priv; in bcm54616s_probe()
813 phy_error(phydev); in brcm_fet_handle_interrupt()
908 phydev->priv = priv; in bcm54xx_phy_probe()
[all …]
H A Dmarvell-88x2222.c114 switch (phydev->speed) { in mv2222_set_sgmii_speed()
433 phydev->link = 0; in mv2222_read_status()
448 phydev->link = link; in mv2222_read_status()
489 priv = phydev->priv; in mv2222_sfp_insert()
490 dev = &phydev->mdio.dev; in mv2222_sfp_insert()
493 phydev->port = sfp_parse_port(phydev->sfp_bus, id, sfp_supported); in mv2222_sfp_insert()
526 priv = phydev->priv; in mv2222_sfp_remove()
530 phydev->port = PORT_NONE; in mv2222_sfp_remove()
538 priv = phydev->priv; in mv2222_sfp_link_up()
547 priv = phydev->priv; in mv2222_sfp_link_down()
[all …]
H A Dbcm-phy-lib.c37 phy_lock_mdio_bus(phydev); in bcm_phy_write_exp()
39 phy_unlock_mdio_bus(phydev); in bcm_phy_write_exp()
66 phy_lock_mdio_bus(phydev); in bcm_phy_read_exp()
68 phy_unlock_mdio_bus(phydev); in bcm_phy_read_exp()
98 phy_lock_mdio_bus(phydev); in bcm_phy_modify_exp()
100 phy_unlock_mdio_bus(phydev); in bcm_phy_modify_exp()
217 phy_error(phydev); in bcm_phy_handle_interrupt()
228 phy_error(phydev); in bcm_phy_handle_interrupt()
275 phy_lock_mdio_bus(phydev); in bcm_phy_read_rdb()
299 phy_lock_mdio_bus(phydev); in bcm_phy_write_rdb()
[all …]
H 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 …]
H 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 …]
H A Dmarvell10g.c509 if (!phydev->is_c45 || in mv3310_probe()
840 phydev->supported, in mv3310_get_features()
844 phydev->supported, in mv3310_get_features()
929 if (!phydev->link) in mv3310_update_interface()
973 phydev->link = 1; in mv3310_read_status_10gbaser()
999 phydev->link = 0; in mv3310_read_status_copper()
1036 phydev->port = PORT_TP; in mv3310_read_status_copper()
1066 phydev->link = 0; in mv3310_read_status()
1067 phydev->pause = 0; in mv3310_read_status()
1068 phydev->asym_pause = 0; in mv3310_read_status()
[all …]
/openbmc/u-boot/drivers/net/phy/
H A Dmarvell.c168 phydev->link = 0; in m88e1xxx_parse_status()
182 phydev->link = 1; in m88e1xxx_parse_status()
184 phydev->link = 0; in m88e1xxx_parse_status()
226 reg = phy_read(phydev, in m88e1111s_config()
239 phy_write(phydev, in m88e1111s_config()
252 phy_write(phydev, in m88e1111s_config()
272 phy_write(phydev, in m88e1111s_config()
284 phy_reset(phydev); in m88e1111s_config()
297 phy_reset(phydev); in m88e1111s_config()
396 phy_reset(phydev); in m88e1518_config()
[all …]
H A Dbroadcom.c59 phy_reset(phydev); in bcm5461_config()
103 phydev->speed = SPEED_10; in bcm54xx_parse_status()
107 phydev->speed = SPEED_10; in bcm54xx_parse_status()
128 phydev->speed = SPEED_10; in bcm54xx_parse_status()
244 phy_reset(phydev); in bcm_cygnus_config()
246 bcm_cygnus_afe(phydev); in bcm_cygnus_config()
306 phydev->link = 0; in bcm5482_parse_serdes_sr()
313 phydev->link = 1; in bcm5482_parse_serdes_sr()
316 phydev->speed = 10; in bcm5482_parse_serdes_sr()
319 phydev->speed = 100; in bcm5482_parse_serdes_sr()
[all …]
H A Drealtek.c146 genphy_config_aneg(phydev); in rtl8211x_config()
190 genphy_config_aneg(phydev); in rtl8211f_config()
206 phydev->link = 1; in rtl8211x_parse_status()
212 phydev->link = 0; in rtl8211x_parse_status()
226 phydev->link = 1; in rtl8211x_parse_status()
228 phydev->link = 0; in rtl8211x_parse_status()
243 phydev->speed = SPEED_100; in rtl8211x_parse_status()
246 phydev->speed = SPEED_10; in rtl8211x_parse_status()
261 phydev->link = 1; in rtl8211f_parse_status()
265 phydev->link = 0; in rtl8211f_parse_status()
[all …]
H A Datheros.c20 static int ar8021_config(struct phy_device *phydev) in ar8021_config() argument
22 phy_write(phydev, MDIO_DEVAD_NONE, 0x00, 0x1200); in ar8021_config()
23 phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x05); in ar8021_config()
24 phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x3D47); in ar8021_config()
26 phydev->supported = phydev->drv->features; in ar8021_config()
48 phydev->supported = phydev->drv->features; in ar8031_config()
50 genphy_config_aneg(phydev); in ar8031_config()
51 genphy_restart_aneg(phydev); in ar8031_config()
86 phydev->supported = phydev->drv->features; in ar8035_config()
88 genphy_config_aneg(phydev); in ar8035_config()
[all …]
/openbmc/linux/drivers/net/phy/mscc/
H A Dmscc_main.c182 mutex_lock(&phydev->lock); in vsc85xx_led_cntl_set()
1733 switch (phydev->phy_id & phydev->drv->phy_id_mask) { in vsc8584_config_init()
1841 rc = vsc85xx_mac_if_set(phydev, phydev->interface); in vsc85xx_config_init()
1849 phy_id = phydev->drv->phy_id & phydev->drv->phy_id_mask; in vsc85xx_config_init()
2171 phy_error(phydev); in vsc85xx_handle_interrupt()
2187 rc = vsc85xx_mdix_set(phydev, phydev->mdix_ctrl); in vsc85xx_config_aneg()
2198 rc = vsc85xx_mdix_get(phydev, &phydev->mdix); in vsc85xx_read_status()
2216 phydev->priv = vsc8531; in vsc8514_probe()
2219 devm_phy_package_join(&phydev->mdio.dev, phydev, in vsc8514_probe()
2248 devm_phy_package_join(&phydev->mdio.dev, phydev, in vsc8574_probe()
[all …]
H 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
1245 return phydev->priv; in vsc8584_base_priv()
1509 switch (phydev->phy_id & phydev->drv->phy_id_mask) { in vsc8584_ptp_init()
[all …]
H 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 …]
/openbmc/linux/include/linux/
H A Dphy.h1241 return mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum); in phy_read()
1532 return phydev && phydev->mii_ts && phydev->mii_ts->hwtstamp; in phy_has_hwtstamp()
1541 return phydev && phydev->mii_ts && phydev->mii_ts->rxtstamp; in phy_has_rxtstamp()
1551 return phydev && phydev->mii_ts && phydev->mii_ts->ts_info; in phy_has_tsinfo()
1560 return phydev && phydev->mii_ts && phydev->mii_ts->txtstamp; in phy_has_txtstamp()
1565 return phydev->mii_ts->hwtstamp(phydev->mii_ts, ifr); in phy_hwtstamp()
1571 return phydev->mii_ts->rxtstamp(phydev->mii_ts, skb, type); in phy_rxtstamp()
1577 return phydev->mii_ts->ts_info(phydev->mii_ts, tsinfo); in phy_ts_info()
1583 phydev->mii_ts->txtstamp(phydev->mii_ts, skb, type); in phy_txtstamp()
1897 if (!phydev->drv) in phy_read_status()
[all …]

12345678910>>...17