Home
last modified time | relevance | path

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

123

/linux-6.6.21/include/linux/
Dphylink.h244 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
308 struct phylink_pcs *mac_select_pcs(struct phylink_config *config,
491 struct phylink_pcs { struct
512 int (*pcs_validate)(struct phylink_pcs *pcs, unsigned long *supported, argument
514 int (*pcs_enable)(struct phylink_pcs *pcs);
515 void (*pcs_disable)(struct phylink_pcs *pcs);
516 void (*pcs_pre_config)(struct phylink_pcs *pcs,
518 int (*pcs_post_config)(struct phylink_pcs *pcs,
520 void (*pcs_get_state)(struct phylink_pcs *pcs,
522 int (*pcs_config)(struct phylink_pcs *pcs, unsigned int neg_mode,
[all …]
Dpcs-lynx.h12 struct phylink_pcs *lynx_pcs_create_mdiodev(struct mii_bus *bus, int addr);
13 struct phylink_pcs *lynx_pcs_create_fwnode(struct fwnode_handle *node);
15 void lynx_pcs_destroy(struct phylink_pcs *pcs);
Dpcs-rzn1-miic.h14 struct phylink_pcs *miic_create(struct device *dev, struct device_node *np);
16 void miic_destroy(struct phylink_pcs *pcs);
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/
Dpcs-6185.c16 struct phylink_pcs phylink_pcs; member
24 static struct mv88e6185_pcs *pcs_to_mv88e6185_pcs(struct phylink_pcs *pcs) in pcs_to_mv88e6185_pcs()
26 return container_of(pcs, struct mv88e6185_pcs, phylink_pcs); in pcs_to_mv88e6185_pcs()
49 phylink_pcs_change(&mpcs->phylink_pcs, link_up); in mv88e6185_pcs_handle_irq()
57 static void mv88e6185_pcs_get_state(struct phylink_pcs *pcs, in mv88e6185_pcs_get_state()
98 static int mv88e6185_pcs_config(struct phylink_pcs *pcs, unsigned int mode, in mv88e6185_pcs_config()
106 static void mv88e6185_pcs_an_restart(struct phylink_pcs *pcs) in mv88e6185_pcs_an_restart()
139 mpcs->phylink_pcs.ops = &mv88e6185_phylink_pcs_ops; in mv88e6185_pcs_init()
155 mpcs->phylink_pcs.poll = true; in mv88e6185_pcs_init()
158 chip->ports[port].pcs_private = &mpcs->phylink_pcs; in mv88e6185_pcs_init()
[all …]
Dpcs-6352.c26 struct phylink_pcs phylink_pcs; member
33 static struct marvell_c22_pcs *pcs_to_marvell_c22_pcs(struct phylink_pcs *pcs) in pcs_to_marvell_c22_pcs()
35 return container_of(pcs, struct marvell_c22_pcs, phylink_pcs); in pcs_to_marvell_c22_pcs()
101 phylink_pcs_change(&mpcs->phylink_pcs, true); in marvell_c22_pcs_handle_irq()
140 static int marvell_c22_pcs_enable(struct phylink_pcs *pcs) in marvell_c22_pcs_enable()
152 static void marvell_c22_pcs_disable(struct phylink_pcs *pcs) in marvell_c22_pcs_disable()
160 static void marvell_c22_pcs_get_state(struct phylink_pcs *pcs, in marvell_c22_pcs_get_state()
184 static int marvell_c22_pcs_config(struct phylink_pcs *pcs, in marvell_c22_pcs_config()
226 static void marvell_c22_pcs_an_restart(struct phylink_pcs *pcs) in marvell_c22_pcs_an_restart()
233 static void marvell_c22_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, in marvell_c22_pcs_link_up()
[all …]
Dpcs-639x.c21 struct phylink_pcs sgmii_pcs;
22 struct phylink_pcs xg_pcs;
129 static struct mv88e639x_pcs *sgmii_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) in sgmii_pcs_to_mv88e639x_pcs()
183 static int mv88e639x_sgmii_pcs_enable(struct phylink_pcs *pcs) in mv88e639x_sgmii_pcs_enable()
193 static void mv88e639x_sgmii_pcs_disable(struct phylink_pcs *pcs) in mv88e639x_sgmii_pcs_disable()
201 static void mv88e639x_sgmii_pcs_pre_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_pre_config()
240 static int mv88e639x_sgmii_pcs_post_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_post_config()
259 static void mv88e639x_sgmii_pcs_get_state(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_get_state()
297 static int mv88e639x_sgmii_pcs_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_config()
337 static void mv88e639x_sgmii_pcs_an_restart(struct phylink_pcs *pcs) in mv88e639x_sgmii_pcs_an_restart()
[all …]
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/
Dlan966x_phylink.c11 static struct phylink_pcs *lan966x_phylink_mac_select(struct phylink_config *config, in lan966x_phylink_mac_select()
16 return &port->phylink_pcs; in lan966x_phylink_mac_select()
85 static struct lan966x_port *lan966x_pcs_to_port(struct phylink_pcs *pcs) in lan966x_pcs_to_port()
87 return container_of(pcs, struct lan966x_port, phylink_pcs); in lan966x_pcs_to_port()
90 static void lan966x_pcs_get_state(struct phylink_pcs *pcs, in lan966x_pcs_get_state()
98 static int lan966x_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in lan966x_pcs_config()
120 static void lan966x_pcs_aneg_restart(struct phylink_pcs *pcs) in lan966x_pcs_aneg_restart()
/linux-6.6.21/drivers/net/pcs/
Dpcs-lynx.c24 struct phylink_pcs pcs;
83 static void lynx_pcs_get_state(struct phylink_pcs *pcs, in lynx_pcs_get_state()
171 static int lynx_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in lynx_pcs_config()
203 static void lynx_pcs_an_restart(struct phylink_pcs *pcs) in lynx_pcs_an_restart()
285 static void lynx_pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in lynx_pcs_link_up()
316 static struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio) in lynx_pcs_create()
333 struct phylink_pcs *lynx_pcs_create_mdiodev(struct mii_bus *bus, int addr) in lynx_pcs_create_mdiodev()
336 struct phylink_pcs *pcs; in lynx_pcs_create_mdiodev()
366 struct phylink_pcs *lynx_pcs_create_fwnode(struct fwnode_handle *node) in lynx_pcs_create_fwnode()
369 struct phylink_pcs *pcs; in lynx_pcs_create_fwnode()
[all …]
Dpcs-mtk-lynxi.c82 struct phylink_pcs pcs;
86 static struct mtk_pcs_lynxi *pcs_to_mtk_pcs_lynxi(struct phylink_pcs *pcs) in pcs_to_mtk_pcs_lynxi()
91 static void mtk_pcs_lynxi_get_state(struct phylink_pcs *pcs, in mtk_pcs_lynxi_get_state()
105 static int mtk_pcs_lynxi_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mtk_pcs_lynxi_config()
203 static void mtk_pcs_lynxi_restart_an(struct phylink_pcs *pcs) in mtk_pcs_lynxi_restart_an()
210 static void mtk_pcs_lynxi_link_up(struct phylink_pcs *pcs, in mtk_pcs_lynxi_link_up()
236 static void mtk_pcs_lynxi_disable(struct phylink_pcs *pcs) in mtk_pcs_lynxi_disable()
251 struct phylink_pcs *mtk_pcs_lynxi_create(struct device *dev, in mtk_pcs_lynxi_create()
297 void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs) in mtk_pcs_lynxi_destroy()
Dpcs-rzn1-miic.c142 struct phylink_pcs pcs;
147 static struct miic_port *phylink_pcs_to_miic_port(struct phylink_pcs *pcs) in phylink_pcs_to_miic_port()
186 static int miic_config(struct phylink_pcs *pcs, unsigned int mode, in miic_config()
237 static void miic_link_up(struct phylink_pcs *pcs, unsigned int mode, in miic_link_up()
271 static int miic_validate(struct phylink_pcs *pcs, unsigned long *supported, in miic_validate()
288 struct phylink_pcs *miic_create(struct device *dev, struct device_node *np) in miic_create()
341 void miic_destroy(struct phylink_pcs *pcs) in miic_destroy()
/linux-6.6.21/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, unsigned int neg_mode, in sparx5_pcs_config()
129 static void sparx5_pcs_aneg_restart(struct phylink_pcs *pcs) in sparx5_pcs_aneg_restart()
/linux-6.6.21/include/linux/pcs/
Dpcs-mtk-lynxi.h9 struct phylink_pcs *mtk_pcs_lynxi_create(struct device *dev,
12 void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs);
Dpcs-xpcs.h34 struct phylink_pcs pcs;
40 void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
/linux-6.6.21/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 neg_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,
/linux-6.6.21/drivers/net/dsa/ocelot/
Dseville_vsc9953.c888 sizeof(struct phylink_pcs *), in vsc9953_mdio_bus_alloc()
915 struct phylink_pcs *phylink_pcs; in vsc9953_mdio_bus_alloc() local
924 phylink_pcs = lynx_pcs_create_mdiodev(felix->imdio, addr); in vsc9953_mdio_bus_alloc()
925 if (IS_ERR(phylink_pcs)) in vsc9953_mdio_bus_alloc()
928 felix->pcs[port] = phylink_pcs; in vsc9953_mdio_bus_alloc()
942 struct phylink_pcs *phylink_pcs = felix->pcs[port]; in vsc9953_mdio_bus_free() local
944 if (phylink_pcs) in vsc9953_mdio_bus_free()
945 lynx_pcs_destroy(phylink_pcs); in vsc9953_mdio_bus_free()
Dfelix.h93 struct phylink_pcs **pcs;
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-mac.c152 static struct phylink_pcs *dpaa2_mac_select_pcs(struct phylink_config *config, in dpaa2_mac_select_pcs()
256 struct phylink_pcs *pcs; in dpaa2_pcs_create()
291 struct phylink_pcs *phylink_pcs = mac->pcs; in dpaa2_pcs_destroy() local
293 if (phylink_pcs) { in dpaa2_pcs_destroy()
294 lynx_pcs_destroy(phylink_pcs); in dpaa2_pcs_destroy()
Ddpaa2-mac.h27 struct phylink_pcs *pcs;
/linux-6.6.21/drivers/net/ethernet/freescale/fman/
Dfman_memac.c294 struct phylink_pcs *sgmii_pcs;
295 struct phylink_pcs *qsgmii_pcs;
296 struct phylink_pcs *xfi_pcs;
664 static struct phylink_pcs *memac_select_pcs(struct phylink_config *config, in memac_select_pcs()
977 static void pcs_put(struct phylink_pcs *pcs) in pcs_put()
1038 static struct phylink_pcs *memac_pcs_create(struct device_node *mac_node, in memac_pcs_create()
1042 struct phylink_pcs *pcs; in memac_pcs_create()
1072 struct phylink_pcs *pcs; in memac_initialization()
Dfman_dtsec.c321 struct phylink_pcs pcs;
753 static struct fman_mac *pcs_to_dtsec(struct phylink_pcs *pcs) in pcs_to_dtsec()
758 static void dtsec_pcs_get_state(struct phylink_pcs *pcs, in dtsec_pcs_get_state()
766 static int dtsec_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in dtsec_pcs_config()
777 static void dtsec_pcs_an_restart(struct phylink_pcs *pcs) in dtsec_pcs_an_restart()
883 static struct phylink_pcs *dtsec_select_pcs(struct phylink_config *config, in dtsec_select_pcs()
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/
Dprestera_main.c240 static struct prestera_port *prestera_pcs_to_port(struct phylink_pcs *pcs) in prestera_pcs_to_port()
242 return container_of(pcs, struct prestera_port, phylink_pcs); in prestera_pcs_to_port()
272 static struct phylink_pcs *
279 return &port->phylink_pcs; in prestera_mac_select_pcs()
282 static void prestera_pcs_get_state(struct phylink_pcs *pcs, in prestera_pcs_get_state()
286 phylink_pcs); in prestera_pcs_get_state()
303 static int prestera_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in prestera_pcs_config()
348 static void prestera_pcs_an_restart(struct phylink_pcs *pcs) in prestera_pcs_an_restart()
397 port->phylink_pcs.ops = &prestera_pcs_ops; in prestera_port_sfp_bind()
398 port->phylink_pcs.neg_mode = true; in prestera_port_sfp_bind()
Dprestera.h159 struct phylink_pcs phylink_pcs; member
/linux-6.6.21/drivers/net/ethernet/freescale/enetc/
Denetc_pf.h49 struct phylink_pcs *pcs;
Denetc_pf.c865 struct phylink_pcs *phylink_pcs; in enetc_imdio_create() local
891 phylink_pcs = lynx_pcs_create_mdiodev(bus, 0); in enetc_imdio_create()
892 if (IS_ERR(phylink_pcs)) { in enetc_imdio_create()
893 err = PTR_ERR(phylink_pcs); in enetc_imdio_create()
899 pf->pcs = phylink_pcs; in enetc_imdio_create()
958 static struct phylink_pcs *

123