Home
last modified time | relevance | path

Searched refs:neg_mode (Results 1 – 22 of 22) sorted by relevance

/Linux-v6.6/drivers/net/pcs/
Dpcs-lynx.c118 unsigned int neg_mode) in lynx_pcs_config_giga() argument
138 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) in lynx_pcs_config_giga()
149 neg_mode); in lynx_pcs_config_giga()
154 unsigned int neg_mode) in lynx_pcs_config_usxgmii() argument
159 if (neg_mode != PHYLINK_PCS_NEG_INBAND_ENABLED) { in lynx_pcs_config_usxgmii()
171 static int lynx_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in lynx_pcs_config() argument
182 neg_mode); in lynx_pcs_config()
184 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) { in lynx_pcs_config()
192 neg_mode); in lynx_pcs_config()
211 unsigned int neg_mode, in lynx_pcs_link_up_sgmii() argument
[all …]
Dpcs-mtk-lynxi.c105 static int mtk_pcs_lynxi_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mtk_pcs_lynxi_config() argument
129 if (neg_mode & PHYLINK_PCS_NEG_INBAND) in mtk_pcs_lynxi_config()
132 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) { in mtk_pcs_lynxi_config()
211 unsigned int neg_mode, in mtk_pcs_lynxi_link_up() argument
218 if (neg_mode != PHYLINK_PCS_NEG_INBAND_ENABLED) { in mtk_pcs_lynxi_link_up()
289 mpcs->pcs.neg_mode = true; in mtk_pcs_lynxi_create()
Dpcs-xpcs.c684 unsigned int neg_mode) in xpcs_config_aneg_c37_sgmii() argument
743 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) in xpcs_config_aneg_c37_sgmii()
755 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) in xpcs_config_aneg_c37_sgmii()
763 unsigned int neg_mode, in xpcs_config_aneg_c37_1000basex() argument
819 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) { in xpcs_config_aneg_c37_1000basex()
852 const unsigned long *advertising, unsigned int neg_mode) in xpcs_do_config() argument
871 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) { in xpcs_do_config()
878 ret = xpcs_config_aneg_c37_sgmii(xpcs, neg_mode); in xpcs_do_config()
883 ret = xpcs_config_aneg_c37_1000basex(xpcs, neg_mode, in xpcs_do_config()
907 static int xpcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_config() argument
[all …]
/Linux-v6.6/include/linux/
Dphylink.h124 unsigned int neg_mode; in phylink_pcs_neg_mode() local
137 neg_mode = PHYLINK_PCS_NEG_OUTBAND; in phylink_pcs_neg_mode()
139 neg_mode = PHYLINK_PCS_NEG_INBAND_ENABLED; in phylink_pcs_neg_mode()
151 neg_mode = PHYLINK_PCS_NEG_OUTBAND; in phylink_pcs_neg_mode()
154 neg_mode = PHYLINK_PCS_NEG_INBAND_ENABLED; in phylink_pcs_neg_mode()
156 neg_mode = PHYLINK_PCS_NEG_INBAND_DISABLED; in phylink_pcs_neg_mode()
160 neg_mode = PHYLINK_PCS_NEG_NONE; in phylink_pcs_neg_mode()
164 return neg_mode; in phylink_pcs_neg_mode()
494 bool neg_mode; member
522 int (*pcs_config)(struct phylink_pcs *pcs, unsigned int neg_mode,
[all …]
/Linux-v6.6/drivers/net/ethernet/microchip/sparx5/
Dsparx5_phylink.c94 static int sparx5_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in sparx5_pcs_config() argument
106 conf.inband = neg_mode == PHYLINK_PCS_NEG_INBAND_DISABLED || in sparx5_pcs_config()
107 neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED; in sparx5_pcs_config()
108 conf.autoneg = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED; in sparx5_pcs_config()
Dsparx5_main.c284 spx5_port->phylink_pcs.neg_mode = true; in sparx5_create_port()
/Linux-v6.6/drivers/net/ethernet/microchip/lan966x/
Dlan966x_phylink.c98 static int lan966x_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in lan966x_pcs_config() argument
109 config.inband = neg_mode & PHYLINK_PCS_NEG_INBAND; in lan966x_pcs_config()
110 config.autoneg = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED; in lan966x_pcs_config()
Dlan966x_main.c832 port->phylink_pcs.neg_mode = true; in lan966x_probe_port()
/Linux-v6.6/include/linux/pcs/
Dpcs-xpcs.h40 void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
43 const unsigned long *advertising, unsigned int neg_mode);
/Linux-v6.6/drivers/net/dsa/mv88e6xxx/
Dpcs-639x.c298 unsigned int neg_mode, in mv88e639x_sgmii_pcs_config() argument
325 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) in mv88e639x_sgmii_pcs_config()
437 unsigned int neg_mode, in mv88e639x_xg_pcs_config() argument
564 mpcs->sgmii_pcs.neg_mode = true; in mv88e6390_pcs_init()
566 mpcs->xg_pcs.neg_mode = true; in mv88e6390_pcs_init()
917 mpcs->sgmii_pcs.neg_mode = true; in mv88e6393x_pcs_init()
919 mpcs->xg_pcs.neg_mode = true; in mv88e6393x_pcs_init()
Dpcs-6352.c185 unsigned int neg_mode, in marvell_c22_pcs_config() argument
198 bmcr = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED ? BMCR_ANENABLE : 0; in marvell_c22_pcs_config()
277 mpcs->phylink_pcs.neg_mode = true; in marvell_c22_pcs_alloc()
/Linux-v6.6/drivers/net/phy/
Dphylink.c1056 static int phylink_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in phylink_pcs_config() argument
1063 return pcs->ops->pcs_config(pcs, neg_mode, state->interface, in phylink_pcs_config()
1067 static void phylink_pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in phylink_pcs_link_up() argument
1072 pcs->ops->pcs_link_up(pcs, neg_mode, interface, speed, duplex); in phylink_pcs_link_up()
1125 unsigned int neg_mode; in phylink_major_config() local
1183 neg_mode = pl->cur_link_an_mode; in phylink_major_config()
1184 if (pl->pcs && pl->pcs->neg_mode) in phylink_major_config()
1185 neg_mode = pl->pcs_neg_mode; in phylink_major_config()
1187 err = phylink_pcs_config(pl->pcs, neg_mode, state, in phylink_major_config()
1223 unsigned int neg_mode; in phylink_change_inband_advert() local
[all …]
/Linux-v6.6/drivers/net/dsa/b53/
Db53_serdes.c68 static int b53_serdes_config(struct phylink_pcs *pcs, unsigned int neg_mode, in b53_serdes_config() argument
242 pcs->pcs.neg_mode = true; in b53_serdes_init()
/Linux-v6.6/drivers/net/ethernet/freescale/fman/
Dfman_dtsec.c766 static int dtsec_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in dtsec_pcs_config() argument
774 advertising, neg_mode); in dtsec_pcs_config()
1450 dtsec->pcs.neg_mode = true; in dtsec_initialization()
/Linux-v6.6/drivers/net/ethernet/marvell/prestera/
Dprestera_main.c303 static int prestera_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in prestera_pcs_config() argument
318 cfg_mac.inband = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED; in prestera_pcs_config()
398 port->phylink_pcs.neg_mode = true; in prestera_port_sfp_bind()
/Linux-v6.6/drivers/net/dsa/sja1105/
Dsja1105_main.c2373 unsigned int neg_mode; in sja1105_static_config_reload() local
2383 neg_mode = PHYLINK_PCS_NEG_INBAND_ENABLED; in sja1105_static_config_reload()
2385 neg_mode = PHYLINK_PCS_NEG_OUTBAND; in sja1105_static_config_reload()
2387 rc = xpcs_do_config(xpcs, priv->phy_mode[i], NULL, neg_mode); in sja1105_static_config_reload()
2391 if (neg_mode == PHYLINK_PCS_NEG_OUTBAND) { in sja1105_static_config_reload()
2403 xpcs_link_up(&xpcs->pcs, neg_mode, priv->phy_mode[i], in sja1105_static_config_reload()
/Linux-v6.6/drivers/net/dsa/qca/
Dqca8k-8xxx.c1511 static int qca8k_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in qca8k_pcs_config() argument
1538 val = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED ? in qca8k_pcs_config()
1614 qpcs->pcs.neg_mode = true; in qca8k_setup_pcs()
/Linux-v6.6/drivers/net/ethernet/xilinx/
Dxilinx_axienet_main.c1635 static int axienet_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in axienet_pcs_config() argument
1658 neg_mode); in axienet_pcs_config()
2134 lp->pcs.neg_mode = true; in axienet_probe()
/Linux-v6.6/drivers/net/ethernet/cadence/
Dmacb_main.c565 static void macb_usx_pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in macb_usx_pcs_link_up() argument
598 unsigned int neg_mode, in macb_usx_pcs_config() argument
623 unsigned int neg_mode, in macb_pcs_config() argument
865 bp->phylink_sgmii_pcs.neg_mode = true; in macb_mii_probe()
867 bp->phylink_usx_pcs.neg_mode = true; in macb_mii_probe()
/Linux-v6.6/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c6176 static int mvpp2_xlg_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mvpp2_xlg_pcs_config() argument
6239 static int mvpp2_gmac_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mvpp2_gmac_pcs_config() argument
6253 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) { in mvpp2_gmac_pcs_config()
6904 port->pcs_gmac.neg_mode = true; in mvpp2_port_probe()
6906 port->pcs_xlg.neg_mode = true; in mvpp2_port_probe()
/Linux-v6.6/drivers/net/dsa/
Dmt7530.c3006 static int mt753x_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mt753x_pcs_config() argument
3034 priv->pcs[i].pcs.neg_mode = true; in mt753x_setup()
/Linux-v6.6/drivers/net/ethernet/marvell/
Dmvneta.c4005 static int mvneta_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mvneta_pcs_config() argument
4019 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) { in mvneta_pcs_config()
5521 pp->phylink_pcs.neg_mode = true; in mvneta_probe()