/linux-6.1.9/arch/ia64/include/uapi/asm/ |
D | gcc_intrin.h | 22 #define ia64_invala_gr(regnum) asm volatile ("invala.e r%0" :: "i"(regnum)) argument 24 #define ia64_invala_fr(regnum) asm volatile ("invala.e f%0" :: "i"(regnum)) argument 34 #define ia64_setreg(regnum, val) \ argument 36 switch (regnum) { \ 42 "i" (regnum - _IA64_REG_AR_KR0), \ 47 "i" (regnum - _IA64_REG_CR_DCR), \ 63 #define ia64_getreg(regnum) \ argument 67 switch (regnum) { \ 82 : "i"(regnum - _IA64_REG_AR_KR0)); \ 86 : "i" (regnum - _IA64_REG_CR_DCR)); \ [all …]
|
/linux-6.1.9/include/linux/ |
D | mdio.h | 413 int __mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); 414 int __mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); 415 int __mdiobus_modify_changed(struct mii_bus *bus, int addr, u32 regnum, 418 int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); 419 int mdiobus_read_nested(struct mii_bus *bus, int addr, u32 regnum); 420 int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); 421 int mdiobus_write_nested(struct mii_bus *bus, int addr, u32 regnum, u16 val); 422 int mdiobus_modify(struct mii_bus *bus, int addr, u32 regnum, u16 mask, 424 int mdiobus_modify_changed(struct mii_bus *bus, int addr, u32 regnum, 427 static inline int mdiodev_read(struct mdio_device *mdiodev, u32 regnum) in mdiodev_read() argument [all …]
|
D | phy.h | 364 int (*read)(struct mii_bus *bus, int addr, int regnum); 366 int (*write)(struct mii_bus *bus, int addr, int regnum, u16 val); 905 int (*read_mmd)(struct phy_device *dev, int devnum, u16 regnum); 917 int (*write_mmd)(struct phy_device *dev, int devnum, u16 regnum, 1041 static inline int phy_read(struct phy_device *phydev, u32 regnum) in phy_read() argument 1043 return mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum); in phy_read() 1046 #define phy_read_poll_timeout(phydev, regnum, val, cond, sleep_us, \ argument 1050 sleep_us, timeout_us, sleep_before_read, phydev, regnum); \ 1066 static inline int __phy_read(struct phy_device *phydev, u32 regnum) in __phy_read() argument 1068 return __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum); in __phy_read() [all …]
|
/linux-6.1.9/drivers/net/mdio/ |
D | mdio-cavium.c | 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 [all …]
|
D | mdio-aspeed.c | 88 static int aspeed_mdio_read_c22(struct mii_bus *bus, int addr, int regnum) in aspeed_mdio_read_c22() argument 93 addr, regnum, 0); in aspeed_mdio_read_c22() 100 static int aspeed_mdio_write_c22(struct mii_bus *bus, int addr, int regnum, in aspeed_mdio_write_c22() argument 104 addr, regnum, val); in aspeed_mdio_write_c22() 107 static int aspeed_mdio_read_c45(struct mii_bus *bus, int addr, int regnum) in aspeed_mdio_read_c45() argument 109 u8 c45_dev = (regnum >> 16) & 0x1F; in aspeed_mdio_read_c45() 110 u16 c45_addr = regnum & 0xFFFF; in aspeed_mdio_read_c45() 126 static int aspeed_mdio_write_c45(struct mii_bus *bus, int addr, int regnum, in aspeed_mdio_write_c45() argument 129 u8 c45_dev = (regnum >> 16) & 0x1F; in aspeed_mdio_write_c45() 130 u16 c45_addr = regnum & 0xFFFF; in aspeed_mdio_write_c45() [all …]
|
D | mdio-ipq4019.c | 56 static int ipq4019_mdio_read(struct mii_bus *bus, int mii_id, int regnum) in ipq4019_mdio_read() argument 66 if (regnum & MII_ADDR_C45) { in ipq4019_mdio_read() 67 unsigned int mmd = (regnum >> 16) & 0x1F; in ipq4019_mdio_read() 68 unsigned int reg = regnum & 0xFFFF; in ipq4019_mdio_read() 93 writel((mii_id << 8) | regnum, priv->membase + MDIO_ADDR_REG); in ipq4019_mdio_read() 105 if (regnum & MII_ADDR_C45) { in ipq4019_mdio_read() 118 static int ipq4019_mdio_write(struct mii_bus *bus, int mii_id, int regnum, in ipq4019_mdio_write() argument 129 if (regnum & MII_ADDR_C45) { in ipq4019_mdio_write() 130 unsigned int mmd = (regnum >> 16) & 0x1F; in ipq4019_mdio_write() 131 unsigned int reg = regnum & 0xFFFF; in ipq4019_mdio_write() [all …]
|
D | mdio-hisi-femac.c | 36 static int hisi_femac_mdio_read(struct mii_bus *bus, int mii_id, int regnum) in hisi_femac_mdio_read() argument 45 writel((mii_id << BIT_PHY_ADDR_OFFSET) | regnum, in hisi_femac_mdio_read() 55 static int hisi_femac_mdio_write(struct mii_bus *bus, int mii_id, int regnum, in hisi_femac_mdio_write() argument 66 (mii_id << BIT_PHY_ADDR_OFFSET) | regnum, in hisi_femac_mdio_write()
|
/linux-6.1.9/drivers/net/phy/ |
D | phy-core.c | 516 u16 regnum) in mmd_phy_indirect() argument 522 __mdiobus_write(bus, phy_addr, MII_MMD_DATA, regnum); in mmd_phy_indirect() 538 int __phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) in __phy_read_mmd() argument 542 if (regnum > (u16)~0 || devad > 32) in __phy_read_mmd() 546 val = phydev->drv->read_mmd(phydev, devad, regnum); in __phy_read_mmd() 549 devad, regnum); in __phy_read_mmd() 554 mmd_phy_indirect(bus, phy_addr, devad, regnum); in __phy_read_mmd() 572 int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) in phy_read_mmd() argument 577 ret = __phy_read_mmd(phydev, devad, regnum); in phy_read_mmd() 594 int __phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) in __phy_write_mmd() argument [all …]
|
D | mdio_bus.c | 761 int __mdiobus_read(struct mii_bus *bus, int addr, u32 regnum) in __mdiobus_read() argument 767 retval = bus->read(bus, addr, regnum); in __mdiobus_read() 769 trace_mdio_access(bus, 1, addr, regnum, retval, retval); in __mdiobus_read() 787 int __mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val) in __mdiobus_write() argument 793 err = bus->write(bus, addr, regnum, val); in __mdiobus_write() 795 trace_mdio_access(bus, 0, addr, regnum, val, err); in __mdiobus_write() 815 int __mdiobus_modify_changed(struct mii_bus *bus, int addr, u32 regnum, in __mdiobus_modify_changed() argument 820 ret = __mdiobus_read(bus, addr, regnum); in __mdiobus_modify_changed() 828 ret = __mdiobus_write(bus, addr, regnum, new); in __mdiobus_modify_changed() 847 int mdiobus_read_nested(struct mii_bus *bus, int addr, u32 regnum) in mdiobus_read_nested() argument [all …]
|
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/ |
D | enetc_mdio.c | 58 int enetc_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value) in enetc_mdio_write() argument 66 if (regnum & MII_ADDR_C45) { in enetc_mdio_write() 67 dev_addr = (regnum >> 16) & 0x1f; in enetc_mdio_write() 71 dev_addr = regnum & 0x1f; in enetc_mdio_write() 86 if (regnum & MII_ADDR_C45) { in enetc_mdio_write() 87 enetc_mdio_wr(mdio_priv, ENETC_MDIO_ADDR, regnum & 0xffff); in enetc_mdio_write() 105 int enetc_mdio_read(struct mii_bus *bus, int phy_id, int regnum) in enetc_mdio_read() argument 113 if (regnum & MII_ADDR_C45) { in enetc_mdio_read() 114 dev_addr = (regnum >> 16) & 0x1f; in enetc_mdio_read() 117 dev_addr = regnum & 0x1f; in enetc_mdio_read() [all …]
|
/linux-6.1.9/tools/perf/arch/mips/util/ |
D | unwind-libunwind.c | 9 int libunwind__arch_reg_id(int regnum) in libunwind__arch_reg_id() argument 11 switch (regnum) { in libunwind__arch_reg_id() 13 return regnum - UNW_MIPS_R1 + PERF_REG_MIPS_R1; in libunwind__arch_reg_id() 15 return regnum - UNW_MIPS_R28 + PERF_REG_MIPS_R28; in libunwind__arch_reg_id() 19 pr_err("unwind: invalid reg id %d\n", regnum); in libunwind__arch_reg_id()
|
/linux-6.1.9/include/trace/events/ |
D | mdio.h | 13 u8 addr, unsigned regnum, u16 val, int err), 15 TP_ARGS(bus, read, addr, regnum, val, err), 24 __field(unsigned, regnum) 31 __entry->regnum = regnum; 37 __entry->addr, __entry->regnum, __entry->val)
|
/linux-6.1.9/drivers/net/ethernet/sunplus/ |
D | spl2sw_mdio.c | 18 static int spl2sw_mdio_access(struct spl2sw_common *comm, u8 cmd, u8 addr, u8 regnum, u16 wdata) in spl2sw_mdio_access() argument 32 FIELD_PREP(MAC_CPU_PHY_REG_ADDR, regnum) | FIELD_PREP(MAC_CPU_PHY_ADDR, addr); in spl2sw_mdio_access() 60 static int spl2sw_mii_read(struct mii_bus *bus, int addr, int regnum) in spl2sw_mii_read() argument 64 if (regnum & MII_ADDR_C45) in spl2sw_mii_read() 67 return spl2sw_mdio_access(comm, SPL2SW_MDIO_READ_CMD, addr, regnum, 0); in spl2sw_mii_read() 70 static int spl2sw_mii_write(struct mii_bus *bus, int addr, int regnum, u16 val) in spl2sw_mii_write() argument 75 if (regnum & MII_ADDR_C45) in spl2sw_mii_write() 78 ret = spl2sw_mdio_access(comm, SPL2SW_MDIO_WRITE_CMD, addr, regnum, val); in spl2sw_mii_write()
|
/linux-6.1.9/tools/perf/arch/x86/util/ |
D | unwind-libunwind.c | 12 int LIBUNWIND__ARCH_REG_ID(int regnum) in LIBUNWIND__ARCH_REG_ID() argument 16 switch (regnum) { in LIBUNWIND__ARCH_REG_ID() 69 pr_err("unwind: invalid reg id %d\n", regnum); in LIBUNWIND__ARCH_REG_ID() 76 int LIBUNWIND__ARCH_REG_ID(int regnum) in LIBUNWIND__ARCH_REG_ID() argument 80 switch (regnum) { in LIBUNWIND__ARCH_REG_ID() 109 pr_err("unwind: invalid reg id %d\n", regnum); in LIBUNWIND__ARCH_REG_ID()
|
/linux-6.1.9/tools/perf/arch/arm64/util/ |
D | unwind-libunwind.c | 11 int LIBUNWIND__ARCH_REG_ID(int regnum) in LIBUNWIND__ARCH_REG_ID() argument 13 if (regnum < 0 || regnum >= PERF_REG_ARM64_EXTENDED_MAX) in LIBUNWIND__ARCH_REG_ID() 16 return regnum; in LIBUNWIND__ARCH_REG_ID()
|
/linux-6.1.9/drivers/net/ethernet/freescale/ |
D | xgmac_mdio.c | 136 static int xgmac_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value) in xgmac_mdio_write() argument 146 if (regnum & MII_ADDR_C45) { in xgmac_mdio_write() 148 dev_addr = (regnum >> 16) & 0x1f; in xgmac_mdio_write() 152 dev_addr = regnum & 0x1f; in xgmac_mdio_write() 167 if (regnum & MII_ADDR_C45) { in xgmac_mdio_write() 168 xgmac_write32(regnum & 0xffff, ®s->mdio_addr, endian); in xgmac_mdio_write() 190 static int xgmac_mdio_read(struct mii_bus *bus, int phy_id, int regnum) in xgmac_mdio_read() argument 202 if (regnum & MII_ADDR_C45) { in xgmac_mdio_read() 203 dev_addr = (regnum >> 16) & 0x1f; in xgmac_mdio_read() 206 dev_addr = regnum & 0x1f; in xgmac_mdio_read() [all …]
|
/linux-6.1.9/drivers/net/ethernet/marvell/ |
D | mvmdio.c | 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() [all …]
|
/linux-6.1.9/arch/ia64/kernel/ |
D | unaligned.c | 454 setreg (unsigned long regnum, unsigned long val, int nat, struct pt_regs *regs) in setreg() argument 464 if (regnum >= IA64_FIRST_STACKED_GR) { in setreg() 465 set_rse_reg(regs, regnum, val, nat); in setreg() 477 if (GR_IN_SW(regnum)) { in setreg() 485 addr, unat==&sw->ar_unat ? "yes":"no", GR_OFFS(regnum)); in setreg() 490 addr += GR_OFFS(regnum); in setreg() 513 fph_index (struct pt_regs *regs, long regnum) in fph_index() argument 516 return rotate_reg(96, rrb_fr, (regnum - IA64_FIRST_ROTATING_FR)); in fph_index() 520 setfpreg (unsigned long regnum, struct ia64_fpreg *fpval, struct pt_regs *regs) in setfpreg() argument 536 if (regnum >= IA64_FIRST_ROTATING_FR) { in setfpreg() [all …]
|
/linux-6.1.9/include/linux/fsl/ |
D | enetc_mdio.h | 40 int enetc_mdio_read(struct mii_bus *bus, int phy_id, int regnum); 41 int enetc_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value); 46 static inline int enetc_mdio_read(struct mii_bus *bus, int phy_id, int regnum) in enetc_mdio_read() argument 48 static inline int enetc_mdio_write(struct mii_bus *bus, int phy_id, int regnum, in enetc_mdio_write() argument
|
/linux-6.1.9/drivers/net/pcs/ |
D | pcs-altera-tse.c | 44 static u16 tse_pcs_read(struct altera_tse_pcs *tse_pcs, int regnum) in tse_pcs_read() argument 47 return readl(tse_pcs->base + regnum * 4); in tse_pcs_read() 49 return readw(tse_pcs->base + regnum * 2); in tse_pcs_read() 52 static void tse_pcs_write(struct altera_tse_pcs *tse_pcs, int regnum, in tse_pcs_write() argument 56 writel(value, tse_pcs->base + regnum * 4); in tse_pcs_write() 58 writew(value, tse_pcs->base + regnum * 2); in tse_pcs_write()
|
/linux-6.1.9/arch/arm/include/asm/ |
D | opcodes-virt.h | 21 #define __MSR_ELR_HYP(regnum) __inst_arm_thumb32( \ argument 22 0xE12EF300 | regnum, \ 23 0xF3808E30 | (regnum << 16) \
|
/linux-6.1.9/drivers/net/dsa/ |
D | lan9303-core.c | 271 static int lan9303_virt_phy_reg_read(struct lan9303 *chip, int regnum) in lan9303_virt_phy_reg_read() argument 276 if (regnum > MII_EXPANSION) in lan9303_virt_phy_reg_read() 279 ret = lan9303_read(chip->regmap, LAN9303_VIRT_PHY_BASE + regnum, &val); in lan9303_virt_phy_reg_read() 286 static int lan9303_virt_phy_reg_write(struct lan9303 *chip, int regnum, u16 val) in lan9303_virt_phy_reg_write() argument 288 if (regnum > MII_EXPANSION) in lan9303_virt_phy_reg_write() 291 return regmap_write(chip->regmap, LAN9303_VIRT_PHY_BASE + regnum, val); in lan9303_virt_phy_reg_write() 300 static int lan9303_indirect_phy_read(struct lan9303 *chip, int addr, int regnum) in lan9303_indirect_phy_read() argument 306 val |= LAN9303_PMI_ACCESS_MIIRINDA(regnum); in lan9303_indirect_phy_read() 338 int regnum, u16 val) in lan9303_indirect_phy_write() argument 344 reg |= LAN9303_PMI_ACCESS_MIIRINDA(regnum); in lan9303_indirect_phy_write() [all …]
|
/linux-6.1.9/tools/perf/arch/arm/util/ |
D | unwind-libunwind.c | 9 int libunwind__arch_reg_id(int regnum) in libunwind__arch_reg_id() argument 11 switch (regnum) { in libunwind__arch_reg_id() 45 pr_err("unwind: invalid reg id %d\n", regnum); in libunwind__arch_reg_id()
|
/linux-6.1.9/tools/perf/arch/powerpc/util/ |
D | unwind-libunwind.c | 12 int libunwind__arch_reg_id(int regnum) in libunwind__arch_reg_id() argument 14 switch (regnum) { in libunwind__arch_reg_id() 88 pr_err("unwind: invalid reg id %d\n", regnum); in libunwind__arch_reg_id()
|
/linux-6.1.9/arch/x86/kernel/cpu/mtrr/ |
D | if.c | 208 err = get_user(gentry.regnum, &g32->regnum); in mtrr_ioctl() 252 if (gentry.regnum >= num_var_ranges) in mtrr_ioctl() 254 mtrr_if->get(gentry.regnum, &base, &size, &type); in mtrr_ioctl() 298 if (gentry.regnum >= num_var_ranges) in mtrr_ioctl() 300 mtrr_if->get(gentry.regnum, &base, &size, &type); in mtrr_ioctl() 329 err |= put_user(gentry.regnum, &g32->regnum); in mtrr_ioctl()
|