Lines Matching refs:kunit_resource
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()
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()
283 struct kunit_resource *res; in kunit_resource_test_proper_free_ordering()
316 struct kunit_resource res; in kunit_resource_test_static()
330 struct kunit_resource res1, res2, *found = NULL; in kunit_resource_test_named()