• Home
  • Raw
  • Download

Lines Matching refs:mod

523 	struct module *mod;  member
539 struct static_key_mod *mod) in static_key_set_mod() argument
543 WARN_ON_ONCE((unsigned long)mod & JUMP_TYPE_MASK); in static_key_set_mod()
545 key->next = mod; in static_key_set_mod()
551 struct module *mod; in __jump_label_mod_text_reserved() local
555 mod = __module_text_address((unsigned long)start); in __jump_label_mod_text_reserved()
556 WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod); in __jump_label_mod_text_reserved()
557 if (!try_module_get(mod)) in __jump_label_mod_text_reserved()
558 mod = NULL; in __jump_label_mod_text_reserved()
561 if (!mod) in __jump_label_mod_text_reserved()
564 ret = __jump_label_text_reserved(mod->jump_entries, in __jump_label_mod_text_reserved()
565 mod->jump_entries + mod->num_jump_entries, in __jump_label_mod_text_reserved()
566 start, end, mod->state == MODULE_STATE_COMING); in __jump_label_mod_text_reserved()
568 module_put(mod); in __jump_label_mod_text_reserved()
575 struct static_key_mod *mod; in __jump_label_mod_update() local
577 for (mod = static_key_mod(key); mod; mod = mod->next) { in __jump_label_mod_update()
585 if (!mod->entries) in __jump_label_mod_update()
588 m = mod->mod; in __jump_label_mod_update()
593 __jump_label_update(key, mod->entries, stop, in __jump_label_mod_update()
606 void jump_label_apply_nops(struct module *mod) in jump_label_apply_nops() argument
608 struct jump_entry *iter_start = mod->jump_entries; in jump_label_apply_nops()
609 struct jump_entry *iter_stop = iter_start + mod->num_jump_entries; in jump_label_apply_nops()
623 static int jump_label_add_module(struct module *mod) in jump_label_add_module() argument
625 struct jump_entry *iter_start = mod->jump_entries; in jump_label_add_module()
626 struct jump_entry *iter_stop = iter_start + mod->num_jump_entries; in jump_label_add_module()
640 if (within_module_init(jump_entry_code(iter), mod)) in jump_label_add_module()
648 if (within_module((unsigned long)key, mod)) { in jump_label_add_module()
663 jlm2->mod = __module_address((unsigned long)key); in jump_label_add_module()
670 jlm->mod = mod; in jump_label_add_module()
684 static void jump_label_del_module(struct module *mod) in jump_label_del_module() argument
686 struct jump_entry *iter_start = mod->jump_entries; in jump_label_del_module()
687 struct jump_entry *iter_stop = iter_start + mod->num_jump_entries; in jump_label_del_module()
698 if (within_module((unsigned long)key, mod)) in jump_label_del_module()
708 while (jlm && jlm->mod != mod) { in jump_label_del_module()
738 struct module *mod = data; in jump_label_module_notify() local
746 ret = jump_label_add_module(mod); in jump_label_module_notify()
749 jump_label_del_module(mod); in jump_label_module_notify()
753 jump_label_del_module(mod); in jump_label_module_notify()
809 struct module *mod; in jump_label_update() local
817 mod = __module_address((unsigned long)key); in jump_label_update()
818 if (mod) in jump_label_update()
819 stop = mod->jump_entries + mod->num_jump_entries; in jump_label_update()