Lines Matching refs:mod

147 		.mod = NULL,  in __static_call_update()
153 struct module *mod = site_mod->mod; in __static_call_update() local
168 if (mod) { in __static_call_update()
170 stop = mod->static_call_sites + in __static_call_update()
171 mod->num_static_call_sites; in __static_call_update()
172 init = mod->state == MODULE_STATE_COMING; in __static_call_update()
209 static int __static_call_init(struct module *mod, in __static_call_init() argument
225 if ((mod && within_module_init((unsigned long)site_addr, mod)) || in __static_call_init()
226 (!mod && init_section_contains(site_addr, 1))) in __static_call_init()
241 if (!mod) { in __static_call_init()
257 site_mod->mod = NULL; in __static_call_init()
268 site_mod->mod = mod; in __static_call_init()
314 struct module *mod; in __static_call_mod_text_reserved() local
318 mod = __module_text_address((unsigned long)start); in __static_call_mod_text_reserved()
319 WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod); in __static_call_mod_text_reserved()
320 if (!try_module_get(mod)) in __static_call_mod_text_reserved()
321 mod = NULL; in __static_call_mod_text_reserved()
324 if (!mod) in __static_call_mod_text_reserved()
327 ret = __static_call_text_reserved(mod->static_call_sites, in __static_call_mod_text_reserved()
328 mod->static_call_sites + mod->num_static_call_sites, in __static_call_mod_text_reserved()
329 start, end, mod->state == MODULE_STATE_COMING); in __static_call_mod_text_reserved()
331 module_put(mod); in __static_call_mod_text_reserved()
353 static int static_call_add_module(struct module *mod) in static_call_add_module() argument
355 struct static_call_site *start = mod->static_call_sites; in static_call_add_module()
356 struct static_call_site *stop = start + mod->num_static_call_sites; in static_call_add_module()
389 return __static_call_init(mod, start, stop); in static_call_add_module()
392 static void static_call_del_module(struct module *mod) in static_call_del_module() argument
394 struct static_call_site *start = mod->static_call_sites; in static_call_del_module()
395 struct static_call_site *stop = mod->static_call_sites + in static_call_del_module()
396 mod->num_static_call_sites; in static_call_del_module()
409 site_mod && site_mod->mod != mod; in static_call_del_module()
424 struct module *mod = data; in static_call_module_notify() local
432 ret = static_call_add_module(mod); in static_call_module_notify()
435 static_call_del_module(mod); in static_call_module_notify()
439 static_call_del_module(mod); in static_call_module_notify()