Home
last modified time | relevance | path

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

123

/linux/include/linux/
H A Dphylink.h164 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 *config, unsigned int mode,
217 void (*mac_link_up)(struct phylink_config *config,
[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.h55 struct phylink_config phylink_config; member
62 container_of((config), struct enetc_pf, phylink_config)
H A Denetc_pf_common.c429 pf->phylink_config.dev = &priv->ndev->dev; in enetc_phylink_create()
430 pf->phylink_config.type = PHYLINK_NETDEV; in enetc_phylink_create()
433 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
440 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
442 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
444 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
446 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
451 pf->phylink_config.supported_interfaces); in enetc_phylink_create()
454 phy_interface_set_rgmii(pf->phylink_config.supported_interfaces); in enetc_phylink_create()
461 pf->phylink_config.mac_capabilities = mac_caps; in enetc_phylink_create()
[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/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.c832 port->phylink_config.dev = &port->dev->dev; in lan966x_probe_port()
833 port->phylink_config.type = PHYLINK_NETDEV; in lan966x_probe_port()
837 port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | in lan966x_probe_port()
840 phy_interface_set_rgmii(port->phylink_config.supported_interfaces); in lan966x_probe_port()
842 port->phylink_config.supported_interfaces); in lan966x_probe_port()
844 port->phylink_config.supported_interfaces); in lan966x_probe_port()
846 port->phylink_config.supported_interfaces); in lan966x_probe_port()
848 port->phylink_config.supported_interfaces); in lan966x_probe_port()
850 port->phylink_config.supported_interfaces); in lan966x_probe_port()
852 port->phylink_config.supported_interfaces); 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/ti/
H A Dam65-cpsw-nuss.h40 struct phylink_config phylink_config; member
/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/atheros/
H A Dag71xx.c372 struct phylink_config phylink_config; member
988 static void ag71xx_mac_config(struct phylink_config *config, unsigned int mode, in ag71xx_mac_config()
1007 static void ag71xx_mac_link_down(struct phylink_config *config, in ag71xx_mac_link_down()
1015 static void ag71xx_mac_link_up(struct phylink_config *config, in ag71xx_mac_link_up()
1078 ag->phylink_config.dev = &ag->ndev->dev; in ag71xx_phylink_setup()
1079 ag->phylink_config.type = PHYLINK_NETDEV; in ag71xx_phylink_setup()
1080 ag->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE | in ag71xx_phylink_setup()
1088 ag->phylink_config.supported_interfaces); in ag71xx_phylink_setup()
1094 ag->phylink_config.supported_interfaces); in ag71xx_phylink_setup()
1098 ag->phylink_config.supported_interfaces); in ag71xx_phylink_setup()
[all …]
/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/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/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/dsa/microchip/
H A Dksz_common.h471 struct phylink_config *config);
472 void ksz_phylink_mac_disable_tx_lpi(struct phylink_config *config);
473 int ksz_phylink_mac_enable_tx_lpi(struct phylink_config *config,
476 bool ksz_phylink_need_config(struct phylink_config *config, unsigned int mode);
477 void ksz_phylink_mac_config(struct phylink_config *config,
480 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.h265 struct phylink_config *config);
266 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
H A Dmxl-gsw1xx.c522 static void gsw1xx_phylink_get_lpi_caps(struct phylink_config *config) in gsw1xx_phylink_get_lpi_caps()
531 struct phylink_config *config) in gsw1xx_phylink_get_caps()
567 struct phylink_config *config) in gsw150_phylink_get_caps()
591 static struct phylink_pcs *gsw1xx_phylink_mac_select_pcs(struct phylink_config *config, in gsw1xx_phylink_mac_select_pcs()
H A Dlantiq_gswip_common.c1293 struct phylink_config *config) in gswip_phylink_get_caps()
1405 static void gswip_phylink_mac_config(struct phylink_config *config, in gswip_phylink_mac_config()
1456 static void gswip_phylink_mac_link_down(struct phylink_config *config, in gswip_phylink_mac_link_down()
1470 static void gswip_phylink_mac_link_up(struct phylink_config *config, in gswip_phylink_mac_link_up()
1568 static void gswip_phylink_mac_disable_tx_lpi(struct phylink_config *config) in gswip_phylink_mac_disable_tx_lpi()
1577 static int gswip_phylink_mac_enable_tx_lpi(struct phylink_config *config, in gswip_phylink_mac_enable_tx_lpi()
1602 static struct phylink_pcs *gswip_phylink_mac_select_pcs(struct phylink_config *config, in gswip_phylink_mac_select_pcs()
/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 *config, u32 timer, in mvneta_mac_enable_tx_lpi()
5474 mvneta_mac_disable_tx_lpi(&pp->phylink_config); in mvneta_port_power_up()
[all …]
/linux/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet.h554 struct phylink_config phylink_config; member
/linux/drivers/net/dsa/b53/
H A Db53_serdes.h116 struct phylink_config *config);

123