Lines Matching refs:regno
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()
91 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
92 dbg_reg_def[regno].size); in dbg_set_reg()