Home
last modified time | relevance | path

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

12

/linux/include/linux/
H A Dphylink.h207 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
255 struct phylink_pcs *mac_select_pcs(struct phylink_config *config,
494 struct phylink_pcs { struct
523 int (*pcs_validate)(struct phylink_pcs *pcs, unsigned long *supported,
525 unsigned int (*pcs_inband_caps)(struct phylink_pcs *pcs,
527 int (*pcs_enable)(struct phylink_pcs *pcs);
528 void (*pcs_disable)(struct phylink_pcs *pcs);
529 void (*pcs_pre_config)(struct phylink_pcs *pcs,
531 int (*pcs_post_config)(struct phylink_pcs *pcs,
533 void (*pcs_get_state)(struct phylink_pcs *pcs, unsigned int neg_mode,
[all …]
H A 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);
H A 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/drivers/net/dsa/mv88e6xxx/
H A 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()
99 static int mv88e6185_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mv88e6185_pcs_config()
107 static void mv88e6185_pcs_an_restart(struct phylink_pcs *pcs) in mv88e6185_pcs_an_restart()
140 mpcs->phylink_pcs.ops = &mv88e6185_phylink_pcs_ops; in mv88e6185_pcs_init()
156 mpcs->phylink_pcs.poll = true; in mv88e6185_pcs_init()
159 chip->ports[port].pcs_private = &mpcs->phylink_pcs; in mv88e6185_pcs_init()
[all …]
H A 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()
185 static int marvell_c22_pcs_config(struct phylink_pcs *pcs, in marvell_c22_pcs_config()
227 static void marvell_c22_pcs_an_restart(struct phylink_pcs *pcs) in marvell_c22_pcs_an_restart()
234 static void marvell_c22_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, in marvell_c22_pcs_link_up()
[all …]
H A Dpcs-639x.c22 struct phylink_pcs sgmii_pcs;
23 struct phylink_pcs xg_pcs;
130 static struct mv88e639x_pcs *sgmii_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) in sgmii_pcs_to_mv88e639x_pcs()
184 static int mv88e639x_sgmii_pcs_enable(struct phylink_pcs *pcs) in mv88e639x_sgmii_pcs_enable()
194 static void mv88e639x_sgmii_pcs_disable(struct phylink_pcs *pcs) in mv88e639x_sgmii_pcs_disable()
202 static void mv88e639x_sgmii_pcs_pre_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_pre_config()
241 static int mv88e639x_sgmii_pcs_post_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_post_config()
260 static void mv88e639x_sgmii_pcs_get_state(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_get_state()
299 static int mv88e639x_sgmii_pcs_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_config()
339 static void mv88e639x_sgmii_pcs_an_restart(struct phylink_pcs *pcs) in mv88e639x_sgmii_pcs_an_restart()
[all …]
/linux/drivers/net/pcs/
H A Dpcs-lynx.c24 struct phylink_pcs pcs;
38 static unsigned int lynx_pcs_inband_caps(struct phylink_pcs *pcs, in lynx_pcs_inband_caps()
83 static void lynx_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in lynx_pcs_get_state()
173 static int lynx_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in lynx_pcs_config()
200 static void lynx_pcs_an_restart(struct phylink_pcs *pcs) in lynx_pcs_an_restart()
246 static void lynx_pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in lynx_pcs_link_up()
286 static struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio) in lynx_pcs_create()
306 struct phylink_pcs *lynx_pcs_create_mdiodev(struct mii_bus *bus, int addr) in lynx_pcs_create_mdiodev()
309 struct phylink_pcs *pcs; in lynx_pcs_create_mdiodev()
339 struct phylink_pcs *lynx_pcs_create_fwnode(struct fwnode_handle *node) in lynx_pcs_create_fwnode()
[all …]
H A Dpcs-mtk-lynxi.c84 struct phylink_pcs pcs;
89 static struct mtk_pcs_lynxi *pcs_to_mtk_pcs_lynxi(struct phylink_pcs *pcs) in pcs_to_mtk_pcs_lynxi()
94 static unsigned int mtk_pcs_lynxi_inband_caps(struct phylink_pcs *pcs, in mtk_pcs_lynxi_inband_caps()
108 static void mtk_pcs_lynxi_get_state(struct phylink_pcs *pcs, in mtk_pcs_lynxi_get_state()
166 static int mtk_pcs_lynxi_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mtk_pcs_lynxi_config()
264 static void mtk_pcs_lynxi_restart_an(struct phylink_pcs *pcs) in mtk_pcs_lynxi_restart_an()
271 static void mtk_pcs_lynxi_link_up(struct phylink_pcs *pcs, in mtk_pcs_lynxi_link_up()
297 static void mtk_pcs_lynxi_disable(struct phylink_pcs *pcs) in mtk_pcs_lynxi_disable()
313 struct phylink_pcs *mtk_pcs_lynxi_create(struct device *dev, in mtk_pcs_lynxi_create()
362 void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs) in mtk_pcs_lynxi_destroy()
H A Dpcs-xpcs.c179 struct phylink_pcs *xpcs_to_phylink_pcs(struct dw_xpcs *xpcs) in xpcs_to_phylink_pcs()
645 static int xpcs_validate(struct phylink_pcs *pcs, unsigned long *supported, in xpcs_validate()
670 static unsigned int xpcs_inband_caps(struct phylink_pcs *pcs, in xpcs_inband_caps()
721 static void xpcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) in xpcs_pre_config()
971 static int xpcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_config()
1161 static void xpcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_get_state()
1236 static void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_link_up()
1257 static void xpcs_an_restart(struct phylink_pcs *pcs) in xpcs_an_restart()
1294 static void xpcs_disable_eee(struct phylink_pcs *pcs) in xpcs_disable_eee()
1301 static void xpcs_enable_eee(struct phylink_pcs *pcs) in xpcs_enable_eee()
[all …]
H A Dpcs-rzn1-miic.c261 struct phylink_pcs pcs;
266 static struct miic_port *phylink_pcs_to_miic_port(struct phylink_pcs *pcs) in phylink_pcs_to_miic_port()
332 static int miic_config(struct phylink_pcs *pcs, unsigned int neg_mode, in miic_config()
383 static void miic_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in miic_link_up()
417 static int miic_pre_init(struct phylink_pcs *pcs) in miic_pre_init()
450 struct phylink_pcs *miic_create(struct device *dev, struct device_node *np) in miic_create()
511 void miic_destroy(struct phylink_pcs *pcs) in miic_destroy()
H A Dpcs-xpcs.h113 struct phylink_pcs pcs;
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.h30 struct phylink_pcs *(*create_pcs)(struct enetc_pf *pf, struct mii_bus *bus);
31 void (*destroy_pcs)(struct phylink_pcs *pcs);
52 struct phylink_pcs *pcs;
H A Denetc_pf_common.c312 struct phylink_pcs *phylink_pcs; in enetc_imdio_create() local
349 phylink_pcs = pf->ops->create_pcs(pf, bus); in enetc_imdio_create()
350 if (IS_ERR(phylink_pcs)) { in enetc_imdio_create()
351 err = PTR_ERR(phylink_pcs); in enetc_imdio_create()
357 pf->pcs = phylink_pcs; in enetc_imdio_create()
/linux/drivers/net/dsa/b53/
H A 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, unsigned int neg_mode, 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()
H A Db53_serdes.h112 struct phylink_pcs *b53_serdes_phylink_mac_select_pcs(struct b53_device *dev,
/linux/drivers/net/dsa/lantiq/
H A Dmxl-gsw1xx.c35 struct phylink_pcs pcs;
129 static unsigned int gsw1xx_pcs_inband_caps(struct phylink_pcs *pcs, in gsw1xx_pcs_inband_caps()
135 static struct gsw1xx_priv *pcs_to_gsw1xx(struct phylink_pcs *pcs) in pcs_to_gsw1xx()
140 static int gsw1xx_pcs_enable(struct phylink_pcs *pcs) in gsw1xx_pcs_enable()
149 static void gsw1xx_pcs_disable(struct phylink_pcs *pcs) in gsw1xx_pcs_disable()
162 static void gsw1xx_pcs_get_state(struct phylink_pcs *pcs, in gsw1xx_pcs_get_state()
335 static int gsw1xx_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in gsw1xx_pcs_config()
462 static void gsw1xx_pcs_an_restart(struct phylink_pcs *pcs) in gsw1xx_pcs_an_restart()
478 static void gsw1xx_pcs_link_up(struct phylink_pcs *pcs, in gsw1xx_pcs_link_up()
591 static struct phylink_pcs *gsw1xx_phylink_mac_select_pcs(struct phylink_config *config, in gsw1xx_phylink_mac_select_pcs()
H A Dlantiq_gswip.h266 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
/linux/drivers/net/dsa/ocelot/
H A Dseville_vsc9953.c887 sizeof(struct phylink_pcs *), in vsc9953_mdio_bus_alloc()
914 struct phylink_pcs *phylink_pcs; in vsc9953_mdio_bus_alloc() local
923 phylink_pcs = lynx_pcs_create_mdiodev(felix->imdio, addr); in vsc9953_mdio_bus_alloc()
924 if (IS_ERR(phylink_pcs)) in vsc9953_mdio_bus_alloc()
927 felix->pcs[port] = phylink_pcs; in vsc9953_mdio_bus_alloc()
941 struct phylink_pcs *phylink_pcs = felix->pcs[port]; in vsc9953_mdio_bus_free() local
943 if (phylink_pcs) in vsc9953_mdio_bus_free()
944 lynx_pcs_destroy(phylink_pcs); in vsc9953_mdio_bus_free()
H A Dfelix_vsc9959.c972 sizeof(struct phylink_pcs *), in vsc9959_mdio_bus_alloc()
1025 struct phylink_pcs *phylink_pcs; in vsc9959_mdio_bus_alloc() local
1033 phylink_pcs = lynx_pcs_create_mdiodev(felix->imdio, port); in vsc9959_mdio_bus_alloc()
1034 if (IS_ERR(phylink_pcs)) in vsc9959_mdio_bus_alloc()
1037 felix->pcs[port] = phylink_pcs; in vsc9959_mdio_bus_alloc()
1051 struct phylink_pcs *phylink_pcs = felix->pcs[port]; in vsc9959_mdio_bus_free() local
1053 if (phylink_pcs) in vsc9959_mdio_bus_free()
1054 lynx_pcs_destroy(phylink_pcs); in vsc9959_mdio_bus_free()
/linux/Documentation/networking/
H A Dsfp-phylink.rst254 provides a PCS abstraction through :c:type:`struct phylink_pcs <phylink_pcs>`.
263 one :c:type:`struct phylink_pcs <phylink_pcs>` instance per PCS block within
268 struct phylink_pcs pcs;
297 controlled through its own driver, add a pointer to a phylink_pcs instance
302 struct phylink_pcs *pcs;
322 must return a pointer to the relevant :c:type:`struct phylink_pcs <phylink_pcs>`
327 static struct phylink_pcs *foo_select_pcs(struct phylink_config *config,
/linux/drivers/net/ethernet/marvell/prestera/
H A 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()
287 phylink_pcs); in prestera_pcs_get_state()
304 static int prestera_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in prestera_pcs_config()
349 static void prestera_pcs_an_restart(struct phylink_pcs *pcs) in prestera_pcs_an_restart()
398 port->phylink_pcs.ops = &prestera_pcs_ops; in prestera_port_sfp_bind()
825 phylink_pcs_change(&port->phylink_pcs, true); in prestera_port_handle_event()
[all …]
H A Dprestera.h159 struct phylink_pcs phylink_pcs; member
/linux/drivers/net/ethernet/freescale/fman/
H A Dfman_memac.c293 struct phylink_pcs *sgmii_pcs;
294 struct phylink_pcs *qsgmii_pcs;
295 struct phylink_pcs *xfi_pcs;
663 static struct phylink_pcs *memac_select_pcs(struct phylink_config *config, in memac_select_pcs()
1061 static void pcs_put(struct phylink_pcs *pcs) in pcs_put()
1122 static struct phylink_pcs *memac_pcs_create(struct device_node *mac_node, in memac_pcs_create()
1126 struct phylink_pcs *pcs; in memac_pcs_create()
1155 struct phylink_pcs *pcs; in memac_initialization()
H A 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, unsigned int neg_mode, 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/drivers/net/dsa/
H A Drzn1_a5psw.h256 struct phylink_pcs *pcs[A5PSW_PORTS_NUM - 1];

12