Lines Matching refs:regnum
29 int phy_id, int regnum) in cavium_mdiobus_c45_addr() argument
38 smi_wr.s.dat = regnum & 0xffff; in cavium_mdiobus_c45_addr()
41 regnum = (regnum >> 16) & 0x1f; in cavium_mdiobus_c45_addr()
46 smi_cmd.s.reg_adr = regnum; in cavium_mdiobus_c45_addr()
62 int cavium_mdiobus_read(struct mii_bus *bus, int phy_id, int regnum) in cavium_mdiobus_read() argument
70 if (regnum & MII_ADDR_C45) { in cavium_mdiobus_read()
71 int r = cavium_mdiobus_c45_addr(p, phy_id, regnum); in cavium_mdiobus_read()
76 regnum = (regnum >> 16) & 0x1f; in cavium_mdiobus_read()
85 smi_cmd.s.reg_adr = regnum; in cavium_mdiobus_read()
103 int cavium_mdiobus_write(struct mii_bus *bus, int phy_id, int regnum, u16 val) in cavium_mdiobus_write() argument
111 if (regnum & MII_ADDR_C45) { in cavium_mdiobus_write()
112 int r = cavium_mdiobus_c45_addr(p, phy_id, regnum); in cavium_mdiobus_write()
117 regnum = (regnum >> 16) & 0x1f; in cavium_mdiobus_write()
130 smi_cmd.s.reg_adr = regnum; in cavium_mdiobus_write()