Lines Matching refs:regs
12 struct pt_regs *regs) in syscall_get_nr() argument
14 return (regs->tra >= 0) ? regs->regs[3] : -1L; in syscall_get_nr()
18 struct pt_regs *regs) in syscall_rollback() argument
27 struct pt_regs *regs) in syscall_get_error() argument
29 return IS_ERR_VALUE(regs->regs[0]) ? regs->regs[0] : 0; in syscall_get_error()
33 struct pt_regs *regs) in syscall_get_return_value() argument
35 return regs->regs[0]; in syscall_get_return_value()
39 struct pt_regs *regs, in syscall_set_return_value() argument
43 regs->regs[0] = -error; in syscall_set_return_value()
45 regs->regs[0] = val; in syscall_set_return_value()
49 struct pt_regs *regs, in syscall_get_arguments() argument
63 case 6: args[5] = regs->regs[1]; in syscall_get_arguments()
64 case 5: args[4] = regs->regs[0]; in syscall_get_arguments()
65 case 4: args[3] = regs->regs[7]; in syscall_get_arguments()
66 case 3: args[2] = regs->regs[6]; in syscall_get_arguments()
67 case 2: args[1] = regs->regs[5]; in syscall_get_arguments()
68 case 1: args[0] = regs->regs[4]; in syscall_get_arguments()
77 struct pt_regs *regs, in syscall_set_arguments() argument
85 case 6: regs->regs[1] = args[5]; in syscall_set_arguments()
86 case 5: regs->regs[0] = args[4]; in syscall_set_arguments()
87 case 4: regs->regs[7] = args[3]; in syscall_set_arguments()
88 case 3: regs->regs[6] = args[2]; in syscall_set_arguments()
89 case 2: regs->regs[5] = args[1]; in syscall_set_arguments()
90 case 1: regs->regs[4] = args[0]; in syscall_set_arguments()