Lines Matching refs:mm_idp
25 static inline unsigned long *check_init_stack(struct mm_id * mm_idp, in check_init_stack() argument
29 stack = (unsigned long *) mm_idp->stack + 2; in check_init_stack()
50 static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr) in do_syscall_stub() argument
56 int err, pid = mm_idp->u.pid; in do_syscall_stub()
80 ret = *((unsigned long *) mm_idp->stack); in do_syscall_stub()
81 offset = *((unsigned long *) mm_idp->stack + 1); in do_syscall_stub()
83 data = (unsigned long *)(mm_idp->stack + offset - STUB_DATA); in do_syscall_stub()
104 *addr = check_init_stack(mm_idp, NULL); in do_syscall_stub()
109 long run_syscall_stub(struct mm_id * mm_idp, int syscall, in run_syscall_stub() argument
113 unsigned long *stack = check_init_stack(mm_idp, *addr); in run_syscall_stub()
134 return do_syscall_stub(mm_idp, addr); in run_syscall_stub()
137 long syscall_stub_data(struct mm_id * mm_idp, in syscall_stub_data() argument
150 ret = do_syscall_stub(mm_idp, addr); in syscall_stub_data()
156 stack = check_init_stack(mm_idp, *addr); in syscall_stub_data()
169 int map(struct mm_id * mm_idp, unsigned long virt, unsigned long len, int prot, in map() argument
177 ret = run_syscall_stub(mm_idp, STUB_MMAP_NR, args, virt, in map()
183 int unmap(struct mm_id * mm_idp, unsigned long addr, unsigned long len, in unmap() argument
190 ret = run_syscall_stub(mm_idp, __NR_munmap, args, 0, in unmap()
196 int protect(struct mm_id * mm_idp, unsigned long addr, unsigned long len, in protect() argument
202 ret = run_syscall_stub(mm_idp, __NR_mprotect, args, 0, in protect()