Lines Matching refs:site_mod
126 struct static_call_mod *site_mod, first; in __static_call_update() local
151 for (site_mod = &first; site_mod; site_mod = site_mod->next) { in __static_call_update()
153 struct module *mod = site_mod->mod; in __static_call_update()
155 if (!site_mod->sites) { in __static_call_update()
176 for (site = site_mod->sites; in __static_call_update()
215 struct static_call_mod *site_mod; in __static_call_init() local
247 site_mod = kzalloc(sizeof(*site_mod), GFP_KERNEL); in __static_call_init()
248 if (!site_mod) in __static_call_init()
257 site_mod->mod = NULL; in __static_call_init()
258 site_mod->next = NULL; in __static_call_init()
259 site_mod->sites = static_call_key_sites(key); in __static_call_init()
261 key->mods = site_mod; in __static_call_init()
263 site_mod = kzalloc(sizeof(*site_mod), GFP_KERNEL); in __static_call_init()
264 if (!site_mod) in __static_call_init()
268 site_mod->mod = mod; in __static_call_init()
269 site_mod->sites = site; in __static_call_init()
270 site_mod->next = static_call_key_next(key); in __static_call_init()
271 key->mods = site_mod; in __static_call_init()
398 struct static_call_mod *site_mod, **prev; in static_call_del_module() local
408 for (prev = &key->mods, site_mod = key->mods; in static_call_del_module()
409 site_mod && site_mod->mod != mod; in static_call_del_module()
410 prev = &site_mod->next, site_mod = site_mod->next) in static_call_del_module()
413 if (!site_mod) in static_call_del_module()
416 *prev = site_mod->next; in static_call_del_module()
417 kfree(site_mod); in static_call_del_module()