Lines Matching refs:mod
520 struct module *mod; member
536 struct static_key_mod *mod) in static_key_set_mod() argument
540 WARN_ON_ONCE((unsigned long)mod & JUMP_TYPE_MASK); in static_key_set_mod()
542 key->next = mod; in static_key_set_mod()
548 struct module *mod; in __jump_label_mod_text_reserved() local
552 mod = __module_text_address((unsigned long)start); in __jump_label_mod_text_reserved()
553 WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod); in __jump_label_mod_text_reserved()
554 if (!try_module_get(mod)) in __jump_label_mod_text_reserved()
555 mod = NULL; in __jump_label_mod_text_reserved()
558 if (!mod) in __jump_label_mod_text_reserved()
561 ret = __jump_label_text_reserved(mod->jump_entries, in __jump_label_mod_text_reserved()
562 mod->jump_entries + mod->num_jump_entries, in __jump_label_mod_text_reserved()
563 start, end, mod->state == MODULE_STATE_COMING); in __jump_label_mod_text_reserved()
565 module_put(mod); in __jump_label_mod_text_reserved()
572 struct static_key_mod *mod; in __jump_label_mod_update() local
574 for (mod = static_key_mod(key); mod; mod = mod->next) { in __jump_label_mod_update()
582 if (!mod->entries) in __jump_label_mod_update()
585 m = mod->mod; in __jump_label_mod_update()
590 __jump_label_update(key, mod->entries, stop, in __jump_label_mod_update()
595 static int jump_label_add_module(struct module *mod) in jump_label_add_module() argument
597 struct jump_entry *iter_start = mod->jump_entries; in jump_label_add_module()
598 struct jump_entry *iter_stop = iter_start + mod->num_jump_entries; in jump_label_add_module()
613 in_init = within_module_init(jump_entry_code(iter), mod); in jump_label_add_module()
621 if (within_module((unsigned long)key, mod)) { in jump_label_add_module()
636 jlm2->mod = __module_address((unsigned long)key); in jump_label_add_module()
643 jlm->mod = mod; in jump_label_add_module()
657 static void jump_label_del_module(struct module *mod) in jump_label_del_module() argument
659 struct jump_entry *iter_start = mod->jump_entries; in jump_label_del_module()
660 struct jump_entry *iter_stop = iter_start + mod->num_jump_entries; in jump_label_del_module()
671 if (within_module((unsigned long)key, mod)) in jump_label_del_module()
681 while (jlm && jlm->mod != mod) { in jump_label_del_module()
711 struct module *mod = data; in jump_label_module_notify() local
719 ret = jump_label_add_module(mod); in jump_label_module_notify()
722 jump_label_del_module(mod); in jump_label_module_notify()
726 jump_label_del_module(mod); in jump_label_module_notify()
783 struct module *mod; in jump_label_update() local
791 mod = __module_address((unsigned long)key); in jump_label_update()
792 if (mod) { in jump_label_update()
793 stop = mod->jump_entries + mod->num_jump_entries; in jump_label_update()
794 init = mod->state == MODULE_STATE_COMING; in jump_label_update()