Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 8 of 8) sorted by relevance

/lib/zlib_inflate/
Dinflate.c123 unsigned copy, dist; in zlib_updatewindow() local
128 copy = out - strm->avail_out; in zlib_updatewindow()
129 if (copy >= state->wsize) { in zlib_updatewindow()
136 if (dist > copy) dist = copy; in zlib_updatewindow()
137 memcpy(state->window + state->write, strm->next_out - copy, dist); in zlib_updatewindow()
138 copy -= dist; in zlib_updatewindow()
139 if (copy) { in zlib_updatewindow()
140 memcpy(state->window, strm->next_out - copy, copy); in zlib_updatewindow()
141 state->write = copy; in zlib_updatewindow()
340 unsigned copy; /* number of stored or match bytes to copy */ in zlib_inflate() local
[all …]
/lib/kunit/
Dexecutor.c106 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()
160 struct kunit_suite **copy, **copy_start, *filtered_suite, *new_filtered_suite; in kunit_filter_suites() local
168 copy = kcalloc(max, sizeof(*filtered.start), GFP_KERNEL); in kunit_filter_suites()
169 if (!copy) { /* won't be able to run anything, return an empty set */ in kunit_filter_suites()
172 copy_start = copy; in kunit_filter_suites()
[all …]
Dattributes.c342 struct kunit_suite *copy; in kunit_filter_attr_tests() local
347 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_attr_tests()
348 if (!copy) in kunit_filter_attr_tests()
355 kfree(copy); in kunit_filter_attr_tests()
406 kfree(copy); in kunit_filter_attr_tests()
411 copy->test_cases = filtered; in kunit_filter_attr_tests()
413 return copy; in kunit_filter_attr_tests()
/lib/
Dtest_bitmap.c744 DECLARE_BITMAP(copy, 500); in test_for_each_set_bit_wrap()
757 bitmap_zero(copy, 500); in test_for_each_set_bit_wrap()
760 bitmap_set(copy, bit, 1); in test_for_each_set_bit_wrap()
762 expect_eq_bitmap(orig, copy, 500); in test_for_each_set_bit_wrap()
769 DECLARE_BITMAP(copy, 500); in test_for_each_set_bit()
773 bitmap_zero(copy, 500); in test_for_each_set_bit()
783 bitmap_set(copy, bit, 1); in test_for_each_set_bit()
785 expect_eq_bitmap(orig, copy, 500); in test_for_each_set_bit()
791 DECLARE_BITMAP(copy, 500); in test_for_each_set_bit_from()
806 bitmap_zero(copy, 500); in test_for_each_set_bit_from()
[all …]
Dvsprintf.c2781 int copy = read; in vsnprintf() local
2783 if (copy > end - str) in vsnprintf()
2784 copy = end - str; in vsnprintf()
2785 memcpy(str, old_fmt, copy); in vsnprintf()
3258 int copy = read; in bstr_printf() local
3260 if (copy > end - str) in bstr_printf()
3261 copy = end - str; in bstr_printf()
3262 memcpy(str, old_fmt, copy); in bstr_printf()
3307 int copy, len; in bstr_printf() local
3324 len = copy = strlen(args); in bstr_printf()
[all …]
Drbtree.c430 .copy = dummy_copy,
Dmaple_tree.c6816 unsigned long copy = *index; in mt_find() local
6849 if (MT_WARN_ON(mt, (*index) && ((*index) <= copy))) in mt_find()
6851 *index, copy); in mt_find()
/lib/crypto/mpi/
Dmpi-mod.c36 mpi_barrett_t mpi_barrett_init(MPI m, int copy) in mpi_barrett_init() argument
46 if (copy) { in mpi_barrett_init()