Lines Matching refs:copy
106 struct kunit_suite *copy; in kunit_filter_glob_tests() local
116 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_glob_tests()
117 if (!copy) in kunit_filter_glob_tests()
122 kfree(copy); in kunit_filter_glob_tests()
132 copy->test_cases = filtered; in kunit_filter_glob_tests()
133 return copy; in kunit_filter_glob_tests()
154 struct kunit_suite **copy, **copy_start, *filtered_suite, *new_filtered_suite; in kunit_filter_suites() local
161 copy = kmalloc_array(max, sizeof(*filtered.start), GFP_KERNEL); in kunit_filter_suites()
162 if (!copy) { /* won't be able to run anything, return an empty set */ in kunit_filter_suites()
165 copy_start = copy; in kunit_filter_suites()
227 *copy++ = filtered_suite; in kunit_filter_suites()
230 filtered.end = copy; in kunit_filter_suites()
244 kfree(copy); in kunit_filter_suites()