Lines Matching full:calls
24 struct cxl_calls *calls = NULL; in cxl_calls_get() local
27 calls = rcu_dereference(cxl_calls); in cxl_calls_get()
28 if (calls && !try_module_get(calls->owner)) in cxl_calls_get()
29 calls = NULL; in cxl_calls_get()
32 return calls; in cxl_calls_get()
35 static inline void cxl_calls_put(struct cxl_calls *calls) in cxl_calls_put() argument
37 BUG_ON(calls != cxl_calls); in cxl_calls_put()
50 static inline void cxl_calls_put(struct cxl_calls *calls) { } in cxl_calls_put() argument
69 struct cxl_calls *calls; in cxl_slbia() local
71 calls = cxl_calls_get(); in cxl_slbia()
72 if (!calls) in cxl_slbia()
76 calls->cxl_slbia(mm); in cxl_slbia()
78 cxl_calls_put(calls); in cxl_slbia()
81 int register_cxl_calls(struct cxl_calls *calls) in register_cxl_calls() argument
86 rcu_assign_pointer(cxl_calls, calls); in register_cxl_calls()
91 void unregister_cxl_calls(struct cxl_calls *calls) in unregister_cxl_calls() argument
93 BUG_ON(cxl_calls->owner != calls->owner); in unregister_cxl_calls()