/Linux-v6.1/include/linux/ |
D | phylink.h | 565 struct phylink *phylink_create(struct phylink_config *, struct fwnode_handle *, 568 void phylink_destroy(struct phylink *); 570 int phylink_connect_phy(struct phylink *, struct phy_device *); 571 int phylink_of_phy_connect(struct phylink *, struct device_node *, u32 flags); 572 int phylink_fwnode_phy_connect(struct phylink *pl, 575 void phylink_disconnect_phy(struct phylink *); 577 void phylink_mac_change(struct phylink *, bool up); 579 void phylink_start(struct phylink *); 580 void phylink_stop(struct phylink *); 582 void phylink_suspend(struct phylink *pl, bool mac_wol); [all …]
|
D | pcs-rzn1-miic.h | 11 struct phylink;
|
/Linux-v6.1/Documentation/networking/ |
D | sfp-phylink.rst | 4 phylink chapter 10 phylink is a mechanism to support hot-pluggable networking modules 14 phylink supports conventional phylib-based setups, fixed link setups 20 phylink has several modes of operation, which depend on the firmware 69 Rough guide to converting a network driver to sfp/phylink 73 phylib to the sfp/phylink support. Please send patches to improve 98 #include <linux/phylink.h> 104 struct phylink *phylink; 121 - phylink_start(priv->phylink) 123 - phylink_stop(priv->phylink) [all …]
|
D | kapi.rst | 144 .. kernel-doc:: include/linux/phylink.h 147 .. kernel-doc:: drivers/net/phy/phylink.c
|
/Linux-v6.1/drivers/net/phy/ |
D | phylink.c | 42 struct phylink { struct 593 static int phylink_validate_mac_and_pcs(struct phylink *pl, in phylink_validate_mac_and_pcs() 641 static int phylink_validate_mask(struct phylink *pl, unsigned long *supported, in phylink_validate_mask() 670 static int phylink_validate(struct phylink *pl, unsigned long *supported, in phylink_validate() 687 static int phylink_parse_fixedlink(struct phylink *pl, in phylink_parse_fixedlink() 788 static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode) in phylink_parse_mode() 922 static void phylink_apply_manual_flow(struct phylink *pl, in phylink_apply_manual_flow() 950 static void phylink_pcs_poll_stop(struct phylink *pl) in phylink_pcs_poll_stop() 956 static void phylink_pcs_poll_start(struct phylink *pl) in phylink_pcs_poll_start() 962 static void phylink_mac_config(struct phylink *pl, in phylink_mac_config() [all …]
|
/Linux-v6.1/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_netdev.c | 104 err = phylink_of_phy_connect(port->phylink, port->of_node, 0); in sparx5_port_open() 110 phylink_start(port->phylink); in sparx5_port_open() 128 phylink_stop(port->phylink); in sparx5_port_open() 129 phylink_disconnect_phy(port->phylink); in sparx5_port_open() 142 phylink_stop(port->phylink); in sparx5_port_stop() 143 phylink_disconnect_phy(port->phylink); in sparx5_port_stop() 303 if (port && port->phylink) { in sparx5_destroy_netdevs() 307 phylink_disconnect_phy(port->phylink); in sparx5_destroy_netdevs() 309 phylink_destroy(port->phylink); in sparx5_destroy_netdevs() 310 port->phylink = NULL; in sparx5_destroy_netdevs()
|
D | sparx5_main.c | 260 struct phylink *phylink; in sparx5_create_port() local 325 phylink = phylink_create(&spx5_port->phylink_config, in sparx5_create_port() 329 if (IS_ERR(phylink)) in sparx5_create_port() 330 return PTR_ERR(phylink); in sparx5_create_port() 332 spx5_port->phylink = phylink; in sparx5_create_port()
|
/Linux-v6.1/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-mac.c | 354 struct phylink *phylink; in dpaa2_mac_connect() local 414 phylink = phylink_create(&mac->phylink_config, in dpaa2_mac_connect() 417 if (IS_ERR(phylink)) { in dpaa2_mac_connect() 418 err = PTR_ERR(phylink); in dpaa2_mac_connect() 421 mac->phylink = phylink; in dpaa2_mac_connect() 423 err = phylink_fwnode_phy_connect(mac->phylink, dpmac_node, 0); in dpaa2_mac_connect() 432 phylink_destroy(mac->phylink); in dpaa2_mac_connect() 441 if (!mac->phylink) in dpaa2_mac_disconnect() 444 phylink_disconnect_phy(mac->phylink); in dpaa2_mac_disconnect() 445 phylink_destroy(mac->phylink); in dpaa2_mac_disconnect()
|
D | dpaa2-mac.h | 24 struct phylink *phylink; member
|
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()
|
/Linux-v6.1/drivers/net/usb/ |
D | asix_devices.c | 312 phylink_ethtool_get_pauseparam(priv->phylink, pause); in ax88772_ethtool_get_pauseparam() 321 return phylink_ethtool_set_pauseparam(priv->phylink, pause); in ax88772_ethtool_set_pauseparam() 366 phylink_start(priv->phylink); in ax88772_reset() 615 phylink_suspend(priv->phylink, false); in ax88772_suspend() 650 phylink_resume(priv->phylink); in ax88772_resume() 696 ret = phylink_connect_phy(priv->phylink, priv->phydev); in ax88772_init_phy() 717 phylink_disconnect_phy(priv->phylink); in ax88772_init_phy() 786 struct phylink *phylink; in ax88772_phylink_setup() local 803 phylink = phylink_create(&priv->phylink_config, dev->net->dev.fwnode, in ax88772_phylink_setup() 805 if (IS_ERR(phylink)) in ax88772_phylink_setup() [all …]
|
D | asix.h | 189 struct phylink *phylink; member
|
/Linux-v6.1/drivers/net/ethernet/ |
D | jme.c | 388 u32 phylink, bmsr; in jme_linkstat_from_phy() local 390 phylink = jme_mdio_read(jme->dev, jme->mii_if.phy_id, 17); in jme_linkstat_from_phy() 393 phylink |= PHY_LINK_AUTONEG_COMPLETE; in jme_linkstat_from_phy() 395 return phylink; in jme_linkstat_from_phy() 414 u32 phylink, cnt = JME_SPDRSV_TIMEOUT, bmcr; in jme_check_link() local 421 phylink = jme_linkstat_from_phy(jme); in jme_check_link() 423 phylink = jread32(jme, JME_PHY_LINK); in jme_check_link() 425 if (phylink & PHY_LINK_UP) { in jme_check_link() 426 if (!(phylink & PHY_LINK_AUTONEG_COMPLETE)) { in jme_check_link() 431 phylink = PHY_LINK_UP; in jme_check_link() [all …]
|
/Linux-v6.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_main.c | 183 err = phylink_fwnode_phy_connect(port->phylink, port->fwnode, 0); in lan966x_port_open() 189 phylink_start(port->phylink); in lan966x_port_open() 199 phylink_stop(port->phylink); in lan966x_port_stop() 200 phylink_disconnect_phy(port->phylink); in lan966x_port_stop() 700 if (port->phylink) { in lan966x_cleanup_ports() 704 phylink_destroy(port->phylink); in lan966x_cleanup_ports() 705 port->phylink = NULL; in lan966x_cleanup_ports() 735 struct phylink *phylink; in lan966x_probe_port() local 794 phylink = phylink_create(&port->phylink_config, in lan966x_probe_port() 798 if (IS_ERR(phylink)) { in lan966x_probe_port() [all …]
|
/Linux-v6.1/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/ |
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-v6.1/drivers/net/ethernet/ti/ |
D | am65-cpsw-ethtool.c | 472 phylink_ethtool_get_pauseparam(salve->phylink, pause); in am65_cpsw_get_pauseparam() 480 return phylink_ethtool_set_pauseparam(salve->phylink, pause); in am65_cpsw_set_pauseparam() 488 phylink_ethtool_get_wol(salve->phylink, wol); in am65_cpsw_get_wol() 496 return phylink_ethtool_set_wol(salve->phylink, wol); in am65_cpsw_set_wol() 504 return phylink_ethtool_ksettings_get(salve->phylink, ecmd); in am65_cpsw_get_link_ksettings() 513 return phylink_ethtool_ksettings_set(salve->phylink, ecmd); in am65_cpsw_set_link_ksettings() 520 return phylink_ethtool_get_eee(salve->phylink, edata); in am65_cpsw_get_eee() 527 return phylink_ethtool_set_eee(salve->phylink, edata); in am65_cpsw_set_eee() 534 return phylink_ethtool_nway_reset(salve->phylink); in am65_cpsw_nway_reset()
|
D | am65-cpsw-nuss.h | 39 struct phylink *phylink; member
|
/Linux-v6.1/drivers/net/ethernet/atheros/ |
D | ag71xx.c | 370 struct phylink *phylink; member 464 return phylink_ethtool_ksettings_get(ag->phylink, kset); in ag71xx_get_link_ksettings() 472 return phylink_ethtool_ksettings_set(ag->phylink, kset); in ag71xx_set_link_ksettings() 479 return phylink_ethtool_nway_reset(ag->phylink); in ag71xx_ethtool_nway_reset() 487 phylink_ethtool_get_pauseparam(ag->phylink, pause); in ag71xx_ethtool_get_pauseparam() 495 return phylink_ethtool_set_pauseparam(ag->phylink, pause); in ag71xx_ethtool_set_pauseparam() 1097 struct phylink *phylink; in ag71xx_phylink_setup() local 1130 phylink = phylink_create(&ag->phylink_config, ag->pdev->dev.fwnode, in ag71xx_phylink_setup() 1132 if (IS_ERR(phylink)) in ag71xx_phylink_setup() 1133 return PTR_ERR(phylink); in ag71xx_phylink_setup() [all …]
|
/Linux-v6.1/drivers/net/ethernet/xilinx/ |
D | xilinx_axienet_main.c | 1154 ret = phylink_of_phy_connect(lp->phylink, lp->dev->of_node, 0); in axienet_open() 1160 phylink_start(lp->phylink); in axienet_open() 1195 phylink_stop(lp->phylink); in axienet_open() 1196 phylink_disconnect_phy(lp->phylink); in axienet_open() 1221 phylink_stop(lp->phylink); in axienet_stop() 1222 phylink_disconnect_phy(lp->phylink); in axienet_stop() 1296 return phylink_mii_ioctl(lp->phylink, rq, cmd); in axienet_ioctl() 1480 phylink_ethtool_get_pauseparam(lp->phylink, epauseparm); in axienet_ethtools_get_pauseparam() 1501 return phylink_ethtool_set_pauseparam(lp->phylink, epauseparm); in axienet_ethtools_set_pauseparam() 1577 return phylink_ethtool_ksettings_get(lp->phylink, cmd); in axienet_ethtools_get_link_ksettings() [all …]
|
/Linux-v6.1/drivers/net/ethernet/mscc/ |
D | ocelot.h | 49 struct phylink *phylink; member
|
D | ocelot_net.c | 549 phylink_start(priv->phylink); in ocelot_port_open() 558 phylink_stop(priv->phylink); in ocelot_port_stop() 1753 struct phylink *phylink; in ocelot_port_phylink_create() local 1810 phylink = phylink_create(&priv->phylink_config, in ocelot_port_phylink_create() 1813 if (IS_ERR(phylink)) { in ocelot_port_phylink_create() 1814 err = PTR_ERR(phylink); in ocelot_port_phylink_create() 1815 dev_err(dev, "Could not create phylink (%pe)\n", phylink); in ocelot_port_phylink_create() 1819 priv->phylink = phylink; in ocelot_port_phylink_create() 1821 err = phylink_of_phy_connect(phylink, portnp, 0); in ocelot_port_phylink_create() 1824 phylink_destroy(phylink); in ocelot_port_phylink_create() [all …]
|
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ethtool.c | 385 return phylink_ethtool_ksettings_get(priv->phylink, cmd); in stmmac_ethtool_get_link_ksettings() 416 return phylink_ethtool_ksettings_set(priv->phylink, cmd); in stmmac_ethtool_set_link_ksettings() 476 return phylink_ethtool_nway_reset(priv->phylink); in stmmac_nway_reset() 522 phylink_ethtool_get_pauseparam(priv->phylink, pause); in stmmac_get_pauseparam() 539 return phylink_ethtool_set_pauseparam(priv->phylink, pause); in stmmac_set_pauseparam() 603 int val = phylink_get_eee_err(priv->phylink); in stmmac_get_ethtool_stats() 724 return phylink_ethtool_get_wol(priv->phylink, wol); in stmmac_get_wol() 745 int ret = phylink_ethtool_set_wol(priv->phylink, wol); in stmmac_set_wol() 790 return phylink_ethtool_get_eee(priv->phylink, edata); in stmmac_ethtool_op_get_eee() 809 ret = phylink_ethtool_set_eee(priv->phylink, edata); in stmmac_ethtool_op_set_eee()
|
/Linux-v6.1/drivers/net/ethernet/marvell/ |
D | mvneta.c | 529 struct phylink *phylink; member 3195 phylink_mac_change(pp->phylink, !!(gmac_stat & MVNETA_GMAC_LINK_UP)); in mvneta_link_change() 3713 phylink_start(pp->phylink); in mvneta_start_dev() 3716 phylink_speed_up(pp->phylink); in mvneta_start_dev() 3730 phylink_speed_down(pp->phylink, false); in mvneta_stop_dev() 3732 phylink_stop(pp->phylink); in mvneta_stop_dev() 4243 int err = phylink_of_phy_connect(pp->phylink, pp->dn, 0); in mvneta_mdio_probe() 4248 phylink_ethtool_get_wol(pp->phylink, &wol); in mvneta_mdio_probe() 4260 phylink_disconnect_phy(pp->phylink); in mvneta_mdio_remove() 4537 return phylink_mii_ioctl(pp->phylink, ifr, cmd); in mvneta_ioctl() [all …]
|
/Linux-v6.1/drivers/net/ethernet/altera/ |
D | altera_tse_ethtool.c | 229 return phylink_ethtool_ksettings_set(priv->phylink, cmd); in tse_ethtool_set_link_ksettings() 237 return phylink_ethtool_ksettings_get(priv->phylink, cmd); in tse_ethtool_get_link_ksettings()
|
D | altera_tse_main.c | 956 ret = phylink_of_phy_connect(priv->phylink, priv->device->of_node, 0); in tse_open() 961 phylink_start(priv->phylink); in tse_open() 992 phylink_stop(priv->phylink); in tse_shutdown() 993 phylink_disconnect_phy(priv->phylink); in tse_shutdown() 1410 priv->phylink = phylink_create(&priv->phylink_config, in altera_tse_probe() 1413 if (IS_ERR(priv->phylink)) { in altera_tse_probe() 1415 ret = PTR_ERR(priv->phylink); in altera_tse_probe() 1441 phylink_destroy(priv->phylink); in altera_tse_remove()
|