Lines Matching full: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()
245 * For vmlinux (!mod) avoid the allocation by storing 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()
334 if (!mod) in __static_call_mod_text_reserved()
337 ret = __static_call_text_reserved(mod->static_call_sites, in __static_call_mod_text_reserved()
338 mod->static_call_sites + mod->num_static_call_sites, in __static_call_mod_text_reserved()
339 start, end, mod->state == MODULE_STATE_COMING); in __static_call_mod_text_reserved()
341 module_put(mod); in __static_call_mod_text_reserved()
363 static int static_call_add_module(struct module *mod) in static_call_add_module() argument
365 struct static_call_site *start = mod->static_call_sites; in static_call_add_module()
366 struct static_call_site *stop = start + mod->num_static_call_sites; in static_call_add_module()
399 return __static_call_init(mod, start, stop); in static_call_add_module()
402 static void static_call_del_module(struct module *mod) in static_call_del_module() argument
404 struct static_call_site *start = mod->static_call_sites; in static_call_del_module()
405 struct static_call_site *stop = mod->static_call_sites + in static_call_del_module()
406 mod->num_static_call_sites; in static_call_del_module()
430 site_mod && site_mod->mod != mod; in static_call_del_module()
445 struct module *mod = data; in static_call_module_notify() local
453 ret = static_call_add_module(mod); in static_call_module_notify()
456 static_call_del_module(mod); in static_call_module_notify()
460 static_call_del_module(mod); in static_call_module_notify()