Lines Matching refs:kunit_resource
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 *
194 struct kunit_resource *res, in kunit_add_named_resource()
198 struct kunit_resource *existing; in kunit_add_named_resource()
236 static inline struct kunit_resource *
243 struct kunit_resource *res; in kunit_alloc_and_get_resource()
286 struct kunit_resource *res; in kunit_alloc_resource()
300 struct kunit_resource *res,
310 struct kunit_resource *res, in kunit_resource_name_match()
322 static inline struct kunit_resource *
327 struct kunit_resource *res, *found = NULL; in kunit_find_resource()
350 static inline struct kunit_resource *
388 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res);