Lines Matching refs:mod

158 		.mod = NULL,  in __static_call_update()
164 struct module *mod = site_mod->mod; in __static_call_update() local
179 if (mod) { in __static_call_update()
181 stop = mod->static_call_sites + in __static_call_update()
182 mod->num_static_call_sites; in __static_call_update()
183 init = mod->state == MODULE_STATE_COMING; in __static_call_update()
220 static int __static_call_init(struct module *mod, in __static_call_init() argument
236 if ((mod && within_module_init((unsigned long)site_addr, mod)) || in __static_call_init()
237 (!mod && init_section_contains(site_addr, 1))) in __static_call_init()
252 if (!mod) { in __static_call_init()
268 site_mod->mod = NULL; in __static_call_init()
279 site_mod->mod = mod; in __static_call_init()
325 struct module *mod; in __static_call_mod_text_reserved() local
329 mod = __module_text_address((unsigned long)start); in __static_call_mod_text_reserved()
330 WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod); in __static_call_mod_text_reserved()
331 if (!try_module_get(mod)) in __static_call_mod_text_reserved()
332 mod = NULL; in __static_call_mod_text_reserved()
335 if (!mod) in __static_call_mod_text_reserved()
338 ret = __static_call_text_reserved(mod->static_call_sites, in __static_call_mod_text_reserved()
339 mod->static_call_sites + mod->num_static_call_sites, in __static_call_mod_text_reserved()
340 start, end, mod->state == MODULE_STATE_COMING); in __static_call_mod_text_reserved()
342 module_put(mod); in __static_call_mod_text_reserved()
364 static int static_call_add_module(struct module *mod) in static_call_add_module() argument
366 struct static_call_site *start = mod->static_call_sites; in static_call_add_module()
367 struct static_call_site *stop = start + mod->num_static_call_sites; in static_call_add_module()
400 return __static_call_init(mod, start, stop); in static_call_add_module()
403 static void static_call_del_module(struct module *mod) in static_call_del_module() argument
405 struct static_call_site *start = mod->static_call_sites; in static_call_del_module()
406 struct static_call_site *stop = mod->static_call_sites + in static_call_del_module()
407 mod->num_static_call_sites; in static_call_del_module()
420 site_mod && site_mod->mod != mod; in static_call_del_module()
435 struct module *mod = data; in static_call_module_notify() local
443 ret = static_call_add_module(mod); in static_call_module_notify()
446 static_call_del_module(mod); in static_call_module_notify()
450 static_call_del_module(mod); in static_call_module_notify()