Home
last modified time | relevance | path

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

/Linux-v5.15/lib/kunit/
Dkunit-test.c117 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()
175 struct kunit_resource *res = kunit_alloc_and_get_resource( in kunit_resource_test_destroy_resource()
197 struct kunit_resource *resources[5]; in kunit_resource_test_cleanup_resources()
230 static int fake_resource_2_init(struct kunit_resource *res, void *context) in fake_resource_2_init()
241 static void fake_resource_2_free(struct kunit_resource *res) in fake_resource_2_free()
248 static int fake_resource_1_init(struct kunit_resource *res, void *context) in fake_resource_1_init()
251 struct kunit_resource *res2; in fake_resource_1_init()
268 static void fake_resource_1_free(struct kunit_resource *res) in fake_resource_1_free()
[all …]
Dtest.c598 struct kunit_resource *res, in kunit_add_resource()
627 struct kunit_resource *res, in kunit_add_named_resource()
631 struct kunit_resource *existing; in kunit_add_named_resource()
648 struct kunit_resource *kunit_alloc_and_get_resource(struct kunit *test, in kunit_alloc_and_get_resource()
654 struct kunit_resource *res; in kunit_alloc_and_get_resource()
674 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource()
688 struct kunit_resource *res = kunit_find_resource(test, match, in kunit_destroy_resource()
709 static int kunit_kmalloc_array_init(struct kunit_resource *res, void *context) in kunit_kmalloc_array_init()
720 static void kunit_kmalloc_array_free(struct kunit_resource *res) in kunit_kmalloc_array_free()
743 struct kunit_resource *res; in kunit_kfree()
[all …]
Dstring-stream.c21 static int string_stream_fragment_init(struct kunit_resource *res, in string_stream_fragment_init()
41 static void string_stream_fragment_free(struct kunit_resource *res) in string_stream_fragment_free()
172 static int string_stream_init(struct kunit_resource *res, void *context) in string_stream_init()
190 static void string_stream_free(struct kunit_resource *res) in string_stream_free()
Dexecutor_test.c106 static void kfree_res_free(struct kunit_resource *res) in kfree_res_free()
/Linux-v5.15/include/kunit/
Dtest.h20 struct kunit_resource;
22 typedef int (*kunit_resource_init_t)(struct kunit_resource *, void *);
23 typedef void (*kunit_resource_free_t)(struct kunit_resource *);
82 struct kunit_resource { struct
382 struct kunit_resource *kunit_alloc_and_get_resource(struct kunit *test,
394 static inline void kunit_get_resource(struct kunit_resource *res) in kunit_get_resource()
405 struct kunit_resource *res = container_of(kref, struct kunit_resource, in kunit_release_resource()
427 static inline void kunit_put_resource(struct kunit_resource *res) in kunit_put_resource()
445 struct kunit_resource *res,
460 struct kunit_resource *res,
[all …]
/Linux-v5.15/lib/
Dslub_kunit.c9 static struct kunit_resource resource;
Dtest_kasan.c38 static struct kunit_resource resource;
/Linux-v5.15/mm/kasan/
Dreport.c349 struct kunit_resource *resource; in kasan_update_kunit_status()
/Linux-v5.15/Documentation/dev-tools/kunit/
Dtips.rst128 something more flexible you could use a named ``kunit_resource``, see
/Linux-v5.15/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-v5.15/mm/
Dslub.c552 struct kunit_resource *resource; in slab_add_kunit_errors()