Lines Matching refs:copy
102 struct kunit_suite *copy; in kunit_filter_glob_tests() local
112 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_glob_tests()
113 if (!copy) in kunit_filter_glob_tests()
118 kfree(copy); in kunit_filter_glob_tests()
128 copy->test_cases = filtered; in kunit_filter_glob_tests()
129 return copy; in kunit_filter_glob_tests()
156 struct kunit_suite **copy, **copy_start, *filtered_suite, *new_filtered_suite; in kunit_filter_suites() local
164 copy = kcalloc(max, sizeof(*filtered.start), GFP_KERNEL); in kunit_filter_suites()
165 if (!copy) { /* won't be able to run anything, return an empty set */ in kunit_filter_suites()
168 copy_start = copy; in kunit_filter_suites()
230 *copy++ = filtered_suite; in kunit_filter_suites()
233 filtered.end = copy; in kunit_filter_suites()
237 for (suites = copy_start; suites < copy; suites++) { in kunit_filter_suites()