Lines Matching refs:cxl_calls
14 static struct cxl_calls *cxl_calls; variable
21 static inline struct cxl_calls *cxl_calls_get(void) in cxl_calls_get()
23 struct cxl_calls *calls = NULL; in cxl_calls_get()
26 calls = rcu_dereference(cxl_calls); in cxl_calls_get()
34 static inline void cxl_calls_put(struct cxl_calls *calls) in cxl_calls_put()
36 BUG_ON(calls != cxl_calls); in cxl_calls_put()
39 module_put(cxl_calls->owner); in cxl_calls_put()
44 static inline struct cxl_calls *cxl_calls_get(void) in cxl_calls_get()
46 return cxl_calls; in cxl_calls_get()
49 static inline void cxl_calls_put(struct cxl_calls *calls) { } in cxl_calls_put()
68 struct cxl_calls *calls; in cxl_slbia()
80 int register_cxl_calls(struct cxl_calls *calls) in register_cxl_calls()
82 if (cxl_calls) in register_cxl_calls()
85 rcu_assign_pointer(cxl_calls, calls); in register_cxl_calls()
90 void unregister_cxl_calls(struct cxl_calls *calls) in unregister_cxl_calls()
92 BUG_ON(cxl_calls->owner != calls->owner); in unregister_cxl_calls()
93 RCU_INIT_POINTER(cxl_calls, NULL); in unregister_cxl_calls()