Home
last modified time | relevance | path

Searched refs:kunit_resource (Results 1 – 15 of 15) sorted by relevance

/linux-6.12.1/include/kunit/
Dresource.h19 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/
Dresource.c22 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()
Dstatic_stub.c20 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()
Dplatform.c19 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()
Dkunit-test.c165 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 …]
Duser_alloc.c53 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()
Dtest.c898 struct kunit_resource *res; in kunit_cleanup()
917 struct kunit_resource, in kunit_cleanup()
/linux-6.12.1/net/wireless/tests/
Dutil.c13 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()
Dutil.h54 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/
Dclk-fixed-rate_test.c46 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/
Dslub_kunit.c11 static struct kunit_resource resource;
Dfortify_kunit.c56 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/
Dtest.c15 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/
Dusage.rst774 Had we wanted something more flexible, we could have used a named ``kunit_resource``.
/linux-6.12.1/mm/
Dslub.c816 struct kunit_resource *resource; in slab_add_kunit_errors()
832 struct kunit_resource *resource; in slab_in_kunit_test()