Home
last modified time | relevance | path

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

123

/openbmc/linux/include/linux/
H A Dphylink.h214 struct phylink_config { struct
220 void (*get_fixed_state)(struct phylink_config *config, argument
226 void phylink_limit_mac_speed(struct phylink_config *config, u32 max_speed); argument
241 void (*validate)(struct phylink_config *config,
244 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
246 int (*mac_prepare)(struct phylink_config *config, unsigned int mode,
248 void (*mac_config)(struct phylink_config *config, unsigned int mode,
250 int (*mac_finish)(struct phylink_config *config, unsigned int mode,
252 void (*mac_link_down)(struct phylink_config *config, unsigned int mode,
254 void (*mac_link_up)(struct phylink_config *config,
[all …]
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-mac.c13 container_of((config), struct dpaa2_mac, phylink_config)
152 static struct phylink_pcs *dpaa2_mac_select_pcs(struct phylink_config *config, in dpaa2_mac_select_pcs()
160 static void dpaa2_mac_config(struct phylink_config *config, unsigned int mode, in dpaa2_mac_config()
193 static void dpaa2_mac_link_up(struct phylink_config *config, in dpaa2_mac_link_up()
229 static void dpaa2_mac_link_down(struct phylink_config *config, in dpaa2_mac_link_down()
307 __set_bit(mac->if_mode, mac->phylink_config.supported_interfaces); in dpaa2_mac_set_supported_interfaces()
313 mac->phylink_config.supported_interfaces); in dpaa2_mac_set_supported_interfaces()
315 mac->phylink_config.supported_interfaces); in dpaa2_mac_set_supported_interfaces()
338 __set_bit(intf, mac->phylink_config.supported_interfaces); in dpaa2_mac_set_supported_interfaces()
417 memset(&mac->phylink_config, 0, sizeof(mac->phylink_config)); in dpaa2_mac_connect()
[all …]
H A Ddpaa2-mac.h23 struct phylink_config phylink_config; member
/openbmc/linux/drivers/net/ethernet/freescale/fman/
H A Dmac.h30 struct phylink_config phylink_config; member
62 *fman_config_to_mac(struct phylink_config *config) in fman_config_to_mac()
64 return container_of(config, struct mac_device, phylink_config); in fman_config_to_mac()
H A Dfman_memac.c621 static void memac_validate(struct phylink_config *config, in memac_validate()
664 static struct phylink_pcs *memac_select_pcs(struct phylink_config *config, in memac_select_pcs()
682 static int memac_prepare(struct phylink_config *config, unsigned int mode, in memac_prepare()
699 static void memac_mac_config(struct phylink_config *config, unsigned int mode, in memac_mac_config()
713 static void memac_link_up(struct phylink_config *config, struct phy_device *phy, in memac_link_up()
765 static void memac_link_down(struct phylink_config *config, unsigned int mode, in memac_link_down()
1171 supported = mac_dev->phylink_config.supported_interfaces; in memac_initialization()
1213 mac_dev->phylink_config.mac_capabilities = capabilities; in memac_initialization()
1237 mac_dev->phylink_config.ovr_an_inband = true; in memac_initialization()
H A Dfman_tgec.c434 static void tgec_mac_config(struct phylink_config *config, unsigned int mode, in tgec_mac_config()
439 static void tgec_link_up(struct phylink_config *config, struct phy_device *phy, in tgec_link_up()
459 static void tgec_link_down(struct phylink_config *config, unsigned int mode, in tgec_link_down()
793 mac_dev->phylink_config.supported_interfaces); in tgec_initialization()
794 mac_dev->phylink_config.mac_capabilities = in tgec_initialization()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_phylink.c11 static struct phylink_pcs *lan966x_phylink_mac_select(struct phylink_config *config, in lan966x_phylink_mac_select()
19 static void lan966x_phylink_mac_config(struct phylink_config *config, in lan966x_phylink_mac_config()
25 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()
68 static void lan966x_phylink_mac_link_down(struct phylink_config *config, in lan966x_phylink_mac_link_down()
H A Dlan966x_main.c828 port->phylink_config.dev = &port->dev->dev; in lan966x_probe_port()
829 port->phylink_config.type = PHYLINK_NETDEV; in lan966x_probe_port()
834 port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | in lan966x_probe_port()
837 phy_interface_set_rgmii(port->phylink_config.supported_interfaces); in lan966x_probe_port()
839 port->phylink_config.supported_interfaces); in lan966x_probe_port()
841 port->phylink_config.supported_interfaces); in lan966x_probe_port()
843 port->phylink_config.supported_interfaces); in lan966x_probe_port()
845 port->phylink_config.supported_interfaces); in lan966x_probe_port()
847 port->phylink_config.supported_interfaces); in lan966x_probe_port()
849 port->phylink_config.supported_interfaces); in lan966x_probe_port()
[all …]
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.h52 struct phylink_config phylink_config; member
56 container_of((config), struct enetc_pf, phylink_config)
H A Denetc_pf.c950 enetc_pl_mac_select_pcs(struct phylink_config *config, phy_interface_t iface) in enetc_pl_mac_select_pcs()
957 static void enetc_pl_mac_config(struct phylink_config *config, in enetc_pl_mac_config()
994 static void enetc_pl_mac_link_up(struct phylink_config *config, in enetc_pl_mac_link_up()
1071 static void enetc_pl_mac_link_down(struct phylink_config *config, in enetc_pl_mac_link_down()
1101 pf->phylink_config.dev = &priv->ndev->dev; in enetc_phylink_create()
1102 pf->phylink_config.type = PHYLINK_NETDEV; in enetc_phylink_create()
1103 pf->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | in enetc_phylink_create()
1107 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
1109 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
1111 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A 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()
H A Dsparx5_main.c300 spx5_port->phylink_config.dev = &spx5_port->ndev->dev; in sparx5_create_port()
301 spx5_port->phylink_config.type = PHYLINK_NETDEV; in sparx5_create_port()
302 spx5_port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | in sparx5_create_port()
307 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
309 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
311 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
313 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
319 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
324 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
328 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
[all …]
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot.h50 struct phylink_config phylink_config; member
/openbmc/linux/drivers/net/ethernet/altera/
H A Daltera_tse_main.c1041 static void alt_tse_mac_config(struct phylink_config *config, unsigned int mode, in alt_tse_mac_config()
1053 static void alt_tse_mac_link_down(struct phylink_config *config, in alt_tse_mac_link_down()
1058 static void alt_tse_mac_link_up(struct phylink_config *config, in alt_tse_mac_link_up()
1083 static struct phylink_pcs *alt_tse_select_pcs(struct phylink_config *config, in alt_tse_select_pcs()
1428 priv->phylink_config.dev = &ndev->dev; in altera_tse_probe()
1429 priv->phylink_config.type = PHYLINK_NETDEV; in altera_tse_probe()
1430 priv->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 | in altera_tse_probe()
1433 phy_interface_set_rgmii(priv->phylink_config.supported_interfaces); in altera_tse_probe()
1435 priv->phylink_config.supported_interfaces); in altera_tse_probe()
1437 priv->phylink_config.supported_interfaces); in altera_tse_probe()
[all …]
/openbmc/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.h41 struct phylink_config phylink_config; member
/openbmc/linux/drivers/net/ethernet/atheros/
H A Dag71xx.c372 struct phylink_config phylink_config; member
1009 static void ag71xx_mac_config(struct phylink_config *config, unsigned int mode, in ag71xx_mac_config()
1028 static void ag71xx_mac_link_down(struct phylink_config *config, in ag71xx_mac_link_down()
1036 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 …]
/openbmc/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_phy.c159 static struct phylink_pcs *txgbe_phylink_mac_select(struct phylink_config *config, in txgbe_phylink_mac_select()
170 static void txgbe_mac_config(struct phylink_config *config, unsigned int mode, in txgbe_mac_config()
175 static void txgbe_mac_link_down(struct phylink_config *config, in txgbe_mac_link_down()
183 static void txgbe_mac_link_up(struct phylink_config *config, in txgbe_mac_link_up()
217 static int txgbe_mac_prepare(struct phylink_config *config, unsigned int mode, in txgbe_mac_prepare()
228 static int txgbe_mac_finish(struct phylink_config *config, unsigned int mode, in txgbe_mac_finish()
251 struct phylink_config *config; in txgbe_phylink_init()
/openbmc/linux/Documentation/networking/
H A 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.
/openbmc/linux/drivers/net/usb/
H A Dasix_devices.c743 static void ax88772_mac_config(struct phylink_config *config, unsigned int mode, in ax88772_mac_config()
749 static void ax88772_mac_link_down(struct phylink_config *config, in ax88772_mac_link_down()
758 static void ax88772_mac_link_up(struct phylink_config *config, in ax88772_mac_link_up()
801 priv->phylink_config.dev = &dev->net->dev; in ax88772_phylink_setup()
802 priv->phylink_config.type = PHYLINK_NETDEV; in ax88772_phylink_setup()
803 priv->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE | in ax88772_phylink_setup()
807 priv->phylink_config.supported_interfaces); in ax88772_phylink_setup()
809 priv->phylink_config.supported_interfaces); in ax88772_phylink_setup()
816 phylink = phylink_create(&priv->phylink_config, dev->net->dev.fwnode, in ax88772_phylink_setup()
H A Dasix.h190 struct phylink_config phylink_config; member
/openbmc/linux/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet_main.c1691 static struct phylink_pcs *axienet_mac_select_pcs(struct phylink_config *config, in axienet_mac_select_pcs()
1704 static void axienet_mac_config(struct phylink_config *config, unsigned int mode, in axienet_mac_config()
1710 static void axienet_mac_link_down(struct phylink_config *config, in axienet_mac_link_down()
1717 static void axienet_mac_link_up(struct phylink_config *config, in axienet_mac_link_up()
2162 lp->phylink_config.dev = &ndev->dev; in axienet_probe()
2163 lp->phylink_config.type = PHYLINK_NETDEV; in axienet_probe()
2164 lp->phylink_config.mac_managed_pm = true; in axienet_probe()
2165 lp->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE | in axienet_probe()
2168 __set_bit(lp->phy_mode, lp->phylink_config.supported_interfaces); in axienet_probe()
2171 lp->phylink_config.supported_interfaces); in axienet_probe()
[all …]
H A Dxilinx_axienet.h447 struct phylink_config phylink_config; member
/openbmc/linux/drivers/net/dsa/microchip/
H A Dlan937x.h20 struct phylink_config *config);
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c6165 static struct mvpp2_port *mvpp2_phylink_to_port(struct phylink_config *config) in mvpp2_phylink_to_port()
6167 return container_of(config, struct mvpp2_port, phylink_config); in mvpp2_phylink_to_port()
6421 static struct phylink_pcs *mvpp2_select_pcs(struct phylink_config *config, in mvpp2_select_pcs()
6436 static int mvpp2_mac_prepare(struct phylink_config *config, unsigned int mode, in mvpp2_mac_prepare()
6489 static void mvpp2_mac_config(struct phylink_config *config, unsigned int mode, in mvpp2_mac_config()
6506 static int mvpp2_mac_finish(struct phylink_config *config, unsigned int mode, in mvpp2_mac_finish()
6548 static void mvpp2_mac_link_up(struct phylink_config *config, in mvpp2_mac_link_up()
6631 static void mvpp2_mac_link_down(struct phylink_config *config, in mvpp2_mac_link_down()
6679 pcs = mvpp2_select_pcs(&port->phylink_config, port->phy_interface); in mvpp2_acpi_start()
6681 mvpp2_mac_prepare(&port->phylink_config, MLO_AN_INBAND, in mvpp2_acpi_start()
[all …]
/openbmc/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c510 static struct phylink_pcs *mtk_mac_select_pcs(struct phylink_config *config, in mtk_mac_select_pcs()
514 phylink_config); in mtk_mac_select_pcs()
529 static void mtk_mac_config(struct phylink_config *config, unsigned int mode, in mtk_mac_config()
533 phylink_config); in mtk_mac_config()
661 static int mtk_mac_finish(struct phylink_config *config, unsigned int mode, in mtk_mac_finish()
665 phylink_config); in mtk_mac_finish()
688 static void mtk_mac_link_down(struct phylink_config *config, unsigned int mode, in mtk_mac_link_down()
692 phylink_config); in mtk_mac_link_down()
768 static void mtk_mac_link_up(struct phylink_config *config, in mtk_mac_link_up()
774 phylink_config); in mtk_mac_link_up()
[all …]

123