Home
last modified time | relevance | path

Searched refs:phylink_config (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.1.9/include/linux/
Dphylink.h133 struct phylink_config { struct
140 void (*get_fixed_state)(struct phylink_config *config, argument
161 void (*validate)(struct phylink_config *config, argument
164 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
166 void (*mac_pcs_get_state)(struct phylink_config *config,
168 int (*mac_prepare)(struct phylink_config *config, unsigned int mode,
170 void (*mac_config)(struct phylink_config *config, unsigned int mode,
172 int (*mac_finish)(struct phylink_config *config, unsigned int mode,
174 void (*mac_an_restart)(struct phylink_config *config);
175 void (*mac_link_down)(struct phylink_config *config, unsigned int mode,
[all …]
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-mac.c13 container_of((config), struct dpaa2_mac, phylink_config)
146 static struct phylink_pcs *dpaa2_mac_select_pcs(struct phylink_config *config, in dpaa2_mac_select_pcs()
154 static void dpaa2_mac_config(struct phylink_config *config, unsigned int mode, in dpaa2_mac_config()
186 static void dpaa2_mac_link_up(struct phylink_config *config, in dpaa2_mac_link_up()
222 static void dpaa2_mac_link_down(struct phylink_config *config, in dpaa2_mac_link_down()
302 __set_bit(mac->if_mode, mac->phylink_config.supported_interfaces); in dpaa2_mac_set_supported_interfaces()
308 mac->phylink_config.supported_interfaces); in dpaa2_mac_set_supported_interfaces()
310 mac->phylink_config.supported_interfaces); in dpaa2_mac_set_supported_interfaces()
333 __set_bit(intf, mac->phylink_config.supported_interfaces); in dpaa2_mac_set_supported_interfaces()
404 memset(&mac->phylink_config, 0, sizeof(mac->phylink_config)); in dpaa2_mac_connect()
[all …]
Ddpaa2-mac.h23 struct phylink_config phylink_config; member
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_phylink.c12 static struct phylink_pcs *lan966x_phylink_mac_select(struct phylink_config *config, in lan966x_phylink_mac_select()
20 static void lan966x_phylink_mac_config(struct phylink_config *config, in lan966x_phylink_mac_config()
26 static int lan966x_phylink_mac_prepare(struct phylink_config *config, in lan966x_phylink_mac_prepare()
47 static void lan966x_phylink_mac_link_up(struct phylink_config *config, in lan966x_phylink_mac_link_up()
69 static void lan966x_phylink_mac_link_down(struct phylink_config *config, in lan966x_phylink_mac_link_down()
Dlan966x_main.c770 port->phylink_config.dev = &port->dev->dev; in lan966x_probe_port()
771 port->phylink_config.type = PHYLINK_NETDEV; in lan966x_probe_port()
775 port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | in lan966x_probe_port()
778 phy_interface_set_rgmii(port->phylink_config.supported_interfaces); in lan966x_probe_port()
780 port->phylink_config.supported_interfaces); in lan966x_probe_port()
782 port->phylink_config.supported_interfaces); in lan966x_probe_port()
784 port->phylink_config.supported_interfaces); in lan966x_probe_port()
786 port->phylink_config.supported_interfaces); in lan966x_probe_port()
788 port->phylink_config.supported_interfaces); in lan966x_probe_port()
790 port->phylink_config.supported_interfaces); in lan966x_probe_port()
[all …]
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/
Denetc_pf.h52 struct phylink_config phylink_config; member
56 container_of((config), struct enetc_pf, phylink_config)
Denetc_pf.c984 enetc_pl_mac_select_pcs(struct phylink_config *config, phy_interface_t iface) in enetc_pl_mac_select_pcs()
991 static void enetc_pl_mac_config(struct phylink_config *config, in enetc_pl_mac_config()
1028 static void enetc_pl_mac_link_up(struct phylink_config *config, in enetc_pl_mac_link_up()
1104 static void enetc_pl_mac_link_down(struct phylink_config *config, in enetc_pl_mac_link_down()
1128 pf->phylink_config.dev = &priv->ndev->dev; in enetc_phylink_create()
1129 pf->phylink_config.type = PHYLINK_NETDEV; in enetc_phylink_create()
1130 pf->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | in enetc_phylink_create()
1134 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
1136 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
1138 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
[all …]
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/
Dsparx5_phylink.c30 sparx5_phylink_mac_select_pcs(struct phylink_config *config, in sparx5_phylink_mac_select_pcs()
38 static void sparx5_phylink_mac_config(struct phylink_config *config, in sparx5_phylink_mac_config()
45 static void sparx5_phylink_mac_link_up(struct phylink_config *config, in sparx5_phylink_mac_link_up()
68 static void sparx5_phylink_mac_link_down(struct phylink_config *config, in sparx5_phylink_mac_link_down()
Dsparx5_main.c295 spx5_port->phylink_config.dev = &spx5_port->ndev->dev; in sparx5_create_port()
296 spx5_port->phylink_config.type = PHYLINK_NETDEV; in sparx5_create_port()
297 spx5_port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | in sparx5_create_port()
302 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
304 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
306 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
308 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
314 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
319 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
323 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
[all …]
/linux-6.1.9/drivers/net/ethernet/altera/
Daltera_tse_main.c1039 static void alt_tse_mac_an_restart(struct phylink_config *config) in alt_tse_mac_an_restart()
1043 static void alt_tse_mac_config(struct phylink_config *config, unsigned int mode, in alt_tse_mac_config()
1055 static void alt_tse_mac_link_down(struct phylink_config *config, in alt_tse_mac_link_down()
1060 static void alt_tse_mac_link_up(struct phylink_config *config, in alt_tse_mac_link_up()
1085 static struct phylink_pcs *alt_tse_select_pcs(struct phylink_config *config, in alt_tse_select_pcs()
1395 priv->phylink_config.dev = &ndev->dev; in altera_tse_probe()
1396 priv->phylink_config.type = PHYLINK_NETDEV; in altera_tse_probe()
1397 priv->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 | in altera_tse_probe()
1400 phy_interface_set_rgmii(priv->phylink_config.supported_interfaces); in altera_tse_probe()
1402 priv->phylink_config.supported_interfaces); in altera_tse_probe()
[all …]
/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot.h50 struct phylink_config phylink_config; member
/linux-6.1.9/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.h40 struct phylink_config phylink_config; member
Dam65-cpsw-nuss.c1410 static void am65_cpsw_nuss_mac_config(struct phylink_config *config, unsigned int mode, in am65_cpsw_nuss_mac_config()
1414 phylink_config); in am65_cpsw_nuss_mac_config()
1423 static void am65_cpsw_nuss_mac_link_down(struct phylink_config *config, unsigned int mode, in am65_cpsw_nuss_mac_link_down()
1427 phylink_config); in am65_cpsw_nuss_mac_link_down()
1448 static void am65_cpsw_nuss_mac_link_up(struct phylink_config *config, struct phy_device *phy, in am65_cpsw_nuss_mac_link_up()
1453 phylink_config); in am65_cpsw_nuss_mac_link_up()
1994 port->slave.phylink_config.dev = &port->ndev->dev; in am65_cpsw_nuss_init_port_ndev()
1995 port->slave.phylink_config.type = PHYLINK_NETDEV; in am65_cpsw_nuss_init_port_ndev()
1996 port->slave.phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 | MAC_100 | MAC_1000FD; in am65_cpsw_nuss_init_port_ndev()
1999 phy_interface_set_rgmii(port->slave.phylink_config.supported_interfaces); in am65_cpsw_nuss_init_port_ndev()
[all …]
/linux-6.1.9/Documentation/networking/
Dsfp-phylink.rst105 struct phylink_config phylink_config;
239 priv->phylink_config.dev = &dev.dev;
240 priv->phylink_config.type = PHYLINK_NETDEV;
242 phylink = phylink_create(&priv->phylink_config, node, phy_mode, &phylink_ops);
266 it should set ``priv->phylink_config.pcs_poll = true;`` in step 9.
/linux-6.1.9/drivers/net/ethernet/atheros/
Dag71xx.c371 struct phylink_config phylink_config; member
1008 static void ag71xx_mac_config(struct phylink_config *config, unsigned int mode, in ag71xx_mac_config()
1027 static void ag71xx_mac_link_down(struct phylink_config *config, in ag71xx_mac_link_down()
1035 static void ag71xx_mac_link_up(struct phylink_config *config, in ag71xx_mac_link_up()
1099 ag->phylink_config.dev = &ag->ndev->dev; in ag71xx_phylink_setup()
1100 ag->phylink_config.type = PHYLINK_NETDEV; in ag71xx_phylink_setup()
1101 ag->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE | in ag71xx_phylink_setup()
1109 ag->phylink_config.supported_interfaces); in ag71xx_phylink_setup()
1115 ag->phylink_config.supported_interfaces); in ag71xx_phylink_setup()
1119 ag->phylink_config.supported_interfaces); in ag71xx_phylink_setup()
[all …]
/linux-6.1.9/drivers/net/dsa/microchip/
Dlan937x.h20 struct phylink_config *config);
Dksz8.h53 struct phylink_config *config);
/linux-6.1.9/drivers/net/usb/
Dasix_devices.c729 static void ax88772_mac_config(struct phylink_config *config, unsigned int mode, in ax88772_mac_config()
735 static void ax88772_mac_link_down(struct phylink_config *config, in ax88772_mac_link_down()
744 static void ax88772_mac_link_up(struct phylink_config *config, in ax88772_mac_link_up()
788 priv->phylink_config.dev = &dev->net->dev; in ax88772_phylink_setup()
789 priv->phylink_config.type = PHYLINK_NETDEV; in ax88772_phylink_setup()
790 priv->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE | in ax88772_phylink_setup()
794 priv->phylink_config.supported_interfaces); in ax88772_phylink_setup()
796 priv->phylink_config.supported_interfaces); in ax88772_phylink_setup()
803 phylink = phylink_create(&priv->phylink_config, dev->net->dev.fwnode, in ax88772_phylink_setup()
Dasix.h190 struct phylink_config phylink_config; member
/linux-6.1.9/drivers/net/ethernet/xilinx/
Dxilinx_axienet_main.c1669 static struct phylink_pcs *axienet_mac_select_pcs(struct phylink_config *config, in axienet_mac_select_pcs()
1682 static void axienet_mac_config(struct phylink_config *config, unsigned int mode, in axienet_mac_config()
1688 static void axienet_mac_link_down(struct phylink_config *config, in axienet_mac_link_down()
1695 static void axienet_mac_link_up(struct phylink_config *config, in axienet_mac_link_up()
2136 lp->phylink_config.dev = &ndev->dev; in axienet_probe()
2137 lp->phylink_config.type = PHYLINK_NETDEV; in axienet_probe()
2138 lp->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE | in axienet_probe()
2141 __set_bit(lp->phy_mode, lp->phylink_config.supported_interfaces); in axienet_probe()
2144 lp->phylink_config.supported_interfaces); in axienet_probe()
2146 lp->phylink_config.supported_interfaces); in axienet_probe()
[all …]
Dxilinx_axienet.h444 struct phylink_config phylink_config; member
/linux-6.1.9/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c379 static struct phylink_pcs *mtk_mac_select_pcs(struct phylink_config *config, in mtk_mac_select_pcs()
383 phylink_config); in mtk_mac_select_pcs()
398 static void mtk_mac_config(struct phylink_config *config, unsigned int mode, in mtk_mac_config()
402 phylink_config); in mtk_mac_config()
546 static int mtk_mac_finish(struct phylink_config *config, unsigned int mode, in mtk_mac_finish()
550 phylink_config); in mtk_mac_finish()
573 static void mtk_mac_pcs_get_state(struct phylink_config *config, in mtk_mac_pcs_get_state()
577 phylink_config); in mtk_mac_pcs_get_state()
605 static void mtk_mac_link_down(struct phylink_config *config, unsigned int mode, in mtk_mac_link_down()
609 phylink_config); in mtk_mac_link_down()
[all …]
/linux-6.1.9/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c6111 static struct mvpp2_port *mvpp2_phylink_to_port(struct phylink_config *config) in mvpp2_phylink_to_port()
6113 return container_of(config, struct mvpp2_port, phylink_config); in mvpp2_phylink_to_port()
6368 static struct phylink_pcs *mvpp2_select_pcs(struct phylink_config *config, in mvpp2_select_pcs()
6383 static int mvpp2_mac_prepare(struct phylink_config *config, unsigned int mode, in mvpp2_mac_prepare()
6436 static void mvpp2_mac_config(struct phylink_config *config, unsigned int mode, in mvpp2_mac_config()
6453 static int mvpp2_mac_finish(struct phylink_config *config, unsigned int mode, in mvpp2_mac_finish()
6495 static void mvpp2_mac_link_up(struct phylink_config *config, in mvpp2_mac_link_up()
6578 static void mvpp2_mac_link_down(struct phylink_config *config, in mvpp2_mac_link_down()
6627 pcs = mvpp2_select_pcs(&port->phylink_config, port->phy_interface); in mvpp2_acpi_start()
6629 mvpp2_mac_prepare(&port->phylink_config, MLO_AN_INBAND, in mvpp2_acpi_start()
[all …]
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/
Dstmmac.h237 struct phylink_config phylink_config; member
/linux-6.1.9/drivers/net/dsa/b53/
Db53_serdes.h116 struct phylink_config *config);

123