Lines Matching refs:spufs_calls
33 static struct spufs_calls *spufs_calls; variable
37 static inline struct spufs_calls *spufs_calls_get(void) in spufs_calls_get()
39 struct spufs_calls *calls = NULL; in spufs_calls_get()
42 calls = rcu_dereference(spufs_calls); in spufs_calls_get()
50 static inline void spufs_calls_put(struct spufs_calls *calls) in spufs_calls_put()
52 BUG_ON(calls != spufs_calls); in spufs_calls_put()
55 module_put(spufs_calls->owner); in spufs_calls_put()
60 static inline struct spufs_calls *spufs_calls_get(void) in spufs_calls_get()
62 return spufs_calls; in spufs_calls_get()
65 static inline void spufs_calls_put(struct spufs_calls *calls) { } in spufs_calls_put()
73 struct spufs_calls *calls; in SYSCALL_DEFINE4()
97 struct spufs_calls *calls; in sys_spu_run()
117 struct spufs_calls *calls; in elf_coredump_extra_notes_size()
133 struct spufs_calls *calls; in elf_coredump_extra_notes_write()
150 struct spufs_calls *calls; in notify_spus_active()
162 int register_spu_syscalls(struct spufs_calls *calls) in register_spu_syscalls()
164 if (spufs_calls) in register_spu_syscalls()
167 rcu_assign_pointer(spufs_calls, calls); in register_spu_syscalls()
172 void unregister_spu_syscalls(struct spufs_calls *calls) in unregister_spu_syscalls()
174 BUG_ON(spufs_calls->owner != calls->owner); in unregister_spu_syscalls()
175 RCU_INIT_POINTER(spufs_calls, NULL); in unregister_spu_syscalls()