Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/pcs/
Dpcs-xpcs.c147 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 …]
DMakefile4 obj-$(CONFIG_PCS_XPCS) += pcs-xpcs.o
/kernel/linux/linux-5.10/include/linux/pcs/
Dpcs-xpcs.h20 int (*validate)(struct mdio_xpcs_args *xpcs,
23 int (*config)(struct mdio_xpcs_args *xpcs,
25 int (*get_state)(struct mdio_xpcs_args *xpcs,
27 int (*link_up)(struct mdio_xpcs_args *xpcs, int speed,
29 int (*probe)(struct mdio_xpcs_args *xpcs, phy_interface_t interface);
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_mdio.c445 priv->hw->xpcs = mdio_xpcs_get_ops(); in stmmac_mdio_register()
446 if (!priv->hw->xpcs) { in stmmac_mdio_register()
510 if (priv->hw->xpcs) { in stmmac_mdio_register()
511 struct mdio_xpcs_args *xpcs = &priv->hw->xpcs_args; in stmmac_mdio_register() local
515 xpcs->bus = new_bus; in stmmac_mdio_register()
519 xpcs->addr = addr; in stmmac_mdio_register()
521 ret = stmmac_xpcs_probe(priv, xpcs, mode); in stmmac_mdio_register()
Dhwif.h597 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)
Dcommon.h468 const struct mdio_xpcs_ops *xpcs; member
Dstmmac_main.c2864 priv->hw->xpcs == NULL) { in stmmac_open()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c1264 void __iomem *xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_gop_init_10gkr() local
1267 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr()
1271 writel(val, xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr()
1830 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_assert() local
1837 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_assert()
1844 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert()
1845 writel(val & ~MVPP22_XPCS_CFG0_RESET_DIS, xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert()
1851 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_deassert() local
1858 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_deassert()
1870 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_deassert()
[all …]
/kernel/linux/patches/linux-5.10/yangfan_patch/
Ddrivers.patch44181 + struct regmap *xpcs;
44216 + ret = regmap_read(bsp_priv->xpcs,
44229 + return regmap_write(bsp_priv->xpcs,
45115 + bsp_priv->xpcs = syscon_regmap_lookup_by_phandle(dev->of_node,
45116 + "rockchip,xpcs");
45117 + if (!IS_ERR(bsp_priv->xpcs)) {
/kernel/linux/linux-5.10/
DMAINTAINERS16913 F: drivers/net/pcs/pcs-xpcs.c
16914 F: include/linux/pcs/pcs-xpcs.h