Lines Matching refs:result
28 struct result { struct
35 static struct result results_for_union[] = { argument
59 static struct result results_for_intersection[] = {
92 static void resource_do_union_test(struct kunit *test, struct result *r) in resource_do_union_test()
94 struct resource result; in resource_do_union_test() local
97 memset(&result, 0, sizeof(result)); in resource_do_union_test()
98 ret = resource_union(r->r1, r->r2, &result); in resource_do_union_test()
99 resource_do_test(test, ret, &result, r->ret, &r->r, r->r1, r->r2); in resource_do_union_test()
101 memset(&result, 0, sizeof(result)); in resource_do_union_test()
102 ret = resource_union(r->r2, r->r1, &result); in resource_do_union_test()
103 resource_do_test(test, ret, &result, r->ret, &r->r, r->r2, r->r1); in resource_do_union_test()
108 struct result *r = results_for_union; in resource_test_union()
116 static void resource_do_intersection_test(struct kunit *test, struct result *r) in resource_do_intersection_test()
118 struct resource result; in resource_do_intersection_test() local
121 memset(&result, 0, sizeof(result)); in resource_do_intersection_test()
122 ret = resource_intersection(r->r1, r->r2, &result); in resource_do_intersection_test()
123 resource_do_test(test, ret, &result, r->ret, &r->r, r->r1, r->r2); in resource_do_intersection_test()
125 memset(&result, 0, sizeof(result)); in resource_do_intersection_test()
126 ret = resource_intersection(r->r2, r->r1, &result); in resource_do_intersection_test()
127 resource_do_test(test, ret, &result, r->ret, &r->r, r->r2, r->r1); in resource_do_intersection_test()
132 struct result *r = results_for_intersection; in resource_test_intersection()