Searched refs:kunit_resource (Results 1 – 9 of 9) sorted by relevance
/openbmc/linux/include/kunit/ |
H A 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 …]
|
/openbmc/linux/lib/kunit/ |
H A 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()
|
H A 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()
|
H A D | kunit-test.c | 118 static int fake_resource_init(struct kunit_resource *res, void *context) in fake_resource_init() 127 static void fake_resource_free(struct kunit_resource *res) in fake_resource_free() 146 struct kunit_resource *res; in kunit_resource_test_alloc_resource() 166 struct kunit_resource *res, in kunit_resource_instance_match() 183 struct kunit_resource *res = kunit_alloc_and_get_resource( in kunit_resource_test_destroy_resource() 204 struct kunit_resource *res = kunit_alloc_and_get_resource( in kunit_resource_test_remove_resource() 239 struct kunit_resource *resources[5]; in kunit_resource_test_cleanup_resources() 272 static int fake_resource_2_init(struct kunit_resource *res, void *context) in fake_resource_2_init() 283 static void fake_resource_2_free(struct kunit_resource *res) in fake_resource_2_free() 290 static int fake_resource_1_init(struct kunit_resource *res, void *context) in fake_resource_1_init() [all …]
|
H A D | test.c | 880 struct kunit_resource *res; in kunit_cleanup() 899 struct kunit_resource, in kunit_cleanup()
|
/openbmc/linux/lib/ |
H A D | slub_kunit.c | 10 static struct kunit_resource resource;
|
/openbmc/linux/drivers/thunderbolt/ |
H A 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()
|
/openbmc/linux/Documentation/dev-tools/kunit/ |
H A D | usage.rst | 759 Had we wanted something more flexible, we could have used a named ``kunit_resource``.
|
/openbmc/linux/mm/ |
H A D | slub.c | 649 struct kunit_resource *resource; in slab_add_kunit_errors()
|