Lines Matching refs:regs
22 struct pt_regs *regs) in syscall_get_nr() argument
24 return regs->syscallno; in syscall_get_nr()
32 struct pt_regs *regs) in syscall_rollback() argument
34 regs->gr8 = regs->orig_gr8; in syscall_rollback()
42 struct pt_regs *regs) in syscall_get_error() argument
44 return IS_ERR_VALUE(regs->gr8) ? regs->gr8 : 0; in syscall_get_error()
51 struct pt_regs *regs) in syscall_get_return_value() argument
53 return regs->gr8; in syscall_get_return_value()
60 struct pt_regs *regs, in syscall_set_return_value() argument
64 regs->gr8 = -error; in syscall_set_return_value()
66 regs->gr8 = val; in syscall_set_return_value()
73 struct pt_regs *regs, in syscall_get_arguments() argument
87 case 6: args[5] = regs->gr13; in syscall_get_arguments()
88 case 5: args[4] = regs->gr12; in syscall_get_arguments()
89 case 4: args[3] = regs->gr11; in syscall_get_arguments()
90 case 3: args[2] = regs->gr10; in syscall_get_arguments()
91 case 2: args[1] = regs->gr9; in syscall_get_arguments()
92 case 1: args[0] = regs->gr8; in syscall_get_arguments()
103 struct pt_regs *regs, in syscall_set_arguments() argument
111 case 6: regs->gr13 = args[5]; in syscall_set_arguments()
112 case 5: regs->gr12 = args[4]; in syscall_set_arguments()
113 case 4: regs->gr11 = args[3]; in syscall_set_arguments()
114 case 3: regs->gr10 = args[2]; in syscall_set_arguments()
115 case 2: regs->gr9 = args[1]; in syscall_set_arguments()
116 case 1: regs->gr8 = args[0]; in syscall_set_arguments()