Lines Matching refs:mod
524 struct module *mod; member
540 struct static_key_mod *mod) in static_key_set_mod() argument
544 WARN_ON_ONCE((unsigned long)mod & JUMP_TYPE_MASK); in static_key_set_mod()
546 key->next = mod; in static_key_set_mod()
552 struct module *mod; in __jump_label_mod_text_reserved() local
556 mod = __module_text_address((unsigned long)start); in __jump_label_mod_text_reserved()
557 WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod); in __jump_label_mod_text_reserved()
558 if (!try_module_get(mod)) in __jump_label_mod_text_reserved()
559 mod = NULL; in __jump_label_mod_text_reserved()
562 if (!mod) in __jump_label_mod_text_reserved()
565 ret = __jump_label_text_reserved(mod->jump_entries, in __jump_label_mod_text_reserved()
566 mod->jump_entries + mod->num_jump_entries, in __jump_label_mod_text_reserved()
567 start, end, mod->state == MODULE_STATE_COMING); in __jump_label_mod_text_reserved()
569 module_put(mod); in __jump_label_mod_text_reserved()
576 struct static_key_mod *mod; in __jump_label_mod_update() local
578 for (mod = static_key_mod(key); mod; mod = mod->next) { in __jump_label_mod_update()
586 if (!mod->entries) in __jump_label_mod_update()
589 m = mod->mod; in __jump_label_mod_update()
594 __jump_label_update(key, mod->entries, stop, in __jump_label_mod_update()
607 void jump_label_apply_nops(struct module *mod) in jump_label_apply_nops() argument
609 struct jump_entry *iter_start = mod->jump_entries; in jump_label_apply_nops()
610 struct jump_entry *iter_stop = iter_start + mod->num_jump_entries; in jump_label_apply_nops()
624 static int jump_label_add_module(struct module *mod) in jump_label_add_module() argument
626 struct jump_entry *iter_start = mod->jump_entries; in jump_label_add_module()
627 struct jump_entry *iter_stop = iter_start + mod->num_jump_entries; in jump_label_add_module()
642 in_init = within_module_init(jump_entry_code(iter), mod); in jump_label_add_module()
650 if (within_module((unsigned long)key, mod)) { in jump_label_add_module()
665 jlm2->mod = __module_address((unsigned long)key); in jump_label_add_module()
672 jlm->mod = mod; in jump_label_add_module()
686 static void jump_label_del_module(struct module *mod) in jump_label_del_module() argument
688 struct jump_entry *iter_start = mod->jump_entries; in jump_label_del_module()
689 struct jump_entry *iter_stop = iter_start + mod->num_jump_entries; in jump_label_del_module()
700 if (within_module((unsigned long)key, mod)) in jump_label_del_module()
710 while (jlm && jlm->mod != mod) { in jump_label_del_module()
740 struct module *mod = data; in jump_label_module_notify() local
748 ret = jump_label_add_module(mod); in jump_label_module_notify()
751 jump_label_del_module(mod); in jump_label_module_notify()
755 jump_label_del_module(mod); in jump_label_module_notify()
812 struct module *mod; in jump_label_update() local
820 mod = __module_address((unsigned long)key); in jump_label_update()
821 if (mod) { in jump_label_update()
822 stop = mod->jump_entries + mod->num_jump_entries; in jump_label_update()
823 init = mod->state == MODULE_STATE_COMING; in jump_label_update()