Lines Matching refs:res
20 static void __kunit_static_stub_resource_free(struct kunit_resource *res)
22 kfree(res->data);
27 struct kunit_resource *res,
30 /* This pointer is only valid if res is a static stub resource. */
31 struct kunit_static_stub_ctx *ctx = res->data;
34 if (res->free != &__kunit_static_stub_resource_free)
43 struct kunit_resource *res;
47 res = kunit_find_resource(test,
51 if (!res)
54 ctx = res->data;
56 kunit_put_resource(res);
62 struct kunit_resource *res;
68 res = kunit_find_resource(test,
73 KUNIT_ASSERT_PTR_NE_MSG(test, res, NULL,
79 kunit_remove_resource(test, res);
80 kunit_put_resource(res);
92 struct kunit_resource *res;
104 res = kunit_find_resource(test,
107 if (res) {
108 ctx = res->data;
112 kunit_put_resource(res);
118 res = kunit_alloc_resource(test, NULL,