Lines Matching full:mod
142 .mod = NULL, in __static_call_update()
147 struct module *mod = site_mod->mod; in __static_call_update() local
163 if (mod) { in __static_call_update()
164 stop = mod->static_call_sites + in __static_call_update()
165 mod->num_static_call_sites; in __static_call_update()
178 if (!mod && system_state >= SYSTEM_RUNNING) in __static_call_update()
180 if (mod && !within_module_init((unsigned long)site_addr, mod)) in __static_call_update()
201 static int __static_call_init(struct module *mod, in __static_call_init() argument
217 if ((mod && within_module_init((unsigned long)site_addr, mod)) || in __static_call_init()
218 (!mod && init_section_contains(site_addr, 1))) in __static_call_init()
226 * For vmlinux (!mod) avoid the allocation by storing in __static_call_init()
233 if (!mod) { in __static_call_init()
249 site_mod->mod = NULL; in __static_call_init()
260 site_mod->mod = mod; in __static_call_init()
304 struct module *mod; in __static_call_mod_text_reserved() local
308 mod = __module_text_address((unsigned long)start); in __static_call_mod_text_reserved()
309 WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod); in __static_call_mod_text_reserved()
310 if (!try_module_get(mod)) in __static_call_mod_text_reserved()
311 mod = NULL; in __static_call_mod_text_reserved()
314 if (!mod) in __static_call_mod_text_reserved()
317 ret = __static_call_text_reserved(mod->static_call_sites, in __static_call_mod_text_reserved()
318 mod->static_call_sites + mod->num_static_call_sites, in __static_call_mod_text_reserved()
321 module_put(mod); in __static_call_mod_text_reserved()
326 static int static_call_add_module(struct module *mod) in static_call_add_module() argument
328 return __static_call_init(mod, mod->static_call_sites, in static_call_add_module()
329 mod->static_call_sites + mod->num_static_call_sites); in static_call_add_module()
332 static void static_call_del_module(struct module *mod) in static_call_del_module() argument
334 struct static_call_site *start = mod->static_call_sites; in static_call_del_module()
335 struct static_call_site *stop = mod->static_call_sites + in static_call_del_module()
336 mod->num_static_call_sites; in static_call_del_module()
349 site_mod && site_mod->mod != mod; in static_call_del_module()
364 struct module *mod = data; in static_call_module_notify() local
372 ret = static_call_add_module(mod); in static_call_module_notify()
375 static_call_del_module(mod); in static_call_module_notify()
379 static_call_del_module(mod); in static_call_module_notify()