Lines Matching refs:copy
63 /* glob_match() needs NULL terminated strings, so we need a copy of filter_glob_param. */
102 /* Create a copy of suite with only tests that match test_glob. */
108 struct kunit_suite *copy;
118 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL);
119 if (!copy)
124 kfree(copy);
134 copy->test_cases = filtered;
135 return copy;
162 struct kunit_suite **copy, **copy_start, *filtered_suite, *new_filtered_suite;
170 copy = kcalloc(max, sizeof(*filtered.start), GFP_KERNEL);
171 if (!copy) { /* won't be able to run anything, return an empty set */
174 copy_start = copy;
213 /* Free previous copy of suite */
236 *copy++ = filtered_suite;
239 filtered.end = copy;
243 for (suites = copy_start; suites < copy; suites++) {