Home
last modified time | relevance | path

Searched refs:xpcs (Results 1 – 11 of 11) sorted by relevance

/drivers/net/pcs/
A Dpcs-xpcs.c137 return &xpcs->pcs; in xpcs_to_phylink_pcs()
1416 xpcs = kzalloc(sizeof(*xpcs), GFP_KERNEL); in xpcs_create_data()
1417 if (!xpcs) in xpcs_create_data()
1425 return xpcs; in xpcs_create_data()
1431 kfree(xpcs); in xpcs_free_data()
1486 return xpcs; in xpcs_create()
1496 xpcs_get_interfaces(xpcs, xpcs->pcs.supported_interfaces); in xpcs_create()
1503 return xpcs; in xpcs_create()
1542 return xpcs; in xpcs_create_mdiodev()
1590 return xpcs; in xpcs_create_fwnode()
[all …]
A Dpcs-xpcs-wx.c63 txgbe_write_pma(xpcs, TXGBE_MPLLA_CTL3, 0); in txgbe_pma_config_10gbaser()
70 txgbe_write_pma(xpcs, TXGBE_TX_RATE_CTL, 0); in txgbe_pma_config_10gbaser()
89 txgbe_modify_pma(xpcs, TXGBE_TX_GENCTL1, in txgbe_pma_config_1g()
124 xpcs, DW_VR_XS_PCS_DIG_STS); in txgbe_pcs_poll_power_up()
140 xpcs, DW_VR_XS_PCS_DIG_CTRL1); in txgbe_pma_init_done()
175 if (xpcs->interface == interface && !txgbe_xpcs_mode_quirk(xpcs)) in txgbe_xpcs_switch_mode()
178 xpcs->interface = interface; in txgbe_xpcs_switch_mode()
180 ret = txgbe_pcs_poll_power_up(xpcs); in txgbe_xpcs_switch_mode()
188 txgbe_pma_config_10gbaser(xpcs); in txgbe_xpcs_switch_mode()
193 txgbe_pma_config_1g(xpcs); in txgbe_xpcs_switch_mode()
[all …]
A Dpcs-xpcs-nxp.c72 int nxp_sja1105_sgmii_pma_config(struct dw_xpcs *xpcs) in nxp_sja1105_sgmii_pma_config() argument
74 return xpcs_write(xpcs, MDIO_MMD_VEND2, DW_VR_MII_DIG_CTRL2, in nxp_sja1105_sgmii_pma_config()
78 static int nxp_sja1110_pma_config(struct dw_xpcs *xpcs, in nxp_sja1110_pma_config() argument
89 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_TXPLL_CTRL0, in nxp_sja1110_pma_config()
94 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_TXPLL_CTRL1, in nxp_sja1110_pma_config()
100 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_LANE_DRIVER1_0, in nxp_sja1110_pma_config()
134 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_RXPLL_CTRL0, in nxp_sja1110_pma_config()
139 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_RXPLL_CTRL1, in nxp_sja1110_pma_config()
165 return xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_RX_CDR_CTLE, in nxp_sja1110_pma_config()
169 int nxp_sja1110_sgmii_pma_config(struct dw_xpcs *xpcs) in nxp_sja1110_sgmii_pma_config() argument
[all …]
A Dpcs-xpcs.h119 int xpcs_read(struct dw_xpcs *xpcs, int dev, u32 reg);
120 int xpcs_write(struct dw_xpcs *xpcs, int dev, u32 reg, u16 val);
121 int xpcs_modify(struct dw_xpcs *xpcs, int dev, u32 reg, u16 mask, u16 set);
122 int xpcs_read_vpcs(struct dw_xpcs *xpcs, int reg);
123 int xpcs_write_vpcs(struct dw_xpcs *xpcs, int reg, u16 val);
124 int nxp_sja1105_sgmii_pma_config(struct dw_xpcs *xpcs);
125 int nxp_sja1110_sgmii_pma_config(struct dw_xpcs *xpcs);
126 int nxp_sja1110_2500basex_pma_config(struct dw_xpcs *xpcs);
127 int txgbe_xpcs_switch_mode(struct dw_xpcs *xpcs, phy_interface_t interface);
A DMakefile4 pcs_xpcs-$(CONFIG_PCS_XPCS) := pcs-xpcs.o pcs-xpcs-plat.o \
5 pcs-xpcs-nxp.o pcs-xpcs-wx.o
/drivers/net/ethernet/stmicro/stmmac/
A Ddwmac-tegra.c27 void __iomem *xpcs; member
91 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_STATUS); in tegra_mgbe_resume()
120 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
122 writel(value, mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
124 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
126 writel(value, mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
128 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
183 writel(value, mgbe->xpcs + XPCS_WRAP_IRQ_STATUS); in mgbe_uphy_lane_bringup_serdes_up()
243 if (IS_ERR(mgbe->xpcs)) in tegra_mgbe_probe()
244 return PTR_ERR(mgbe->xpcs); in tegra_mgbe_probe()
[all …]
A Dstmmac_mdio.c501 struct dw_xpcs *xpcs = NULL; in stmmac_pcs_setup() local
512 xpcs = xpcs_create_fwnode(pcsnode); in stmmac_pcs_setup()
514 ret = PTR_ERR_OR_ZERO(xpcs); in stmmac_pcs_setup()
518 xpcs = xpcs_create_mdiodev(priv->mii, addr); in stmmac_pcs_setup()
519 ret = PTR_ERR_OR_ZERO(xpcs); in stmmac_pcs_setup()
527 if (xpcs) in stmmac_pcs_setup()
528 xpcs_config_eee_mult_fact(xpcs, priv->plat->mult_fact_100ns); in stmmac_pcs_setup()
530 priv->hw->xpcs = xpcs; in stmmac_pcs_setup()
542 if (!priv->hw->xpcs) in stmmac_pcs_clean()
545 xpcs_destroy(priv->hw->xpcs); in stmmac_pcs_clean()
[all …]
A Dcommon.h595 struct dw_xpcs *xpcs; member
A Ddwmac-intel.c603 return xpcs_to_phylink_pcs(priv->hw->xpcs); in intel_mgbe_select_pcs()
A Dstmmac_main.c1309 if (priv->hw->xpcs) in stmmac_phy_setup()
1310 pcs = xpcs_to_phylink_pcs(priv->hw->xpcs); in stmmac_phy_setup()
4049 if ((!priv->hw->xpcs || in __stmmac_open()
4050 xpcs_get_an_mode(priv->hw->xpcs, mode) != DW_AN_C73)) { in __stmmac_open()
/drivers/net/ethernet/marvell/mvpp2/
A Dmvpp2_main.c1583 void __iomem *xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_gop_init_10gkr() local
1586 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr()
1590 writel(val, xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr()
2183 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_assert() local
2190 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_assert()
2197 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert()
2198 writel(val & ~MVPP22_XPCS_CFG0_RESET_DIS, xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert()
2205 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_deassert() local
2212 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_deassert()
2225 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_deassert()
[all …]

Completed in 49 milliseconds