Lines Matching refs:copy
61 /* glob_match() needs NULL terminated strings, so we need a copy of filter_glob_param. */
100 /* Create a copy of suite with only tests that match test_glob. */
106 struct kunit_suite *copy;
116 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL);
117 if (!copy)
122 kfree(copy);
132 copy->test_cases = filtered;
133 return copy;
160 struct kunit_suite **copy, **copy_start, *filtered_suite, *new_filtered_suite;
168 copy = kcalloc(max, sizeof(*filtered.start), GFP_KERNEL);
169 if (!copy) { /* won't be able to run anything, return an empty set */
172 copy_start = copy;
211 /* Free previous copy of suite */
234 *copy++ = filtered_suite;
237 filtered.end = copy;
241 for (suites = copy_start; suites < copy; suites++) {
347 if (filter_glob_param || filter_param) { /* a copy was made of each suite */