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()
48 static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr) in do_syscall_stub() argument
54 int err, pid = mm_idp->u.pid; in do_syscall_stub()
78 ret = *((unsigned long *) mm_idp->stack); in do_syscall_stub()
79 offset = *((unsigned long *) mm_idp->stack + 1); in do_syscall_stub()
81 data = (unsigned long *)(mm_idp->stack + offset - STUB_DATA); in do_syscall_stub()
105 *addr = check_init_stack(mm_idp, NULL); in do_syscall_stub()
110 long run_syscall_stub(struct mm_id * mm_idp, int syscall, in run_syscall_stub() argument
114 unsigned long *stack = check_init_stack(mm_idp, *addr); in run_syscall_stub()
135 return do_syscall_stub(mm_idp, addr); in run_syscall_stub()
138 long syscall_stub_data(struct mm_id * mm_idp, in syscall_stub_data() argument
151 ret = do_syscall_stub(mm_idp, addr); in syscall_stub_data()
157 stack = check_init_stack(mm_idp, *addr); in syscall_stub_data()
170 int map(struct mm_id * mm_idp, unsigned long virt, unsigned long len, int prot, in map() argument
178 ret = run_syscall_stub(mm_idp, STUB_MMAP_NR, args, virt, in map()
184 int unmap(struct mm_id * mm_idp, unsigned long addr, unsigned long len, in unmap() argument
191 ret = run_syscall_stub(mm_idp, __NR_munmap, args, 0, in unmap()
197 int protect(struct mm_id * mm_idp, unsigned long addr, unsigned long len, in protect() argument
203 ret = run_syscall_stub(mm_idp, __NR_mprotect, args, 0, in protect()