Lines Matching refs:regno
226 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument
228 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
231 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg()
232 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
233 dbg_reg_def[regno].size); in dbg_get_reg()
235 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg()
236 return dbg_reg_def[regno].name; in dbg_get_reg()
239 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
241 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg()
244 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg()
245 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
246 dbg_reg_def[regno].size); in dbg_set_reg()