Lines Matching refs:jlm
601 struct static_key_mod *jlm, *jlm2; in jump_label_add_module() local
625 jlm = kzalloc(sizeof(struct static_key_mod), GFP_KERNEL); in jump_label_add_module()
626 if (!jlm) in jump_label_add_module()
632 kfree(jlm); in jump_label_add_module()
643 jlm->mod = mod; in jump_label_add_module()
644 jlm->entries = iter; in jump_label_add_module()
645 jlm->next = static_key_mod(key); in jump_label_add_module()
646 static_key_set_mod(key, jlm); in jump_label_add_module()
663 struct static_key_mod *jlm, **prev; in jump_label_del_module() local
679 jlm = static_key_mod(key); in jump_label_del_module()
681 while (jlm && jlm->mod != mod) { in jump_label_del_module()
682 prev = &jlm->next; in jump_label_del_module()
683 jlm = jlm->next; in jump_label_del_module()
687 if (WARN_ON(!jlm)) in jump_label_del_module()
691 static_key_set_mod(key, jlm->next); in jump_label_del_module()
693 *prev = jlm->next; in jump_label_del_module()
695 kfree(jlm); in jump_label_del_module()
697 jlm = static_key_mod(key); in jump_label_del_module()
699 if (jlm->next == NULL) { in jump_label_del_module()
700 static_key_set_entries(key, jlm->entries); in jump_label_del_module()
702 kfree(jlm); in jump_label_del_module()