Home
last modified time | relevance | path

Searched refs:phylink (Results 1 – 25 of 80) sorted by relevance

1234

/linux/include/linux/
A Dphylink.h449 void phylink_destroy(struct phylink *);
453 int phylink_fwnode_phy_connect(struct phylink *pl,
456 void phylink_disconnect_phy(struct phylink *);
458 void phylink_mac_change(struct phylink *, bool up);
460 void phylink_start(struct phylink *);
461 void phylink_stop(struct phylink *);
464 void phylink_resume(struct phylink *pl);
473 int phylink_ethtool_nway_reset(struct phylink *);
478 int phylink_get_eee_err(struct phylink *);
479 int phylink_init_eee(struct phylink *, bool);
[all …]
/linux/Documentation/networking/
A Dsfp-phylink.rst4 phylink chapter
98 #include <linux/phylink.h>
104 struct phylink *phylink;
123 - phylink_stop(priv->phylink)
173 internally by phylink.
238 struct phylink *phylink;
243 if (IS_ERR(phylink)) {
244 err = PTR_ERR(phylink);
248 priv->phylink = phylink;
255 phylink_destroy(priv->phylink);
[all …]
A Dkapi.rst144 .. kernel-doc:: include/linux/phylink.h
147 .. kernel-doc:: drivers/net/phy/phylink.c
/linux/drivers/net/phy/
A Dphylink.c42 struct phylink { struct
709 struct phylink *pl = container_of(w, struct phylink, resolve); in phylink_resolve()
842 struct phylink *pl = container_of(t, struct phylink, link_poll); in phylink_fixed_poll()
896 struct phylink *pl; in phylink_create()
1004 struct phylink *pl = phydev->phylink; in phylink_phy_change()
1074 phy->phylink = pl; in phylink_bringup_phy()
1278 struct phylink *pl = data; in phylink_link_handler()
2229 struct phylink *pl = upstream; in phylink_sfp_attach()
2236 struct phylink *pl = upstream; in phylink_sfp_detach()
2328 struct phylink *pl = upstream; in phylink_sfp_module_insert()
[all …]
A Dbuilt-in.a5 phylink.o/
/linux/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-mac.c303 struct phylink *phylink; in dpaa2_mac_connect() local
342 phylink = phylink_create(&mac->phylink_config, in dpaa2_mac_connect()
345 if (IS_ERR(phylink)) { in dpaa2_mac_connect()
346 err = PTR_ERR(phylink); in dpaa2_mac_connect()
349 mac->phylink = phylink; in dpaa2_mac_connect()
352 phylink_set_pcs(mac->phylink, &mac->pcs->pcs); in dpaa2_mac_connect()
354 err = phylink_fwnode_phy_connect(mac->phylink, dpmac_node, 0); in dpaa2_mac_connect()
363 phylink_destroy(mac->phylink); in dpaa2_mac_connect()
372 if (!mac->phylink) in dpaa2_mac_disconnect()
375 phylink_disconnect_phy(mac->phylink); in dpaa2_mac_disconnect()
[all …]
A Ddpaa2-mac.h23 struct phylink *phylink; member
A Ddpaa2-switch-ethtool.c66 return phylink_ethtool_ksettings_get(port_priv->mac->phylink, in dpaa2_switch_get_link_ksettings()
103 return phylink_ethtool_ksettings_set(port_priv->mac->phylink, in dpaa2_switch_set_link_ksettings()
A Ddpaa2-ethtool.c89 return phylink_ethtool_nway_reset(priv->mac->phylink); in dpaa2_eth_nway_reset()
101 return phylink_ethtool_ksettings_get(priv->mac->phylink, in dpaa2_eth_get_link_ksettings()
121 return phylink_ethtool_ksettings_set(priv->mac->phylink, link_settings); in dpaa2_eth_set_link_ksettings()
131 phylink_ethtool_get_pauseparam(priv->mac->phylink, pause); in dpaa2_eth_get_pauseparam()
154 return phylink_ethtool_set_pauseparam(priv->mac->phylink, in dpaa2_eth_set_pauseparam()
/linux/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_netdev.c83 err = phylink_of_phy_connect(port->phylink, port->of_node, 0); in sparx5_port_open()
89 phylink_start(port->phylink); in sparx5_port_open()
111 phylink_stop(port->phylink); in sparx5_port_stop()
112 phylink_disconnect_phy(port->phylink); in sparx5_port_stop()
249 if (port && port->phylink) { in sparx5_destroy_netdevs()
253 phylink_disconnect_phy(port->phylink); in sparx5_destroy_netdevs()
255 phylink_destroy(port->phylink); in sparx5_destroy_netdevs()
256 port->phylink = NULL; in sparx5_destroy_netdevs()
A Dsparx5_main.c258 struct phylink *phylink; in sparx5_create_port() local
296 phylink = phylink_create(&spx5_port->phylink_config, in sparx5_create_port()
300 if (IS_ERR(phylink)) in sparx5_create_port()
301 return PTR_ERR(phylink); in sparx5_create_port()
303 spx5_port->phylink = phylink; in sparx5_create_port()
304 phylink_set_pcs(phylink, &spx5_port->phylink_pcs); in sparx5_create_port()
/linux/drivers/net/ethernet/
A Djme.c387 u32 phylink, bmsr; in jme_linkstat_from_phy() local
394 return phylink; in jme_linkstat_from_phy()
430 phylink = PHY_LINK_UP; in jme_check_link()
467 if (jme->phylink == phylink) { in jme_check_link()
474 jme->phylink = phylink; in jme_check_link()
547 jme->phylink = 0; in jme_check_link()
1170 u32 phylink; in jme_shutdown_nic() local
1925 jme->phylink = 0; in jme_close()
2317 jme->phylink = 0; in jme_tx_timeout()
2988 jme->phylink = 0; in jme_init_one()
[all …]
/linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
A Dmac-phy-support.rst22 the help of phylink.
26 directly by the dpaa2-eth driver or by phylink.
34 | net_device | | phylink |--| +-----+ +-----+ +-----+ +-----+ |
66 phylink instance, the dpaa2-eth driver will not bind to the connected dpmac
71 phylink) and its attached net_device driver (dpaa2-eth, dpaa2-ethsw),
184 A phylink integration is necessary only when the partner DPMAC is not of TYPE_FIXED.
/linux/drivers/net/ethernet/atheros/
A Dag71xx.c370 struct phylink *phylink; member
479 return phylink_ethtool_nway_reset(ag->phylink); in ag71xx_ethtool_nway_reset()
1176 struct phylink *phylink; in ag71xx_phylink_setup() local
1183 if (IS_ERR(phylink)) in ag71xx_phylink_setup()
1184 return PTR_ERR(phylink); in ag71xx_phylink_setup()
1186 ag->phylink = phylink; in ag71xx_phylink_setup()
1496 phylink_start(ag->phylink); in ag71xx_open()
1509 phylink_stop(ag->phylink); in ag71xx_stop()
1510 phylink_disconnect_phy(ag->phylink); in ag71xx_stop()
1660 phylink_stop(ag->phylink); in ag71xx_restart_work_func()
[all …]
/linux/drivers/net/ethernet/xilinx/
A Dxilinx_axienet_main.c1066 phylink_start(lp->phylink); in axienet_open()
1096 phylink_stop(lp->phylink); in axienet_open()
1097 phylink_disconnect_phy(lp->phylink); in axienet_open()
1121 phylink_stop(lp->phylink); in axienet_stop()
1122 phylink_disconnect_phy(lp->phylink); in axienet_stop()
1220 return phylink_mii_ioctl(lp->phylink, rq, cmd); in axienet_ioctl()
2111 if (IS_ERR(lp->phylink)) { in axienet_probe()
2112 ret = PTR_ERR(lp->phylink); in axienet_probe()
2126 phylink_destroy(lp->phylink); in axienet_probe()
2152 if (lp->phylink) in axienet_remove()
[all …]
A Dxilinx_axienet.h433 struct phylink *phylink; member
/linux/drivers/net/ethernet/mscc/
A Docelot_net.c438 phylink_start(priv->phylink); in ocelot_port_open()
447 phylink_stop(priv->phylink); in ocelot_port_stop()
1606 struct phylink *phylink; in ocelot_port_phylink_create() local
1661 if (IS_ERR(phylink)) { in ocelot_port_phylink_create()
1662 err = PTR_ERR(phylink); in ocelot_port_phylink_create()
1667 priv->phylink = phylink; in ocelot_port_phylink_create()
1672 phylink_destroy(phylink); in ocelot_port_phylink_create()
1673 priv->phylink = NULL; in ocelot_port_phylink_create()
1740 if (priv->phylink) { in ocelot_release_port()
1742 phylink_disconnect_phy(priv->phylink); in ocelot_release_port()
[all …]
A Docelot.h45 struct phylink *phylink; member
/linux/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_ethtool.c378 return phylink_ethtool_ksettings_get(priv->phylink, cmd); in stmmac_ethtool_get_link_ksettings()
409 return phylink_ethtool_ksettings_set(priv->phylink, cmd); in stmmac_ethtool_set_link_ksettings()
462 return phylink_ethtool_nway_reset(priv->phylink); in stmmac_nway_reset()
504 phylink_ethtool_get_pauseparam(priv->phylink, pause); in stmmac_get_pauseparam()
521 return phylink_ethtool_set_pauseparam(priv->phylink, pause); in stmmac_set_pauseparam()
585 int val = phylink_get_eee_err(priv->phylink); in stmmac_get_ethtool_stats()
706 return phylink_ethtool_get_wol(priv->phylink, wol); in stmmac_get_wol()
727 int ret = phylink_ethtool_set_wol(priv->phylink, wol); in stmmac_set_wol()
772 return phylink_ethtool_get_eee(priv->phylink, edata); in stmmac_ethtool_op_get_eee()
799 ret = phylink_ethtool_set_eee(priv->phylink, edata); in stmmac_ethtool_op_set_eee()
/linux/drivers/net/ethernet/freescale/enetc/
A Denetc_pf.c983 phylink_set_pcs(priv->phylink, &pf->pcs->pcs); in enetc_pl_mac_config()
1109 struct phylink *phylink; in enetc_phylink_create() local
1115 phylink = phylink_create(&pf->phylink_config, of_fwnode_handle(node), in enetc_phylink_create()
1117 if (IS_ERR(phylink)) { in enetc_phylink_create()
1118 err = PTR_ERR(phylink); in enetc_phylink_create()
1122 priv->phylink = phylink; in enetc_phylink_create()
1129 if (priv->phylink) in enetc_phylink_destroy()
1130 phylink_destroy(priv->phylink); in enetc_phylink_destroy()
A Denetc_ethtool.c720 phylink_ethtool_get_pauseparam(priv->phylink, pause); in enetc_get_pauseparam()
728 return phylink_ethtool_set_pauseparam(priv->phylink, pause); in enetc_set_pauseparam()
736 if (!priv->phylink) in enetc_get_link_ksettings()
739 return phylink_ethtool_ksettings_get(priv->phylink, cmd); in enetc_get_link_ksettings()
747 if (!priv->phylink) in enetc_set_link_ksettings()
750 return phylink_ethtool_ksettings_set(priv->phylink, cmd); in enetc_set_link_ksettings()
/linux/drivers/net/ethernet/marvell/
A Dmvneta.c500 struct phylink *phylink; member
3645 phylink_start(pp->phylink); in mvneta_start_dev()
3648 phylink_speed_up(pp->phylink); in mvneta_start_dev()
3664 phylink_stop(pp->phylink); in mvneta_stop_dev()
5132 struct phylink *phylink; in mvneta_probe() local
5197 if (IS_ERR(phylink)) { in mvneta_probe()
5198 err = PTR_ERR(phylink); in mvneta_probe()
5208 pp->phylink = phylink; in mvneta_probe()
5392 if (pp->phylink) in mvneta_probe()
5393 phylink_destroy(pp->phylink); in mvneta_probe()
[all …]
/linux/drivers/net/ethernet/mediatek/
A Dmtk_eth_soc.c2320 phylink_start(mac->phylink); in mtk_open()
2353 phylink_stop(mac->phylink); in mtk_stop()
2357 phylink_disconnect_phy(mac->phylink); in mtk_stop()
2607 phylink_disconnect_phy(mac->phylink); in mtk_uninit()
2797 if (!mac->phylink) in mtk_nway_reset()
2952 struct phylink *phylink; in mtk_add_mac() local
3013 phylink = phylink_create(&mac->phylink_config, in mtk_add_mac()
3016 if (IS_ERR(phylink)) { in mtk_add_mac()
3017 err = PTR_ERR(phylink); in mtk_add_mac()
3021 mac->phylink = phylink; in mtk_add_mac()
[all …]
/linux/drivers/net/ethernet/marvell/mvpp2/
A Dmvpp2_main.c1714 if (port->phylink || in mvpp22_gop_setup_irq()
4610 if (port->phylink) in mvpp2_stop_dev()
4861 if (port->phylink) in mvpp2_stop()
5251 if (!port->phylink) in mvpp2_ioctl()
5367 if (!port->phylink) in mvpp2_ethtool_nway_reset()
5512 if (!port->phylink) in mvpp2_ethtool_get_pause_param()
5523 if (!port->phylink) in mvpp2_ethtool_set_pause_param()
6707 struct phylink *phylink; in mvpp2_port_probe() local
6957 port->phylink = phylink; in mvpp2_port_probe()
6985 if (port->phylink) in mvpp2_port_probe()
[all …]
/linux/drivers/net/pcs/
A DKconfig18 This module provides helpers to phylink for managing the Lynx PCS

Completed in 81 milliseconds

1234