Home
last modified time | relevance | path

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

123

/linux/include/linux/
H A Dphylink.h182 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
224 struct phylink_pcs *mac_select_pcs(struct phylink_config *config,
411 struct phylink_pcs { struct
435 int (*pcs_validate)(struct phylink_pcs *pcs, unsigned long *supported, argument
437 int (*pcs_enable)(struct phylink_pcs *pcs);
438 void (*pcs_disable)(struct phylink_pcs *pcs);
439 void (*pcs_pre_config)(struct phylink_pcs *pcs,
441 int (*pcs_post_config)(struct phylink_pcs *pcs,
443 void (*pcs_get_state)(struct phylink_pcs *pcs,
445 int (*pcs_config)(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()
98 static int mv88e6185_pcs_config(struct phylink_pcs *pcs, unsigned int neg_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()
140 mpcs->phylink_pcs.neg_mode = true; in mv88e6185_pcs_init()
156 mpcs->phylink_pcs.poll = true; 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()
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 …]
H A 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/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, 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.neg_mode = true; in fbnic_phylink_init()
137 fbn->phylink_pcs.ops = &fbnic_phylink_pcs_ops; in fbnic_phylink_init()
H A Dfbnic_netdev.h30 struct phylink_pcs phylink_pcs; member
/linux/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/drivers/net/pcs/
H A Dpcs-lynx.c24 struct phylink_pcs pcs;
82 static void lynx_pcs_get_state(struct phylink_pcs *pcs, in lynx_pcs_get_state()
170 static int lynx_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in lynx_pcs_config()
202 static void lynx_pcs_an_restart(struct phylink_pcs *pcs) in lynx_pcs_an_restart()
284 static void lynx_pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in lynx_pcs_link_up()
315 static struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio) in lynx_pcs_create()
332 struct phylink_pcs *lynx_pcs_create_mdiodev(struct mii_bus *bus, int addr) in lynx_pcs_create_mdiodev()
335 struct phylink_pcs *pcs; in lynx_pcs_create_mdiodev()
365 struct phylink_pcs *lynx_pcs_create_fwnode(struct fwnode_handle *node) in lynx_pcs_create_fwnode()
368 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 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()
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_validate(struct phylink_pcs *pcs, unsigned long *supported, in miic_validate()
282 static int miic_pre_init(struct phylink_pcs *pcs) in miic_pre_init()
316 struct phylink_pcs *miic_create(struct device *dev, struct device_node *np) in miic_create()
370 void miic_destroy(struct phylink_pcs *pcs) in miic_destroy()
/linux/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()
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/drivers/net/ethernet/microchip/sparx5/
H A 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/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, 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/include/linux/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);
H A Dpcs-xpcs.h62 struct phylink_pcs pcs;
67 void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
/linux/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/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()
H A Ddpaa2-mac.h27 struct phylink_pcs *pcs;
/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()
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()
[all …]
/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;
662 static struct phylink_pcs *memac_select_pcs(struct phylink_config *config, in memac_select_pcs()
975 static void pcs_put(struct phylink_pcs *pcs) in pcs_put()
1036 static struct phylink_pcs *memac_pcs_create(struct device_node *mac_node, in memac_pcs_create()
1040 struct phylink_pcs *pcs; in memac_pcs_create()
1069 struct phylink_pcs *pcs; in memac_initialization()
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.h49 struct phylink_pcs *pcs;

123