Lines Matching refs:regno
91 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
95 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()
106 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument
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()
116 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
117 dbg_reg_def[regno].size); in dbg_get_reg()
120 switch (regno) { in dbg_get_reg()
127 return dbg_reg_def[regno].name; in dbg_get_reg()