Lines Matching refs:regnum
143 int regnum) in orion_mdio_smi_read() argument
149 if (regnum & MII_ADDR_C45) in orion_mdio_smi_read()
157 (regnum << MVMDIO_SMI_PHY_REG_SHIFT) | in orion_mdio_smi_read()
175 int regnum, u16 value) in orion_mdio_smi_write() argument
180 if (regnum & MII_ADDR_C45) in orion_mdio_smi_write()
188 (regnum << MVMDIO_SMI_PHY_REG_SHIFT) | in orion_mdio_smi_write()
208 int regnum) in orion_mdio_xsmi_read() argument
211 u16 dev_addr = (regnum >> 16) & GENMASK(4, 0); in orion_mdio_xsmi_read()
214 if (!(regnum & MII_ADDR_C45)) in orion_mdio_xsmi_read()
221 writel(regnum & GENMASK(15, 0), dev->regs + MVMDIO_XSMI_ADDR_REG); in orion_mdio_xsmi_read()
241 int regnum, u16 value) in orion_mdio_xsmi_write() argument
244 u16 dev_addr = (regnum >> 16) & GENMASK(4, 0); in orion_mdio_xsmi_write()
247 if (!(regnum & MII_ADDR_C45)) in orion_mdio_xsmi_write()
254 writel(regnum & GENMASK(15, 0), dev->regs + MVMDIO_XSMI_ADDR_REG); in orion_mdio_xsmi_write()