Home
last modified time | relevance | path

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

/drivers/net/pcs/
Dpcs-xpcs.c137 int (*pma_config)(struct dw_xpcs *xpcs);
162 int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy_interface_t interface) in xpcs_get_an_mode() argument
166 compat = xpcs_find_compat(xpcs->id, interface); in xpcs_get_an_mode()
189 int xpcs_read(struct dw_xpcs *xpcs, int dev, u32 reg) in xpcs_read() argument
191 struct mii_bus *bus = xpcs->mdiodev->bus; in xpcs_read()
192 int addr = xpcs->mdiodev->addr; in xpcs_read()
197 int xpcs_write(struct dw_xpcs *xpcs, int dev, u32 reg, u16 val) in xpcs_write() argument
199 struct mii_bus *bus = xpcs->mdiodev->bus; in xpcs_write()
200 int addr = xpcs->mdiodev->addr; in xpcs_write()
205 static int xpcs_modify_changed(struct dw_xpcs *xpcs, int dev, u32 reg, in xpcs_modify_changed() argument
[all …]
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()
107 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_LANE_DRIVER2_0, val); in nxp_sja1110_pma_config()
113 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_LANE_DRIVER2_1, val); in nxp_sja1110_pma_config()
122 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_LANE_TRIM, val); in nxp_sja1110_pma_config()
127 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_LANE_DATAPATH_1, 0); in nxp_sja1110_pma_config()
[all …]
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);
DMakefile4 pcs_xpcs-$(CONFIG_PCS_XPCS) := pcs-xpcs.o pcs-xpcs-nxp.o
/drivers/net/dsa/sja1105/
Dsja1105_mdio.c429 struct dw_xpcs *xpcs; in sja1105_mdiobus_pcs_register() local
444 xpcs = xpcs_create(mdiodev, priv->phy_mode[port]); in sja1105_mdiobus_pcs_register()
445 if (IS_ERR(xpcs)) { in sja1105_mdiobus_pcs_register()
446 rc = PTR_ERR(xpcs); in sja1105_mdiobus_pcs_register()
450 priv->xpcs[port] = xpcs; in sja1105_mdiobus_pcs_register()
459 if (!priv->xpcs[port]) in sja1105_mdiobus_pcs_register()
462 mdio_device_free(priv->xpcs[port]->mdiodev); in sja1105_mdiobus_pcs_register()
463 xpcs_destroy(priv->xpcs[port]); in sja1105_mdiobus_pcs_register()
464 priv->xpcs[port] = NULL; in sja1105_mdiobus_pcs_register()
482 if (!priv->xpcs[port]) in sja1105_mdiobus_pcs_unregister()
[all …]
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()
2322 if (priv->xpcs[i]) in sja1105_static_config_reload()
2379 struct dw_xpcs *xpcs = priv->xpcs[i]; in sja1105_static_config_reload() local
2386 if (!xpcs) in sja1105_static_config_reload()
2396 rc = xpcs_do_config(xpcs, priv->phy_mode[i], mode, NULL); in sja1105_static_config_reload()
2412 xpcs_link_up(&xpcs->pcs, mode, priv->phy_mode[i], in sja1105_static_config_reload()
Dsja1105.h279 struct dw_xpcs *xpcs[SJA1105_MAX_NUM_PORTS]; member
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_mdio.c397 struct dw_xpcs *xpcs; in stmmac_xpcs_setup() local
409 xpcs = xpcs_create(mdiodev, mode); in stmmac_xpcs_setup()
410 if (IS_ERR_OR_NULL(xpcs)) { in stmmac_xpcs_setup()
415 priv->hw->xpcs = xpcs; in stmmac_xpcs_setup()
419 if (!priv->hw->xpcs) { in stmmac_xpcs_setup()
573 if (priv->hw->xpcs) { in stmmac_mdio_unregister()
574 mdio_device_free(priv->hw->xpcs->mdiodev); in stmmac_mdio_unregister()
575 xpcs_destroy(priv->hw->xpcs); in stmmac_mdio_unregister()
Dcommon.h522 struct dw_xpcs *xpcs; member
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()
1208 if (priv->hw->xpcs) in stmmac_phy_setup()
1209 xpcs_get_interfaces(priv->hw->xpcs, in stmmac_phy_setup()
3811 (!priv->hw->xpcs || in __stmmac_open()
3812 xpcs_get_an_mode(priv->hw->xpcs, mode) != DW_AN_C73)) { in __stmmac_open()
/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c1572 void __iomem *xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_gop_init_10gkr() local
1575 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr()
1579 writel(val, xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr()
2184 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_assert() local
2191 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_assert()
2198 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert()
2199 writel(val & ~MVPP22_XPCS_CFG0_RESET_DIS, xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert()
2206 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_deassert() local
2213 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_deassert()
2226 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_deassert()
[all …]