Home
last modified time | relevance | path

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

1234

/linux/include/linux/
A Dphylink.h12 struct phylink;
413 struct phylink *phylink; member
592 void phylink_destroy(struct phylink *);
593 bool phylink_expects_phy(struct phylink *pl);
601 int phylink_set_fixed_link(struct phylink *,
609 void phylink_start(struct phylink *);
610 void phylink_stop(struct phylink *);
613 void phylink_resume(struct phylink *pl);
627 int phylink_get_eee_err(struct phylink *);
628 int phylink_init_eee(struct phylink *, bool);
[all …]
/linux/drivers/net/ethernet/tehuti/
A Dtn40_phy.c49 struct phylink *phylink; in tn40_phy_register() local
63 phylink = phylink_create(config, NULL, PHY_INTERFACE_MODE_XAUI, in tn40_phy_register()
65 if (IS_ERR(phylink)) in tn40_phy_register()
66 return PTR_ERR(phylink); in tn40_phy_register()
69 priv->phylink = phylink; in tn40_phy_register()
75 phylink_destroy(priv->phylink); in tn40_phy_unregister()
/linux/Documentation/networking/
A Dsfp-phylink.rst4 phylink chapter
98 #include <linux/phylink.h>
104 struct phylink *phylink;
173 internally by phylink.
286 phylink, via:
362 struct phylink *phylink;
365 if (IS_ERR(phylink)) {
366 err = PTR_ERR(phylink);
370 priv->phylink = phylink;
377 phylink_destroy(priv->phylink);
[all …]
/linux/drivers/net/phy/
A Dphylink.c46 struct phylink { struct
1216 pl->pcs->phylink = NULL; in phylink_major_config()
1218 pcs->phylink = pl; in phylink_major_config()
1464 struct phylink *pl = container_of(w, struct phylink, resolve); in phylink_resolve()
1606 struct phylink *pl = container_of(t, struct phylink, link_poll); in phylink_fixed_poll()
1702 struct phylink *pl; in phylink_create()
1822 struct phylink *pl = phydev->phylink; in phylink_phy_change()
1957 phy->phylink = pl; in phylink_bringup_phy()
2195 struct phylink *pl = pcs->phylink; in phylink_pcs_change()
2204 struct phylink *pl = data; in phylink_link_handler()
[all …]
/linux/drivers/net/ethernet/meta/fbnic/
A Dfbnic_phylink.c134 struct phylink *phylink; in fbnic_phylink_init() local
152 phylink = phylink_create(&fbn->phylink_config, NULL, in fbnic_phylink_init()
155 if (IS_ERR(phylink)) in fbnic_phylink_init()
156 return PTR_ERR(phylink); in fbnic_phylink_init()
158 fbn->phylink = phylink; in fbnic_phylink_init()
A Dfbnic_netdev.h28 struct phylink *phylink; member
/linux/drivers/net/ethernet/wangxun/ngbe/
A Dngbe_mdio.c118 struct phylink *phylink; in ngbe_phylink_init() local
134 phylink = phylink_create(config, NULL, phy_mode, &ngbe_mac_ops); in ngbe_phylink_init()
135 if (IS_ERR(phylink)) in ngbe_phylink_init()
136 return PTR_ERR(phylink); in ngbe_phylink_init()
138 wx->phylink = phylink; in ngbe_phylink_init()
A Dngbe_main.c318 phylink_stop(wx->phylink); in ngbe_down()
341 phylink_start(wx->phylink); in ngbe_up()
370 err = phylink_connect_phy(wx->phylink, wx->phydev); in ngbe_open()
386 phylink_disconnect_phy(wx->phylink); in ngbe_open()
414 phylink_disconnect_phy(wx->phylink); in ngbe_close()
699 phylink_destroy(wx->phylink); in ngbe_probe()
729 phylink_destroy(wx->phylink); in ngbe_remove()
/linux/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_netdev.c104 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()
314 if (port && port->phylink) { in sparx5_destroy_netdevs()
318 phylink_disconnect_phy(port->phylink); in sparx5_destroy_netdevs()
320 phylink_destroy(port->phylink); in sparx5_destroy_netdevs()
321 port->phylink = NULL; in sparx5_destroy_netdevs()
A Dsparx5_main.c263 struct phylink *phylink; in sparx5_create_port() local
330 phylink = phylink_create(&spx5_port->phylink_config, in sparx5_create_port()
334 if (IS_ERR(phylink)) in sparx5_create_port()
335 return PTR_ERR(phylink); in sparx5_create_port()
337 spx5_port->phylink = phylink; in sparx5_create_port()
/linux/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-mac.c349 phylink_start(mac->phylink); in dpaa2_mac_start()
356 phylink_stop(mac->phylink); in dpaa2_mac_stop()
367 struct phylink *phylink; in dpaa2_mac_connect() local
427 phylink = phylink_create(&mac->phylink_config, in dpaa2_mac_connect()
430 if (IS_ERR(phylink)) { in dpaa2_mac_connect()
431 err = PTR_ERR(phylink); in dpaa2_mac_connect()
434 mac->phylink = phylink; in dpaa2_mac_connect()
437 err = phylink_fwnode_phy_connect(mac->phylink, dpmac_node, 0); in dpaa2_mac_connect()
447 phylink_destroy(mac->phylink); in dpaa2_mac_connect()
457 phylink_disconnect_phy(mac->phylink); in dpaa2_mac_disconnect()
[all …]
A Ddpaa2-mac.h24 struct phylink *phylink; member
/linux/drivers/net/ethernet/freescale/fs_enet/
A Dfs_enet-main.c603 phylink_stop(fep->phylink); in fs_timeout_work()
604 phylink_start(fep->phylink); in fs_timeout_work()
684 phylink_start(fep->phylink); in fs_enet_open()
699 phylink_stop(fep->phylink); in fs_enet_close()
706 phylink_disconnect_phy(fep->phylink); in fs_enet_close()
861 struct phylink *phylink; in fs_enet_probe() local
935 if (IS_ERR(phylink)) { in fs_enet_probe()
936 ret = PTR_ERR(phylink); in fs_enet_probe()
940 fep->phylink = phylink; in fs_enet_probe()
989 phylink_destroy(fep->phylink); in fs_enet_probe()
[all …]
/linux/drivers/net/ethernet/wangxun/txgbe/
A Dtxgbe_phy.c257 struct phylink *phylink; in txgbe_phylink_init() local
276 phylink = phylink_create(config, fwnode, phy_mode, &txgbe_mac_ops); in txgbe_phylink_init()
277 if (IS_ERR(phylink)) in txgbe_phylink_init()
278 return PTR_ERR(phylink); in txgbe_phylink_init()
283 ret = phylink_connect_phy(phylink, wx->phydev); in txgbe_phylink_init()
285 phylink_destroy(phylink); in txgbe_phylink_init()
290 wx->phylink = phylink; in txgbe_phylink_init()
779 phylink_destroy(wx->phylink); in txgbe_init_phy()
791 phylink_disconnect_phy(txgbe->wx->phylink); in txgbe_remove_phy()
792 phylink_destroy(txgbe->wx->phylink); in txgbe_remove_phy()
[all …]
/linux/drivers/net/usb/
A Dasix_devices.c366 phylink_start(priv->phylink); in ax88772_reset()
615 phylink_suspend(priv->phylink, false); in ax88772_suspend()
650 phylink_resume(priv->phylink); in ax88772_resume()
799 struct phylink *phylink; in ax88772_phylink_setup() local
818 if (IS_ERR(phylink)) in ax88772_phylink_setup()
819 return PTR_ERR(phylink); in ax88772_phylink_setup()
821 priv->phylink = phylink; in ax88772_phylink_setup()
926 phylink_destroy(priv->phylink); in ax88772_bind()
937 phylink_stop(priv->phylink); in ax88772_stop()
947 phylink_disconnect_phy(priv->phylink); in ax88772_unbind()
[all …]
/linux/drivers/net/ethernet/
A Djme.c388 u32 phylink, bmsr; in jme_linkstat_from_phy() local
395 return phylink; in jme_linkstat_from_phy()
431 phylink = PHY_LINK_UP; in jme_check_link()
468 if (jme->phylink == phylink) { in jme_check_link()
475 jme->phylink = phylink; in jme_check_link()
548 jme->phylink = 0; in jme_check_link()
1169 u32 phylink; in jme_shutdown_nic() local
1924 jme->phylink = 0; in jme_close()
2316 jme->phylink = 0; in jme_tx_timeout()
2987 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
/linux/drivers/net/ethernet/atheros/
A Dag71xx.c371 struct phylink *phylink; member
1076 struct phylink *phylink; in ag71xx_phylink_setup() local
1111 if (IS_ERR(phylink)) in ag71xx_phylink_setup()
1112 return PTR_ERR(phylink); in ag71xx_phylink_setup()
1114 ag->phylink = phylink; in ag71xx_phylink_setup()
1424 phylink_start(ag->phylink); in ag71xx_open()
1430 phylink_disconnect_phy(ag->phylink); in ag71xx_open()
1438 phylink_stop(ag->phylink); in ag71xx_stop()
1439 phylink_disconnect_phy(ag->phylink); in ag71xx_stop()
1589 phylink_stop(ag->phylink); in ag71xx_restart_work_func()
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
A Dlan966x_main.c192 phylink_start(port->phylink); in lan966x_port_open()
202 phylink_stop(port->phylink); in lan966x_port_stop()
203 phylink_disconnect_phy(port->phylink); in lan966x_port_stop()
756 if (port->phylink) { in lan966x_cleanup_ports()
760 phylink_destroy(port->phylink); in lan966x_cleanup_ports()
761 port->phylink = NULL; in lan966x_cleanup_ports()
791 struct phylink *phylink; in lan966x_probe_port() local
852 phylink = phylink_create(&port->phylink_config, in lan966x_probe_port()
856 if (IS_ERR(phylink)) { in lan966x_probe_port()
858 return PTR_ERR(phylink); in lan966x_probe_port()
[all …]
/linux/drivers/net/ethernet/freescale/fman/
A Dmac.h29 struct phylink *phylink; member
/linux/drivers/net/pcs/
A DKconfig18 This module provides helpers to phylink for managing the Lynx PCS
25 This module provides helpers to phylink for managing the LynxI PCS
/linux/drivers/net/ethernet/mscc/
A Docelot.h49 struct phylink *phylink; member
A Docelot_net.c540 phylink_start(priv->phylink); in ocelot_port_open()
549 phylink_stop(priv->phylink); in ocelot_port_stop()
1727 struct phylink *phylink; in ocelot_port_phylink_create() local
1764 if (IS_ERR(phylink)) { in ocelot_port_phylink_create()
1765 err = PTR_ERR(phylink); in ocelot_port_phylink_create()
1770 priv->phylink = phylink; in ocelot_port_phylink_create()
1775 phylink_destroy(phylink); in ocelot_port_phylink_create()
1776 priv->phylink = NULL; in ocelot_port_phylink_create()
1859 if (priv->phylink) { in ocelot_release_port()
1861 phylink_disconnect_phy(priv->phylink); in ocelot_release_port()
[all …]
/linux/drivers/net/ethernet/wangxun/libwx/
A Dwx_ethtool.c219 return phylink_ethtool_nway_reset(wx->phylink); in wx_nway_reset()
228 return phylink_ethtool_ksettings_get(wx->phylink, cmd); in wx_get_link_ksettings()
237 return phylink_ethtool_ksettings_set(wx->phylink, cmd); in wx_set_link_ksettings()
246 phylink_ethtool_get_pauseparam(wx->phylink, pause); in wx_get_pauseparam()
255 return phylink_ethtool_set_pauseparam(wx->phylink, pause); in wx_set_pauseparam()
/linux/drivers/net/ethernet/freescale/dpaa/
A Ddpaa_ethtool.c62 return phylink_ethtool_ksettings_get(mac_dev->phylink, cmd); in dpaa_get_link_ksettings()
71 return phylink_ethtool_ksettings_set(mac_dev->phylink, cmd); in dpaa_set_link_ksettings()
99 return phylink_ethtool_nway_reset(mac_dev->phylink); in dpaa_nway_reset()
108 phylink_ethtool_get_pauseparam(mac_dev->phylink, epause); in dpaa_get_pauseparam()
117 return phylink_ethtool_set_pauseparam(mac_dev->phylink, epause); in dpaa_set_pauseparam()

Completed in 61 milliseconds

1234