| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A 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() 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 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() 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 D | pcs-639x.c | 22 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 D | pcs-lynx.c | 24 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 D | pcs-mtk-lynxi.c | 84 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() 160 static int mtk_pcs_lynxi_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mtk_pcs_lynxi_config() 258 static void mtk_pcs_lynxi_restart_an(struct phylink_pcs *pcs) in mtk_pcs_lynxi_restart_an() 265 static void mtk_pcs_lynxi_link_up(struct phylink_pcs *pcs, in mtk_pcs_lynxi_link_up() 291 static void mtk_pcs_lynxi_disable(struct phylink_pcs *pcs) in mtk_pcs_lynxi_disable() 307 struct phylink_pcs *mtk_pcs_lynxi_create(struct device *dev, in mtk_pcs_lynxi_create() 356 void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs) in mtk_pcs_lynxi_destroy()
|
| H A D | pcs-xpcs.c | 179 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() 1179 static void xpcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_get_state() 1254 static void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_link_up() 1275 static void xpcs_an_restart(struct phylink_pcs *pcs) in xpcs_an_restart() 1312 static void xpcs_disable_eee(struct phylink_pcs *pcs) in xpcs_disable_eee() 1319 static void xpcs_enable_eee(struct phylink_pcs *pcs) in xpcs_enable_eee() [all …]
|
| H A D | pcs-rzn1-miic.c | 261 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 D | pcs-xpcs.h | 113 struct phylink_pcs pcs;
|
| /linux/include/linux/ |
| H A 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);
|
| H A 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/drivers/net/dsa/b53/ |
| H A 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, 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 D | b53_serdes.h | 112 struct phylink_pcs *b53_serdes_phylink_mac_select_pcs(struct b53_device *dev,
|
| /linux/drivers/net/dsa/lantiq/ |
| H A D | mxl-gsw1xx.c | 35 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 D | lantiq_gswip.h | 266 struct phylink_pcs *(*mac_select_pcs)(struct phylink_config *config,
|
| /linux/Documentation/networking/ |
| H A 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/drivers/net/ethernet/marvell/prestera/ |
| H A 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() 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 D | prestera.h | 159 struct phylink_pcs phylink_pcs; member
|
| /linux/drivers/net/ethernet/freescale/fman/ |
| H A D | fman_memac.c | 293 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 D | fman_dtsec.c | 321 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/ocelot/ |
| H A D | felix_vsc9959.c | 972 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/drivers/net/dsa/ |
| H A D | rzn1_a5psw.h | 256 struct phylink_pcs *pcs[A5PSW_PORTS_NUM - 1];
|
| H A D | mt7530.h | 806 struct phylink_pcs *sgmii_pcs; 820 struct phylink_pcs pcs;
|
| /linux/drivers/net/dsa/qca/ |
| H A D | qca8k-8xxx.c | 1285 static struct phylink_pcs * 1291 struct phylink_pcs *pcs = NULL; in qca8k_phylink_mac_select_pcs() 1489 static struct qca8k_pcs *pcs_to_qca8k_pcs(struct phylink_pcs *pcs) in pcs_to_qca8k_pcs() 1494 static void qca8k_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in qca8k_pcs_get_state() 1534 static int qca8k_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in qca8k_pcs_config() 1623 static void qca8k_pcs_an_restart(struct phylink_pcs *pcs) in qca8k_pcs_an_restart()
|
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_main.h | 406 struct phylink_pcs phylink_pcs; member
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_pf.c | 34 static struct phylink_pcs *enetc_pf_create_pcs(struct enetc_pf *pf, in enetc_pf_create_pcs() 40 static void enetc_pf_destroy_pcs(struct phylink_pcs *pcs) in enetc_pf_destroy_pcs() 638 static struct phylink_pcs *
|