Lines Matching refs:res
19 static int kunit_platform_device_alloc_init(struct kunit_resource *res, void *context) in kunit_platform_device_alloc_init() argument
28 res->data = pdev; in kunit_platform_device_alloc_init()
33 static void kunit_platform_device_alloc_exit(struct kunit_resource *res) in kunit_platform_device_alloc_exit() argument
35 struct platform_device *pdev = res->data; in kunit_platform_device_alloc_exit()
65 static void kunit_platform_device_add_exit(struct kunit_resource *res) in kunit_platform_device_add_exit() argument
67 struct platform_device *pdev = res->data; in kunit_platform_device_add_exit()
74 struct kunit_resource *res, void *match_data) in kunit_platform_device_alloc_match() argument
78 return res->data == pdev && res->free == kunit_platform_device_alloc_exit; in kunit_platform_device_alloc_match()
95 struct kunit_resource *res; in kunit_platform_device_add() local
102 res = kunit_find_resource(test, kunit_platform_device_alloc_match, pdev); in kunit_platform_device_add()
103 if (res) { in kunit_platform_device_add()
121 res->free = kunit_platform_device_add_exit; in kunit_platform_device_add()
122 kunit_put_resource(res); in kunit_platform_device_add()