Lines Matching refs:regno
50 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument
52 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
55 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg()
56 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
57 dbg_reg_def[regno].size); in dbg_get_reg()
59 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg()
60 return dbg_reg_def[regno].name; in dbg_get_reg()
63 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
65 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg()
68 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg()
69 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
70 dbg_reg_def[regno].size); in dbg_set_reg()
78 int regno; in sleeping_thread_to_gdb_regs() local
85 for (regno = 0; regno < GDB_MAX_REGS; regno++) in sleeping_thread_to_gdb_regs()
86 gdb_regs[regno] = 0; in sleeping_thread_to_gdb_regs()