Lines Matching refs:spufs_calls
20 static struct spufs_calls *spufs_calls; variable
24 static inline struct spufs_calls *spufs_calls_get(void) in spufs_calls_get()
26 struct spufs_calls *calls = NULL; in spufs_calls_get()
29 calls = rcu_dereference(spufs_calls); in spufs_calls_get()
37 static inline void spufs_calls_put(struct spufs_calls *calls) in spufs_calls_put()
39 BUG_ON(calls != spufs_calls); in spufs_calls_put()
42 module_put(spufs_calls->owner); in spufs_calls_put()
47 static inline struct spufs_calls *spufs_calls_get(void) in spufs_calls_get()
49 return spufs_calls; in spufs_calls_get()
52 static inline void spufs_calls_put(struct spufs_calls *calls) { } in spufs_calls_put()
60 struct spufs_calls *calls; in SYSCALL_DEFINE4()
84 struct spufs_calls *calls; in SYSCALL_DEFINE3()
104 struct spufs_calls *calls; in elf_coredump_extra_notes_size()
120 struct spufs_calls *calls; in elf_coredump_extra_notes_write()
137 struct spufs_calls *calls; in notify_spus_active()
149 int register_spu_syscalls(struct spufs_calls *calls) in register_spu_syscalls()
151 if (spufs_calls) in register_spu_syscalls()
154 rcu_assign_pointer(spufs_calls, calls); in register_spu_syscalls()
159 void unregister_spu_syscalls(struct spufs_calls *calls) in unregister_spu_syscalls()
161 BUG_ON(spufs_calls->owner != calls->owner); in unregister_spu_syscalls()
162 RCU_INIT_POINTER(spufs_calls, NULL); in unregister_spu_syscalls()