/linux/include/linux/ |
A D | phylink.h | 449 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 D | sfp-phylink.rst | 4 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 D | kapi.rst | 144 .. kernel-doc:: include/linux/phylink.h 147 .. kernel-doc:: drivers/net/phy/phylink.c
|
/linux/drivers/net/phy/ |
A D | phylink.c | 42 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 D | built-in.a | 5 phylink.o/
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-mac.c | 303 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 D | dpaa2-mac.h | 23 struct phylink *phylink; member
|
A D | dpaa2-switch-ethtool.c | 66 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 D | dpaa2-ethtool.c | 89 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 D | sparx5_netdev.c | 83 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 D | sparx5_main.c | 258 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 D | jme.c | 387 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 D | mac-phy-support.rst | 22 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 D | ag71xx.c | 370 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 D | xilinx_axienet_main.c | 1066 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 D | xilinx_axienet.h | 433 struct phylink *phylink; member
|
/linux/drivers/net/ethernet/mscc/ |
A D | ocelot_net.c | 438 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 D | ocelot.h | 45 struct phylink *phylink; member
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_ethtool.c | 378 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 D | enetc_pf.c | 983 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 D | enetc_ethtool.c | 720 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 D | mvneta.c | 500 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 D | mtk_eth_soc.c | 2320 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 D | mvpp2_main.c | 1714 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 D | Kconfig | 18 This module provides helpers to phylink for managing the Lynx PCS
|