Lines Matching refs:copy
79 /* glob_match() needs NULL terminated strings, so we need a copy of filter_glob_param. */
112 /* Create a copy of suite with only tests that match test_glob. */
118 struct kunit_suite *copy;
128 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL);
129 if (!copy)
134 kfree(copy);
144 copy->test_cases = filtered;
145 return copy;
172 struct kunit_suite **copy, **copy_start, *filtered_suite, *new_filtered_suite;
180 copy = kcalloc(max, sizeof(*filtered.start), GFP_KERNEL);
181 if (!copy) { /* won't be able to run anything, return an empty set */
184 copy_start = copy;
223 /* Free previous copy of suite */
246 *copy++ = filtered_suite;
249 filtered.end = copy;
253 for (suites = copy_start; suites < copy; suites++) {