Lines Matching refs:regs
13 struct pt_regs *regs) in syscall_get_nr() argument
15 return (regs->tra >= 0) ? regs->regs[3] : -1L; in syscall_get_nr()
19 struct pt_regs *regs) in syscall_rollback() argument
28 struct pt_regs *regs) in syscall_get_error() argument
30 return IS_ERR_VALUE(regs->regs[0]) ? regs->regs[0] : 0; in syscall_get_error()
34 struct pt_regs *regs) in syscall_get_return_value() argument
36 return regs->regs[0]; in syscall_get_return_value()
40 struct pt_regs *regs, in syscall_set_return_value() argument
44 regs->regs[0] = -error; in syscall_set_return_value()
46 regs->regs[0] = val; in syscall_set_return_value()
50 struct pt_regs *regs, in syscall_get_arguments() argument
55 args[5] = regs->regs[1]; in syscall_get_arguments()
56 args[4] = regs->regs[0]; in syscall_get_arguments()
57 args[3] = regs->regs[7]; in syscall_get_arguments()
58 args[2] = regs->regs[6]; in syscall_get_arguments()
59 args[1] = regs->regs[5]; in syscall_get_arguments()
60 args[0] = regs->regs[4]; in syscall_get_arguments()
64 struct pt_regs *regs, in syscall_set_arguments() argument
67 regs->regs[1] = args[5]; in syscall_set_arguments()
68 regs->regs[0] = args[4]; in syscall_set_arguments()
69 regs->regs[7] = args[3]; in syscall_set_arguments()
70 regs->regs[6] = args[2]; in syscall_set_arguments()
71 regs->regs[5] = args[1]; in syscall_set_arguments()
72 regs->regs[4] = args[0]; in syscall_set_arguments()