Searched refs:kunit_resource (Results 1 – 15 of 15) sorted by relevance
/linux-6.12.1/include/kunit/ |
D | resource.h | 19 struct kunit_resource; 21 typedef int (*kunit_resource_init_t)(struct kunit_resource *, void *); 22 typedef void (*kunit_resource_free_t)(struct kunit_resource *); 83 struct kunit_resource { struct 100 static inline void kunit_get_resource(struct kunit_resource *res) in kunit_get_resource() argument 111 struct kunit_resource *res = container_of(kref, struct kunit_resource, in kunit_release_resource() 136 static inline void kunit_put_resource(struct kunit_resource *res) in kunit_put_resource() 156 struct kunit_resource *res, 172 struct kunit_resource *res, in kunit_add_resource() 179 static inline struct kunit_resource * [all …]
|
/linux-6.12.1/lib/kunit/ |
D | resource.c | 22 struct kunit_resource *res, in __kunit_add_resource() 48 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource() 66 struct kunit_resource *res = kunit_find_resource(test, match, in kunit_destroy_resource() 82 struct kunit_resource res; 87 static void __kunit_action_free(struct kunit_resource *res) in __kunit_action_free() 128 struct kunit_resource *res, void *match_data) in __kunit_action_match() 146 struct kunit_resource *res; in kunit_remove_action() 166 struct kunit_resource *res; in kunit_release_action()
|
D | static_stub.c | 20 static void __kunit_static_stub_resource_free(struct kunit_resource *res) in __kunit_static_stub_resource_free() 27 struct kunit_resource *res, in __kunit_static_stub_resource_match() 43 struct kunit_resource *res; in __kunit_get_static_stub_address_impl() 62 struct kunit_resource *res; in kunit_deactivate_static_stub() 92 struct kunit_resource *res; in __kunit_activate_static_stub()
|
D | platform.c | 19 static int kunit_platform_device_alloc_init(struct kunit_resource *res, void *context) in kunit_platform_device_alloc_init() 33 static void kunit_platform_device_alloc_exit(struct kunit_resource *res) in kunit_platform_device_alloc_exit() 65 static void kunit_platform_device_add_exit(struct kunit_resource *res) in kunit_platform_device_add_exit() 74 struct kunit_resource *res, void *match_data) in kunit_platform_device_alloc_match() 95 struct kunit_resource *res; in kunit_platform_device_add()
|
D | kunit-test.c | 165 static int fake_resource_init(struct kunit_resource *res, void *context) in fake_resource_init() 174 static void fake_resource_free(struct kunit_resource *res) in fake_resource_free() 193 struct kunit_resource *res; in kunit_resource_test_alloc_resource() 213 struct kunit_resource *res, in kunit_resource_instance_match() 230 struct kunit_resource *res = kunit_alloc_and_get_resource( in kunit_resource_test_destroy_resource() 251 struct kunit_resource *res = kunit_alloc_and_get_resource( in kunit_resource_test_remove_resource() 286 struct kunit_resource *resources[5]; in kunit_resource_test_cleanup_resources() 319 static int fake_resource_2_init(struct kunit_resource *res, void *context) in fake_resource_2_init() 330 static void fake_resource_2_free(struct kunit_resource *res) in fake_resource_2_free() 337 static int fake_resource_1_init(struct kunit_resource *res, void *context) in fake_resource_1_init() [all …]
|
D | user_alloc.c | 53 static int kunit_vm_mmap_init(struct kunit_resource *res, void *context) in kunit_vm_mmap_init() 76 static void kunit_vm_mmap_free(struct kunit_resource *res) in kunit_vm_mmap_free()
|
D | test.c | 898 struct kunit_resource *res; in kunit_cleanup() 917 struct kunit_resource, in kunit_cleanup()
|
/linux-6.12.1/net/wireless/tests/ |
D | util.c | 13 int t_wiphy_init(struct kunit_resource *resource, void *ctx) in t_wiphy_init() 42 void t_wiphy_exit(struct kunit_resource *resource) in t_wiphy_exit()
|
D | util.h | 54 int t_wiphy_init(struct kunit_resource *resource, void *data); 55 void t_wiphy_exit(struct kunit_resource *resource);
|
/linux-6.12.1/drivers/clk/ |
D | clk-fixed-rate_test.c | 46 clk_hw_register_fixed_rate_kunit_init(struct kunit_resource *res, void *context) in clk_hw_register_fixed_rate_kunit_init() 69 static void clk_hw_register_fixed_rate_kunit_exit(struct kunit_resource *res) in clk_hw_register_fixed_rate_kunit_exit()
|
/linux-6.12.1/lib/ |
D | slub_kunit.c | 11 static struct kunit_resource resource;
|
D | fortify_kunit.c | 56 static struct kunit_resource read_resource; 57 static struct kunit_resource write_resource; 67 struct kunit_resource *resource; in fortify_add_kunit_error()
|
/linux-6.12.1/drivers/thunderbolt/ |
D | test.c | 15 static int __ida_init(struct kunit_resource *res, void *context) in __ida_init() 24 static void __ida_destroy(struct kunit_resource *res) in __ida_destroy()
|
/linux-6.12.1/Documentation/dev-tools/kunit/ |
D | usage.rst | 774 Had we wanted something more flexible, we could have used a named ``kunit_resource``.
|
/linux-6.12.1/mm/ |
D | slub.c | 816 struct kunit_resource *resource; in slab_add_kunit_errors() 832 struct kunit_resource *resource; in slab_in_kunit_test()
|