Lines Matching refs:regno
130 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
134 if (regno < 0 || regno >= DBG_MAX_REG_NUM) in dbg_set_reg()
137 if (dbg_reg_def[regno].offset != -1 && regno < 38) { in dbg_set_reg()
138 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
139 dbg_reg_def[regno].size); in dbg_set_reg()
140 } else if (current && dbg_reg_def[regno].offset != -1 && regno < 72) { in dbg_set_reg()
144 if (regno == 70) { in dbg_set_reg()
147 dbg_reg_def[regno].size); in dbg_set_reg()
149 } else if (regno == 71) { in dbg_set_reg()
153 fp_reg = dbg_reg_def[regno].offset; in dbg_set_reg()
155 dbg_reg_def[regno].size); in dbg_set_reg()
163 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument
167 if (regno >= DBG_MAX_REG_NUM || regno < 0) in dbg_get_reg()
170 if (dbg_reg_def[regno].offset != -1 && regno < 38) { in dbg_get_reg()
172 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
173 dbg_reg_def[regno].size); in dbg_get_reg()
174 } else if (current && dbg_reg_def[regno].offset != -1 && regno < 72) { in dbg_get_reg()
179 if (regno == 70) { in dbg_get_reg()
182 dbg_reg_def[regno].size); in dbg_get_reg()
184 } else if (regno == 71) { in dbg_get_reg()
186 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg()
189 fp_reg = dbg_reg_def[regno].offset; in dbg_get_reg()
191 dbg_reg_def[regno].size); in dbg_get_reg()
195 return dbg_reg_def[regno].name; in dbg_get_reg()