/kernel/linux/linux-4.19/arch/m68k/kernel/ |
D | ptrace.c | 75 static inline long get_reg(struct task_struct *task, int regno) in get_reg() argument 79 if (regno == PT_USP) in get_reg() 81 else if (regno < ARRAY_SIZE(regoff)) in get_reg() 82 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in get_reg() 86 if (regno == PT_SR || regno == PT_PC) { in get_reg() 90 if (regno == PT_SR) in get_reg() 99 static inline int put_reg(struct task_struct *task, int regno, in put_reg() argument 104 if (regno == PT_USP) in put_reg() 106 else if (regno < ARRAY_SIZE(regoff)) in put_reg() 107 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in put_reg() [all …]
|
/kernel/linux/linux-5.10/arch/m68k/kernel/ |
D | ptrace.c | 74 static inline long get_reg(struct task_struct *task, int regno) in get_reg() argument 78 if (regno == PT_USP) in get_reg() 80 else if (regno < ARRAY_SIZE(regoff)) in get_reg() 81 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in get_reg() 85 if (regno == PT_SR || regno == PT_PC) { in get_reg() 89 if (regno == PT_SR) in get_reg() 98 static inline int put_reg(struct task_struct *task, int regno, in put_reg() argument 103 if (regno == PT_USP) in put_reg() 105 else if (regno < ARRAY_SIZE(regoff)) in put_reg() 106 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in put_reg() [all …]
|
/kernel/linux/linux-5.10/arch/h8300/kernel/ |
D | kgdb.c | 35 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument 37 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg() 40 switch (regno) { in dbg_get_reg() 46 dbg_reg_def[regno].offset); in dbg_get_reg() 49 if (dbg_reg_def[regno].offset >= 0) in dbg_get_reg() 50 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 51 dbg_reg_def[regno].size); in dbg_get_reg() 53 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 56 return dbg_reg_def[regno].name; in dbg_get_reg() 59 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument [all …]
|
D | ptrace.c | 39 long h8300_get_reg(struct task_struct *task, int regno) in h8300_get_reg() argument 41 switch (regno) { in h8300_get_reg() 47 register_offset[regno]); in h8300_get_reg() 50 register_offset[regno]); in h8300_get_reg() 54 int h8300_put_reg(struct task_struct *task, int regno, unsigned long data) in h8300_put_reg() argument 59 switch (regno) { in h8300_put_reg() 64 register_offset[regno]); in h8300_put_reg() 69 register_offset[regno]) = data; in h8300_put_reg() 73 register_offset[regno]); in h8300_put_reg() 78 register_offset[regno]) = data; in h8300_put_reg() [all …]
|
/kernel/linux/linux-4.19/arch/h8300/kernel/ |
D | kgdb.c | 35 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument 37 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg() 40 switch (regno) { in dbg_get_reg() 46 dbg_reg_def[regno].offset); in dbg_get_reg() 49 if (dbg_reg_def[regno].offset >= 0) in dbg_get_reg() 50 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 51 dbg_reg_def[regno].size); in dbg_get_reg() 53 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 56 return dbg_reg_def[regno].name; in dbg_get_reg() 59 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument [all …]
|
D | ptrace.c | 39 long h8300_get_reg(struct task_struct *task, int regno) in h8300_get_reg() argument 41 switch (regno) { in h8300_get_reg() 47 register_offset[regno]); in h8300_get_reg() 50 register_offset[regno]); in h8300_get_reg() 54 int h8300_put_reg(struct task_struct *task, int regno, unsigned long data) in h8300_put_reg() argument 59 switch (regno) { in h8300_put_reg() 64 register_offset[regno]); in h8300_put_reg() 69 register_offset[regno]) = data; in h8300_put_reg() 73 register_offset[regno]); in h8300_put_reg() 78 register_offset[regno]) = data; in h8300_put_reg() [all …]
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | kgdb.c | 131 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument 135 if (regno < 0 || regno >= DBG_MAX_REG_NUM) in dbg_set_reg() 138 if (dbg_reg_def[regno].offset != -1 && regno < 38) { in dbg_set_reg() 139 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg() 140 dbg_reg_def[regno].size); in dbg_set_reg() 141 } else if (current && dbg_reg_def[regno].offset != -1 && regno < 72) { in dbg_set_reg() 145 if (regno == 70) { in dbg_set_reg() 148 dbg_reg_def[regno].size); in dbg_set_reg() 150 } else if (regno == 71) { in dbg_set_reg() 154 fp_reg = dbg_reg_def[regno].offset; in dbg_set_reg() [all …]
|
/kernel/linux/linux-4.19/arch/mips/kernel/ |
D | kgdb.c | 131 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument 135 if (regno < 0 || regno >= DBG_MAX_REG_NUM) in dbg_set_reg() 138 if (dbg_reg_def[regno].offset != -1 && regno < 38) { in dbg_set_reg() 139 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg() 140 dbg_reg_def[regno].size); in dbg_set_reg() 141 } else if (current && dbg_reg_def[regno].offset != -1 && regno < 72) { in dbg_set_reg() 145 if (regno == 70) { in dbg_set_reg() 148 dbg_reg_def[regno].size); in dbg_set_reg() 150 } else if (regno == 71) { in dbg_set_reg() 154 fp_reg = dbg_reg_def[regno].offset; in dbg_set_reg() [all …]
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
D | kgdb.c | 51 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument 53 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg() 56 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg() 57 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, 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() 64 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument 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() [all …]
|
/kernel/linux/linux-4.19/arch/arm/kernel/ |
D | kgdb.c | 51 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument 53 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg() 56 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg() 57 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, 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() 64 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument 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() [all …]
|
/kernel/linux/linux-4.19/arch/nios2/kernel/ |
D | kgdb.c | 84 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument 86 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg() 89 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg() 90 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 91 dbg_reg_def[regno].size); in dbg_get_reg() 93 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 95 return dbg_reg_def[regno].name; in dbg_get_reg() 98 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument 100 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg() 103 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg() [all …]
|
/kernel/linux/linux-5.10/arch/nios2/kernel/ |
D | kgdb.c | 71 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument 73 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() [all …]
|
/kernel/linux/linux-5.10/arch/arc/kernel/ |
D | kgdb.c | 17 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()
|
/kernel/linux/linux-4.19/arch/arc/kernel/ |
D | kgdb.c | 20 int regno; in to_gdb_regs() local 22 for (regno = 0; regno <= 26; regno++) in to_gdb_regs() 23 gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs); in to_gdb_regs() 25 for (regno = 27; regno < GDB_MAX_REGS; regno++) in to_gdb_regs() 26 gdb_regs[regno] = 0; in to_gdb_regs() 43 int regno; in from_gdb_regs() local 45 for (regno = 0; regno <= 26; regno++) in from_gdb_regs() 46 set_reg(regno, gdb_regs[regno + _R0], kernel_regs, cregs); in from_gdb_regs()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | kgdb.c | 322 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument 324 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg() 327 if (regno < 32 || regno >= 64) in dbg_get_reg() 330 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 331 dbg_reg_def[regno].size); in dbg_get_reg() 333 if (regno >= 32 && regno < 64) { in dbg_get_reg() 337 memcpy(mem, ¤t->thread.evr[regno-32], in dbg_get_reg() 338 dbg_reg_def[regno].size); in dbg_get_reg() 341 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 345 return dbg_reg_def[regno].name; in dbg_get_reg() [all …]
|
/kernel/linux/linux-4.19/arch/powerpc/kernel/ |
D | kgdb.c | 349 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument 351 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg() 354 if (regno < 32 || regno >= 64) in dbg_get_reg() 357 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 358 dbg_reg_def[regno].size); in dbg_get_reg() 360 if (regno >= 32 && regno < 64) { in dbg_get_reg() 364 memcpy(mem, ¤t->thread.evr[regno-32], in dbg_get_reg() 365 dbg_reg_def[regno].size); in dbg_get_reg() 368 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 372 return dbg_reg_def[regno].name; in dbg_get_reg() [all …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
D | macfb.c | 52 static int (*macfb_setpalette)(unsigned int regno, unsigned int red, 144 static int dafb_setpalette(unsigned int regno, unsigned int red, in dafb_setpalette() argument 157 if (regno != lastreg + 1) { in dafb_setpalette() 165 for (i = 0; i < regno; i++) { in dafb_setpalette() 185 lastreg = regno; in dafb_setpalette() 190 static int v8_brazil_setpalette(unsigned int regno, unsigned int red, in v8_brazil_setpalette() argument 205 regno = (regno << (8 - bpp)) | (0xFF >> bpp); in v8_brazil_setpalette() 206 nubus_writeb(regno, &v8_brazil_cmap_regs->addr); in v8_brazil_setpalette() 221 static int rbv_setpalette(unsigned int regno, unsigned int red, in rbv_setpalette() argument 233 regno += 256 - (1 << info->var.bits_per_pixel); in rbv_setpalette() [all …]
|
/kernel/linux/linux-5.10/arch/c6x/kernel/ |
D | ptrace.c | 31 static inline long get_reg(struct task_struct *task, int regno) in get_reg() argument 35 if (regno == PT_TSR || regno == PT_CSR) in get_reg() 38 return addr[regno]; in get_reg() 45 int regno, in put_reg() argument 50 if (regno != PT_TSR && regno != PT_CSR) in put_reg() 51 addr[regno] = data; in put_reg()
|
/kernel/linux/linux-4.19/drivers/video/fbdev/ |
D | macfb.c | 55 static int (*macfb_setpalette)(unsigned int regno, unsigned int red, 151 static int dafb_setpalette(unsigned int regno, unsigned int red, in dafb_setpalette() argument 164 if (regno != lastreg + 1) { in dafb_setpalette() 172 for (i = 0; i < regno; i++) { in dafb_setpalette() 192 lastreg = regno; in dafb_setpalette() 197 static int v8_brazil_setpalette(unsigned int regno, unsigned int red, in v8_brazil_setpalette() argument 215 regno = (regno << (8 - bpp)) | (0xFF >> bpp); in v8_brazil_setpalette() 216 nubus_writeb(regno, &v8_brazil_cmap_regs->addr); in v8_brazil_setpalette() 231 static int rbv_setpalette(unsigned int regno, unsigned int red, in rbv_setpalette() argument 246 regno += 256 - (1 << info->var.bits_per_pixel); in rbv_setpalette() [all …]
|
/kernel/linux/linux-4.19/arch/c6x/kernel/ |
D | ptrace.c | 34 static inline long get_reg(struct task_struct *task, int regno) in get_reg() argument 38 if (regno == PT_TSR || regno == PT_CSR) in get_reg() 41 return addr[regno]; in get_reg() 48 int regno, in put_reg() argument 53 if (regno != PT_TSR && regno != PT_CSR) in put_reg() 54 addr[regno] = data; in put_reg()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | kgdb.c | 103 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument 105 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg() 108 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg() 109 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 110 dbg_reg_def[regno].size); in dbg_get_reg() 112 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 113 return dbg_reg_def[regno].name; in dbg_get_reg() 116 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument 118 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg() 121 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg() [all …]
|
/kernel/linux/linux-4.19/arch/arm64/kernel/ |
D | kgdb.c | 114 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument 116 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg() 119 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg() 120 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 121 dbg_reg_def[regno].size); in dbg_get_reg() 123 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 124 return dbg_reg_def[regno].name; in dbg_get_reg() 127 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument 129 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg() 132 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/vdso32/ |
D | sigtramp.S | 53 #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 */ \ 104 .byte 0x30 + regno; /* DW_OP_lit n */ \ 110 #define vsave_msr2(regno, ofs) \ argument 112 .uleb128 regno + 77; /* regno */ \ [all …]
|
/kernel/linux/linux-4.19/arch/powerpc/kernel/vdso32/ |
D | sigtramp.S | 57 #define rsave(regno, ofs) \ argument 59 .uleb128 regno; /* regno */ \ 73 #define vsave_msr0(regno) \ argument 75 .uleb128 regno + 77; /* regno */ \ 78 .byte 0x30 + regno; /* DW_OP_lit0 */ \ 103 #define vsave_msr1(regno) \ argument 105 .uleb128 regno + 77; /* regno */ \ 108 .byte 0x30 + regno; /* DW_OP_lit n */ \ 114 #define vsave_msr2(regno, ofs) \ argument 116 .uleb128 regno + 77; /* regno */ \ [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/ |
D | r8169_firmware.c | 96 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 …]
|