Home
last modified time | relevance | path

Searched refs:phylink_pcs (Results 1 – 25 of 42) sorted by relevance

12

/linux-5.19.10/include/linux/
Dphylink.h128 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
190 struct phylink_pcs *mac_select_pcs(struct phylink_config *config,
405 struct phylink_pcs { struct
420 int (*pcs_validate)(struct phylink_pcs *pcs, unsigned long *supported, argument
422 void (*pcs_get_state)(struct phylink_pcs *pcs,
424 int (*pcs_config)(struct phylink_pcs *pcs, unsigned int mode,
428 void (*pcs_an_restart)(struct phylink_pcs *pcs);
429 void (*pcs_link_up)(struct phylink_pcs *pcs, unsigned int mode,
448 int pcs_validate(struct phylink_pcs *pcs, unsigned long *supported,
466 void pcs_get_state(struct phylink_pcs *pcs,
[all …]
Dpcs-lynx.h12 struct mdio_device *lynx_get_mdio_device(struct phylink_pcs *pcs);
14 struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio);
16 void lynx_pcs_destroy(struct phylink_pcs *pcs);
/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()
17 return &port->phylink_pcs; in lan966x_phylink_mac_select()
82 static struct lan966x_port *lan966x_pcs_to_port(struct phylink_pcs *pcs) in lan966x_pcs_to_port()
84 return container_of(pcs, struct lan966x_port, phylink_pcs); in lan966x_pcs_to_port()
87 static void lan966x_pcs_get_state(struct phylink_pcs *pcs, in lan966x_pcs_get_state()
95 static int lan966x_pcs_config(struct phylink_pcs *pcs, in lan966x_pcs_config()
118 static void lan966x_pcs_aneg_restart(struct phylink_pcs *pcs) in lan966x_pcs_aneg_restart()
Dlan966x_main.h286 struct phylink_pcs phylink_pcs; member
/linux-5.19.10/drivers/net/ethernet/microchip/sparx5/
Dsparx5_phylink.c29 static struct phylink_pcs *
35 return &port->phylink_pcs; in sparx5_phylink_mac_select_pcs()
75 static struct sparx5_port *sparx5_pcs_to_port(struct phylink_pcs *pcs) in sparx5_pcs_to_port()
77 return container_of(pcs, struct sparx5_port, phylink_pcs); in sparx5_pcs_to_port()
80 static void sparx5_pcs_get_state(struct phylink_pcs *pcs, in sparx5_pcs_get_state()
94 static int sparx5_pcs_config(struct phylink_pcs *pcs, in sparx5_pcs_config()
129 static void sparx5_pcs_aneg_restart(struct phylink_pcs *pcs) in sparx5_pcs_aneg_restart()
Dsparx5_main.h174 struct phylink_pcs phylink_pcs; member
Dsparx5_main.c278 spx5_port->phylink_pcs.poll = true; in sparx5_create_port()
279 spx5_port->phylink_pcs.ops = &sparx5_phylink_pcs_ops; in sparx5_create_port()
/linux-5.19.10/drivers/net/pcs/
Dpcs-lynx.c26 struct phylink_pcs pcs;
40 struct mdio_device *lynx_get_mdio_device(struct phylink_pcs *pcs) in lynx_get_mdio_device()
95 static void lynx_pcs_get_state(struct phylink_pcs *pcs, in lynx_pcs_get_state()
198 static int lynx_pcs_config(struct phylink_pcs *pcs, unsigned int mode, in lynx_pcs_config()
230 static void lynx_pcs_an_restart(struct phylink_pcs *pcs) in lynx_pcs_an_restart()
315 static void lynx_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, in lynx_pcs_link_up()
346 struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio) in lynx_pcs_create()
362 void lynx_pcs_destroy(struct phylink_pcs *pcs) in lynx_pcs_destroy()
Dpcs-xpcs.c633 static int xpcs_validate(struct phylink_pcs *pcs, unsigned long *supported, in xpcs_validate()
839 static int xpcs_config(struct phylink_pcs *pcs, unsigned int mode, in xpcs_config()
924 static void xpcs_get_state(struct phylink_pcs *pcs, in xpcs_get_state()
986 void xpcs_link_up(struct phylink_pcs *pcs, unsigned int mode, in xpcs_link_up()
/linux-5.19.10/drivers/net/ethernet/mediatek/
Dmtk_sgmii.c17 static struct mtk_pcs *pcs_to_mtk_pcs(struct phylink_pcs *pcs) in pcs_to_mtk_pcs()
80 static int mtk_pcs_config(struct phylink_pcs *pcs, unsigned int mode, in mtk_pcs_config()
97 static void mtk_pcs_restart_an(struct phylink_pcs *pcs) in mtk_pcs_restart_an()
107 static void mtk_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, in mtk_pcs_link_up()
153 struct phylink_pcs *mtk_sgmii_select_pcs(struct mtk_sgmii *ss, int id) in mtk_sgmii_select_pcs()
Dmtk_eth_soc.h979 struct phylink_pcs pcs;
1119 struct phylink_pcs *mtk_sgmii_select_pcs(struct mtk_sgmii *ss, int id);
/linux-5.19.10/drivers/net/dsa/b53/
Db53_serdes.c20 static inline struct b53_pcs *pcs_to_b53_pcs(struct phylink_pcs *pcs) in pcs_to_b53_pcs()
68 static int b53_serdes_config(struct phylink_pcs *pcs, unsigned int mode, in b53_serdes_config()
89 static void b53_serdes_an_restart(struct phylink_pcs *pcs) in b53_serdes_an_restart()
102 static void b53_serdes_get_state(struct phylink_pcs *pcs, in b53_serdes_get_state()
194 struct phylink_pcs *b53_serdes_phylink_mac_select_pcs(struct b53_device *dev, in b53_serdes_phylink_mac_select_pcs()
Db53_serdes.h112 struct phylink_pcs *b53_serdes_phylink_mac_select_pcs(struct b53_device *dev,
Db53_priv.h50 struct phylink_pcs *(*phylink_mac_select_pcs)(struct b53_device *dev,
85 struct phylink_pcs pcs;
/linux-5.19.10/include/linux/pcs/
Dpcs-xpcs.h26 struct phylink_pcs pcs;
30 void xpcs_link_up(struct phylink_pcs *pcs, unsigned int mode,
/linux-5.19.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-mac.c146 static struct phylink_pcs *dpaa2_mac_select_pcs(struct phylink_config *config, in dpaa2_mac_select_pcs()
282 struct phylink_pcs *phylink_pcs = mac->pcs; in dpaa2_pcs_destroy() local
284 if (phylink_pcs) { in dpaa2_pcs_destroy()
285 struct mdio_device *mdio = lynx_get_mdio_device(phylink_pcs); in dpaa2_pcs_destroy()
288 lynx_pcs_destroy(phylink_pcs); in dpaa2_pcs_destroy()
Ddpaa2-mac.h27 struct phylink_pcs *pcs;
/linux-5.19.10/drivers/net/dsa/ocelot/
Dseville_vsc9953.c1290 sizeof(struct phylink_pcs *), in vsc9953_mdio_bus_alloc()
1317 struct phylink_pcs *phylink_pcs; in vsc9953_mdio_bus_alloc() local
1331 phylink_pcs = lynx_pcs_create(mdio_device); in vsc9953_mdio_bus_alloc()
1332 if (!phylink_pcs) { in vsc9953_mdio_bus_alloc()
1337 felix->pcs[port] = phylink_pcs; in vsc9953_mdio_bus_alloc()
1351 struct phylink_pcs *phylink_pcs = felix->pcs[port]; in vsc9953_mdio_bus_free() local
1354 if (!phylink_pcs) in vsc9953_mdio_bus_free()
1357 mdio_device = lynx_get_mdio_device(phylink_pcs); in vsc9953_mdio_bus_free()
1359 lynx_pcs_destroy(phylink_pcs); in vsc9953_mdio_bus_free()
Dfelix.h84 struct phylink_pcs **pcs;
Dfelix_vsc9959.c1318 sizeof(struct phylink_pcs *), in vsc9959_mdio_bus_alloc()
1368 struct phylink_pcs *phylink_pcs; in vsc9959_mdio_bus_alloc() local
1381 phylink_pcs = lynx_pcs_create(mdio_device); in vsc9959_mdio_bus_alloc()
1382 if (!phylink_pcs) { in vsc9959_mdio_bus_alloc()
1387 felix->pcs[port] = phylink_pcs; in vsc9959_mdio_bus_alloc()
1401 struct phylink_pcs *phylink_pcs = felix->pcs[port]; in vsc9959_mdio_bus_free() local
1404 if (!phylink_pcs) in vsc9959_mdio_bus_free()
1407 mdio_device = lynx_get_mdio_device(phylink_pcs); in vsc9959_mdio_bus_free()
1409 lynx_pcs_destroy(phylink_pcs); in vsc9959_mdio_bus_free()
/linux-5.19.10/drivers/net/ethernet/freescale/enetc/
Denetc_pf.h49 struct phylink_pcs *pcs;
Denetc_pf.c829 struct phylink_pcs *phylink_pcs; in enetc_imdio_create() local
861 phylink_pcs = lynx_pcs_create(mdio_device); in enetc_imdio_create()
862 if (!phylink_pcs) { in enetc_imdio_create()
870 pf->pcs = phylink_pcs; in enetc_imdio_create()
934 static struct phylink_pcs *
/linux-5.19.10/drivers/net/dsa/
Dmt7530.c27 static struct mt753x_pcs *pcs_to_mt753x_pcs(struct phylink_pcs *pcs) in pcs_to_mt753x_pcs()
2530 static void mt7531_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, in mt7531_pcs_link_up()
2638 static void mt7531_pcs_an_restart(struct phylink_pcs *pcs) in mt7531_pcs_an_restart()
2698 static struct phylink_pcs *
2786 static void mt753x_phylink_pcs_link_up(struct phylink_pcs *pcs, in mt753x_phylink_pcs_link_up()
2910 static int mt753x_pcs_validate(struct phylink_pcs *pcs, in mt753x_pcs_validate()
2922 static void mt7530_pcs_get_state(struct phylink_pcs *pcs, in mt7530_pcs_get_state()
2996 static void mt7531_pcs_get_state(struct phylink_pcs *pcs, in mt7531_pcs_get_state()
3008 static int mt753x_pcs_config(struct phylink_pcs *pcs, unsigned int mode, in mt753x_pcs_config()
3016 static void mt7530_pcs_an_restart(struct phylink_pcs *pcs) in mt7530_pcs_an_restart()
/linux-5.19.10/drivers/net/ethernet/xilinx/
Dxilinx_axienet.h441 struct phylink_pcs pcs;
Dxilinx_axienet_main.c1588 static struct axienet_local *pcs_to_axienet_local(struct phylink_pcs *pcs) in pcs_to_axienet_local()
1593 static void axienet_pcs_get_state(struct phylink_pcs *pcs, in axienet_pcs_get_state()
1601 static void axienet_pcs_an_restart(struct phylink_pcs *pcs) in axienet_pcs_an_restart()
1608 static int axienet_pcs_config(struct phylink_pcs *pcs, unsigned int mode, in axienet_pcs_config()
1643 static struct phylink_pcs *axienet_mac_select_pcs(struct phylink_config *config, in axienet_mac_select_pcs()

12