regnum 21 arch/arm/include/asm/opcodes-virt.h #define __MSR_ELR_HYP(regnum) __inst_arm_thumb32( \ regnum 22 arch/arm/include/asm/opcodes-virt.h 0xE12EF300 | regnum, \ regnum 23 arch/arm/include/asm/opcodes-virt.h 0xF3808E30 | (regnum << 16) \ regnum 358 arch/ia64/include/asm/processor.h #define ia64_get_kr(regnum) \ regnum 362 arch/ia64/include/asm/processor.h switch (regnum) { \ regnum 376 arch/ia64/include/asm/processor.h #define ia64_set_kr(regnum, r) \ regnum 378 arch/ia64/include/asm/processor.h switch (regnum) { \ regnum 616 arch/ia64/include/asm/processor.h ia64_set_dbr (__u64 regnum, __u64 value) regnum 618 arch/ia64/include/asm/processor.h __ia64_set_dbr(regnum, value); regnum 625 arch/ia64/include/asm/processor.h ia64_get_dbr (__u64 regnum) regnum 629 arch/ia64/include/asm/processor.h retval = __ia64_get_dbr(regnum); regnum 201 arch/ia64/include/asm/sal.h u8 regnum; /* translation register number */ regnum 22 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_invala_gr(regnum) asm volatile ("invala.e r%0" :: "i"(regnum)) regnum 24 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_invala_fr(regnum) asm volatile ("invala.e f%0" :: "i"(regnum)) regnum 34 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_native_setreg(regnum, val) \ regnum 36 arch/ia64/include/uapi/asm/gcc_intrin.h switch (regnum) { \ regnum 42 arch/ia64/include/uapi/asm/gcc_intrin.h "i" (regnum - _IA64_REG_AR_KR0), \ regnum 47 arch/ia64/include/uapi/asm/gcc_intrin.h "i" (regnum - _IA64_REG_CR_DCR), \ regnum 63 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_native_getreg(regnum) \ regnum 67 arch/ia64/include/uapi/asm/gcc_intrin.h switch (regnum) { \ regnum 82 arch/ia64/include/uapi/asm/gcc_intrin.h : "i"(regnum - _IA64_REG_AR_KR0)); \ regnum 86 arch/ia64/include/uapi/asm/gcc_intrin.h : "i" (regnum - _IA64_REG_CR_DCR)); \ regnum 169 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_ldfs(regnum, x) \ regnum 171 arch/ia64/include/uapi/asm/gcc_intrin.h register double __f__ asm ("f"#regnum); \ regnum 175 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_ldfd(regnum, x) \ regnum 177 arch/ia64/include/uapi/asm/gcc_intrin.h register double __f__ asm ("f"#regnum); \ regnum 181 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_ldfe(regnum, x) \ regnum 183 arch/ia64/include/uapi/asm/gcc_intrin.h register double __f__ asm ("f"#regnum); \ regnum 187 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_ldf8(regnum, x) \ regnum 189 arch/ia64/include/uapi/asm/gcc_intrin.h register double __f__ asm ("f"#regnum); \ regnum 193 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_ldf_fill(regnum, x) \ regnum 195 arch/ia64/include/uapi/asm/gcc_intrin.h register double __f__ asm ("f"#regnum); \ regnum 204 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_stfs(x, regnum) \ regnum 206 arch/ia64/include/uapi/asm/gcc_intrin.h register double __f__ asm ("f"#regnum); \ regnum 210 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_stfd(x, regnum) \ regnum 212 arch/ia64/include/uapi/asm/gcc_intrin.h register double __f__ asm ("f"#regnum); \ regnum 216 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_stfe(x, regnum) \ regnum 218 arch/ia64/include/uapi/asm/gcc_intrin.h register double __f__ asm ("f"#regnum); \ regnum 222 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_stf8(x, regnum) \ regnum 224 arch/ia64/include/uapi/asm/gcc_intrin.h register double __f__ asm ("f"#regnum); \ regnum 228 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_stf_spill(x, regnum) \ regnum 230 arch/ia64/include/uapi/asm/gcc_intrin.h register double __f__ asm ("f"#regnum); \ regnum 408 arch/ia64/kernel/ptrace.c unsigned long *bspstore, *krbs, regnum, *laddr, *urbs_end, *rnat_addr; regnum 454 arch/ia64/kernel/ptrace.c regnum = ia64_rse_num_regs(bspstore, laddr); regnum 455 arch/ia64/kernel/ptrace.c *val = *ia64_rse_skip_regs(krbs, regnum); regnum 470 arch/ia64/kernel/ptrace.c unsigned long *bspstore, *krbs, regnum, *laddr; regnum 491 arch/ia64/kernel/ptrace.c regnum = ia64_rse_num_regs(bspstore, laddr); regnum 492 arch/ia64/kernel/ptrace.c *ia64_rse_skip_regs(krbs, regnum) = val; regnum 793 arch/ia64/kernel/ptrace.c unsigned long regnum, nat_bits, scratch_unat, dummy = 0; regnum 803 arch/ia64/kernel/ptrace.c for (regnum = 4; regnum <= 7; ++regnum) { regnum 804 arch/ia64/kernel/ptrace.c unw_get_gr(info, regnum, &dummy, &nat); regnum 805 arch/ia64/kernel/ptrace.c unw_set_gr(info, regnum, dummy, regnum 806 arch/ia64/kernel/ptrace.c (nat_bits >> regnum) & 1); regnum 814 arch/ia64/kernel/ptrace.c for (regnum = 4; regnum <= 7; ++regnum) { regnum 815 arch/ia64/kernel/ptrace.c unw_get_gr(info, regnum, &dummy, &nat); regnum 816 arch/ia64/kernel/ptrace.c nat_bits |= (nat != 0) << regnum; regnum 1918 arch/ia64/kernel/ptrace.c unsigned long *ptr, regnum; regnum 2055 arch/ia64/kernel/ptrace.c regnum = (addr - PT_IBR) >> 3; regnum 2058 arch/ia64/kernel/ptrace.c regnum = (addr - PT_DBR) >> 3; regnum 2062 arch/ia64/kernel/ptrace.c if (regnum >= 8) { regnum 2097 arch/ia64/kernel/ptrace.c ptr += regnum; regnum 2099 arch/ia64/kernel/ptrace.c if ((regnum & 1) && write_access) { regnum 454 arch/ia64/kernel/unaligned.c setreg (unsigned long regnum, unsigned long val, int nat, struct pt_regs *regs) regnum 464 arch/ia64/kernel/unaligned.c if (regnum >= IA64_FIRST_STACKED_GR) { regnum 465 arch/ia64/kernel/unaligned.c set_rse_reg(regs, regnum, val, nat); regnum 477 arch/ia64/kernel/unaligned.c if (GR_IN_SW(regnum)) { regnum 485 arch/ia64/kernel/unaligned.c addr, unat==&sw->ar_unat ? "yes":"no", GR_OFFS(regnum)); regnum 490 arch/ia64/kernel/unaligned.c addr += GR_OFFS(regnum); regnum 513 arch/ia64/kernel/unaligned.c fph_index (struct pt_regs *regs, long regnum) regnum 516 arch/ia64/kernel/unaligned.c return rotate_reg(96, rrb_fr, (regnum - IA64_FIRST_ROTATING_FR)); regnum 520 arch/ia64/kernel/unaligned.c setfpreg (unsigned long regnum, struct ia64_fpreg *fpval, struct pt_regs *regs) regnum 536 arch/ia64/kernel/unaligned.c if (regnum >= IA64_FIRST_ROTATING_FR) { regnum 538 arch/ia64/kernel/unaligned.c current->thread.fph[fph_index(regs, regnum)] = *fpval; regnum 543 arch/ia64/kernel/unaligned.c if (FR_IN_SW(regnum)) { regnum 549 arch/ia64/kernel/unaligned.c DPRINT("tmp_base=%lx offset=%d\n", addr, FR_OFFS(regnum)); regnum 551 arch/ia64/kernel/unaligned.c addr += FR_OFFS(regnum); regnum 581 arch/ia64/kernel/unaligned.c getfpreg (unsigned long regnum, struct ia64_fpreg *fpval, struct pt_regs *regs) regnum 595 arch/ia64/kernel/unaligned.c if (regnum >= IA64_FIRST_ROTATING_FR) { regnum 597 arch/ia64/kernel/unaligned.c *fpval = current->thread.fph[fph_index(regs, regnum)]; regnum 603 arch/ia64/kernel/unaligned.c switch(regnum) { regnum 614 arch/ia64/kernel/unaligned.c addr = FR_IN_SW(regnum) ? (unsigned long)sw regnum 618 arch/ia64/kernel/unaligned.c FR_IN_SW(regnum), addr, FR_OFFS(regnum)); regnum 620 arch/ia64/kernel/unaligned.c addr += FR_OFFS(regnum); regnum 628 arch/ia64/kernel/unaligned.c getreg (unsigned long regnum, unsigned long *val, int *nat, struct pt_regs *regs) regnum 633 arch/ia64/kernel/unaligned.c if (regnum >= IA64_FIRST_STACKED_GR) { regnum 634 arch/ia64/kernel/unaligned.c get_rse_reg(regs, regnum, val, nat); regnum 641 arch/ia64/kernel/unaligned.c if (regnum == 0) { regnum 651 arch/ia64/kernel/unaligned.c if (GR_IN_SW(regnum)) { regnum 659 arch/ia64/kernel/unaligned.c DPRINT("addr_base=%lx offset=0x%x\n", addr, GR_OFFS(regnum)); regnum 661 arch/ia64/kernel/unaligned.c addr += GR_OFFS(regnum); regnum 284 arch/ia64/kernel/unwind.c unw_access_gr (struct unw_frame_info *info, int regnum, unsigned long *val, char *nat, int write) regnum 290 arch/ia64/kernel/unwind.c if ((unsigned) regnum - 1 >= 127) { regnum 291 arch/ia64/kernel/unwind.c if (regnum == 0 && !write) { regnum 297 arch/ia64/kernel/unwind.c __func__, regnum); regnum 301 arch/ia64/kernel/unwind.c if (regnum < 32) { regnum 302 arch/ia64/kernel/unwind.c if (regnum >= 4 && regnum <= 7) { regnum 304 arch/ia64/kernel/unwind.c ireg = &info->r4 + (regnum - 4); regnum 355 arch/ia64/kernel/unwind.c addr = &info->sw->r4 + (regnum - 4); regnum 362 arch/ia64/kernel/unwind.c addr = (unsigned long *) ((unsigned long)pt + pt_regs_off(regnum)); regnum 371 arch/ia64/kernel/unwind.c addr = ia64_rse_skip_regs((unsigned long *) info->bsp, regnum - 32); regnum 410 arch/ia64/kernel/unwind.c unw_access_br (struct unw_frame_info *info, int regnum, unsigned long *val, int write) regnum 415 arch/ia64/kernel/unwind.c switch (regnum) { regnum 423 arch/ia64/kernel/unwind.c addr = *(&info->b1_loc + (regnum - 1)); regnum 425 arch/ia64/kernel/unwind.c addr = &info->sw->b1 + (regnum - 1); regnum 430 arch/ia64/kernel/unwind.c __func__, regnum); regnum 446 arch/ia64/kernel/unwind.c unw_access_fr (struct unw_frame_info *info, int regnum, struct ia64_fpreg *val, int write) regnum 451 arch/ia64/kernel/unwind.c if ((unsigned) (regnum - 2) >= 126) { regnum 453 arch/ia64/kernel/unwind.c __func__, regnum); regnum 457 arch/ia64/kernel/unwind.c if (regnum <= 5) { regnum 458 arch/ia64/kernel/unwind.c addr = *(&info->f2_loc + (regnum - 2)); regnum 460 arch/ia64/kernel/unwind.c addr = &info->sw->f2 + (regnum - 2); regnum 461 arch/ia64/kernel/unwind.c } else if (regnum <= 15) { regnum 462 arch/ia64/kernel/unwind.c if (regnum <= 11) { regnum 464 arch/ia64/kernel/unwind.c addr = &pt->f6 + (regnum - 6); regnum 467 arch/ia64/kernel/unwind.c addr = &info->sw->f12 + (regnum - 12); regnum 468 arch/ia64/kernel/unwind.c } else if (regnum <= 31) { regnum 469 arch/ia64/kernel/unwind.c addr = info->fr_loc[regnum - 16]; regnum 471 arch/ia64/kernel/unwind.c addr = &info->sw->f16 + (regnum - 16); regnum 479 arch/ia64/kernel/unwind.c addr = t->thread.fph + (regnum - 32); regnum 495 arch/ia64/kernel/unwind.c unw_access_ar (struct unw_frame_info *info, int regnum, unsigned long *val, int write) regnum 500 arch/ia64/kernel/unwind.c switch (regnum) { regnum 575 arch/ia64/kernel/unwind.c __func__, regnum); regnum 1000 arch/ia64/kernel/unwind.c desc_reg_when (unsigned char regnum, unw_word t, struct unw_state_record *sr) regnum 1002 arch/ia64/kernel/unwind.c struct unw_reg_info *reg = sr->curr.reg + regnum; regnum 287 arch/sparc/kernel/unaligned_32.c #define WINREG_ADDR(regnum) \ regnum 288 arch/sparc/kernel/unaligned_32.c ((void __user *)(((unsigned long *)regs->u_regs[UREG_FP])+(regnum))) regnum 108 arch/x86/include/asm/mtrr.h compat_ulong_t regnum; /* Register number */ regnum 46 arch/x86/include/uapi/asm/mtrr.h unsigned int regnum; /* Register number */ regnum 63 arch/x86/include/uapi/asm/mtrr.h __u32 regnum; /* Register number */ regnum 211 arch/x86/kernel/cpu/mtrr/if.c err = get_user(gentry.regnum, &g32->regnum); regnum 263 arch/x86/kernel/cpu/mtrr/if.c if (gentry.regnum >= num_var_ranges) regnum 265 arch/x86/kernel/cpu/mtrr/if.c mtrr_if->get(gentry.regnum, &base, &size, &type); regnum 317 arch/x86/kernel/cpu/mtrr/if.c if (gentry.regnum >= num_var_ranges) regnum 319 arch/x86/kernel/cpu/mtrr/if.c mtrr_if->get(gentry.regnum, &base, &size, &type); regnum 348 arch/x86/kernel/cpu/mtrr/if.c err |= put_user(gentry.regnum, &g32->regnum); regnum 1314 drivers/atm/firestream.c static void write_phy(struct fs_dev *dev, int regnum, int val) regnum 1317 drivers/atm/firestream.c regnum, val, 0); regnum 835 drivers/infiniband/hw/qib/qib.h int (*f_tempsense_rd)(struct qib_devdata *, int regnum); regnum 3403 drivers/infiniband/hw/qib/qib_iba6120.c static int qib_6120_tempsense_rd(struct qib_devdata *dd, int regnum) regnum 4420 drivers/infiniband/hw/qib/qib_iba7220.c static int qib_7220_tempsense_rd(struct qib_devdata *dd, int regnum) regnum 4425 drivers/infiniband/hw/qib/qib_iba7220.c if (regnum > 7) { regnum 4431 drivers/infiniband/hw/qib/qib_iba7220.c if (!((1 << regnum) & VALID_TS_RD_REG_MASK)) { regnum 4440 drivers/infiniband/hw/qib/qib_iba7220.c ret = qib_twsi_blk_rd(dd, QIB_TWSI_TEMP_DEV, regnum, &rdata, 1); regnum 7173 drivers/infiniband/hw/qib/qib_iba7322.c static int qib_7322_tempsense_rd(struct qib_devdata *dd, int regnum) regnum 843 drivers/mfd/menelaus.c static int time_to_menelaus(struct rtc_time *t, int regnum) regnum 847 drivers/mfd/menelaus.c status = menelaus_write_reg(regnum++, bin2bcd(t->tm_sec)); regnum 851 drivers/mfd/menelaus.c status = menelaus_write_reg(regnum++, bin2bcd(t->tm_min)); regnum 863 drivers/mfd/menelaus.c status = menelaus_write_reg(regnum++, hour); regnum 867 drivers/mfd/menelaus.c status = menelaus_write_reg(regnum++, bin2bcd(t->tm_mday)); regnum 871 drivers/mfd/menelaus.c status = menelaus_write_reg(regnum++, bin2bcd(t->tm_mon + 1)); regnum 875 drivers/mfd/menelaus.c status = menelaus_write_reg(regnum++, bin2bcd(t->tm_year - 100)); regnum 882 drivers/mfd/menelaus.c --regnum, status); regnum 37 drivers/mfd/motorola-cpcap.c int regnum = irq / CPCAP_REGISTER_BITS; regnum 39 drivers/mfd/motorola-cpcap.c int reg = CPCAP_REG_INTS1 + (regnum * CPCAP_REGISTER_SIZE); regnum 259 drivers/net/dsa/bcm_sf2.c int regnum, u16 val) regnum 274 drivers/net/dsa/bcm_sf2.c reg = 0x80 << 8 | regnum << 1; regnum 289 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_sw_mdio_read(struct mii_bus *bus, int addr, int regnum) regnum 297 drivers/net/dsa/bcm_sf2.c return bcm_sf2_sw_indir_rw(priv, 1, addr, regnum, 0); regnum 299 drivers/net/dsa/bcm_sf2.c return mdiobus_read_nested(priv->master_mii_bus, addr, regnum); regnum 302 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_sw_mdio_write(struct mii_bus *bus, int addr, int regnum, regnum 311 drivers/net/dsa/bcm_sf2.c return bcm_sf2_sw_indir_rw(priv, 0, addr, regnum, val); regnum 314 drivers/net/dsa/bcm_sf2.c regnum, val); regnum 117 drivers/net/dsa/dsa_loop.c static int dsa_loop_phy_read(struct dsa_switch *ds, int port, int regnum) regnum 123 drivers/net/dsa/dsa_loop.c ret = mdiobus_read_nested(bus, ps->port_base + port, regnum); regnum 133 drivers/net/dsa/dsa_loop.c int regnum, u16 value) regnum 139 drivers/net/dsa/dsa_loop.c ret = mdiobus_write_nested(bus, ps->port_base + port, regnum, value); regnum 265 drivers/net/dsa/lan9303-core.c static int lan9303_virt_phy_reg_read(struct lan9303 *chip, int regnum) regnum 270 drivers/net/dsa/lan9303-core.c if (regnum > MII_EXPANSION) regnum 273 drivers/net/dsa/lan9303-core.c ret = lan9303_read(chip->regmap, LAN9303_VIRT_PHY_BASE + regnum, &val); regnum 280 drivers/net/dsa/lan9303-core.c static int lan9303_virt_phy_reg_write(struct lan9303 *chip, int regnum, u16 val) regnum 282 drivers/net/dsa/lan9303-core.c if (regnum > MII_EXPANSION) regnum 285 drivers/net/dsa/lan9303-core.c return regmap_write(chip->regmap, LAN9303_VIRT_PHY_BASE + regnum, val); regnum 294 drivers/net/dsa/lan9303-core.c static int lan9303_indirect_phy_read(struct lan9303 *chip, int addr, int regnum) regnum 300 drivers/net/dsa/lan9303-core.c val |= LAN9303_PMI_ACCESS_MIIRINDA(regnum); regnum 332 drivers/net/dsa/lan9303-core.c int regnum, u16 val) regnum 338 drivers/net/dsa/lan9303-core.c reg |= LAN9303_PMI_ACCESS_MIIRINDA(regnum); regnum 372 drivers/net/dsa/lan9303-core.c static int lan9303_write_switch_reg(struct lan9303 *chip, u16 regnum, u32 val) regnum 377 drivers/net/dsa/lan9303-core.c reg = regnum; regnum 404 drivers/net/dsa/lan9303-core.c static int lan9303_read_switch_reg(struct lan9303 *chip, u16 regnum, u32 *val) regnum 409 drivers/net/dsa/lan9303-core.c reg = regnum; regnum 440 drivers/net/dsa/lan9303-core.c static int lan9303_write_switch_reg_mask(struct lan9303 *chip, u16 regnum, regnum 446 drivers/net/dsa/lan9303-core.c ret = lan9303_read_switch_reg(chip, regnum, ®); regnum 452 drivers/net/dsa/lan9303-core.c return lan9303_write_switch_reg(chip, regnum, reg); regnum 456 drivers/net/dsa/lan9303-core.c u16 regnum, u32 val) regnum 459 drivers/net/dsa/lan9303-core.c chip, LAN9303_SWITCH_PORT_REG(port, regnum), val); regnum 463 drivers/net/dsa/lan9303-core.c u16 regnum, u32 *val) regnum 466 drivers/net/dsa/lan9303-core.c chip, LAN9303_SWITCH_PORT_REG(port, regnum), val); regnum 1013 drivers/net/dsa/lan9303-core.c static int lan9303_phy_read(struct dsa_switch *ds, int phy, int regnum) regnum 1019 drivers/net/dsa/lan9303-core.c return lan9303_virt_phy_reg_read(chip, regnum); regnum 1023 drivers/net/dsa/lan9303-core.c return chip->ops->phy_read(chip, phy, regnum); regnum 1026 drivers/net/dsa/lan9303-core.c static int lan9303_phy_write(struct dsa_switch *ds, int phy, int regnum, regnum 1033 drivers/net/dsa/lan9303-core.c return lan9303_virt_phy_reg_write(chip, regnum, val); regnum 1037 drivers/net/dsa/lan9303-core.c return chip->ops->phy_write(chip, phy, regnum, val); regnum 504 drivers/net/dsa/mt7530.c static int mt7530_phy_read(struct dsa_switch *ds, int port, int regnum) regnum 508 drivers/net/dsa/mt7530.c return mdiobus_read_nested(priv->bus, port, regnum); regnum 511 drivers/net/dsa/mt7530.c static int mt7530_phy_write(struct dsa_switch *ds, int port, int regnum, regnum 516 drivers/net/dsa/mt7530.c return mdiobus_write_nested(priv->bus, port, regnum, val); regnum 221 drivers/net/dsa/mv88e6060.c static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) regnum 230 drivers/net/dsa/mv88e6060.c return reg_read(priv, addr, regnum); regnum 234 drivers/net/dsa/mv88e6060.c mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) regnum 243 drivers/net/dsa/mv88e6060.c return reg_write(priv, addr, regnum, val); regnum 91 drivers/net/dsa/qca8k.c qca8k_mii_read32(struct mii_bus *bus, int phy_id, u32 regnum) regnum 96 drivers/net/dsa/qca8k.c ret = bus->read(bus, phy_id, regnum); regnum 99 drivers/net/dsa/qca8k.c ret = bus->read(bus, phy_id, regnum + 1); regnum 113 drivers/net/dsa/qca8k.c qca8k_mii_write32(struct mii_bus *bus, int phy_id, u32 regnum, u32 val) regnum 121 drivers/net/dsa/qca8k.c ret = bus->write(bus, phy_id, regnum, lo); regnum 123 drivers/net/dsa/qca8k.c ret = bus->write(bus, phy_id, regnum + 1, hi); regnum 501 drivers/net/dsa/qca8k.c qca8k_mdio_write(struct qca8k_priv *priv, int port, u32 regnum, u16 data) regnum 505 drivers/net/dsa/qca8k.c if (regnum >= QCA8K_MDIO_MASTER_MAX_REG) regnum 514 drivers/net/dsa/qca8k.c QCA8K_MDIO_MASTER_REG_ADDR(regnum) | regnum 524 drivers/net/dsa/qca8k.c qca8k_mdio_read(struct qca8k_priv *priv, int port, u32 regnum) regnum 528 drivers/net/dsa/qca8k.c if (regnum >= QCA8K_MDIO_MASTER_MAX_REG) regnum 537 drivers/net/dsa/qca8k.c QCA8K_MDIO_MASTER_REG_ADDR(regnum); regnum 552 drivers/net/dsa/qca8k.c qca8k_phy_write(struct dsa_switch *ds, int port, int regnum, u16 data) regnum 556 drivers/net/dsa/qca8k.c return qca8k_mdio_write(priv, port, regnum, data); regnum 560 drivers/net/dsa/qca8k.c qca8k_phy_read(struct dsa_switch *ds, int port, int regnum) regnum 565 drivers/net/dsa/qca8k.c ret = qca8k_mdio_read(priv, port, regnum); regnum 330 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_mdio_read(struct mii_bus *bus, int addr, int regnum) regnum 334 drivers/net/dsa/realtek-smi-core.c return smi->ops->phy_read(smi, addr, regnum); regnum 337 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_mdio_write(struct mii_bus *bus, int addr, int regnum, regnum 342 drivers/net/dsa/realtek-smi-core.c return smi->ops->phy_write(smi, addr, regnum, val); regnum 100 drivers/net/dsa/realtek-smi-core.h int (*phy_read)(struct realtek_smi *smi, int phy, int regnum); regnum 101 drivers/net/dsa/realtek-smi-core.h int (*phy_write)(struct realtek_smi *smi, int phy, int regnum, regnum 1294 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_phy_read(struct realtek_smi *smi, int phy, int regnum) regnum 1308 drivers/net/dsa/rtl8366rb.c reg = 0x8000 | (1 << (phy + RTL8366RB_PHY_NO_OFFSET)) | regnum; regnum 1314 drivers/net/dsa/rtl8366rb.c phy, regnum, reg, ret); regnum 1323 drivers/net/dsa/rtl8366rb.c phy, regnum, reg, val); regnum 1328 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_phy_write(struct realtek_smi *smi, int phy, int regnum, regnum 1342 drivers/net/dsa/rtl8366rb.c reg = 0x8000 | (1 << (phy + RTL8366RB_PHY_NO_OFFSET)) | regnum; regnum 1345 drivers/net/dsa/rtl8366rb.c phy, regnum, reg, val); regnum 487 drivers/net/dsa/vitesse-vsc73xx-core.c static int vsc73xx_phy_read(struct dsa_switch *ds, int phy, int regnum) regnum 495 drivers/net/dsa/vitesse-vsc73xx-core.c cmd = BIT(26) | (phy << 21) | (regnum << 16); regnum 505 drivers/net/dsa/vitesse-vsc73xx-core.c regnum, phy); regnum 511 drivers/net/dsa/vitesse-vsc73xx-core.c regnum, phy, val); regnum 516 drivers/net/dsa/vitesse-vsc73xx-core.c static int vsc73xx_phy_write(struct dsa_switch *ds, int phy, int regnum, regnum 529 drivers/net/dsa/vitesse-vsc73xx-core.c if (regnum == 0 && (val & BIT(15))) { regnum 534 drivers/net/dsa/vitesse-vsc73xx-core.c cmd = (phy << 21) | (regnum << 16); regnum 540 drivers/net/dsa/vitesse-vsc73xx-core.c val, regnum, phy); regnum 1301 drivers/net/ethernet/agere/et131x.c u16 regnum, regnum 1308 drivers/net/ethernet/agere/et131x.c et131x_mii_read(adapter, regnum, ®); regnum 91 drivers/net/ethernet/altera/altera_tse_main.c static u16 sgmii_pcs_read(struct altera_tse_private *priv, int regnum) regnum 94 drivers/net/ethernet/altera/altera_tse_main.c tse_csroffs(mdio_phy0) + regnum * 4) & 0xffff; regnum 97 drivers/net/ethernet/altera/altera_tse_main.c static void sgmii_pcs_write(struct altera_tse_private *priv, int regnum, regnum 100 drivers/net/ethernet/altera/altera_tse_main.c csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy0) + regnum * 4); regnum 112 drivers/net/ethernet/altera/altera_tse_main.c static int altera_tse_mdio_read(struct mii_bus *bus, int mii_id, int regnum) regnum 123 drivers/net/ethernet/altera/altera_tse_main.c tse_csroffs(mdio_phy1) + regnum * 4) & 0xffff; regnum 126 drivers/net/ethernet/altera/altera_tse_main.c static int altera_tse_mdio_write(struct mii_bus *bus, int mii_id, int regnum, regnum 137 drivers/net/ethernet/altera/altera_tse_main.c csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy1) + regnum * 4); regnum 328 drivers/net/ethernet/amd/au1000_eth.c static int au1000_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum) regnum 337 drivers/net/ethernet/amd/au1000_eth.c return au1000_mdio_read(dev, phy_addr, regnum); regnum 340 drivers/net/ethernet/amd/au1000_eth.c static int au1000_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, regnum 350 drivers/net/ethernet/amd/au1000_eth.c au1000_mdio_write(dev, phy_addr, regnum, value); regnum 150 drivers/net/ethernet/broadcom/bcm63xx_enet.c int regnum) regnum 154 drivers/net/ethernet/broadcom/bcm63xx_enet.c tmp = regnum << ENET_MIIDATA_REG_SHIFT; regnum 171 drivers/net/ethernet/broadcom/bcm63xx_enet.c int regnum, u16 value) regnum 177 drivers/net/ethernet/broadcom/bcm63xx_enet.c tmp |= regnum << ENET_MIIDATA_REG_SHIFT; regnum 189 drivers/net/ethernet/broadcom/bcm63xx_enet.c int regnum) regnum 191 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_enet_mdio_read(bus->priv, mii_id, regnum); regnum 198 drivers/net/ethernet/broadcom/bcm63xx_enet.c int regnum, u16 value) regnum 200 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_enet_mdio_write(bus->priv, mii_id, regnum, value); regnum 207 drivers/net/ethernet/broadcom/bcm63xx_enet.c int regnum) regnum 209 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_enet_mdio_read(netdev_priv(dev), mii_id, regnum); regnum 216 drivers/net/ethernet/broadcom/bcm63xx_enet.c int regnum, int value) regnum 218 drivers/net/ethernet/broadcom/bcm63xx_enet.c bcm_enet_mdio_write(netdev_priv(dev), mii_id, regnum, value); regnum 199 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c static int bcma_mdio_mii_read(struct mii_bus *bus, int mii_id, int regnum) regnum 201 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c return bcma_mdio_phy_read(bus->priv, mii_id, regnum); regnum 204 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c static int bcma_mdio_mii_write(struct mii_bus *bus, int mii_id, int regnum, regnum 207 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c return bcma_mdio_phy_write(bus->priv, mii_id, regnum, value); regnum 331 drivers/net/ethernet/cadence/macb_main.c static int macb_mdio_read(struct mii_bus *bus, int mii_id, int regnum) regnum 349 drivers/net/ethernet/cadence/macb_main.c | MACB_BF(REGA, regnum) regnum 365 drivers/net/ethernet/cadence/macb_main.c static int macb_mdio_write(struct mii_bus *bus, int mii_id, int regnum, regnum 384 drivers/net/ethernet/cadence/macb_main.c | MACB_BF(REGA, regnum) regnum 914 drivers/net/ethernet/dec/tulip/tulip_core.c unsigned int regnum = data->reg_num; regnum 932 drivers/net/ethernet/dec/tulip/tulip_core.c switch (regnum) { regnum 959 drivers/net/ethernet/dec/tulip/tulip_core.c data->val_out = tulip_mdio_read (dev, data->phy_id & 0x1f, regnum); regnum 964 drivers/net/ethernet/dec/tulip/tulip_core.c if (regnum & ~0x1f) regnum 968 drivers/net/ethernet/dec/tulip/tulip_core.c switch (regnum) { regnum 982 drivers/net/ethernet/dec/tulip/tulip_core.c if (regnum == 0) { regnum 990 drivers/net/ethernet/dec/tulip/tulip_core.c } else if (regnum == 4) regnum 993 drivers/net/ethernet/dec/tulip/tulip_core.c tulip_mdio_write (dev, data->phy_id & 0x1f, regnum, data->val_in); regnum 99 drivers/net/ethernet/dnet.c static int dnet_mdio_read(struct mii_bus *bus, int mii_id, int regnum) regnum 110 drivers/net/ethernet/dnet.c regnum &= 0x1f; regnum 114 drivers/net/ethernet/dnet.c value |= regnum; regnum 126 drivers/net/ethernet/dnet.c pr_debug("mdio_read %02x:%02x <- %04x\n", mii_id, regnum, value); regnum 131 drivers/net/ethernet/dnet.c static int dnet_mdio_write(struct mii_bus *bus, int mii_id, int regnum, regnum 137 drivers/net/ethernet/dnet.c pr_debug("mdio_write %02x:%02x <- %04x\n", mii_id, regnum, value); regnum 148 drivers/net/ethernet/dnet.c regnum &= 0x1f; regnum 155 drivers/net/ethernet/dnet.c tmp |= regnum; regnum 1075 drivers/net/ethernet/faraday/ftgmac100.c static int ftgmac100_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum) regnum 1088 drivers/net/ethernet/faraday/ftgmac100.c FTGMAC100_PHYCR_REGAD(regnum) | regnum 1111 drivers/net/ethernet/faraday/ftgmac100.c int regnum, u16 value) regnum 1125 drivers/net/ethernet/faraday/ftgmac100.c FTGMAC100_PHYCR_REGAD(regnum) | regnum 46 drivers/net/ethernet/freescale/enetc/enetc_mdio.c int enetc_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value) regnum 55 drivers/net/ethernet/freescale/enetc/enetc_mdio.c if (regnum & MII_ADDR_C45) { regnum 56 drivers/net/ethernet/freescale/enetc/enetc_mdio.c dev_addr = (regnum >> 16) & 0x1f; regnum 60 drivers/net/ethernet/freescale/enetc/enetc_mdio.c dev_addr = regnum & 0x1f; regnum 75 drivers/net/ethernet/freescale/enetc/enetc_mdio.c if (regnum & MII_ADDR_C45) { regnum 76 drivers/net/ethernet/freescale/enetc/enetc_mdio.c enetc_mdio_wr(hw, MDIO_ADDR, regnum & 0xffff); regnum 93 drivers/net/ethernet/freescale/enetc/enetc_mdio.c int enetc_mdio_read(struct mii_bus *bus, int phy_id, int regnum) regnum 102 drivers/net/ethernet/freescale/enetc/enetc_mdio.c if (regnum & MII_ADDR_C45) { regnum 103 drivers/net/ethernet/freescale/enetc/enetc_mdio.c dev_addr = (regnum >> 16) & 0x1f; regnum 106 drivers/net/ethernet/freescale/enetc/enetc_mdio.c dev_addr = regnum & 0x1f; regnum 121 drivers/net/ethernet/freescale/enetc/enetc_mdio.c if (regnum & MII_ADDR_C45) { regnum 122 drivers/net/ethernet/freescale/enetc/enetc_mdio.c enetc_mdio_wr(hw, MDIO_ADDR, regnum & 0xffff); regnum 140 drivers/net/ethernet/freescale/enetc/enetc_mdio.c phy_id, dev_addr, regnum); regnum 11 drivers/net/ethernet/freescale/enetc/enetc_mdio.h int enetc_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value); regnum 12 drivers/net/ethernet/freescale/enetc/enetc_mdio.h int enetc_mdio_read(struct mii_bus *bus, int phy_id, int regnum); regnum 1821 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_mdio_read(struct mii_bus *bus, int mii_id, int regnum) regnum 1827 drivers/net/ethernet/freescale/fec_main.c bool is_c45 = !!(regnum & MII_ADDR_C45); regnum 1839 drivers/net/ethernet/freescale/fec_main.c frame_addr = (regnum >> 16); regnum 1842 drivers/net/ethernet/freescale/fec_main.c FEC_MMFR_TA | (regnum & 0xFFFF), regnum 1860 drivers/net/ethernet/freescale/fec_main.c frame_addr = regnum; regnum 1886 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_mdio_write(struct mii_bus *bus, int mii_id, int regnum, regnum 1893 drivers/net/ethernet/freescale/fec_main.c bool is_c45 = !!(regnum & MII_ADDR_C45); regnum 1907 drivers/net/ethernet/freescale/fec_main.c frame_addr = (regnum >> 16); regnum 1910 drivers/net/ethernet/freescale/fec_main.c FEC_MMFR_TA | (regnum & 0xFFFF), regnum 1924 drivers/net/ethernet/freescale/fec_main.c frame_addr = regnum; regnum 96 drivers/net/ethernet/freescale/fsl_pq_mdio.c static int fsl_pq_mdio_write(struct mii_bus *bus, int mii_id, int regnum, regnum 104 drivers/net/ethernet/freescale/fsl_pq_mdio.c iowrite32be((mii_id << 8) | regnum, ®s->miimadd); regnum 129 drivers/net/ethernet/freescale/fsl_pq_mdio.c static int fsl_pq_mdio_read(struct mii_bus *bus, int mii_id, int regnum) regnum 137 drivers/net/ethernet/freescale/fsl_pq_mdio.c iowrite32be((mii_id << 8) | regnum, ®s->miimadd); regnum 157 drivers/net/ethernet/freescale/fsl_pq_mdio.c dev_dbg(&bus->dev, "read %04x from address %x/%x\n", value, mii_id, regnum); regnum 129 drivers/net/ethernet/freescale/xgmac_mdio.c static int xgmac_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value) regnum 139 drivers/net/ethernet/freescale/xgmac_mdio.c if (regnum & MII_ADDR_C45) { regnum 141 drivers/net/ethernet/freescale/xgmac_mdio.c dev_addr = (regnum >> 16) & 0x1f; regnum 145 drivers/net/ethernet/freescale/xgmac_mdio.c dev_addr = regnum & 0x1f; regnum 160 drivers/net/ethernet/freescale/xgmac_mdio.c if (regnum & MII_ADDR_C45) { regnum 161 drivers/net/ethernet/freescale/xgmac_mdio.c xgmac_write32(regnum & 0xffff, ®s->mdio_addr, endian); regnum 183 drivers/net/ethernet/freescale/xgmac_mdio.c static int xgmac_mdio_read(struct mii_bus *bus, int phy_id, int regnum) regnum 195 drivers/net/ethernet/freescale/xgmac_mdio.c if (regnum & MII_ADDR_C45) { regnum 196 drivers/net/ethernet/freescale/xgmac_mdio.c dev_addr = (regnum >> 16) & 0x1f; regnum 199 drivers/net/ethernet/freescale/xgmac_mdio.c dev_addr = regnum & 0x1f; regnum 214 drivers/net/ethernet/freescale/xgmac_mdio.c if (regnum & MII_ADDR_C45) { regnum 215 drivers/net/ethernet/freescale/xgmac_mdio.c xgmac_write32(regnum & 0xffff, ®s->mdio_addr, endian); regnum 234 drivers/net/ethernet/freescale/xgmac_mdio.c phy_id, dev_addr, regnum); regnum 42 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c static int hclge_mdio_write(struct mii_bus *bus, int phyid, int regnum, regnum 60 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c HCLGE_MDIO_PHYREG_S, (u32)regnum); regnum 81 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c static int hclge_mdio_read(struct mii_bus *bus, int phyid, int regnum) regnum 98 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c HCLGE_MDIO_PHYREG_S, (u32)regnum); regnum 218 drivers/net/ethernet/hisilicon/hns_mdio.c int phy_id, int regnum, u16 data) regnum 222 drivers/net/ethernet/hisilicon/hns_mdio.c u8 devad = ((regnum >> 16) & 0x1f); regnum 223 drivers/net/ethernet/hisilicon/hns_mdio.c u8 is_c45 = !!(regnum & MII_ADDR_C45); regnum 224 drivers/net/ethernet/hisilicon/hns_mdio.c u16 reg = (u16)(regnum & 0xffff); regnum 280 drivers/net/ethernet/hisilicon/hns_mdio.c static int hns_mdio_read(struct mii_bus *bus, int phy_id, int regnum) regnum 284 drivers/net/ethernet/hisilicon/hns_mdio.c u8 devad = ((regnum >> 16) & 0x1f); regnum 285 drivers/net/ethernet/hisilicon/hns_mdio.c u8 is_c45 = !!(regnum & MII_ADDR_C45); regnum 286 drivers/net/ethernet/hisilicon/hns_mdio.c u16 reg = (u16)(regnum & 0xffff); regnum 2481 drivers/net/ethernet/ibm/emac/core.c static int emac_mii_bus_read(struct mii_bus *bus, int addr, int regnum) regnum 2483 drivers/net/ethernet/ibm/emac/core.c int ret = emac_mdio_read(bus->priv, addr, regnum); regnum 2494 drivers/net/ethernet/ibm/emac/core.c int regnum, u16 val) regnum 2496 drivers/net/ethernet/ibm/emac/core.c emac_mdio_write(bus->priv, addr, regnum, val); regnum 8817 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int regnum = addr; regnum 8820 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c regnum |= (devad << 16) | MII_ADDR_C45; regnum 8822 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c return mdiobus_read(adapter->mii_bus, prtad, regnum); regnum 8840 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int regnum = addr; regnum 8843 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c regnum |= (devad << 16) | MII_ADDR_C45; regnum 8845 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c return mdiobus_write(adapter->mii_bus, prtad, regnum, value); regnum 686 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c int regnum, u32 gssr) regnum 695 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (regnum & MII_ADDR_C45) { regnum 696 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c hwaddr |= regnum & GENMASK(21, 0); regnum 699 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c hwaddr |= (regnum & GENMASK(5, 0)) << IXGBE_MSCA_DEV_TYPE_SHIFT; regnum 711 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (!(regnum & MII_ADDR_C45)) regnum 737 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c int regnum, u16 val, u32 gssr) regnum 748 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (regnum & MII_ADDR_C45) { regnum 749 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c hwaddr |= regnum & GENMASK(21, 0); regnum 752 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c hwaddr |= (regnum & GENMASK(5, 0)) << IXGBE_MSCA_DEV_TYPE_SHIFT; regnum 761 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (err < 0 || !(regnum & MII_ADDR_C45)) regnum 778 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c static s32 ixgbe_mii_bus_read(struct mii_bus *bus, int addr, int regnum) regnum 784 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c return ixgbe_mii_bus_read_generic(hw, addr, regnum, gssr); regnum 794 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c static s32 ixgbe_mii_bus_write(struct mii_bus *bus, int addr, int regnum, regnum 801 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c return ixgbe_mii_bus_write_generic(hw, addr, regnum, val, gssr); regnum 811 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c int regnum) regnum 818 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c return ixgbe_mii_bus_read_generic(hw, addr, regnum, gssr); regnum 829 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c int regnum, u16 val) regnum 836 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c return ixgbe_mii_bus_write_generic(hw, addr, regnum, val, gssr); regnum 141 drivers/net/ethernet/marvell/mvmdio.c int regnum) regnum 147 drivers/net/ethernet/marvell/mvmdio.c if (regnum & MII_ADDR_C45) regnum 155 drivers/net/ethernet/marvell/mvmdio.c (regnum << MVMDIO_SMI_PHY_REG_SHIFT) | regnum 173 drivers/net/ethernet/marvell/mvmdio.c int regnum, u16 value) regnum 178 drivers/net/ethernet/marvell/mvmdio.c if (regnum & MII_ADDR_C45) regnum 186 drivers/net/ethernet/marvell/mvmdio.c (regnum << MVMDIO_SMI_PHY_REG_SHIFT) | regnum 206 drivers/net/ethernet/marvell/mvmdio.c int regnum) regnum 209 drivers/net/ethernet/marvell/mvmdio.c u16 dev_addr = (regnum >> 16) & GENMASK(4, 0); regnum 212 drivers/net/ethernet/marvell/mvmdio.c if (!(regnum & MII_ADDR_C45)) regnum 219 drivers/net/ethernet/marvell/mvmdio.c writel(regnum & GENMASK(15, 0), dev->regs + MVMDIO_XSMI_ADDR_REG); regnum 239 drivers/net/ethernet/marvell/mvmdio.c int regnum, u16 value) regnum 242 drivers/net/ethernet/marvell/mvmdio.c u16 dev_addr = (regnum >> 16) & GENMASK(4, 0); regnum 245 drivers/net/ethernet/marvell/mvmdio.c if (!(regnum & MII_ADDR_C45)) regnum 252 drivers/net/ethernet/marvell/mvmdio.c writel(regnum & GENMASK(15, 0), dev->regs + MVMDIO_XSMI_ADDR_REG); regnum 1302 drivers/net/ethernet/marvell/pxa168_eth.c static int pxa168_smi_read(struct mii_bus *bus, int phy_addr, int regnum) regnum 1312 drivers/net/ethernet/marvell/pxa168_eth.c wrl(pep, SMI, (phy_addr << 16) | (regnum << 21) | SMI_OP_R); regnum 1326 drivers/net/ethernet/marvell/pxa168_eth.c static int pxa168_smi_write(struct mii_bus *bus, int phy_addr, int regnum, regnum 1336 drivers/net/ethernet/marvell/pxa168_eth.c wrl(pep, SMI, (phy_addr << 16) | (regnum << 21) | regnum 44 drivers/net/ethernet/qualcomm/emac/emac-phy.c static int emac_mdio_read(struct mii_bus *bus, int addr, int regnum) regnum 54 drivers/net/ethernet/qualcomm/emac/emac-phy.c ((regnum << MDIO_REG_ADDR_SHFT) & MDIO_REG_ADDR_BMSK) | regnum 67 drivers/net/ethernet/qualcomm/emac/emac-phy.c static int emac_mdio_write(struct mii_bus *bus, int addr, int regnum, u16 val) regnum 77 drivers/net/ethernet/qualcomm/emac/emac-phy.c ((regnum << MDIO_REG_ADDR_SHFT) & MDIO_REG_ADDR_BMSK) | regnum 491 drivers/net/ethernet/socionext/sni_ave.c static int ave_mdiobus_read(struct mii_bus *bus, int phyid, int regnum) regnum 501 drivers/net/ethernet/socionext/sni_ave.c writel((phyid << 8) | regnum, priv->base + AVE_MDIOAR); regnum 512 drivers/net/ethernet/socionext/sni_ave.c phyid, regnum); regnum 519 drivers/net/ethernet/socionext/sni_ave.c static int ave_mdiobus_write(struct mii_bus *bus, int phyid, int regnum, regnum 530 drivers/net/ethernet/socionext/sni_ave.c writel((phyid << 8) | regnum, priv->base + AVE_MDIOAR); regnum 544 drivers/net/ethernet/socionext/sni_ave.c phyid, regnum); regnum 503 drivers/net/ethernet/toshiba/tc35815.c static int tc_mdio_read(struct mii_bus *bus, int mii_id, int regnum) regnum 510 drivers/net/ethernet/toshiba/tc35815.c tc_writel(MD_CA_Busy | (mii_id << 5) | (regnum & 0x1f), &tr->MD_CA); regnum 520 drivers/net/ethernet/toshiba/tc35815.c static int tc_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 val) regnum 528 drivers/net/ethernet/toshiba/tc35815.c tc_writel(MD_CA_Busy | MD_CA_Wr | (mii_id << 5) | (regnum & 0x1f), regnum 1635 drivers/net/ethernet/via/via-rhine.c static int mdio_read(struct net_device *dev, int phy_id, int regnum) regnum 1645 drivers/net/ethernet/via/via-rhine.c iowrite8(regnum, ioaddr + MIIRegAddr); regnum 1654 drivers/net/ethernet/via/via-rhine.c static void mdio_write(struct net_device *dev, int phy_id, int regnum, int value) regnum 1663 drivers/net/ethernet/via/via-rhine.c iowrite8(regnum, ioaddr + MIIRegAddr); regnum 478 drivers/net/phy/adin.c static int adin_read_mmd(struct phy_device *phydev, int devad, u16 regnum) regnum 485 drivers/net/phy/adin.c adin_regnum = adin_cl45_to_adin_reg(phydev, devad, regnum); regnum 497 drivers/net/phy/adin.c static int adin_write_mmd(struct phy_device *phydev, int devad, u16 regnum, regnum 505 drivers/net/phy/adin.c adin_regnum = adin_cl45_to_adin_reg(phydev, devad, regnum); regnum 46 drivers/net/phy/bcm-phy-lib.c int bcm54xx_auxctl_read(struct phy_device *phydev, u16 regnum) regnum 52 drivers/net/phy/bcm-phy-lib.c regnum << MII_BCM54XX_AUXCTL_SHDWSEL_READ_SHIFT); regnum 57 drivers/net/phy/bcm-phy-lib.c int bcm54xx_auxctl_write(struct phy_device *phydev, u16 regnum, u16 val) regnum 59 drivers/net/phy/bcm-phy-lib.c return phy_write(phydev, MII_BCM54XX_AUX_CTL, regnum | val); regnum 39 drivers/net/phy/bcm-phy-lib.h int bcm54xx_auxctl_write(struct phy_device *phydev, u16 regnum, u16 val); regnum 40 drivers/net/phy/bcm-phy-lib.h int bcm54xx_auxctl_read(struct phy_device *phydev, u16 regnum); regnum 58 drivers/net/phy/bcm87xx.c u32 regnum = MII_ADDR_C45 | (devid << 16) | reg; regnum 61 drivers/net/phy/bcm87xx.c val = phy_read(phydev, regnum); regnum 70 drivers/net/phy/bcm87xx.c ret = phy_write(phydev, regnum, val); regnum 18 drivers/net/phy/cortina.c static int cortina_read_reg(struct phy_device *phydev, u16 regnum) regnum 21 drivers/net/phy/cortina.c MII_ADDR_C45 | regnum); regnum 210 drivers/net/phy/dp83640.c static inline int broadcast_write(struct phy_device *phydev, u32 regnum, regnum 213 drivers/net/phy/dp83640.c return mdiobus_write(phydev->mdio.bus, BROADCAST_ADDR, regnum, val); regnum 217 drivers/net/phy/dp83640.c static int ext_read(struct phy_device *phydev, int page, u32 regnum) regnum 226 drivers/net/phy/dp83640.c val = phy_read(phydev, regnum); regnum 233 drivers/net/phy/dp83640.c int page, u32 regnum, u16 val) regnum 242 drivers/net/phy/dp83640.c broadcast_write(phydev, regnum, val); regnum 244 drivers/net/phy/dp83640.c phy_write(phydev, regnum, val); regnum 42 drivers/net/phy/mdio-aspeed.c static int aspeed_mdio_read(struct mii_bus *bus, int addr, int regnum) regnum 50 drivers/net/phy/mdio-aspeed.c regnum); regnum 53 drivers/net/phy/mdio-aspeed.c if (regnum & MII_ADDR_C45) regnum 60 drivers/net/phy/mdio-aspeed.c | FIELD_PREP(ASPEED_MDIO_CTRL_REGAD, regnum); regnum 74 drivers/net/phy/mdio-aspeed.c static int aspeed_mdio_write(struct mii_bus *bus, int addr, int regnum, u16 val) regnum 80 drivers/net/phy/mdio-aspeed.c __func__, addr, regnum, val); regnum 83 drivers/net/phy/mdio-aspeed.c if (regnum & MII_ADDR_C45) regnum 90 drivers/net/phy/mdio-aspeed.c | FIELD_PREP(ASPEED_MDIO_CTRL_REGAD, regnum) regnum 29 drivers/net/phy/mdio-cavium.c int phy_id, int regnum) regnum 38 drivers/net/phy/mdio-cavium.c smi_wr.s.dat = regnum & 0xffff; regnum 41 drivers/net/phy/mdio-cavium.c regnum = (regnum >> 16) & 0x1f; regnum 46 drivers/net/phy/mdio-cavium.c smi_cmd.s.reg_adr = regnum; regnum 62 drivers/net/phy/mdio-cavium.c int cavium_mdiobus_read(struct mii_bus *bus, int phy_id, int regnum) regnum 70 drivers/net/phy/mdio-cavium.c if (regnum & MII_ADDR_C45) { regnum 71 drivers/net/phy/mdio-cavium.c int r = cavium_mdiobus_c45_addr(p, phy_id, regnum); regnum 76 drivers/net/phy/mdio-cavium.c regnum = (regnum >> 16) & 0x1f; regnum 85 drivers/net/phy/mdio-cavium.c smi_cmd.s.reg_adr = regnum; regnum 103 drivers/net/phy/mdio-cavium.c int cavium_mdiobus_write(struct mii_bus *bus, int phy_id, int regnum, u16 val) regnum 111 drivers/net/phy/mdio-cavium.c if (regnum & MII_ADDR_C45) { regnum 112 drivers/net/phy/mdio-cavium.c int r = cavium_mdiobus_c45_addr(p, phy_id, regnum); regnum 117 drivers/net/phy/mdio-cavium.c regnum = (regnum >> 16) & 0x1f; regnum 130 drivers/net/phy/mdio-cavium.c smi_cmd.s.reg_adr = regnum; regnum 117 drivers/net/phy/mdio-cavium.h int cavium_mdiobus_read(struct mii_bus *bus, int phy_id, int regnum); regnum 118 drivers/net/phy/mdio-cavium.h int cavium_mdiobus_write(struct mii_bus *bus, int phy_id, int regnum, u16 val); regnum 36 drivers/net/phy/mdio-hisi-femac.c static int hisi_femac_mdio_read(struct mii_bus *bus, int mii_id, int regnum) regnum 45 drivers/net/phy/mdio-hisi-femac.c writel((mii_id << BIT_PHY_ADDR_OFFSET) | regnum, regnum 55 drivers/net/phy/mdio-hisi-femac.c static int hisi_femac_mdio_write(struct mii_bus *bus, int mii_id, int regnum, regnum 66 drivers/net/phy/mdio-hisi-femac.c (mii_id << BIT_PHY_ADDR_OFFSET) | regnum, regnum 34 drivers/net/phy/mdio-moxart.c static int moxart_mdio_read(struct mii_bus *bus, int mii_id, int regnum) regnum 43 drivers/net/phy/mdio-moxart.c ((regnum << 21) & REGAD_MASK); regnum 63 drivers/net/phy/mdio-moxart.c int regnum, u16 value) regnum 72 drivers/net/phy/mdio-moxart.c ((regnum << 21) & REGAD_MASK); regnum 54 drivers/net/phy/mdio-mscc-miim.c static int mscc_miim_read(struct mii_bus *bus, int mii_id, int regnum) regnum 65 drivers/net/phy/mdio-mscc-miim.c (regnum << MSCC_MIIM_CMD_REGAD_SHIFT) | MSCC_MIIM_CMD_OPR_READ, regnum 84 drivers/net/phy/mdio-mscc-miim.c int regnum, u16 value) regnum 94 drivers/net/phy/mdio-mscc-miim.c (regnum << MSCC_MIIM_CMD_REGAD_SHIFT) | regnum 38 drivers/net/phy/mdio-mux.c static int mdio_mux_read(struct mii_bus *bus, int phy_id, int regnum) regnum 51 drivers/net/phy/mdio-mux.c r = pb->mii_bus->read(pb->mii_bus, phy_id, regnum); regnum 62 drivers/net/phy/mdio-mux.c int regnum, u16 val) regnum 76 drivers/net/phy/mdio-mux.c r = pb->mii_bus->write(pb->mii_bus, phy_id, regnum, val); regnum 36 drivers/net/phy/mdio-sun4i.c static int sun4i_mdio_read(struct mii_bus *bus, int mii_id, int regnum) regnum 43 drivers/net/phy/mdio-sun4i.c writel((mii_id << 8) | regnum, data->membase + EMAC_MAC_MADR_REG); regnum 63 drivers/net/phy/mdio-sun4i.c static int sun4i_mdio_write(struct mii_bus *bus, int mii_id, int regnum, regnum 70 drivers/net/phy/mdio-sun4i.c writel((mii_id << 8) | regnum, data->membase + EMAC_MAC_MADR_REG); regnum 549 drivers/net/phy/mdio_bus.c int __mdiobus_read(struct mii_bus *bus, int addr, u32 regnum) regnum 555 drivers/net/phy/mdio_bus.c retval = bus->read(bus, addr, regnum); regnum 557 drivers/net/phy/mdio_bus.c trace_mdio_access(bus, 1, addr, regnum, retval, retval); regnum 574 drivers/net/phy/mdio_bus.c int __mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val) regnum 580 drivers/net/phy/mdio_bus.c err = bus->write(bus, addr, regnum, val); regnum 582 drivers/net/phy/mdio_bus.c trace_mdio_access(bus, 0, addr, regnum, val, err); regnum 601 drivers/net/phy/mdio_bus.c int mdiobus_read_nested(struct mii_bus *bus, int addr, u32 regnum) regnum 608 drivers/net/phy/mdio_bus.c retval = __mdiobus_read(bus, addr, regnum); regnum 625 drivers/net/phy/mdio_bus.c int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum) regnum 632 drivers/net/phy/mdio_bus.c retval = __mdiobus_read(bus, addr, regnum); regnum 653 drivers/net/phy/mdio_bus.c int mdiobus_write_nested(struct mii_bus *bus, int addr, u32 regnum, u16 val) regnum 660 drivers/net/phy/mdio_bus.c err = __mdiobus_write(bus, addr, regnum, val); regnum 678 drivers/net/phy/mdio_bus.c int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val) regnum 685 drivers/net/phy/mdio_bus.c err = __mdiobus_write(bus, addr, regnum, val); regnum 134 drivers/net/phy/micrel.c u32 regnum, u16 val) regnum 136 drivers/net/phy/micrel.c phy_write(phydev, MII_KSZPHY_EXTREG, KSZPHY_EXTREG_WRITE | regnum); regnum 141 drivers/net/phy/micrel.c u32 regnum) regnum 143 drivers/net/phy/micrel.c phy_write(phydev, MII_KSZPHY_EXTREG, regnum); regnum 981 drivers/net/phy/mscc.c static int phy_base_write(struct phy_device *phydev, u32 regnum, u16 val) regnum 990 drivers/net/phy/mscc.c return __mdiobus_write(phydev->mdio.bus, priv->base_addr, regnum, val); regnum 994 drivers/net/phy/mscc.c static int phy_base_read(struct phy_device *phydev, u32 regnum) regnum 1003 drivers/net/phy/mscc.c return __mdiobus_read(phydev->mdio.bus, priv->base_addr, regnum); regnum 353 drivers/net/phy/phy-core.c u16 regnum) regnum 359 drivers/net/phy/phy-core.c __mdiobus_write(bus, phy_addr, MII_MMD_DATA, regnum); regnum 375 drivers/net/phy/phy-core.c int __phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) regnum 379 drivers/net/phy/phy-core.c if (regnum > (u16)~0 || devad > 32) regnum 383 drivers/net/phy/phy-core.c val = phydev->drv->read_mmd(phydev, devad, regnum); regnum 385 drivers/net/phy/phy-core.c u32 addr = MII_ADDR_C45 | (devad << 16) | (regnum & 0xffff); regnum 392 drivers/net/phy/phy-core.c mmd_phy_indirect(bus, phy_addr, devad, regnum); regnum 410 drivers/net/phy/phy-core.c int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) regnum 415 drivers/net/phy/phy-core.c ret = __phy_read_mmd(phydev, devad, regnum); regnum 432 drivers/net/phy/phy-core.c int __phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) regnum 436 drivers/net/phy/phy-core.c if (regnum > (u16)~0 || devad > 32) regnum 440 drivers/net/phy/phy-core.c ret = phydev->drv->write_mmd(phydev, devad, regnum, val); regnum 442 drivers/net/phy/phy-core.c u32 addr = MII_ADDR_C45 | (devad << 16) | (regnum & 0xffff); regnum 450 drivers/net/phy/phy-core.c mmd_phy_indirect(bus, phy_addr, devad, regnum); regnum 471 drivers/net/phy/phy-core.c int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) regnum 476 drivers/net/phy/phy-core.c ret = __phy_write_mmd(phydev, devad, regnum, val); regnum 495 drivers/net/phy/phy-core.c int __phy_modify_changed(struct phy_device *phydev, u32 regnum, u16 mask, regnum 500 drivers/net/phy/phy-core.c ret = __phy_read(phydev, regnum); regnum 508 drivers/net/phy/phy-core.c ret = __phy_write(phydev, regnum, new); regnum 527 drivers/net/phy/phy-core.c int phy_modify_changed(struct phy_device *phydev, u32 regnum, u16 mask, u16 set) regnum 532 drivers/net/phy/phy-core.c ret = __phy_modify_changed(phydev, regnum, mask, set); regnum 550 drivers/net/phy/phy-core.c int __phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set) regnum 554 drivers/net/phy/phy-core.c ret = __phy_modify_changed(phydev, regnum, mask, set); regnum 571 drivers/net/phy/phy-core.c int phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set) regnum 576 drivers/net/phy/phy-core.c ret = __phy_modify(phydev, regnum, mask, set); regnum 596 drivers/net/phy/phy-core.c int __phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, regnum 601 drivers/net/phy/phy-core.c ret = __phy_read_mmd(phydev, devad, regnum); regnum 609 drivers/net/phy/phy-core.c ret = __phy_write_mmd(phydev, devad, regnum, new); regnum 629 drivers/net/phy/phy-core.c int phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, regnum 635 drivers/net/phy/phy-core.c ret = __phy_modify_mmd_changed(phydev, devad, regnum, mask, set); regnum 654 drivers/net/phy/phy-core.c int __phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, regnum 659 drivers/net/phy/phy-core.c ret = __phy_modify_mmd_changed(phydev, devad, regnum, mask, set); regnum 677 drivers/net/phy/phy-core.c int phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, regnum 683 drivers/net/phy/phy-core.c ret = __phy_modify_mmd(phydev, devad, regnum, mask, set); regnum 791 drivers/net/phy/phy-core.c int phy_read_paged(struct phy_device *phydev, int page, u32 regnum) regnum 797 drivers/net/phy/phy-core.c ret = __phy_read(phydev, regnum); regnum 812 drivers/net/phy/phy-core.c int phy_write_paged(struct phy_device *phydev, int page, u32 regnum, u16 val) regnum 818 drivers/net/phy/phy-core.c ret = __phy_write(phydev, regnum, val); regnum 834 drivers/net/phy/phy-core.c int phy_modify_paged_changed(struct phy_device *phydev, int page, u32 regnum, regnum 841 drivers/net/phy/phy-core.c ret = __phy_modify_changed(phydev, regnum, mask, set); regnum 857 drivers/net/phy/phy-core.c int phy_modify_paged(struct phy_device *phydev, int page, u32 regnum, regnum 860 drivers/net/phy/phy-core.c int ret = phy_modify_paged_changed(phydev, page, regnum, mask, set); regnum 1984 drivers/net/phy/phy_device.c int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad, u16 regnum) regnum 1991 drivers/net/phy/phy_device.c u16 regnum, u16 val) regnum 286 drivers/net/phy/realtek.c static int rtlgen_read_mmd(struct phy_device *phydev, int devnum, u16 regnum) regnum 290 drivers/net/phy/realtek.c if (devnum == MDIO_MMD_PCS && regnum == MDIO_PCS_EEE_ABLE) { regnum 294 drivers/net/phy/realtek.c } else if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_ADV) { regnum 298 drivers/net/phy/realtek.c } else if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_LPABLE) { regnum 309 drivers/net/phy/realtek.c static int rtlgen_write_mmd(struct phy_device *phydev, int devnum, u16 regnum, regnum 314 drivers/net/phy/realtek.c if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_ADV) { regnum 325 drivers/net/phy/realtek.c static int rtl8125_read_mmd(struct phy_device *phydev, int devnum, u16 regnum) regnum 327 drivers/net/phy/realtek.c int ret = rtlgen_read_mmd(phydev, devnum, regnum); regnum 332 drivers/net/phy/realtek.c if (devnum == MDIO_MMD_PCS && regnum == MDIO_PCS_EEE_ABLE2) { regnum 336 drivers/net/phy/realtek.c } else if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_ADV2) { regnum 340 drivers/net/phy/realtek.c } else if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_LPABLE2) { regnum 349 drivers/net/phy/realtek.c static int rtl8125_write_mmd(struct phy_device *phydev, int devnum, u16 regnum, regnum 352 drivers/net/phy/realtek.c int ret = rtlgen_write_mmd(phydev, devnum, regnum, val); regnum 357 drivers/net/phy/realtek.c if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_ADV2) { regnum 29 drivers/net/usb/ax88172a.c static int asix_mdio_bus_read(struct mii_bus *bus, int phy_id, int regnum) regnum 32 drivers/net/usb/ax88172a.c regnum); regnum 35 drivers/net/usb/ax88172a.c static int asix_mdio_bus_write(struct mii_bus *bus, int phy_id, int regnum, regnum 38 drivers/net/usb/ax88172a.c asix_mdio_write(((struct usbnet *)bus->priv)->net, phy_id, regnum, val); regnum 96 drivers/net/usb/net1080.c nc_vendor_read(struct usbnet *dev, u8 req, u8 regnum, u16 *retval_ptr) regnum 101 drivers/net/usb/net1080.c 0, regnum, retval_ptr, regnum 111 drivers/net/usb/net1080.c nc_register_read(struct usbnet *dev, u8 regnum, u16 *retval_ptr) regnum 113 drivers/net/usb/net1080.c return nc_vendor_read(dev, REQUEST_REGISTER, regnum, retval_ptr); regnum 118 drivers/net/usb/net1080.c nc_vendor_write(struct usbnet *dev, u8 req, u8 regnum, u16 value) regnum 122 drivers/net/usb/net1080.c value, regnum, NULL, 0); regnum 126 drivers/net/usb/net1080.c nc_register_write(struct usbnet *dev, u8 regnum, u16 value) regnum 128 drivers/net/usb/net1080.c nc_vendor_write(dev, REQUEST_REGISTER, regnum, value); regnum 1654 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c u32 regnum) regnum 1660 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c for (i = 0; i < regnum; i++) regnum 1678 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c u32 regnum) regnum 1685 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c for (i = 0; i < regnum; i++) regnum 4302 drivers/s390/net/qeth_core_main.c static int qeth_mdio_read(struct net_device *dev, int phy_id, int regnum) regnum 4307 drivers/s390/net/qeth_core_main.c switch (regnum) { regnum 597 drivers/staging/netlogic/xlr_net.c static int xlr_phy_write(u32 *base_addr, int phy_addr, int regnum, u16 val) regnum 607 drivers/staging/netlogic/xlr_net.c xlr_nae_wreg(base_addr, R_MII_MGMT_ADDRESS, (phy_addr << 8) | regnum); regnum 627 drivers/staging/netlogic/xlr_net.c static int xlr_phy_read(u32 *base_addr, int phy_addr, int regnum) regnum 639 drivers/staging/netlogic/xlr_net.c (phy_addr << 8) | (regnum << 0)); regnum 664 drivers/staging/netlogic/xlr_net.c static int xlr_mii_write(struct mii_bus *bus, int phy_addr, int regnum, u16 val) regnum 669 drivers/staging/netlogic/xlr_net.c ret = xlr_phy_write(priv->mii_addr, phy_addr, regnum, val); regnum 671 drivers/staging/netlogic/xlr_net.c phy_addr, regnum, val, ret); regnum 675 drivers/staging/netlogic/xlr_net.c static int xlr_mii_read(struct mii_bus *bus, int phy_addr, int regnum) regnum 680 drivers/staging/netlogic/xlr_net.c ret = xlr_phy_read(priv->mii_addr, phy_addr, regnum); regnum 682 drivers/staging/netlogic/xlr_net.c phy_addr, regnum, ret); regnum 1332 drivers/usb/misc/sisusbvga/sisusb.c int regnum, u32 data) regnum 1337 drivers/usb/misc/sisusbvga/sisusb.c packet.address = regnum | 0x10000; regnum 1343 drivers/usb/misc/sisusbvga/sisusb.c int regnum, u32 *data) regnum 1349 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (u32)regnum | 0x10000; regnum 1210 drivers/vfio/pci/vfio_pci.c int regnum = index - VFIO_PCI_NUM_REGIONS; regnum 1211 drivers/vfio/pci/vfio_pci.c struct vfio_pci_region *region = vdev->region + regnum; regnum 383 drivers/video/fbdev/cirrusfb.c int regnum, unsigned char val); regnum 384 drivers/video/fbdev/cirrusfb.c static unsigned char RGen(const struct cirrusfb_info *cinfo, int regnum); regnum 389 drivers/video/fbdev/cirrusfb.c static void WClut(struct cirrusfb_info *cinfo, unsigned char regnum, regnum 392 drivers/video/fbdev/cirrusfb.c static void RClut(struct cirrusfb_info *cinfo, unsigned char regnum, regnum 2408 drivers/video/fbdev/cirrusfb.c int regnum, unsigned char val) regnum 2416 drivers/video/fbdev/cirrusfb.c if (regnum == VGA_PEL_IR || regnum == VGA_PEL_D) regnum 2420 drivers/video/fbdev/cirrusfb.c vga_w(cinfo->regbase, regofs + regnum, val); regnum 2424 drivers/video/fbdev/cirrusfb.c static unsigned char RGen(const struct cirrusfb_info *cinfo, int regnum) regnum 2432 drivers/video/fbdev/cirrusfb.c if (regnum == VGA_PEL_IR || regnum == VGA_PEL_D) regnum 2436 drivers/video/fbdev/cirrusfb.c return vga_r(cinfo->regbase, regofs + regnum); regnum 2528 drivers/video/fbdev/cirrusfb.c static void WClut(struct cirrusfb_info *cinfo, unsigned char regnum, unsigned char red, regnum 2534 drivers/video/fbdev/cirrusfb.c vga_w(cinfo->regbase, VGA_PEL_IW, regnum); regnum 2554 drivers/video/fbdev/cirrusfb.c static void RClut(struct cirrusfb_info *cinfo, unsigned char regnum, unsigned char *red, regnum 2559 drivers/video/fbdev/cirrusfb.c vga_w(cinfo->regbase, VGA_PEL_IR, regnum); regnum 27 drivers/video/fbdev/core/svgalib.c while (regset->regnum != VGA_REGSET_END_VAL) { regnum 28 drivers/video/fbdev/core/svgalib.c regval = vga_rcrt(regbase, regset->regnum); regnum 37 drivers/video/fbdev/core/svgalib.c vga_wcrt(regbase, regset->regnum, regval); regnum 47 drivers/video/fbdev/core/svgalib.c while (regset->regnum != VGA_REGSET_END_VAL) { regnum 48 drivers/video/fbdev/core/svgalib.c regval = vga_rseq(regbase, regset->regnum); regnum 57 drivers/video/fbdev/core/svgalib.c vga_wseq(regbase, regset->regnum, regval); regnum 66 drivers/video/fbdev/core/svgalib.c while (regset->regnum != VGA_REGSET_END_VAL) { regnum 147 drivers/video/fbdev/nvidia/nvidia.c u8 regnum, u8 red, u8 green, u8 blue) regnum 150 drivers/video/fbdev/nvidia/nvidia.c NVWriteDacWriteAddr(par, regnum); regnum 157 drivers/video/fbdev/nvidia/nvidia.c u8 regnum, u8 * red, u8 * green, u8 * blue) regnum 160 drivers/video/fbdev/nvidia/nvidia.c NVWriteDacReadAddr(par, regnum); regnum 542 drivers/video/fbdev/riva/fbdev.c unsigned char regnum, unsigned char red, regnum 545 drivers/video/fbdev/riva/fbdev.c VGA_WR08(chip->PDIO, 0x3c8, regnum); regnum 566 drivers/video/fbdev/riva/fbdev.c unsigned char regnum, unsigned char *red, regnum 570 drivers/video/fbdev/riva/fbdev.c VGA_WR08(chip->PDIO, 0x3c7, regnum); regnum 8 include/linux/dsa/lan9303.h int (*phy_read)(struct lan9303 *chip, int port, int regnum); regnum 10 include/linux/dsa/lan9303.h int regnum, u16 val); regnum 317 include/linux/mdio.h int __mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); regnum 318 include/linux/mdio.h int __mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); regnum 320 include/linux/mdio.h int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); regnum 321 include/linux/mdio.h int mdiobus_read_nested(struct mii_bus *bus, int addr, u32 regnum); regnum 322 include/linux/mdio.h int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); regnum 323 include/linux/mdio.h int mdiobus_write_nested(struct mii_bus *bus, int addr, u32 regnum, u16 val); regnum 217 include/linux/phy.h int (*read)(struct mii_bus *bus, int addr, int regnum); regnum 218 include/linux/phy.h int (*write)(struct mii_bus *bus, int addr, int regnum, u16 val); regnum 594 include/linux/phy.h int (*read_mmd)(struct phy_device *dev, int devnum, u16 regnum); regnum 606 include/linux/phy.h int (*write_mmd)(struct phy_device *dev, int devnum, u16 regnum, regnum 696 include/linux/phy.h static inline int phy_read(struct phy_device *phydev, u32 regnum) regnum 698 include/linux/phy.h return mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum); regnum 708 include/linux/phy.h static inline int __phy_read(struct phy_device *phydev, u32 regnum) regnum 710 include/linux/phy.h return __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum); regnum 723 include/linux/phy.h static inline int phy_write(struct phy_device *phydev, u32 regnum, u16 val) regnum 725 include/linux/phy.h return mdiobus_write(phydev->mdio.bus, phydev->mdio.addr, regnum, val); regnum 736 include/linux/phy.h static inline int __phy_write(struct phy_device *phydev, u32 regnum, u16 val) regnum 738 include/linux/phy.h return __mdiobus_write(phydev->mdio.bus, phydev->mdio.addr, regnum, regnum 751 include/linux/phy.h int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum); regnum 762 include/linux/phy.h int __phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum); regnum 774 include/linux/phy.h int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); regnum 786 include/linux/phy.h int __phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); regnum 788 include/linux/phy.h int __phy_modify_changed(struct phy_device *phydev, u32 regnum, u16 mask, regnum 790 include/linux/phy.h int phy_modify_changed(struct phy_device *phydev, u32 regnum, u16 mask, regnum 792 include/linux/phy.h int __phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set); regnum 793 include/linux/phy.h int phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set); regnum 795 include/linux/phy.h int __phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, regnum 797 include/linux/phy.h int phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, regnum 799 include/linux/phy.h int __phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, regnum 801 include/linux/phy.h int phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, regnum 812 include/linux/phy.h static inline int __phy_set_bits(struct phy_device *phydev, u32 regnum, u16 val) regnum 814 include/linux/phy.h return __phy_modify(phydev, regnum, 0, val); regnum 825 include/linux/phy.h static inline int __phy_clear_bits(struct phy_device *phydev, u32 regnum, regnum 828 include/linux/phy.h return __phy_modify(phydev, regnum, val, 0); regnum 837 include/linux/phy.h static inline int phy_set_bits(struct phy_device *phydev, u32 regnum, u16 val) regnum 839 include/linux/phy.h return phy_modify(phydev, regnum, 0, val); regnum 848 include/linux/phy.h static inline int phy_clear_bits(struct phy_device *phydev, u32 regnum, u16 val) regnum 850 include/linux/phy.h return phy_modify(phydev, regnum, val, 0); regnum 864 include/linux/phy.h u32 regnum, u16 val) regnum 866 include/linux/phy.h return __phy_modify_mmd(phydev, devad, regnum, 0, val); regnum 880 include/linux/phy.h u32 regnum, u16 val) regnum 882 include/linux/phy.h return __phy_modify_mmd(phydev, devad, regnum, val, 0); regnum 894 include/linux/phy.h u32 regnum, u16 val) regnum 896 include/linux/phy.h return phy_modify_mmd(phydev, devad, regnum, 0, val); regnum 908 include/linux/phy.h u32 regnum, u16 val) regnum 910 include/linux/phy.h return phy_modify_mmd(phydev, devad, regnum, val, 0); regnum 992 include/linux/phy.h int phy_read_paged(struct phy_device *phydev, int page, u32 regnum); regnum 993 include/linux/phy.h int phy_write_paged(struct phy_device *phydev, int page, u32 regnum, u16 val); regnum 994 include/linux/phy.h int phy_modify_paged_changed(struct phy_device *phydev, int page, u32 regnum, regnum 996 include/linux/phy.h int phy_modify_paged(struct phy_device *phydev, int page, u32 regnum, regnum 1108 include/linux/phy.h u16 regnum); regnum 1110 include/linux/phy.h u16 regnum, u16 val); regnum 14 include/linux/svga.h u8 regnum; regnum 365 include/net/dsa.h int (*phy_read)(struct dsa_switch *ds, int port, int regnum); regnum 367 include/net/dsa.h int regnum, u16 val); regnum 13 include/trace/events/mdio.h u8 addr, unsigned regnum, u16 val, int err), regnum 15 include/trace/events/mdio.h TP_ARGS(bus, read, addr, regnum, val, err), regnum 24 include/trace/events/mdio.h __field(unsigned, regnum) regnum 31 include/trace/events/mdio.h __entry->regnum = regnum; regnum 37 include/trace/events/mdio.h __entry->addr, __entry->regnum, __entry->val) regnum 587 kernel/debug/gdbstub.c static char *gdb_hex_reg_helper(int regnum, char *out) regnum 592 kernel/debug/gdbstub.c for (i = 0; i < regnum; i++) regnum 601 kernel/debug/gdbstub.c unsigned long regnum; regnum 604 kernel/debug/gdbstub.c kgdb_hex2long(&ptr, ®num); regnum 605 kernel/debug/gdbstub.c if (regnum >= DBG_MAX_REG_NUM) { regnum 610 kernel/debug/gdbstub.c gdb_hex_reg_helper(regnum, remcom_out_buffer); regnum 616 kernel/debug/gdbstub.c unsigned long regnum; regnum 620 kernel/debug/gdbstub.c kgdb_hex2long(&ptr, ®num); regnum 623 kernel/debug/gdbstub.c !dbg_get_reg(regnum, gdb_regs, ks->linux_regs)) { regnum 635 kernel/debug/gdbstub.c dbg_set_reg(regnum, gdb_regs, ks->linux_regs); regnum 1251 sound/isa/wss/wss_lib.c int i, id, rev, regnum; regnum 1341 sound/isa/wss/wss_lib.c regnum = (chip->hardware & WSS_HW_AD1848_MASK) ? 16 : 32; regnum 1344 sound/isa/wss/wss_lib.c for (i = 0; i < regnum; i++) /* ok.. fill all registers */ regnum 9 tools/perf/arch/arm/util/unwind-libunwind.c int libunwind__arch_reg_id(int regnum) regnum 11 tools/perf/arch/arm/util/unwind-libunwind.c switch (regnum) { regnum 45 tools/perf/arch/arm/util/unwind-libunwind.c pr_err("unwind: invalid reg id %d\n", regnum); regnum 11 tools/perf/arch/arm64/util/unwind-libunwind.c int LIBUNWIND__ARCH_REG_ID(int regnum) regnum 13 tools/perf/arch/arm64/util/unwind-libunwind.c switch (regnum) { regnum 81 tools/perf/arch/arm64/util/unwind-libunwind.c pr_err("unwind: invalid reg id %d\n", regnum); regnum 12 tools/perf/arch/powerpc/util/unwind-libunwind.c int libunwind__arch_reg_id(int regnum) regnum 14 tools/perf/arch/powerpc/util/unwind-libunwind.c switch (regnum) { regnum 88 tools/perf/arch/powerpc/util/unwind-libunwind.c pr_err("unwind: invalid reg id %d\n", regnum); regnum 12 tools/perf/arch/x86/util/unwind-libunwind.c int LIBUNWIND__ARCH_REG_ID(int regnum) regnum 16 tools/perf/arch/x86/util/unwind-libunwind.c switch (regnum) { regnum 69 tools/perf/arch/x86/util/unwind-libunwind.c pr_err("unwind: invalid reg id %d\n", regnum); regnum 76 tools/perf/arch/x86/util/unwind-libunwind.c int LIBUNWIND__ARCH_REG_ID(int regnum) regnum 80 tools/perf/arch/x86/util/unwind-libunwind.c switch (regnum) { regnum 109 tools/perf/arch/x86/util/unwind-libunwind.c pr_err("unwind: invalid reg id %d\n", regnum); regnum 20 tools/perf/util/libunwind/arm64.c #define LIBUNWIND__ARCH_REG_ID(regnum) libunwind__arm64_reg_id(regnum) regnum 20 tools/perf/util/libunwind/x86_32.c #define LIBUNWIND__ARCH_REG_ID(regnum) libunwind__x86_reg_id(regnum) regnum 532 tools/perf/util/unwind-libunwind-local.c unw_regnum_t regnum, unw_word_t *valp, regnum 541 tools/perf/util/unwind-libunwind-local.c pr_err("unwind: access_reg w %d\n", regnum); regnum 550 tools/perf/util/unwind-libunwind-local.c id = LIBUNWIND__ARCH_REG_ID(regnum); regnum 556 tools/perf/util/unwind-libunwind-local.c pr_err("unwind: can't read reg %d\n", regnum); regnum 561 tools/perf/util/unwind-libunwind-local.c pr_debug("unwind: reg %d, val %lx\n", regnum, (unsigned long)*valp); regnum 38 tools/perf/util/unwind.h #define LIBUNWIND__ARCH_REG_ID(regnum) libunwind__arch_reg_id(regnum) regnum 49 tools/perf/util/unwind.h int LIBUNWIND__ARCH_REG_ID(int regnum);