Lines Matching refs:kunit_resource
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()
293 struct kunit_resource *res2; in fake_resource_1_init()
310 static void fake_resource_1_free(struct kunit_resource *res) in fake_resource_1_free()
325 struct kunit_resource *res; in kunit_resource_test_proper_free_ordering()
358 struct kunit_resource res; in kunit_resource_test_static()
372 struct kunit_resource res1, res2, *found = NULL; in kunit_resource_test_named()