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
64 case 6: args[5] = regs->regs[1]; in syscall_get_arguments()
65 case 5: args[4] = regs->regs[0]; in syscall_get_arguments()
66 case 4: args[3] = regs->regs[7]; in syscall_get_arguments()
67 case 3: args[2] = regs->regs[6]; in syscall_get_arguments()
68 case 2: args[1] = regs->regs[5]; in syscall_get_arguments()
69 case 1: args[0] = regs->regs[4]; in syscall_get_arguments()
78 struct pt_regs *regs, in syscall_set_arguments() argument
86 case 6: regs->regs[1] = args[5]; in syscall_set_arguments()
87 case 5: regs->regs[0] = args[4]; in syscall_set_arguments()
88 case 4: regs->regs[7] = args[3]; in syscall_set_arguments()
89 case 3: regs->regs[6] = args[2]; in syscall_set_arguments()
90 case 2: regs->regs[5] = args[1]; in syscall_set_arguments()
91 case 1: regs->regs[4] = args[0]; in syscall_set_arguments()