Lines Matching full:calls
23 struct cxl_calls *calls = NULL; in cxl_calls_get() local
26 calls = rcu_dereference(cxl_calls); in cxl_calls_get()
27 if (calls && !try_module_get(calls->owner)) in cxl_calls_get()
28 calls = NULL; in cxl_calls_get()
31 return calls; in cxl_calls_get()
34 static inline void cxl_calls_put(struct cxl_calls *calls) in cxl_calls_put() argument
36 BUG_ON(calls != cxl_calls); in cxl_calls_put()
49 static inline void cxl_calls_put(struct cxl_calls *calls) { } in cxl_calls_put() argument
68 struct cxl_calls *calls; in cxl_slbia() local
70 calls = cxl_calls_get(); in cxl_slbia()
71 if (!calls) in cxl_slbia()
75 calls->cxl_slbia(mm); in cxl_slbia()
77 cxl_calls_put(calls); in cxl_slbia()
80 int register_cxl_calls(struct cxl_calls *calls) in register_cxl_calls() argument
85 rcu_assign_pointer(cxl_calls, calls); in register_cxl_calls()
90 void unregister_cxl_calls(struct cxl_calls *calls) in unregister_cxl_calls() argument
92 BUG_ON(cxl_calls->owner != calls->owner); in unregister_cxl_calls()