Home
last modified time | relevance | path

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

/Linux-v5.10/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.c408 struct kunit_resource *res, in kunit_add_resource()
436 struct kunit_resource *res, in kunit_add_named_resource()
440 struct kunit_resource *existing; in kunit_add_named_resource()
457 struct kunit_resource *kunit_alloc_and_get_resource(struct kunit *test, in kunit_alloc_and_get_resource()
463 struct kunit_resource *res; in kunit_alloc_and_get_resource()
483 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource()
495 struct kunit_resource *res = kunit_find_resource(test, match, in kunit_destroy_resource()
515 static int kunit_kmalloc_init(struct kunit_resource *res, void *context) in kunit_kmalloc_init()
526 static void kunit_kmalloc_free(struct kunit_resource *res) in kunit_kmalloc_free()
548 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()
/Linux-v5.10/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
327 struct kunit_resource *kunit_alloc_and_get_resource(struct kunit *test,
339 static inline void kunit_get_resource(struct kunit_resource *res) in kunit_get_resource()
350 struct kunit_resource *res = container_of(kref, struct kunit_resource, in kunit_release_resource()
372 static inline void kunit_put_resource(struct kunit_resource *res) in kunit_put_resource()
390 struct kunit_resource *res,
405 struct kunit_resource *res,
[all …]
/Linux-v5.10/mm/kasan/
Dreport.c472 struct kunit_resource *resource; in kasan_update_kunit_status()
/Linux-v5.10/lib/
Dtest_kasan.c38 static struct kunit_resource resource;
/Linux-v5.10/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()