Searched refs:kunit_resource (Results 1 – 12 of 12) sorted by relevance
/Linux-v6.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-v6.1/lib/kunit/ |
D | kunit-test.c | 117 static int fake_resource_init(struct kunit_resource *res, void *context) in fake_resource_init() 126 static void fake_resource_free(struct kunit_resource *res) in fake_resource_free() 145 struct kunit_resource *res; in kunit_resource_test_alloc_resource() 165 struct kunit_resource *res, in kunit_resource_instance_match() 182 struct kunit_resource *res = kunit_alloc_and_get_resource( in kunit_resource_test_destroy_resource() 203 struct kunit_resource *res = kunit_alloc_and_get_resource( in kunit_resource_test_remove_resource() 238 struct kunit_resource *resources[5]; in kunit_resource_test_cleanup_resources() 271 static int fake_resource_2_init(struct kunit_resource *res, void *context) in fake_resource_2_init() 282 static void fake_resource_2_free(struct kunit_resource *res) in fake_resource_2_free() 289 static int fake_resource_1_init(struct kunit_resource *res, void *context) in fake_resource_1_init() [all …]
|
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()
|
D | test.c | 685 static int kunit_kmalloc_array_init(struct kunit_resource *res, void *context) in kunit_kmalloc_array_init() 696 static void kunit_kmalloc_array_free(struct kunit_resource *res) in kunit_kmalloc_array_free() 718 struct kunit_resource *res, void *match_data) in kunit_kfree_match() 736 struct kunit_resource *res; in kunit_cleanup() 755 struct kunit_resource, in kunit_cleanup()
|
D | executor_test.c | 128 static void kfree_res_free(struct kunit_resource *res) in kfree_res_free()
|
/Linux-v6.1/lib/ |
D | slub_kunit.c | 9 static struct kunit_resource resource;
|
/Linux-v6.1/Documentation/dev-tools/kunit/ |
D | tips.rst | 128 something more flexible you could use a named ``kunit_resource``, see
|
D | usage.rst | 673 Had we wanted something more flexible, we could have used a named ``kunit_resource``.
|
/Linux-v6.1/mm/kasan/ |
D | report.c | 121 struct kunit_resource *resource; in update_kunit_status()
|
D | kasan_test.c | 39 static struct kunit_resource resource;
|
/Linux-v6.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-v6.1/mm/ |
D | slub.c | 604 struct kunit_resource *resource; in slab_add_kunit_errors()
|