Home
last modified time | relevance | path

Searched refs:regnum (Results 1 – 25 of 119) sorted by relevance

12345

/linux/arch/ia64/include/uapi/asm/
A Dgcc_intrin.h22 #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) { \
63 #define ia64_getreg(regnum) \ argument
67 switch (regnum) { \
169 #define ia64_ldfs(regnum, x) \ argument
175 #define ia64_ldfd(regnum, x) \ argument
181 #define ia64_ldfe(regnum, x) \ argument
187 #define ia64_ldf8(regnum, x) \ argument
[all …]
/linux/include/linux/
A Dmdio.h341 int __mdiobus_read(struct mii_bus *bus, int addr, u32 regnum);
346 int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum);
357 return mdiobus_read(mdiodev->bus, mdiodev->addr, regnum); in mdiodev_read()
363 return mdiobus_write(mdiodev->bus, mdiodev->addr, regnum, val); in mdiodev_write()
373 u32 regnum, u16 mask, u16 set) in mdiodev_modify_changed() argument
379 static inline u32 mdiobus_c45_addr(int devad, u16 regnum) in mdiobus_c45_addr() argument
381 return MII_ADDR_C45 | devad << MII_DEVADDR_C45_SHIFT | regnum; in mdiobus_c45_addr()
385 u16 regnum) in __mdiobus_c45_read() argument
391 u16 regnum, u16 val) in __mdiobus_c45_write() argument
398 u16 regnum) in mdiobus_c45_read() argument
[all …]
A Dphy.h1073 regnum, mask, set); in __phy_modify_changed()
1105 phydev, devaddr, regnum); \
1182 return phy_modify(phydev, regnum, 0, val); in phy_set_bits()
1207 u32 regnum, u16 val) in __phy_set_bits_mmd() argument
1223 u32 regnum, u16 val) in __phy_clear_bits_mmd() argument
1237 u32 regnum, u16 val) in phy_set_bits_mmd() argument
1251 u32 regnum, u16 val) in phy_clear_bits_mmd() argument
1597 u16 regnum);
1599 u16 regnum, u16 val);
1741 u32 regnum, u16 val) in phy_package_write() argument
[all …]
/linux/drivers/net/mdio/
A Dmdio-cavium.c29 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()
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()
111 if (regnum & MII_ADDR_C45) { in cavium_mdiobus_write()
117 regnum = (regnum >> 16) & 0x1f; in cavium_mdiobus_write()
[all …]
A Dmdio-ipq4019.c56 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()
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()
161 writel((mii_id << 8) | regnum, priv->membase + MDIO_ADDR_REG); in ipq4019_mdio_write()
[all …]
A Dmdio-aspeed.c42 static int aspeed_mdio_read(struct mii_bus *bus, int addr, int regnum) in aspeed_mdio_read() argument
50 regnum); in aspeed_mdio_read()
53 if (regnum & MII_ADDR_C45) in aspeed_mdio_read()
60 | FIELD_PREP(ASPEED_MDIO_CTRL_REGAD, regnum); in aspeed_mdio_read()
81 static int aspeed_mdio_write(struct mii_bus *bus, int addr, int regnum, u16 val) in aspeed_mdio_write() argument
87 __func__, addr, regnum, val); in aspeed_mdio_write()
90 if (regnum & MII_ADDR_C45) in aspeed_mdio_write()
97 | FIELD_PREP(ASPEED_MDIO_CTRL_REGAD, regnum) in aspeed_mdio_write()
A Dmdio-hisi-femac.c36 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/drivers/net/phy/
A Dphy-core.c447 u16 regnum) in mmd_phy_indirect() argument
473 if (regnum > (u16)~0 || devad > 32) in __phy_read_mmd()
480 devad, regnum); in __phy_read_mmd()
485 mmd_phy_indirect(bus, phy_addr, devad, regnum); in __phy_read_mmd()
508 ret = __phy_read_mmd(phydev, devad, regnum); in phy_read_mmd()
529 if (regnum > (u16)~0 || devad > 32) in __phy_write_mmd()
536 devad, regnum, val); in __phy_write_mmd()
636 ret = __phy_modify(phydev, regnum, mask, set); in phy_modify()
661 ret = __phy_read_mmd(phydev, devad, regnum); in __phy_modify_mmd_changed()
863 ret = __phy_read(phydev, regnum); in phy_read_paged()
[all …]
A Dmdio_bus.c758 retval = bus->read(bus, addr, regnum); in __mdiobus_read()
760 trace_mdio_access(bus, 1, addr, regnum, retval, retval); in __mdiobus_read()
784 err = bus->write(bus, addr, regnum, val); in __mdiobus_write()
786 trace_mdio_access(bus, 0, addr, regnum, val, err); in __mdiobus_write()
811 ret = __mdiobus_read(bus, addr, regnum); in __mdiobus_modify_changed()
819 ret = __mdiobus_write(bus, addr, regnum, new); in __mdiobus_modify_changed()
843 retval = __mdiobus_read(bus, addr, regnum); in mdiobus_read_nested()
860 int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum) in mdiobus_read() argument
865 retval = __mdiobus_read(bus, addr, regnum); in mdiobus_read()
891 err = __mdiobus_write(bus, addr, regnum, val); in mdiobus_write_nested()
[all …]
A Drealtek.c552 static int rtlgen_read_mmd(struct phy_device *phydev, int devnum, u16 regnum) in rtlgen_read_mmd() argument
556 if (devnum == MDIO_MMD_PCS && regnum == MDIO_PCS_EEE_ABLE) { in rtlgen_read_mmd()
560 } else if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_ADV) { in rtlgen_read_mmd()
564 } else if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_LPABLE) { in rtlgen_read_mmd()
580 if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_ADV) { in rtlgen_write_mmd()
593 int ret = rtlgen_read_mmd(phydev, devnum, regnum); in rtl822x_read_mmd()
598 if (devnum == MDIO_MMD_PCS && regnum == MDIO_PCS_EEE_ABLE2) { in rtl822x_read_mmd()
602 } else if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_ADV2) { in rtl822x_read_mmd()
606 } else if (devnum == MDIO_MMD_AN && regnum == MDIO_AN_EEE_LPABLE2) { in rtl822x_read_mmd()
618 int ret = rtlgen_write_mmd(phydev, devnum, regnum, val); in rtl822x_write_mmd()
[all …]
/linux/drivers/net/ethernet/freescale/enetc/
A Denetc_mdio.c66 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()
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()
132 if (regnum & MII_ADDR_C45) { in enetc_mdio_read()
133 enetc_mdio_wr(mdio_priv, ENETC_MDIO_ADDR, regnum & 0xffff); in enetc_mdio_read()
[all …]
/linux/drivers/net/ethernet/freescale/
A Dxgmac_mdio.c141 if (regnum & MII_ADDR_C45) { in xgmac_mdio_write()
143 dev_addr = (regnum >> 16) & 0x1f; in xgmac_mdio_write()
147 dev_addr = regnum & 0x1f; in xgmac_mdio_write()
162 if (regnum & MII_ADDR_C45) { in xgmac_mdio_write()
163 xgmac_write32(regnum & 0xffff, &regs->mdio_addr, endian); in xgmac_mdio_write()
197 if (regnum & MII_ADDR_C45) { in xgmac_mdio_read()
198 dev_addr = (regnum >> 16) & 0x1f; in xgmac_mdio_read()
201 dev_addr = regnum & 0x1f; in xgmac_mdio_read()
216 if (regnum & MII_ADDR_C45) { in xgmac_mdio_read()
217 xgmac_write32(regnum & 0xffff, &regs->mdio_addr, endian); in xgmac_mdio_read()
[all …]
/linux/include/trace/events/
A Dmdio.h13 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/tools/perf/arch/mips/util/
A Dunwind-libunwind.c9 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/drivers/net/ethernet/marvell/
A Dmvmdio.c143 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()
241 int regnum, u16 value) in orion_mdio_xsmi_write() argument
[all …]
/linux/tools/perf/arch/x86/util/
A Dunwind-libunwind.c12 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/arch/ia64/kernel/
A Dunaligned.c465 set_rse_reg(regs, regnum, val, nat); in setreg()
477 if (GR_IN_SW(regnum)) { in setreg()
490 addr += GR_OFFS(regnum); in setreg()
543 if (FR_IN_SW(regnum)) { in setfpreg()
551 addr += FR_OFFS(regnum); in setfpreg()
603 switch(regnum) { in getfpreg()
618 FR_IN_SW(regnum), addr, FR_OFFS(regnum)); in getfpreg()
620 addr += FR_OFFS(regnum); in getfpreg()
641 if (regnum == 0) { in getreg()
651 if (GR_IN_SW(regnum)) { in getreg()
[all …]
/linux/drivers/net/dsa/
A Dlan9303-core.c270 if (regnum > MII_EXPANSION) in lan9303_virt_phy_reg_read()
282 if (regnum > MII_EXPANSION) in lan9303_virt_phy_reg_write()
300 val |= LAN9303_PMI_ACCESS_MIIRINDA(regnum); in lan9303_indirect_phy_read()
332 int regnum, u16 val) in lan9303_indirect_phy_write() argument
338 reg |= LAN9303_PMI_ACCESS_MIIRINDA(regnum); in lan9303_indirect_phy_write()
377 reg = regnum; in lan9303_write_switch_reg()
409 reg = regnum; in lan9303_read_switch_reg()
456 u16 regnum, u32 val) in lan9303_write_switch_port() argument
463 u16 regnum, u32 *val) in lan9303_read_switch_port() argument
1026 return lan9303_virt_phy_reg_read(chip, regnum); in lan9303_phy_read()
[all …]
/linux/include/linux/fsl/
A Denetc_mdio.h40 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/arch/arm/include/asm/
A Dopcodes-virt.h21 #define __MSR_ELR_HYP(regnum) __inst_arm_thumb32( \ argument
22 0xE12EF300 | regnum, \
23 0xF3808E30 | (regnum << 16) \
/linux/tools/perf/arch/arm/util/
A Dunwind-libunwind.c9 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/arch/x86/kernel/cpu/mtrr/
A Dif.c208 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()
/linux/arch/microblaze/kernel/
A Dhw_exception_handler.S104 #define R3_TO_LWREG_V(regnum) \ argument
105 swi r3, r1, 4 * regnum; \
109 #define R3_TO_LWREG(regnum) \ argument
110 or NUM_TO_REG (regnum), r0, r3; \
114 #define SWREG_TO_R3_V(regnum) \ argument
115 lwi r3, r1, 4 * regnum; \
119 #define SWREG_TO_R3(regnum) \ argument
125 swi r3, r7, 4 * regnum;
129 or NUM_TO_REG (regnum), r0, r3;
133 lwi r3, r7, 4 * regnum;
[all …]
/linux/tools/perf/arch/arm64/util/
A Dunwind-libunwind.c11 int LIBUNWIND__ARCH_REG_ID(int regnum) in LIBUNWIND__ARCH_REG_ID() argument
13 switch (regnum) { in LIBUNWIND__ARCH_REG_ID()
81 pr_err("unwind: invalid reg id %d\n", regnum); in LIBUNWIND__ARCH_REG_ID()
/linux/tools/perf/arch/powerpc/util/
A Dunwind-libunwind.c12 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()

Completed in 56 milliseconds

12345