Lines Matching refs:klp_patch
102 static struct klp_object *klp_find_object(struct klp_patch *patch, in klp_find_object()
353 static int __klp_disable_patch(struct klp_patch *patch);
358 struct klp_patch *patch; in enabled_store()
366 patch = container_of(kobj, struct klp_patch, kobj); in enabled_store()
401 struct klp_patch *patch; in enabled_show()
403 patch = container_of(kobj, struct klp_patch, kobj); in enabled_show()
410 struct klp_patch *patch; in transition_show()
412 patch = container_of(kobj, struct klp_patch, kobj); in transition_show()
420 struct klp_patch *patch; in force_store()
433 patch = container_of(kobj, struct klp_patch, kobj); in force_store()
455 ATTRIBUTE_GROUPS(klp_patch);
481 static void klp_init_object_early(struct klp_patch *patch,
485 struct klp_patch *patch) in klp_alloc_object_dynamic()
541 static int klp_add_object_nops(struct klp_patch *patch, in klp_add_object_nops()
573 static int klp_add_nops(struct klp_patch *patch) in klp_add_nops()
575 struct klp_patch *old_patch; in klp_add_nops()
593 struct klp_patch *patch; in klp_kobj_release_patch()
595 patch = container_of(kobj, struct klp_patch, kobj); in klp_kobj_release_patch()
664 static void __klp_free_objects(struct klp_patch *patch, bool nops_only) in __klp_free_objects()
679 static void klp_free_objects(struct klp_patch *patch) in klp_free_objects()
684 static void klp_free_objects_dynamic(struct klp_patch *patch) in klp_free_objects_dynamic()
696 static void klp_free_patch_start(struct klp_patch *patch) in klp_free_patch_start()
712 static void klp_free_patch_finish(struct klp_patch *patch) in klp_free_patch_finish()
735 struct klp_patch *patch = in klp_free_patch_work_fn()
736 container_of(work, struct klp_patch, free_work); in klp_free_patch_work_fn()
741 void klp_free_patch_async(struct klp_patch *patch) in klp_free_patch_async()
747 void klp_free_replaced_patches_async(struct klp_patch *new_patch) in klp_free_replaced_patches_async()
749 struct klp_patch *old_patch, *tmp_patch; in klp_free_replaced_patches_async()
787 static int klp_write_object_relocs(struct klp_patch *patch, in klp_write_object_relocs()
811 static int klp_apply_object_relocs(struct klp_patch *patch, in klp_apply_object_relocs()
817 static void klp_clear_object_relocs(struct klp_patch *patch, in klp_clear_object_relocs()
824 static int klp_init_object_loaded(struct klp_patch *patch, in klp_init_object_loaded()
872 static int klp_init_object(struct klp_patch *patch, struct klp_object *obj) in klp_init_object()
910 static void klp_init_object_early(struct klp_patch *patch, in klp_init_object_early()
918 static void klp_init_patch_early(struct klp_patch *patch) in klp_init_patch_early()
940 static int klp_init_patch(struct klp_patch *patch) in klp_init_patch()
966 static int __klp_disable_patch(struct klp_patch *patch) in __klp_disable_patch()
998 static int __klp_enable_patch(struct klp_patch *patch) in __klp_enable_patch()
1066 int klp_enable_patch(struct klp_patch *patch) in klp_enable_patch()
1148 void klp_unpatch_replaced_patches(struct klp_patch *new_patch) in klp_unpatch_replaced_patches()
1150 struct klp_patch *old_patch; in klp_unpatch_replaced_patches()
1177 void klp_discard_nops(struct klp_patch *new_patch) in klp_discard_nops()
1189 struct klp_patch *limit) in klp_cleanup_module_patches_limited()
1191 struct klp_patch *patch; in klp_cleanup_module_patches_limited()
1220 struct klp_patch *patch; in klp_module_coming()