Lines Matching refs:site_mod

137 	struct static_call_mod *site_mod, first;  in __static_call_update()  local
162 for (site_mod = &first; site_mod; site_mod = site_mod->next) { in __static_call_update()
164 struct module *mod = site_mod->mod; in __static_call_update()
166 if (!site_mod->sites) { in __static_call_update()
187 for (site = site_mod->sites; in __static_call_update()
226 struct static_call_mod *site_mod; in __static_call_init() local
258 site_mod = kzalloc(sizeof(*site_mod), GFP_KERNEL); in __static_call_init()
259 if (!site_mod) in __static_call_init()
268 site_mod->mod = NULL; in __static_call_init()
269 site_mod->next = NULL; in __static_call_init()
270 site_mod->sites = static_call_key_sites(key); in __static_call_init()
272 key->mods = site_mod; in __static_call_init()
274 site_mod = kzalloc(sizeof(*site_mod), GFP_KERNEL); in __static_call_init()
275 if (!site_mod) in __static_call_init()
279 site_mod->mod = mod; in __static_call_init()
280 site_mod->sites = site; in __static_call_init()
281 site_mod->next = static_call_key_next(key); in __static_call_init()
282 key->mods = site_mod; in __static_call_init()
409 struct static_call_mod *site_mod, **prev; in static_call_del_module() local
430 for (prev = &key->mods, site_mod = key->mods; in static_call_del_module()
431 site_mod && site_mod->mod != mod; in static_call_del_module()
432 prev = &site_mod->next, site_mod = site_mod->next) in static_call_del_module()
435 if (!site_mod) in static_call_del_module()
438 *prev = site_mod->next; in static_call_del_module()
439 kfree(site_mod); in static_call_del_module()