Lines Matching full:calls
26 struct spufs_calls *calls = NULL; in spufs_calls_get() local
29 calls = rcu_dereference(spufs_calls); in spufs_calls_get()
30 if (calls && !try_module_get(calls->owner)) in spufs_calls_get()
31 calls = NULL; in spufs_calls_get()
34 return calls; in spufs_calls_get()
37 static inline void spufs_calls_put(struct spufs_calls *calls) in spufs_calls_put() argument
39 BUG_ON(calls != spufs_calls); in spufs_calls_put()
52 static inline void spufs_calls_put(struct spufs_calls *calls) { } in spufs_calls_put() argument
60 struct spufs_calls *calls; in SYSCALL_DEFINE4() local
62 calls = spufs_calls_get(); in SYSCALL_DEFINE4()
63 if (!calls) in SYSCALL_DEFINE4()
70 ret = calls->create_thread(name, flags, mode, fd_file(neighbor)); in SYSCALL_DEFINE4()
74 ret = calls->create_thread(name, flags, mode, NULL); in SYSCALL_DEFINE4()
76 spufs_calls_put(calls); in SYSCALL_DEFINE4()
84 struct spufs_calls *calls; in SYSCALL_DEFINE3() local
86 calls = spufs_calls_get(); in SYSCALL_DEFINE3()
87 if (!calls) in SYSCALL_DEFINE3()
93 ret = calls->spu_run(fd_file(arg), unpc, ustatus); in SYSCALL_DEFINE3()
97 spufs_calls_put(calls); in SYSCALL_DEFINE3()
104 struct spufs_calls *calls; in elf_coredump_extra_notes_size() local
107 calls = spufs_calls_get(); in elf_coredump_extra_notes_size()
108 if (!calls) in elf_coredump_extra_notes_size()
111 ret = calls->coredump_extra_notes_size(); in elf_coredump_extra_notes_size()
113 spufs_calls_put(calls); in elf_coredump_extra_notes_size()
120 struct spufs_calls *calls; in elf_coredump_extra_notes_write() local
123 calls = spufs_calls_get(); in elf_coredump_extra_notes_write()
124 if (!calls) in elf_coredump_extra_notes_write()
127 ret = calls->coredump_extra_notes_write(cprm); in elf_coredump_extra_notes_write()
129 spufs_calls_put(calls); in elf_coredump_extra_notes_write()
137 struct spufs_calls *calls; in notify_spus_active() local
139 calls = spufs_calls_get(); in notify_spus_active()
140 if (!calls) in notify_spus_active()
143 calls->notify_spus_active(); in notify_spus_active()
144 spufs_calls_put(calls); in notify_spus_active()
149 int register_spu_syscalls(struct spufs_calls *calls) in register_spu_syscalls() argument
154 rcu_assign_pointer(spufs_calls, calls); in register_spu_syscalls()
159 void unregister_spu_syscalls(struct spufs_calls *calls) in unregister_spu_syscalls() argument
161 BUG_ON(spufs_calls->owner != calls->owner); in unregister_spu_syscalls()