Lines Matching refs:calls
27 struct cxl_calls *calls = NULL; in cxl_calls_get() local
30 calls = rcu_dereference(cxl_calls); in cxl_calls_get()
31 if (calls && !try_module_get(calls->owner)) in cxl_calls_get()
32 calls = NULL; in cxl_calls_get()
35 return calls; in cxl_calls_get()
38 static inline void cxl_calls_put(struct cxl_calls *calls) in cxl_calls_put() argument
40 BUG_ON(calls != cxl_calls); in cxl_calls_put()
53 static inline void cxl_calls_put(struct cxl_calls *calls) { } in cxl_calls_put() argument
72 struct cxl_calls *calls; in cxl_slbia() local
74 calls = cxl_calls_get(); in cxl_slbia()
75 if (!calls) in cxl_slbia()
79 calls->cxl_slbia(mm); in cxl_slbia()
81 cxl_calls_put(calls); in cxl_slbia()
84 int register_cxl_calls(struct cxl_calls *calls) in register_cxl_calls() argument
89 rcu_assign_pointer(cxl_calls, calls); in register_cxl_calls()
94 void unregister_cxl_calls(struct cxl_calls *calls) in unregister_cxl_calls() argument
96 BUG_ON(cxl_calls->owner != calls->owner); in unregister_cxl_calls()