Lines Matching refs:task

29 static inline bool mips_syscall_is_indirect(struct task_struct *task,  in mips_syscall_is_indirect()  argument
34 test_tsk_thread_flag(task, TIF_32BIT_REGS)) && in mips_syscall_is_indirect()
38 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
41 return task_thread_info(task)->syscall; in syscall_get_nr()
44 static inline void syscall_set_nr(struct task_struct *task, in syscall_set_nr() argument
56 task_thread_info(task)->syscall = regs->regs[2] = nr; in syscall_set_nr()
59 static inline void mips_syscall_update_nr(struct task_struct *task, 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
87 test_tsk_thread_flag(task, TIF_32BIT_REGS))) in mips_get_syscall_arg()
93 struct task_struct *task, struct pt_regs *regs, unsigned int n) in mips_set_syscall_arg() argument
109 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
115 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
121 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
127 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
140 static inline void syscall_get_arguments(struct task_struct *task, 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()
155 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
163 mips_set_syscall_arg(args++, task, regs, i++); in syscall_set_arguments()
170 static inline int syscall_get_arch(struct task_struct *task) in syscall_get_arch() argument
174 if (!test_tsk_thread_flag(task, TIF_32BIT_REGS)) { in syscall_get_arch()
177 if (test_tsk_thread_flag(task, TIF_32BIT_ADDR)) in syscall_get_arch()