Home
last modified time | relevance | path

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

123

/linux/include/linux/
H A Dphylink.h138 * struct phylink_config - PHYLINK configuration structure
164 struct phylink_config { struct
172 void (*get_fixed_state)(struct phylink_config *config, argument
187 void phylink_limit_mac_speed(struct phylink_config *config, u32 max_speed); argument
205 unsigned long (*mac_get_caps)(struct phylink_config *config,
207 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
209 int (*mac_prepare)(struct phylink_config *config, unsigned int mode,
211 void (*mac_config)(struct phylink_config *config, unsigned int mode,
213 int (*mac_finish)(struct phylink_config *config, unsigned int mode,
215 void (*mac_link_down)(struct phylink_config *confi
[all...]
/linux/drivers/net/ethernet/tehuti/
H A Dtn40_phy.c10 static struct tn40_priv *tn40_config_to_priv(struct phylink_config *config) in tn40_config_to_priv()
12 return container_of(config, struct tn40_priv, phylink_config); in tn40_config_to_priv()
15 static void tn40_link_up(struct phylink_config *config, struct phy_device *phy, in tn40_link_up()
25 static void tn40_link_down(struct phylink_config *config, unsigned int mode, in tn40_link_down()
34 static void tn40_mac_config(struct phylink_config *config, unsigned int mode, in tn40_mac_config()
47 struct phylink_config *config; in tn40_phy_register()
57 config = &priv->phylink_config; in tn40_phy_register()
H A Dtn40.h180 struct phylink_config phylink_config; member
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.h61 struct phylink_config phylink_config;
73 container_of((config), struct enetc_pf, phylink_config)
55 struct phylink_config phylink_config; global() member
H A Denetc_pf_common.c447 pf->phylink_config.dev = &priv->ndev->dev; in enetc_phylink_create()
448 pf->phylink_config.type = PHYLINK_NETDEV; in enetc_phylink_create()
451 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
458 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
460 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
462 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
464 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
469 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
472 phy_interface_set_rgmii(pf->phylink_config.supported_interfaces); in enetc_phylink_create()
479 pf->phylink_config in enetc_phylink_destroy()
[all...]
/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_aml.c259 wx->phylink_config.supported_interfaces, in txgbe_sfp_to_linkmodes()
324 wx->phylink_config.supported_interfaces, in txgbe_qsfp_to_linkmodes()
381 static void txgbe_get_link_state(struct phylink_config *config, in txgbe_get_link_state()
412 static void txgbe_mac_link_up_aml(struct phylink_config *config, in txgbe_mac_link_up_aml()
455 static void txgbe_mac_link_down_aml(struct phylink_config *config, in txgbe_mac_link_down_aml()
471 static void txgbe_mac_config_aml(struct phylink_config *config, unsigned int mode, in txgbe_mac_config_aml()
485 struct phylink_config *config; in txgbe_phylink_init_aml()
491 config = &wx->phylink_config; in txgbe_phylink_init_aml()
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_main.c356 spx5_port->phylink_config.dev = &spx5_port->ndev->dev; in sparx5_create_port()
357 spx5_port->phylink_config.type = PHYLINK_NETDEV; in sparx5_create_port()
358 spx5_port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | in sparx5_create_port()
363 phy_interface_set_rgmii(spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
366 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
368 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
370 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
372 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
378 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
383 spx5_port->phylink_config in sparx5_create_port()
[all...]
/linux/Documentation/networking/
H A Dsfp-phylink.rst105 struct phylink_config phylink_config;
234 9. Fill-in the :c:type:`struct phylink_config <phylink_config>` fields with
240 priv->phylink_config.dev = &dev.dev;
241 priv->phylink_config.type = PHYLINK_NETDEV;
247 priv->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 | MAC_100 | MAC_1000FD;
327 static struct phylink_pcs *foo_select_pcs(struct phylink_config *config,
331 phylink_config);
350 phy_interface_set_rgmii(priv->phylink_config.supported_interfaces);
352 priv->phylink_config.supported_interfaces);
354 priv->phylink_config.supported_interfaces);
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_main.c843 port->phylink_config.dev = &port->dev->dev; in lan966x_probe_port()
844 port->phylink_config.type = PHYLINK_NETDEV; in lan966x_probe_port()
848 port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | in lan966x_probe_port()
851 phy_interface_set_rgmii(port->phylink_config.supported_interfaces); in lan966x_probe_port()
853 port->phylink_config.supported_interfaces); in lan966x_probe_port()
855 port->phylink_config.supported_interfaces); in lan966x_probe_port()
857 port->phylink_config.supported_interfaces); in lan966x_probe_port()
859 port->phylink_config.supported_interfaces); in lan966x_probe_port()
861 port->phylink_config.supported_interfaces); in lan966x_probe_port()
863 port->phylink_config in lan966x_probe_port()
[all...]
/linux/drivers/net/ethernet/altera/
H A Daltera_tse_main.c1035 static void alt_tse_mac_config(struct phylink_config *config, unsigned int mode, in alt_tse_mac_config()
1047 static void alt_tse_mac_link_down(struct phylink_config *config, in alt_tse_mac_link_down()
1052 static void alt_tse_mac_link_up(struct phylink_config *config, in alt_tse_mac_link_up()
1077 static struct phylink_pcs *alt_tse_select_pcs(struct phylink_config *config, in alt_tse_select_pcs()
1401 priv->phylink_config.dev = &ndev->dev; in altera_tse_probe()
1402 priv->phylink_config.type = PHYLINK_NETDEV; in altera_tse_probe()
1403 priv->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 | in altera_tse_probe()
1406 phy_interface_set_rgmii(priv->phylink_config.supported_interfaces); in altera_tse_probe()
1408 priv->phylink_config.supported_interfaces); in altera_tse_probe()
1410 priv->phylink_config.supported_interfaces); in altera_tse_probe()
[all …]
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c518 static struct phylink_pcs *mtk_mac_select_pcs(struct phylink_config *config, in mtk_mac_select_pcs()
522 phylink_config); in mtk_mac_select_pcs()
537 static int mtk_mac_prepare(struct phylink_config *config, unsigned int mode, in mtk_mac_prepare()
541 phylink_config); in mtk_mac_prepare()
557 static void mtk_mac_config(struct phylink_config *config, unsigned int mode, in mtk_mac_config()
561 phylink_config); in mtk_mac_config()
693 static int mtk_mac_finish(struct phylink_config *config, unsigned int mode, in mtk_mac_finish()
697 phylink_config); in mtk_mac_finish()
720 static void mtk_mac_link_down(struct phylink_config *config, unsigned int mode, in mtk_mac_link_down()
724 phylink_config); in mtk_mac_link_down()
[all …]
/linux/drivers/net/ethernet/atheros/
H A Dag71xx.c368 struct phylink_config phylink_config;
984 static void ag71xx_mac_config(struct phylink_config *config, unsigned int mode, in ag71xx_hw_start()
1003 static void ag71xx_mac_link_down(struct phylink_config *config, in ag71xx_mac_config()
1011 static void ag71xx_mac_link_up(struct phylink_config *config, in ag71xx_mac_link_down()
1074 ag->phylink_config.dev = &ag->ndev->dev; in ag71xx_phylink_setup()
1075 ag->phylink_config.type = PHYLINK_NETDEV; in ag71xx_phylink_setup()
1076 ag->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE | in ag71xx_phylink_setup()
1084 ag->phylink_config.supported_interfaces); in ag71xx_phylink_setup()
1090 ag->phylink_config in ag71xx_phylink_setup()
372 struct phylink_config phylink_config; global() member
[all...]
/linux/drivers/net/ethernet/freescale/fman/
H A Dfman_memac.c620 static unsigned long memac_get_caps(struct phylink_config *config, in memac_get_caps()
663 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()
700 static void memac_mac_config(struct phylink_config *config, unsigned int mode, in memac_mac_config()
714 static void memac_link_up(struct phylink_config *config, struct phy_device *phy, in memac_link_up()
766 static void memac_link_down(struct phylink_config *config, unsigned int mode, in memac_link_down()
1257 supported = mac_dev->phylink_config.supported_interfaces; in memac_initialization()
1299 mac_dev->phylink_config.mac_capabilities = capabilities; in memac_initialization()
1322 mac_dev->phylink_config.default_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()
792 mac_dev->phylink_config.supported_interfaces); in tgec_initialization()
793 mac_dev->phylink_config.mac_capabilities = in tgec_initialization()
H A Dfman_dtsec.c883 static struct phylink_pcs *dtsec_select_pcs(struct phylink_config *config, in dtsec_select_pcs()
898 static void dtsec_mac_config(struct phylink_config *config, unsigned int mode, in dtsec_mac_config()
936 static void dtsec_link_up(struct phylink_config *config, struct phy_device *phy, in dtsec_link_up()
980 static void dtsec_link_down(struct phylink_config *config, unsigned int mode, in dtsec_link_down()
1458 supported = mac_dev->phylink_config.supported_interfaces; in dtsec_initialization()
1488 mac_dev->phylink_config.mac_capabilities = capabilities; in dtsec_initialization()
/linux/drivers/net/ethernet/microchip/
H A Dlan743x_main.c3027 static void lan743x_phylink_mac_config(struct phylink_config *config, in lan743x_phylink_mac_config()
3071 static void lan743x_phylink_mac_link_down(struct phylink_config *config, in lan743x_phylink_mac_link_down()
3080 static void lan743x_phylink_mac_link_up(struct phylink_config *config, in lan743x_phylink_mac_link_up()
3127 static void lan743x_mac_disable_tx_lpi(struct phylink_config *config) in lan743x_mac_disable_tx_lpi()
3135 static int lan743x_mac_enable_tx_lpi(struct phylink_config *config, u32 timer, in lan743x_mac_enable_tx_lpi()
3165 adapter->phylink_config.dev = &netdev->dev; in lan743x_phylink_create()
3166 adapter->phylink_config.type = PHYLINK_NETDEV; in lan743x_phylink_create()
3167 adapter->phylink_config.mac_managed_pm = false; in lan743x_phylink_create()
3169 adapter->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | in lan743x_phylink_create()
3171 adapter->phylink_config.lpi_capabilities = MAC_100FD | MAC_1000FD; in lan743x_phylink_create()
[all …]
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.h40 struct phylink_config phylink_config; member
/linux/drivers/net/usb/
H A Dasix_devices.c747 static void ax88772_mac_config(struct phylink_config *config, unsigned int mode, in ax88772_mac_config()
753 static void ax88772_mac_link_down(struct phylink_config *config, in ax88772_mac_link_down()
762 static void ax88772_mac_link_up(struct phylink_config *config, in ax88772_mac_link_up()
805 priv->phylink_config.dev = &dev->net->dev; in ax88772_phylink_setup()
806 priv->phylink_config.type = PHYLINK_NETDEV; in ax88772_phylink_setup()
807 priv->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE | in ax88772_phylink_setup()
811 priv->phylink_config.supported_interfaces); in ax88772_phylink_setup()
813 priv->phylink_config.supported_interfaces); in ax88772_phylink_setup()
820 phylink = phylink_create(&priv->phylink_config, dev->net->dev.fwnode, in ax88772_phylink_setup()
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c6231 static struct mvpp2_port *mvpp2_phylink_to_port(struct phylink_config *config) in mvpp2_phylink_to_port()
6233 return container_of(config, struct mvpp2_port, phylink_config); in mvpp2_phylink_to_port()
6503 static struct phylink_pcs *mvpp2_select_pcs(struct phylink_config *config, in mvpp2_select_pcs()
6518 static int mvpp2_mac_prepare(struct phylink_config *config, unsigned int mode, in mvpp2_mac_prepare()
6571 static void mvpp2_mac_config(struct phylink_config *config, unsigned int mode, in mvpp2_mac_config()
6588 static int mvpp2_mac_finish(struct phylink_config *config, unsigned int mode, in mvpp2_mac_finish()
6630 static void mvpp2_mac_link_up(struct phylink_config *config, in mvpp2_mac_link_up()
6713 static void mvpp2_mac_link_down(struct phylink_config *config, in mvpp2_mac_link_down()
6740 static void mvpp2_mac_disable_tx_lpi(struct phylink_config *config) in mvpp2_mac_disable_tx_lpi()
6748 static int mvpp2_mac_enable_tx_lpi(struct phylink_config *confi
[all...]
/linux/drivers/net/dsa/microchip/
H A Dksz_common.h475 struct phylink_config *config);
476 void ksz_phylink_mac_disable_tx_lpi(struct phylink_config *config);
477 int ksz_phylink_mac_enable_tx_lpi(struct phylink_config *config,
480 bool ksz_phylink_need_config(struct phylink_config *config, unsigned int mode);
481 void ksz_phylink_mac_config(struct phylink_config *config,
484 void ksz_phylink_mac_link_down(struct phylink_config *config,
/linux/drivers/net/ethernet/freescale/fs_enet/
H A Dfs_enet.h145 struct phylink_config phylink_config; member
/linux/drivers/net/dsa/lantiq/
H A Dlantiq_gswip.h267 struct phylink_config *config);
268 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
H A Dmxl-gsw1xx.c523 static void gsw1xx_phylink_get_lpi_caps(struct phylink_config *config) in gsw1xx_phylink_get_lpi_caps()
532 struct phylink_config *config) in gsw1xx_phylink_get_caps()
568 struct phylink_config *config) in gsw150_phylink_get_caps()
601 struct phylink_config cfg = {}; in gsw1xx_phylink_mac_select_pcs()
623 static struct phylink_pcs *gsw1xx_phylink_mac_select_pcs(struct phylink_config *config, in gsw1xx_rmii_slew_rate()
/linux/drivers/net/ethernet/marvell/
H A Dmvneta.c539 struct phylink_config phylink_config; member
4096 static struct phylink_pcs *mvneta_mac_select_pcs(struct phylink_config *config, in mvneta_mac_select_pcs()
4105 static int mvneta_mac_prepare(struct phylink_config *config, unsigned int mode, in mvneta_mac_prepare()
4139 static void mvneta_mac_config(struct phylink_config *config, unsigned int mode, in mvneta_mac_config()
4195 static int mvneta_mac_finish(struct phylink_config *config, unsigned int mode, in mvneta_mac_finish()
4225 static void mvneta_mac_link_down(struct phylink_config *config, in mvneta_mac_link_down()
4242 static void mvneta_mac_link_up(struct phylink_config *config, in mvneta_mac_link_up()
4290 static void mvneta_mac_disable_tx_lpi(struct phylink_config *config) in mvneta_mac_disable_tx_lpi()
4302 static int mvneta_mac_enable_tx_lpi(struct phylink_config *confi
[all...]
/linux/drivers/net/ethernet/cadence/
H A Dmacb_main.c743 static void macb_mac_disable_tx_lpi(struct phylink_config *config) in macb_mac_config()
771 static int macb_mac_enable_tx_lpi(struct phylink_config *config, u32 timer, in macb_mac_config()
792 static void macb_mac_config(struct phylink_config *config, unsigned int mode, in macb_mac_link_down()
838 static void macb_mac_link_down(struct phylink_config *config, unsigned int mode, in gem_shuffle_tx_one_ring()
958 static void macb_mac_link_up(struct phylink_config *config, in macb_mac_select_pcs()
1029 static struct phylink_pcs *macb_mac_select_pcs(struct phylink_config *config, in macb_mii_probe()
1091 static void macb_get_pcs_fixed_state(struct phylink_config *config, in macb_mii_probe()
1109 bp->phylink_config.dev = &netdev->dev; in macb_mdiobus_register()
1110 bp->phylink_config.type = PHYLINK_NETDEV; in macb_mdiobus_register()
1111 bp->phylink_config in macb_mdiobus_register()
[all...]

123