Home
last modified time | relevance | path

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

123

/linux-5.19.10/include/linux/
Dphylink.h98 struct phylink_config { struct
104 void (*get_fixed_state)(struct phylink_config *config, argument
125 void (*validate)(struct phylink_config *config, argument
128 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
130 void (*mac_pcs_get_state)(struct phylink_config *config,
132 int (*mac_prepare)(struct phylink_config *config, unsigned int mode,
134 void (*mac_config)(struct phylink_config *config, unsigned int mode,
136 int (*mac_finish)(struct phylink_config *config, unsigned int mode,
138 void (*mac_an_restart)(struct phylink_config *config);
139 void (*mac_link_down)(struct phylink_config *config, unsigned int mode,
[all …]
/linux-5.19.10/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-5.19.10/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()
46 static void lan966x_phylink_mac_link_up(struct phylink_config *config, in lan966x_phylink_mac_link_up()
65 static void lan966x_phylink_mac_link_down(struct phylink_config *config, in lan966x_phylink_mac_link_down()
Dlan966x_main.c765 port->phylink_config.dev = &port->dev->dev; in lan966x_probe_port()
766 port->phylink_config.type = PHYLINK_NETDEV; in lan966x_probe_port()
770 port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | in lan966x_probe_port()
774 port->phylink_config.supported_interfaces); in lan966x_probe_port()
776 port->phylink_config.supported_interfaces); in lan966x_probe_port()
778 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 phylink = phylink_create(&port->phylink_config, in lan966x_probe_port()
Dlan966x_main.h285 struct phylink_config phylink_config; member
/linux-5.19.10/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.c935 enetc_pl_mac_select_pcs(struct phylink_config *config, phy_interface_t iface) in enetc_pl_mac_select_pcs()
942 static void enetc_pl_mac_config(struct phylink_config *config, in enetc_pl_mac_config()
979 static void enetc_pl_mac_link_up(struct phylink_config *config, in enetc_pl_mac_link_up()
1055 static void enetc_pl_mac_link_down(struct phylink_config *config, in enetc_pl_mac_link_down()
1079 pf->phylink_config.dev = &priv->ndev->dev; in enetc_phylink_create()
1080 pf->phylink_config.type = PHYLINK_NETDEV; in enetc_phylink_create()
1081 pf->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | in enetc_phylink_create()
1085 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
1087 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
1089 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
[all …]
/linux-5.19.10/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.c293 spx5_port->phylink_config.dev = &spx5_port->ndev->dev; in sparx5_create_port()
294 spx5_port->phylink_config.type = PHYLINK_NETDEV; in sparx5_create_port()
295 spx5_port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | in sparx5_create_port()
300 spx5_port->phylink_config.supported_interfaces); 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()
312 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
317 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
321 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
[all …]
/linux-5.19.10/drivers/net/ethernet/mscc/
Docelot.h50 struct phylink_config phylink_config; member
Docelot_net.c1667 static void vsc7514_phylink_mac_config(struct phylink_config *config, in vsc7514_phylink_mac_config()
1694 static void vsc7514_phylink_mac_link_down(struct phylink_config *config, in vsc7514_phylink_mac_link_down()
1707 static void vsc7514_phylink_mac_link_up(struct phylink_config *config, in vsc7514_phylink_mac_link_up()
1787 priv->phylink_config.dev = &priv->dev->dev; in ocelot_port_phylink_create()
1788 priv->phylink_config.type = PHYLINK_NETDEV; in ocelot_port_phylink_create()
1789 priv->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | in ocelot_port_phylink_create()
1793 priv->phylink_config.supported_interfaces); in ocelot_port_phylink_create()
1795 phylink = phylink_create(&priv->phylink_config, in ocelot_port_phylink_create()
/linux-5.19.10/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.h40 struct phylink_config phylink_config; member
Dam65-cpsw-nuss.c1409 static void am65_cpsw_nuss_mac_config(struct phylink_config *config, unsigned int mode, in am65_cpsw_nuss_mac_config()
1415 static void am65_cpsw_nuss_mac_link_down(struct phylink_config *config, unsigned int mode, in am65_cpsw_nuss_mac_link_down()
1419 phylink_config); in am65_cpsw_nuss_mac_link_down()
1440 static void am65_cpsw_nuss_mac_link_up(struct phylink_config *config, struct phy_device *phy, in am65_cpsw_nuss_mac_link_up()
1445 phylink_config); in am65_cpsw_nuss_mac_link_up()
1980 port->slave.phylink_config.dev = &port->ndev->dev; in am65_cpsw_nuss_init_port_ndev()
1981 port->slave.phylink_config.type = PHYLINK_NETDEV; in am65_cpsw_nuss_init_port_ndev()
1982 port->slave.phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 | MAC_100 | MAC_1000FD; in am65_cpsw_nuss_init_port_ndev()
1984 phy_interface_set_rgmii(port->slave.phylink_config.supported_interfaces); in am65_cpsw_nuss_init_port_ndev()
1986 phylink = phylink_create(&port->slave.phylink_config, in am65_cpsw_nuss_init_port_ndev()
/linux-5.19.10/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-5.19.10/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-5.19.10/drivers/net/ethernet/xilinx/
Dxilinx_axienet_main.c1643 static struct phylink_pcs *axienet_mac_select_pcs(struct phylink_config *config, in axienet_mac_select_pcs()
1656 static void axienet_mac_config(struct phylink_config *config, unsigned int mode, in axienet_mac_config()
1662 static void axienet_mac_link_down(struct phylink_config *config, in axienet_mac_link_down()
1669 static void axienet_mac_link_up(struct phylink_config *config, in axienet_mac_link_up()
2107 lp->phylink_config.dev = &ndev->dev; in axienet_probe()
2108 lp->phylink_config.type = PHYLINK_NETDEV; in axienet_probe()
2109 lp->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE | in axienet_probe()
2112 __set_bit(lp->phy_mode, lp->phylink_config.supported_interfaces); in axienet_probe()
2115 lp->phylink_config.supported_interfaces); in axienet_probe()
2117 lp->phylink_config.supported_interfaces); in axienet_probe()
[all …]
Dxilinx_axienet.h438 struct phylink_config phylink_config; member
/linux-5.19.10/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c356 static struct phylink_pcs *mtk_mac_select_pcs(struct phylink_config *config, in mtk_mac_select_pcs()
360 phylink_config); in mtk_mac_select_pcs()
375 static void mtk_mac_config(struct phylink_config *config, unsigned int mode, in mtk_mac_config()
379 phylink_config); in mtk_mac_config()
523 static int mtk_mac_finish(struct phylink_config *config, unsigned int mode, in mtk_mac_finish()
527 phylink_config); in mtk_mac_finish()
550 static void mtk_mac_pcs_get_state(struct phylink_config *config, in mtk_mac_pcs_get_state()
554 phylink_config); in mtk_mac_pcs_get_state()
582 static void mtk_mac_link_down(struct phylink_config *config, unsigned int mode, in mtk_mac_link_down()
586 phylink_config); in mtk_mac_link_down()
[all …]
/linux-5.19.10/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c6113 static struct mvpp2_port *mvpp2_phylink_to_port(struct phylink_config *config) in mvpp2_phylink_to_port()
6115 return container_of(config, struct mvpp2_port, phylink_config); in mvpp2_phylink_to_port()
6370 static struct phylink_pcs *mvpp2_select_pcs(struct phylink_config *config, in mvpp2_select_pcs()
6385 static int mvpp2_mac_prepare(struct phylink_config *config, unsigned int mode, in mvpp2_mac_prepare()
6438 static void mvpp2_mac_config(struct phylink_config *config, unsigned int mode, in mvpp2_mac_config()
6455 static int mvpp2_mac_finish(struct phylink_config *config, unsigned int mode, in mvpp2_mac_finish()
6497 static void mvpp2_mac_link_up(struct phylink_config *config, in mvpp2_mac_link_up()
6580 static void mvpp2_mac_link_down(struct phylink_config *config, in mvpp2_mac_link_down()
6629 pcs = mvpp2_select_pcs(&port->phylink_config, port->phy_interface); in mvpp2_acpi_start()
6631 mvpp2_mac_prepare(&port->phylink_config, MLO_AN_INBAND, in mvpp2_acpi_start()
[all …]
/linux-5.19.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac.h232 struct phylink_config phylink_config; member
/linux-5.19.10/drivers/net/dsa/b53/
Db53_serdes.h116 struct phylink_config *config);
/linux-5.19.10/net/dsa/
Dport.c1403 static void dsa_port_phylink_validate(struct phylink_config *config, in dsa_port_phylink_validate()
1419 static void dsa_port_phylink_mac_pcs_get_state(struct phylink_config *config, in dsa_port_phylink_mac_pcs_get_state()
1441 dsa_port_phylink_mac_select_pcs(struct phylink_config *config, in dsa_port_phylink_mac_select_pcs()
1454 static void dsa_port_phylink_mac_config(struct phylink_config *config, in dsa_port_phylink_mac_config()
1467 static void dsa_port_phylink_mac_an_restart(struct phylink_config *config) in dsa_port_phylink_mac_an_restart()
1478 static void dsa_port_phylink_mac_link_down(struct phylink_config *config, in dsa_port_phylink_mac_link_down()
1498 static void dsa_port_phylink_mac_link_up(struct phylink_config *config, in dsa_port_phylink_mac_link_up()
/linux-5.19.10/drivers/net/ethernet/marvell/
Dmvneta.c530 struct phylink_config phylink_config; member
4016 static struct phylink_pcs *mvneta_mac_select_pcs(struct phylink_config *config, in mvneta_mac_select_pcs()
4025 static int mvneta_mac_prepare(struct phylink_config *config, unsigned int mode, in mvneta_mac_prepare()
4059 static void mvneta_mac_config(struct phylink_config *config, unsigned int mode, in mvneta_mac_config()
4115 static int mvneta_mac_finish(struct phylink_config *config, unsigned int mode, in mvneta_mac_finish()
4157 static void mvneta_mac_link_down(struct phylink_config *config, in mvneta_mac_link_down()
4177 static void mvneta_mac_link_up(struct phylink_config *config, in mvneta_mac_link_up()
5462 pp->phylink_config.dev = &dev->dev; in mvneta_probe()
5463 pp->phylink_config.type = PHYLINK_NETDEV; in mvneta_probe()
5464 pp->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 | in mvneta_probe()
[all …]
/linux-5.19.10/drivers/net/ethernet/cadence/
Dmacb_main.c586 static void macb_mac_config(struct phylink_config *config, unsigned int mode, in macb_mac_config()
644 static void macb_mac_link_down(struct phylink_config *config, unsigned int mode, in macb_mac_link_down()
665 static void macb_mac_link_up(struct phylink_config *config, in macb_mac_link_up()
729 static struct phylink_pcs *macb_mac_select_pcs(struct phylink_config *config, in macb_mac_select_pcs()
789 static void macb_get_pcs_fixed_state(struct phylink_config *config, in macb_get_pcs_fixed_state()
806 bp->phylink_config.dev = &dev->dev; in macb_mii_probe()
807 bp->phylink_config.type = PHYLINK_NETDEV; in macb_mii_probe()
810 bp->phylink_config.poll_fixed_state = true; in macb_mii_probe()
811 bp->phylink_config.get_fixed_state = macb_get_pcs_fixed_state; in macb_mii_probe()
814 bp->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | in macb_mii_probe()
[all …]

123