Lines Matching refs:cxl_calls
15 static struct cxl_calls *cxl_calls; variable
22 static inline struct cxl_calls *cxl_calls_get(void) in cxl_calls_get()
24 struct cxl_calls *calls = NULL; in cxl_calls_get()
27 calls = rcu_dereference(cxl_calls); in cxl_calls_get()
35 static inline void cxl_calls_put(struct cxl_calls *calls) in cxl_calls_put()
37 BUG_ON(calls != cxl_calls); in cxl_calls_put()
40 module_put(cxl_calls->owner); in cxl_calls_put()
45 static inline struct cxl_calls *cxl_calls_get(void) in cxl_calls_get()
47 return cxl_calls; in cxl_calls_get()
50 static inline void cxl_calls_put(struct cxl_calls *calls) { } in cxl_calls_put()
69 struct cxl_calls *calls; in cxl_slbia()
81 int register_cxl_calls(struct cxl_calls *calls) in register_cxl_calls()
83 if (cxl_calls) in register_cxl_calls()
86 rcu_assign_pointer(cxl_calls, calls); in register_cxl_calls()
91 void unregister_cxl_calls(struct cxl_calls *calls) in unregister_cxl_calls()
93 BUG_ON(cxl_calls->owner != calls->owner); in unregister_cxl_calls()
94 RCU_INIT_POINTER(cxl_calls, NULL); in unregister_cxl_calls()