Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/pcs/
H A 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 …]
H A 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()
H A 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 …]
/openbmc/linux/include/linux/
H A 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 …]
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A 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()
H A Dsparx5_main.c284 spx5_port->phylink_pcs.neg_mode = true; in sparx5_create_port()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A 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()
H A Dlan966x_main.c832 port->phylink_pcs.neg_mode = true; in lan966x_probe_port()
/openbmc/linux/include/linux/pcs/
H A Dpcs-xpcs.h40 void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
43 const unsigned long *advertising, unsigned int neg_mode);
/openbmc/linux/drivers/net/dsa/mv88e6xxx/
H A 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
565 mpcs->sgmii_pcs.neg_mode = true; in mv88e6390_pcs_init()
567 mpcs->xg_pcs.neg_mode = true; in mv88e6390_pcs_init()
944 mpcs->sgmii_pcs.neg_mode = true; in mv88e6393x_pcs_init()
946 mpcs->xg_pcs.neg_mode = true; in mv88e6393x_pcs_init()
H A 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()
/openbmc/linux/drivers/net/phy/
H A 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 …]
/openbmc/linux/drivers/net/dsa/b53/
H A 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()
/openbmc/linux/drivers/net/ethernet/freescale/fman/
H A 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()
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A 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()
/openbmc/linux/drivers/net/dsa/sja1105/
H A 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()
/openbmc/linux/drivers/net/dsa/qca/
H A Dqca8k-8xxx.c1522 static int qca8k_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in qca8k_pcs_config() argument
1549 val = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED ? in qca8k_pcs_config()
1625 qpcs->pcs.neg_mode = true; in qca8k_setup_pcs()
/openbmc/linux/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet_main.c1655 static int axienet_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in axienet_pcs_config() argument
1678 neg_mode); in axienet_pcs_config()
2158 lp->pcs.neg_mode = true; in axienet_probe()
/openbmc/linux/drivers/net/ethernet/cadence/
H A 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()
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c6204 static int mvpp2_xlg_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mvpp2_xlg_pcs_config() argument
6267 static int mvpp2_gmac_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mvpp2_gmac_pcs_config() argument
6281 if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED) { in mvpp2_gmac_pcs_config()
6932 port->pcs_gmac.neg_mode = true; in mvpp2_port_probe()
6934 port->pcs_xlg.neg_mode = true; in mvpp2_port_probe()
/openbmc/linux/drivers/net/dsa/
H A Dmt7530.c3214 static int mt753x_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mt7530_pcs_get_state()
3242 priv->pcs[i].pcs.neg_mode = true; in mt753x_setup()
3218 mt753x_pcs_config(struct phylink_pcs * pcs,unsigned int neg_mode,phy_interface_t interface,const unsigned long * advertising,bool permit_pause_to_mac) mt753x_pcs_config() argument
/openbmc/linux/drivers/net/ethernet/marvell/
H A 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()
5533 pp->phylink_pcs.neg_mode = true; in mvneta_probe()