Lines Matching full:regs
30 struct pt_regs *regs) in mips_syscall_is_indirect() argument
35 (regs->regs[2] == __NR_syscall); in mips_syscall_is_indirect()
39 struct pt_regs *regs) in syscall_get_nr() argument
45 struct pt_regs *regs, in syscall_set_nr() argument
49 * New syscall number has to be assigned to regs[2] because in syscall_set_nr()
56 task_thread_info(task)->syscall = regs->regs[2] = nr; in syscall_set_nr()
60 struct pt_regs *regs) in mips_syscall_update_nr() argument
66 if (mips_syscall_is_indirect(task, regs)) in mips_syscall_update_nr()
67 task_thread_info(task)->syscall = regs->regs[4]; in mips_syscall_update_nr()
69 task_thread_info(task)->syscall = regs->regs[2]; in mips_syscall_update_nr()
73 struct task_struct *task, struct pt_regs *regs, unsigned int n) in mips_get_syscall_arg() argument
78 *arg = regs->regs[4 + n]; in mips_get_syscall_arg()
81 *arg = regs->args[n]; in mips_get_syscall_arg()
85 *arg = regs->regs[4 + n]; in mips_get_syscall_arg()
93 struct task_struct *task, struct pt_regs *regs, unsigned int n) in mips_set_syscall_arg() argument
98 regs->regs[4 + n] = *arg; in mips_set_syscall_arg()
101 *arg = regs->args[n] = *arg; in mips_set_syscall_arg()
105 regs->regs[4 + n] = *arg; in mips_set_syscall_arg()
110 struct pt_regs *regs) in syscall_get_error() argument
112 return regs->regs[7] ? -regs->regs[2] : 0; in syscall_get_error()
116 struct pt_regs *regs) in syscall_get_return_value() argument
118 return regs->regs[2]; in syscall_get_return_value()
122 struct pt_regs *regs) in syscall_rollback() argument
128 struct pt_regs *regs, in syscall_set_return_value() argument
132 regs->regs[2] = -error; in syscall_set_return_value()
133 regs->regs[7] = 1; in syscall_set_return_value()
135 regs->regs[2] = val; in syscall_set_return_value()
136 regs->regs[7] = 0; in syscall_set_return_value()
141 struct pt_regs *regs, in syscall_get_arguments() argument
148 if (mips_syscall_is_indirect(task, regs)) in syscall_get_arguments()
152 mips_get_syscall_arg(args++, task, regs, i++); in syscall_get_arguments()
156 struct pt_regs *regs, in syscall_set_arguments() argument
163 mips_set_syscall_arg(args++, task, regs, i++); in syscall_set_arguments()