Searched refs:xpcs (Results 1 – 7 of 7) sorted by relevance
/drivers/net/pcs/ |
D | pcs-xpcs.c | 147 static int xpcs_read(struct mdio_xpcs_args *xpcs, int dev, u32 reg) in xpcs_read() argument 151 return mdiobus_read(xpcs->bus, xpcs->addr, reg_addr); in xpcs_read() 154 static int xpcs_write(struct mdio_xpcs_args *xpcs, int dev, u32 reg, u16 val) in xpcs_write() argument 158 return mdiobus_write(xpcs->bus, xpcs->addr, reg_addr, val); in xpcs_write() 161 static int xpcs_read_vendor(struct mdio_xpcs_args *xpcs, int dev, u32 reg) in xpcs_read_vendor() argument 163 return xpcs_read(xpcs, dev, DW_VENDOR | reg); in xpcs_read_vendor() 166 static int xpcs_write_vendor(struct mdio_xpcs_args *xpcs, int dev, int reg, in xpcs_write_vendor() argument 169 return xpcs_write(xpcs, dev, DW_VENDOR | reg, val); in xpcs_write_vendor() 172 static int xpcs_read_vpcs(struct mdio_xpcs_args *xpcs, int reg) in xpcs_read_vpcs() argument 174 return xpcs_read_vendor(xpcs, MDIO_MMD_PCS, reg); in xpcs_read_vpcs() [all …]
|
D | Makefile | 4 obj-$(CONFIG_PCS_XPCS) += pcs-xpcs.o
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_mdio.c | 445 priv->hw->xpcs = mdio_xpcs_get_ops(); in stmmac_mdio_register() 446 if (!priv->hw->xpcs) { in stmmac_mdio_register() 514 if (priv->hw->xpcs) { in stmmac_mdio_register() 515 struct mdio_xpcs_args *xpcs = &priv->hw->xpcs_args; in stmmac_mdio_register() local 519 xpcs->bus = new_bus; in stmmac_mdio_register() 523 xpcs->addr = addr; in stmmac_mdio_register() 525 ret = stmmac_xpcs_probe(priv, xpcs, mode); in stmmac_mdio_register()
|
D | hwif.h | 597 stmmac_do_callback(__priv, xpcs, validate, __args) 599 stmmac_do_callback(__priv, xpcs, config, __args) 601 stmmac_do_callback(__priv, xpcs, get_state, __args) 603 stmmac_do_callback(__priv, xpcs, link_up, __args) 605 stmmac_do_callback(__priv, xpcs, probe, __args)
|
D | common.h | 469 const struct mdio_xpcs_ops *xpcs; member
|
D | stmmac_main.c | 2871 priv->hw->xpcs == NULL) { in stmmac_open()
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 1289 void __iomem *xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_gop_init_10gkr() local 1292 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr() 1296 writel(val, xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr() 1855 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_assert() local 1862 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_assert() 1869 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert() 1870 writel(val & ~MVPP22_XPCS_CFG0_RESET_DIS, xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert() 1876 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_deassert() local 1883 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_deassert() 1895 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_deassert() [all …]
|