/linux-6.12.1/include/linux/ |
D | phylink.h | 182 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 …]
|
D | pcs-lynx.h | 12 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);
|
D | pcs-rzn1-miic.h | 14 struct phylink_pcs *miic_create(struct device *dev, struct device_node *np); 16 void miic_destroy(struct phylink_pcs *pcs);
|
/linux-6.12.1/drivers/net/dsa/mv88e6xxx/ |
D | pcs-6185.c | 16 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 …]
|
D | pcs-6352.c | 26 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 …]
|
D | pcs-639x.c | 21 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.12.1/drivers/net/ethernet/meta/fbnic/ |
D | fbnic_phylink.c | 12 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()
|
D | fbnic_netdev.h | 30 struct phylink_pcs phylink_pcs; member
|
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-rzn1.c | 20 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()
|
D | dwmac-socfpga.c | 392 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.12.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_phylink.c | 11 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.12.1/drivers/net/pcs/ |
D | pcs-lynx.c | 24 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 …]
|
D | pcs-mtk-lynxi.c | 82 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()
|
D | pcs-rzn1-miic.c | 142 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-6.12.1/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_phylink.c | 29 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.12.1/include/linux/pcs/ |
D | pcs-mtk-lynxi.h | 9 struct phylink_pcs *mtk_pcs_lynxi_create(struct device *dev, 12 void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs);
|
D | pcs-xpcs.h | 62 struct phylink_pcs pcs; 67 void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
|
/linux-6.12.1/drivers/net/dsa/b53/ |
D | b53_serdes.c | 20 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-6.12.1/drivers/net/dsa/ocelot/ |
D | seville_vsc9953.c | 888 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.12.1/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-mac.c | 152 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()
|
D | dpaa2-mac.h | 27 struct phylink_pcs *pcs;
|
/linux-6.12.1/Documentation/networking/ |
D | sfp-phylink.rst | 254 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.12.1/drivers/net/ethernet/marvell/prestera/ |
D | prestera_main.c | 240 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-6.12.1/drivers/net/ethernet/freescale/fman/ |
D | fman_memac.c | 293 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-6.12.1/drivers/net/ethernet/freescale/enetc/ |
D | enetc_pf.h | 49 struct phylink_pcs *pcs;
|