Home
last modified time | relevance | path

Searched refs:regno (Results 1 – 25 of 229) sorted by relevance

12345678910

/openbmc/linux/arch/m68k/kernel/
H A Dptrace.c79 if (regno == PT_USP) in get_reg()
86 if (regno == PT_SR || regno == PT_PC) { in get_reg()
90 if (regno == PT_SR) in get_reg()
104 if (regno == PT_USP) in put_reg()
111 if (regno == PT_SR || regno == PT_PC) { in put_reg()
176 if (regno >= 0 && regno < 19) { in arch_ptrace()
178 } else if (regno >= 21 && regno < 49) { in arch_ptrace()
183 if (FPU_IS_EMU && (regno < 45) && !(regno % 3)) in arch_ptrace()
208 if (regno >= 0 && regno < 19) { in arch_ptrace()
211 } else if (regno >= 21 && regno < 48) { in arch_ptrace()
[all …]
/openbmc/qemu/target/hexagon/
H A Dhex_common.py448 self.decl_reg_num(f, regno)
464 self.decl_reg_num(f, regno)
485 self.decl_reg_num(f, regno)
516 self.decl_reg_num(f, regno)
552 self.decl_reg_num(f, regno)
568 self.decl_reg_num(f, regno)
583 self.decl_reg_num(f, regno)
604 self.decl_reg_num(f, regno)
624 self.decl_reg_num(f, regno)
641 self.decl_reg_num(f, regno)
[all …]
H A Dgen_analyze_funcs.py58 for regno, register in enumerate(regs):
61 reg.decl_reg_num(f, regno)
64 for regno, register in enumerate(regs):
68 reg.analyze_read(f, regno)
71 for regno, register in enumerate(regs):
75 reg.analyze_write(f, tag, regno)
/openbmc/linux/arch/mips/kernel/
H A Dkgdb.c134 if (regno < 0 || regno >= DBG_MAX_REG_NUM) in dbg_set_reg()
137 if (dbg_reg_def[regno].offset != -1 && regno < 38) { in dbg_set_reg()
140 } else if (current && dbg_reg_def[regno].offset != -1 && regno < 72) { in dbg_set_reg()
144 if (regno == 70) { in dbg_set_reg()
149 } else if (regno == 71) { in dbg_set_reg()
167 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
170 if (dbg_reg_def[regno].offset != -1 && regno < 38) { in dbg_get_reg()
174 } else if (current && dbg_reg_def[regno].offset != -1 && regno < 72) { in dbg_get_reg()
179 if (regno == 70) { in dbg_get_reg()
184 } else if (regno == 71) { in dbg_get_reg()
[all …]
/openbmc/linux/arch/arm/kernel/
H A Dkgdb.c53 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
56 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg()
58 dbg_reg_def[regno].size); in dbg_get_reg()
60 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg()
61 return dbg_reg_def[regno].name; in dbg_get_reg()
66 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg()
69 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg()
71 dbg_reg_def[regno].size); in dbg_set_reg()
79 int regno; in sleeping_thread_to_gdb_regs() local
86 for (regno = 0; regno < GDB_MAX_REGS; regno++) in sleeping_thread_to_gdb_regs()
[all …]
/openbmc/linux/arch/nios2/kernel/
H A Dkgdb.c73 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
76 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg()
77 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
78 dbg_reg_def[regno].size); in dbg_get_reg()
80 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg()
82 return dbg_reg_def[regno].name; in dbg_get_reg()
85 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
87 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg()
90 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg()
91 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
[all …]
/openbmc/linux/arch/arc/kernel/
H A Dkgdb.c17 int regno; in to_gdb_regs() local
19 for (regno = 0; regno <= 26; regno++) in to_gdb_regs()
20 gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs); in to_gdb_regs()
22 for (regno = 27; regno < GDB_MAX_REGS; regno++) in to_gdb_regs()
23 gdb_regs[regno] = 0; in to_gdb_regs()
40 int regno; in from_gdb_regs() local
42 for (regno = 0; regno <= 26; regno++) in from_gdb_regs()
43 set_reg(regno, gdb_regs[regno + _R0], kernel_regs, cregs); in from_gdb_regs()
/openbmc/linux/arch/powerpc/kernel/
H A Dkgdb.c321 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
324 if (regno < 32 || regno >= 64) in dbg_get_reg()
328 dbg_reg_def[regno].size); in dbg_get_reg()
330 if (regno >= 32 && regno < 64) { in dbg_get_reg()
335 dbg_reg_def[regno].size); in dbg_get_reg()
342 return dbg_reg_def[regno].name; in dbg_get_reg()
347 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg()
350 if (regno < 32 || regno >= 64) in dbg_set_reg()
354 dbg_reg_def[regno].size); in dbg_set_reg()
356 if (regno >= 32 && regno < 64) { in dbg_set_reg()
[all …]
/openbmc/linux/drivers/video/fbdev/
H A Dmacfb.c157 if (regno != lastreg + 1) { in dafb_setpalette()
165 for (i = 0; i < regno; i++) { in dafb_setpalette()
185 lastreg = regno; in dafb_setpalette()
205 regno = (regno << (8 - bpp)) | (0xFF >> bpp); in v8_brazil_setpalette()
240 nubus_writeb(regno, &rbv_cmap_regs->addr); in rbv_setpalette()
265 nubus_writeb(regno, &cmap_regs->addr); in mdc_setpalette()
289 regno = (regno << (8 - bpp)) | (0xFF >> bpp); in toby_setpalette()
293 nubus_writeb(regno, &cmap_regs->addr); in toby_setpalette()
315 nubus_writeb(regno, &cmap_regs->addr); in jet_setpalette()
443 if (regno >= fb_info->cmap.len) in macfb_setcolreg()
[all …]
H A Dmaxinefb.c64 void maxinefb_ims332_write_register(int regno, register unsigned int val) in maxinefb_ims332_write_register() argument
69 wptr = regs + 0xa0000 + (regno << 4); in maxinefb_ims332_write_register()
74 unsigned int maxinefb_ims332_read_register(int regno) in maxinefb_ims332_read_register() argument
80 rptr = regs + 0x80000 + (regno << 4); in maxinefb_ims332_read_register()
88 static int maxinefb_setcolreg(unsigned regno, unsigned red, unsigned green, in maxinefb_setcolreg() argument
94 if (regno > 255) in maxinefb_setcolreg()
103 maxinefb_ims332_write_register(IMS332_REG_COLOR_PALETTE + regno, in maxinefb_setcolreg()
/openbmc/linux/arch/arm64/kernel/
H A Dkgdb.c106 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
109 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg()
110 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
111 dbg_reg_def[regno].size); in dbg_get_reg()
113 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg()
114 return dbg_reg_def[regno].name; in dbg_get_reg()
117 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
119 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg()
122 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg()
123 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
[all …]
/openbmc/linux/arch/powerpc/kernel/vdso/
H A Dsigtramp32.S53 #define rsave(regno, ofs) \ argument
55 .uleb128 regno; /* regno */ \
69 #define vsave_msr0(regno) \ argument
71 .uleb128 regno + 77; /* regno */ \
74 .byte 0x30 + regno; /* DW_OP_lit0 */ \
99 #define vsave_msr1(regno) \ argument
101 .uleb128 regno + 77; /* regno */ \
110 #define vsave_msr2(regno, ofs) \ argument
112 .uleb128 regno + 77; /* regno */ \
120 #define vsave(regno, ofs) \ argument
[all …]
H A Dsigtramp64.S58 #define rsave(regno, ofs) \ argument
60 .uleb128 regno; /* regno */ \
74 #define vsave_msr0(regno) \ argument
76 .uleb128 regno + 77; /* regno */ \
79 .byte 0x30 + regno; /* DW_OP_lit0 */ \
105 #define vsave_msr1(regno) \ argument
107 .uleb128 regno + 77; /* regno */ \
116 #define vsave_msr2(regno, ofs) \ argument
118 .uleb128 regno + 77; /* regno */ \
126 #define vsave(regno, ofs) \ argument
[all …]
/openbmc/linux/drivers/net/ethernet/realtek/
H A Dr8169_firmware.c96 u32 regno = (action & 0x0fff0000) >> 16; in rtl_fw_data_ok() local
114 if (regno > index) in rtl_fw_data_ok()
124 if (index + 1 + regno >= pa->size) in rtl_fw_data_ok()
151 u32 regno = (action & 0x0fff0000) >> 16; in rtl_fw_write_firmware() local
159 predata = fw_read(tp, regno); in rtl_fw_write_firmware()
169 index -= (regno + 1); in rtl_fw_write_firmware()
185 fw_write(tp, regno, data); in rtl_fw_write_firmware()
193 index += regno; in rtl_fw_write_firmware()
197 index += regno; in rtl_fw_write_firmware()
200 fw_write(tp, regno, predata); in rtl_fw_write_firmware()
[all …]
/openbmc/linux/arch/sh/kernel/
H A Dkgdb.c193 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
195 if (regno < 0 || regno >= DBG_MAX_REG_NUM) in dbg_set_reg()
198 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg()
199 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
200 dbg_reg_def[regno].size); in dbg_set_reg()
207 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
210 if (dbg_reg_def[regno].size != -1) in dbg_get_reg()
211 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
212 dbg_reg_def[regno].size); in dbg_get_reg()
214 switch (regno) { in dbg_get_reg()
[all …]
/openbmc/u-boot/arch/powerpc/lib/
H A Dkgdb.c183 kgdb_putreg(struct pt_regs *regs, int regno, char *buf, int length) in kgdb_putreg() argument
187 if (regno < 0 || regno >= 70) in kgdb_putreg()
189 else if (regno >= 32 && regno < 64) { in kgdb_putreg()
201 if (regno >= 0 && regno < 32) in kgdb_putreg()
202 regs->gpr[regno] = *ptr; in kgdb_putreg()
203 else switch (regno) { in kgdb_putreg()
/openbmc/linux/arch/alpha/kernel/
H A Dptrace.c109 get_reg_addr(struct task_struct * task, unsigned long regno) in get_reg_addr() argument
113 if (regno == 30) { in get_reg_addr()
115 } else if (regno == 65) { in get_reg_addr()
117 } else if (regno == 31 || regno > 65) { in get_reg_addr()
121 addr = task_stack_page(task) + regoff[regno]; in get_reg_addr()
130 get_reg(struct task_struct * task, unsigned long regno) in get_reg() argument
133 if (regno == 63) { in get_reg()
134 unsigned long fpcr = *get_reg_addr(task, regno); in get_reg()
140 return *get_reg_addr(task, regno); in get_reg()
149 if (regno == 63) { in put_reg()
[all …]
/openbmc/qemu/target/arm/tcg/
H A Dtranslate-a64.h80 static inline int vec_reg_offset(DisasContext *s, int regno, in vec_reg_offset() argument
104 offs += offsetof(CPUARMState, vfp.zregs[regno]); in vec_reg_offset()
110 static inline int vec_full_reg_offset(DisasContext *s, int regno) in vec_full_reg_offset() argument
113 return offsetof(CPUARMState, vfp.zregs[regno]); in vec_full_reg_offset()
117 static inline TCGv_ptr vec_full_reg_ptr(DisasContext *s, int regno) in vec_full_reg_ptr() argument
120 tcg_gen_addi_ptr(ret, tcg_env, vec_full_reg_offset(s, regno)); in vec_full_reg_ptr()
140 static inline int pred_full_reg_offset(DisasContext *s, int regno) in pred_full_reg_offset() argument
142 return offsetof(CPUARMState, vfp.pregs[regno]); in pred_full_reg_offset()
181 static inline TCGv_ptr pred_full_reg_ptr(DisasContext *s, int regno) in pred_full_reg_ptr() argument
184 tcg_gen_addi_ptr(ret, tcg_env, pred_full_reg_offset(s, regno)); in pred_full_reg_ptr()
/openbmc/linux/arch/hexagon/kernel/
H A Dkgdb.c78 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument
80 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
84 dbg_reg_def[regno].offset)); in dbg_get_reg()
86 return dbg_reg_def[regno].name; in dbg_get_reg()
89 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
91 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg()
94 *((unsigned long *) ((void *)regs + dbg_reg_def[regno].offset)) = in dbg_set_reg()
/openbmc/linux/arch/riscv/kernel/
H A Dkgdb.c209 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
212 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg()
213 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
214 dbg_reg_def[regno].size); in dbg_get_reg()
216 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg()
217 return dbg_reg_def[regno].name; in dbg_get_reg()
220 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
222 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg()
225 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg()
226 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
[all …]
/openbmc/linux/arch/x86/um/
H A Dptrace_32.c76 int putreg(struct task_struct *child, int regno, unsigned long value) in putreg() argument
78 regno >>= 2; in putreg()
79 switch (regno) { in putreg()
119 panic("Bad register in putreg() : %d\n", regno); in putreg()
121 child->thread.regs.regs.gp[reg_offsets[regno]] = value; in putreg()
144 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument
148 regno >>= 2; in getreg()
149 switch (regno) { in getreg()
171 panic("Bad register in getreg() : %d\n", regno); in getreg()
173 return mask & child->thread.regs.regs.gp[reg_offsets[regno]]; in getreg()
H A Dptrace_64.c54 int putreg(struct task_struct *child, int regno, unsigned long value) in putreg() argument
56 switch (regno) { in putreg()
104 panic("Bad register in putreg(): %d\n", regno); in putreg()
107 child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value; in putreg()
130 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument
134 switch (regno) { in getreg()
166 panic("Bad register in getreg: %d\n", regno); in getreg()
168 return mask & child->thread.regs.regs.gp[reg_offsets[regno >> 3]]; in getreg()
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_7220.h121 const u16 regno) in qib_read_kreg32() argument
125 return readl((u32 __iomem *)&dd->kregbase[regno]); in qib_read_kreg32()
129 const u16 regno) in qib_read_kreg64() argument
134 return readq(&dd->kregbase[regno]); in qib_read_kreg64()
138 const u16 regno, u64 value) in qib_write_kreg() argument
141 writeq(value, &dd->kregbase[regno]); in qib_write_kreg()
/openbmc/linux/arch/x86/kernel/
H A Dkgdb.c95 regno == GDB_SS || regno == GDB_FS || regno == GDB_GS || in dbg_set_reg()
97 regno == GDB_SP || regno == GDB_ORIG_AX) in dbg_set_reg()
100 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg()
101 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
102 dbg_reg_def[regno].size); in dbg_set_reg()
108 if (regno == GDB_ORIG_AX) { in dbg_get_reg()
112 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
115 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg()
117 dbg_reg_def[regno].size); in dbg_get_reg()
120 switch (regno) { in dbg_get_reg()
[all …]
/openbmc/linux/arch/x86/include/asm/
H A Ddebugreg.h21 static __always_inline unsigned long native_get_debugreg(int regno) in native_get_debugreg() argument
25 switch (regno) { in native_get_debugreg()
63 static __always_inline void native_set_debugreg(int regno, unsigned long value) in native_set_debugreg() argument
65 switch (regno) { in native_set_debugreg()

12345678910