Lines Matching refs:regno
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()
348 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
350 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg()
353 if (regno < 32 || regno >= 64) in dbg_set_reg()
356 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
357 dbg_reg_def[regno].size); in dbg_set_reg()
359 if (regno >= 32 && regno < 64) { in dbg_set_reg()
362 memcpy(¤t->thread.evr[regno-32], mem, in dbg_set_reg()
363 dbg_reg_def[regno].size); in dbg_set_reg()