Lines Matching refs:regno
35 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument
37 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
40 switch (regno) { in dbg_get_reg()
46 dbg_reg_def[regno].offset); in dbg_get_reg()
49 if (dbg_reg_def[regno].offset >= 0) in dbg_get_reg()
50 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
51 dbg_reg_def[regno].size); in dbg_get_reg()
53 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg()
56 return dbg_reg_def[regno].name; in dbg_get_reg()
59 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
61 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_set_reg()
64 switch (regno) { in dbg_set_reg()
70 dbg_reg_def[regno].offset) = *(u32 *)mem; in dbg_set_reg()
73 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
74 dbg_reg_def[regno].size); in dbg_set_reg()