Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/pcs/
A Dpcs-xpcs.c652 struct dw_xpcs *xpcs; in xpcs_validate() local
1270 struct dw_xpcs *xpcs; in xpcs_create() local
1274 xpcs = kzalloc(sizeof(*xpcs), GFP_KERNEL); in xpcs_create()
1275 if (!xpcs) in xpcs_create()
1278 xpcs->mdiodev = mdiodev; in xpcs_create()
1280 xpcs_id = xpcs_get_id(xpcs); in xpcs_create()
1289 xpcs->id = entry; in xpcs_create()
1298 xpcs->pcs.poll = true; in xpcs_create()
1304 return xpcs; in xpcs_create()
1310 kfree(xpcs); in xpcs_create()
[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()
169 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_RX_CDR_CTLE, in nxp_sja1110_pma_config()
177 int nxp_sja1110_sgmii_pma_config(struct dw_xpcs *xpcs) in nxp_sja1110_sgmii_pma_config() argument
[all …]
A Dpcs-xpcs.h110 int xpcs_read(struct dw_xpcs *xpcs, int dev, u32 reg);
111 int xpcs_write(struct dw_xpcs *xpcs, int dev, u32 reg, u16 val);
112 int nxp_sja1105_sgmii_pma_config(struct dw_xpcs *xpcs);
113 int nxp_sja1110_sgmii_pma_config(struct dw_xpcs *xpcs);
114 int nxp_sja1110_2500basex_pma_config(struct dw_xpcs *xpcs);
A DMakefile4 pcs_xpcs-$(CONFIG_PCS_XPCS) := pcs-xpcs.o pcs-xpcs-nxp.o
/linux-6.3-rc2/drivers/net/ethernet/stmicro/stmmac/
A Ddwmac-tegra.c24 void __iomem *xpcs; member
89 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_STATUS); in tegra_mgbe_resume()
118 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
120 writel(value, mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
122 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
124 writel(value, mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
126 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
171 writel(value, mgbe->xpcs + XPCS_WRAP_IRQ_STATUS); in mgbe_uphy_lane_bringup_serdes_up()
231 if (IS_ERR(mgbe->xpcs)) in tegra_mgbe_probe()
232 return PTR_ERR(mgbe->xpcs); in tegra_mgbe_probe()
[all …]
A Dstmmac_mdio.c497 struct dw_xpcs *xpcs; in stmmac_xpcs_setup() local
509 xpcs = xpcs_create(mdiodev, mode); in stmmac_xpcs_setup()
510 if (IS_ERR_OR_NULL(xpcs)) { in stmmac_xpcs_setup()
515 priv->hw->xpcs = xpcs; in stmmac_xpcs_setup()
519 if (!priv->hw->xpcs) { in stmmac_xpcs_setup()
673 if (priv->hw->xpcs) { in stmmac_mdio_unregister()
674 mdio_device_free(priv->hw->xpcs->mdiodev); in stmmac_mdio_unregister()
675 xpcs_destroy(priv->hw->xpcs); in stmmac_mdio_unregister()
A Dcommon.h520 struct dw_xpcs *xpcs; member
A Dstmmac_main.c493 if (priv->hw->xpcs) in stmmac_eee_init()
494 xpcs_config_eee(priv->hw->xpcs, in stmmac_eee_init()
506 if (priv->hw->xpcs) in stmmac_eee_init()
507 xpcs_config_eee(priv->hw->xpcs, in stmmac_eee_init()
940 if (!priv->hw->xpcs) in stmmac_mac_select_pcs()
943 return &priv->hw->xpcs->pcs; in stmmac_mac_select_pcs()
1200 if (priv->hw->xpcs) in stmmac_phy_setup()
1201 xpcs_get_interfaces(priv->hw->xpcs, in stmmac_phy_setup()
3800 (!priv->hw->xpcs || in __stmmac_open()
3801 xpcs_get_an_mode(priv->hw->xpcs, mode) != DW_AN_C73)) { in __stmmac_open()
/linux-6.3-rc2/include/linux/pcs/
A Dpcs-xpcs.h30 int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy_interface_t interface);
33 int xpcs_do_config(struct dw_xpcs *xpcs, phy_interface_t interface,
35 void xpcs_get_interfaces(struct dw_xpcs *xpcs, unsigned long *interfaces);
36 int xpcs_config_eee(struct dw_xpcs *xpcs, int mult_fact_100ns,
40 void xpcs_destroy(struct dw_xpcs *xpcs);
/linux-6.3-rc2/drivers/net/dsa/sja1105/
A Dsja1105_mdio.c404 struct dw_xpcs *xpcs; in sja1105_mdiobus_pcs_register() local
420 if (IS_ERR(xpcs)) { in sja1105_mdiobus_pcs_register()
421 rc = PTR_ERR(xpcs); in sja1105_mdiobus_pcs_register()
425 priv->xpcs[port] = xpcs; in sja1105_mdiobus_pcs_register()
434 if (!priv->xpcs[port]) in sja1105_mdiobus_pcs_register()
437 mdio_device_free(priv->xpcs[port]->mdiodev); in sja1105_mdiobus_pcs_register()
438 xpcs_destroy(priv->xpcs[port]); in sja1105_mdiobus_pcs_register()
439 priv->xpcs[port] = NULL; in sja1105_mdiobus_pcs_register()
457 if (!priv->xpcs[port]) in sja1105_mdiobus_pcs_unregister()
461 xpcs_destroy(priv->xpcs[port]); in sja1105_mdiobus_pcs_unregister()
[all …]
A Dsja1105_main.c1363 struct dw_xpcs *xpcs = priv->xpcs[port]; in sja1105_mac_select_pcs() local
1365 if (xpcs) in sja1105_mac_select_pcs()
1366 return &xpcs->pcs; in sja1105_mac_select_pcs()
2259 if (priv->xpcs[i]) in sja1105_static_config_reload()
2316 struct dw_xpcs *xpcs = priv->xpcs[i]; in sja1105_static_config_reload() local
2323 if (!xpcs) in sja1105_static_config_reload()
2333 rc = xpcs_do_config(xpcs, priv->phy_mode[i], mode, NULL); in sja1105_static_config_reload()
2349 xpcs_link_up(&xpcs->pcs, mode, priv->phy_mode[i], in sja1105_static_config_reload()
A Dsja1105.h276 struct dw_xpcs *xpcs[SJA1105_MAX_NUM_PORTS]; member
/linux-6.3-rc2/Documentation/devicetree/bindings/net/
A Dnvidia,tegra234-mgbe.yaml24 - const: xpcs
121 reg-names = "hypervisor", "mac", "xpcs";
/linux-6.3-rc2/drivers/net/ethernet/marvell/mvpp2/
A Dmvpp2_main.c1547 void __iomem *xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_gop_init_10gkr() local
1550 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr()
1554 writel(val, xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr()
2159 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_assert() local
2166 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_assert()
2173 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert()
2174 writel(val & ~MVPP22_XPCS_CFG0_RESET_DIS, xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert()
2181 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_deassert() local
2188 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_deassert()
2201 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_deassert()
[all …]
/linux-6.3-rc2/arch/arm64/boot/dts/nvidia/
A Dtegra234.dtsi1374 reg-names = "hypervisor", "mac", "xpcs";
1408 reg-names = "hypervisor", "mac", "xpcs";
1442 reg-names = "hypervisor", "mac", "xpcs";
1476 reg-names = "hypervisor", "mac", "xpcs";
/linux-6.3-rc2/
A DMAINTAINERS15018 F: drivers/net/pcs/pcs-xpcs-nxp.c
20268 F: drivers/net/pcs/pcs-xpcs.c
20269 F: drivers/net/pcs/pcs-xpcs.h
20270 F: include/linux/pcs/pcs-xpcs.h

Completed in 67 milliseconds