Lines Matching defs:index
59 void set_compat_exception_context_register_index(struct pt_regs *regs, int index, uint64_t val)
61 /* 14 means the index of compat_lr */
62 if (index == 14) {
64 /* 13 means the index of compat_sp */
65 } else if (index == 13) {
68 regs->regs[index] = val;
72 void set_exception_context_register_index(struct pt_regs *regs, int index, uint64_t val)
77 set_compat_exception_context_register_index(regs, index, val);
79 switch (index) {
80 /* 16 means the index of regs[16] */
82 /* 17 means the index of regs[17] */
84 /* 30 means the index of regs[30] */
86 offset = offsetof(struct pt_regs, regs[index]);
90 regs->regs[index] = val;