Home
last modified time | relevance | path

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

123

/linux-6.15/include/linux/
H A Dphylink.h466 struct phylink_pcs { struct
499 int (*pcs_enable)(struct phylink_pcs *pcs);
500 void (*pcs_disable)(struct phylink_pcs *pcs);
501 void (*pcs_pre_config)(struct phylink_pcs *pcs,
516 int (*pcs_pre_init)(struct phylink_pcs *pcs);
555 int pcs_enable(struct phylink_pcs *pcs);
561 void pcs_disable(struct phylink_pcs *pcs);
627 void pcs_an_restart(struct phylink_pcs *pcs);
655 void pcs_disable_eee(struct phylink_pcs *pcs);
663 void pcs_enable_eee(struct phylink_pcs *pcs);
[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-6.15/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
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()
277 mpcs->phylink_pcs.ops = &marvell_c22_pcs_ops; in marvell_c22_pcs_alloc()
287 mpcs->phylink_pcs.poll = !irq; in marvell_c22_pcs_setup_irq()
355 chip->ports[port].pcs_private = &mpcs->phylink_pcs; in mv88e6352_pcs_init()
[all …]
H A Dpcs-639x.c22 struct phylink_pcs sgmii_pcs;
23 struct phylink_pcs xg_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()
299 static int mv88e639x_sgmii_pcs_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_config()
399 static void mv88e639x_xg_pcs_get_state(struct phylink_pcs *pcs, in mv88e639x_xg_pcs_get_state()
439 static int mv88e639x_xg_pcs_config(struct phylink_pcs *pcs, in mv88e639x_xg_pcs_config()
448 static struct phylink_pcs *
513 static int mv88e6390_xg_pcs_enable(struct phylink_pcs *pcs) in mv88e6390_xg_pcs_enable()
527 static void mv88e6390_xg_pcs_disable(struct phylink_pcs *pcs) in mv88e6390_xg_pcs_disable()
[all …]
/linux-6.15/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_phylink.c12 fbnic_pcs_to_net(struct phylink_pcs *pcs) in fbnic_pcs_to_net()
14 return container_of(pcs, struct fbnic_net, phylink_pcs); in fbnic_pcs_to_net()
18 fbnic_phylink_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in fbnic_phylink_pcs_get_state()
49 fbnic_phylink_pcs_enable(struct phylink_pcs *pcs) in fbnic_phylink_pcs_enable()
58 fbnic_phylink_pcs_disable(struct phylink_pcs *pcs) in fbnic_phylink_pcs_disable()
67 fbnic_phylink_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in fbnic_phylink_pcs_config()
82 static struct phylink_pcs *
89 return &fbn->phylink_pcs; in fbnic_phylink_mac_select_pcs()
136 fbn->phylink_pcs.ops = &fbnic_phylink_pcs_ops; in fbnic_phylink_init()
H A Dfbnic_netdev.h43 struct phylink_pcs phylink_pcs; member
/linux-6.15/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-rzn1.c20 struct phylink_pcs *pcs; in rzn1_dwmac_pcs_init()
30 priv->hw->phylink_pcs = pcs; in rzn1_dwmac_pcs_init()
38 if (priv->hw->phylink_pcs) in rzn1_dwmac_pcs_exit()
39 miic_destroy(priv->hw->phylink_pcs); in rzn1_dwmac_pcs_exit()
42 static struct phylink_pcs *rzn1_dwmac_select_pcs(struct stmmac_priv *priv, in rzn1_dwmac_select_pcs()
45 return priv->hw->phylink_pcs; in rzn1_dwmac_select_pcs()
H A Ddwmac-socfpga.c392 struct phylink_pcs *pcs; in socfpga_dwmac_pcs_init()
422 priv->hw->phylink_pcs = pcs; in socfpga_dwmac_pcs_init()
428 if (priv->hw->phylink_pcs) in socfpga_dwmac_pcs_exit()
429 lynx_pcs_destroy(priv->hw->phylink_pcs); in socfpga_dwmac_pcs_exit()
432 static struct phylink_pcs *socfpga_dwmac_select_pcs(struct stmmac_priv *priv, in socfpga_dwmac_select_pcs()
435 return priv->hw->phylink_pcs; in socfpga_dwmac_select_pcs()
/linux-6.15/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()
103 static void lynx_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in lynx_pcs_get_state()
191 static int lynx_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in lynx_pcs_config()
223 static void lynx_pcs_an_restart(struct phylink_pcs *pcs) in lynx_pcs_an_restart()
346 static struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio) in lynx_pcs_create()
366 struct phylink_pcs *lynx_pcs_create_mdiodev(struct mii_bus *bus, int addr) in lynx_pcs_create_mdiodev()
369 struct phylink_pcs *pcs; in lynx_pcs_create_mdiodev()
399 struct phylink_pcs *lynx_pcs_create_fwnode(struct fwnode_handle *node) in lynx_pcs_create_fwnode()
402 struct phylink_pcs *pcs; in lynx_pcs_create_fwnode()
[all …]
H A 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 unsigned int mtk_pcs_lynxi_inband_caps(struct phylink_pcs *pcs, in mtk_pcs_lynxi_inband_caps()
107 static void mtk_pcs_lynxi_get_state(struct phylink_pcs *pcs, in mtk_pcs_lynxi_get_state()
123 static int mtk_pcs_lynxi_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mtk_pcs_lynxi_config()
221 static void mtk_pcs_lynxi_restart_an(struct phylink_pcs *pcs) in mtk_pcs_lynxi_restart_an()
228 static void mtk_pcs_lynxi_link_up(struct phylink_pcs *pcs, in mtk_pcs_lynxi_link_up()
254 static void mtk_pcs_lynxi_disable(struct phylink_pcs *pcs) in mtk_pcs_lynxi_disable()
270 struct phylink_pcs *mtk_pcs_lynxi_create(struct device *dev, in mtk_pcs_lynxi_create()
319 void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs) in mtk_pcs_lynxi_destroy()
H A 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 neg_mode, in miic_config()
237 static void miic_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in miic_link_up()
271 static int miic_pre_init(struct phylink_pcs *pcs) in miic_pre_init()
304 struct phylink_pcs *miic_create(struct device *dev, struct device_node *np) in miic_create()
361 void miic_destroy(struct phylink_pcs *pcs) in miic_destroy()
H A Dpcs-xpcs.c135 struct phylink_pcs *xpcs_to_phylink_pcs(struct dw_xpcs *xpcs) in xpcs_to_phylink_pcs()
545 static int xpcs_validate(struct phylink_pcs *pcs, unsigned long *supported, in xpcs_validate()
570 static unsigned int xpcs_inband_caps(struct phylink_pcs *pcs, in xpcs_inband_caps()
871 static int xpcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_config()
1079 static void xpcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_get_state()
1154 static void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_link_up()
1175 static void xpcs_an_restart(struct phylink_pcs *pcs) in xpcs_an_restart()
1212 static void xpcs_disable_eee(struct phylink_pcs *pcs) in xpcs_disable_eee()
1219 static void xpcs_enable_eee(struct phylink_pcs *pcs) in xpcs_enable_eee()
1546 struct phylink_pcs *xpcs_create_pcs_mdiodev(struct mii_bus *bus, int addr) in xpcs_create_pcs_mdiodev()
[all …]
/linux-6.15/drivers/net/ethernet/microchip/lan966x/
H A 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()
99 static int lan966x_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in lan966x_pcs_config()
121 static void lan966x_pcs_aneg_restart(struct phylink_pcs *pcs) in lan966x_pcs_aneg_restart()
/linux-6.15/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_phylink.c29 static struct phylink_pcs *
44 return &port->phylink_pcs; in sparx5_phylink_mac_select_pcs()
87 static struct sparx5_port *sparx5_pcs_to_port(struct phylink_pcs *pcs) in sparx5_pcs_to_port()
89 return container_of(pcs, struct sparx5_port, phylink_pcs); in sparx5_pcs_to_port()
92 static void sparx5_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in sparx5_pcs_get_state()
106 static int sparx5_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in sparx5_pcs_config()
141 static void sparx5_pcs_aneg_restart(struct phylink_pcs *pcs) in sparx5_pcs_aneg_restart()
/linux-6.15/include/linux/pcs/
H A Dpcs-xpcs.h51 struct phylink_pcs *xpcs_to_phylink_pcs(struct dw_xpcs *xpcs);
58 struct phylink_pcs *xpcs_create_pcs_mdiodev(struct mii_bus *bus, int addr);
59 void xpcs_destroy_pcs(struct phylink_pcs *pcs);
H A Dpcs-mtk-lynxi.h9 struct phylink_pcs *mtk_pcs_lynxi_create(struct device *dev,
12 void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs);
/linux-6.15/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.h44 struct phylink_pcs *(*create_pcs)(struct enetc_pf *pf, struct mii_bus *bus);
45 void (*destroy_pcs)(struct phylink_pcs *pcs);
67 struct phylink_pcs *pcs;
H A Denetc_pf_common.c198 struct phylink_pcs *phylink_pcs; in enetc_imdio_create() local
230 phylink_pcs = pf->ops->create_pcs(pf, bus); in enetc_imdio_create()
231 if (IS_ERR(phylink_pcs)) { in enetc_imdio_create()
232 err = PTR_ERR(phylink_pcs); in enetc_imdio_create()
238 pf->pcs = phylink_pcs; in enetc_imdio_create()
/linux-6.15/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()
/linux-6.15/drivers/net/dsa/ocelot/
H A 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()
/linux-6.15/drivers/net/ethernet/freescale/dpaa2/
H A 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()
/linux-6.15/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-6.15/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 …]

123