Lines Matching refs:bytes
335 for (int bytes = 1; bytes <= ARRAY_SIZE(large_src); bytes++) { in copy_large_test() local
338 int right_zero_pos = offset + bytes; in copy_large_test()
343 memmove(large_dst + offset, large_src, bytes); in copy_large_test()
345 memcpy(large_dst + offset, large_src, bytes); in copy_large_test()
350 "with size %d at offset %d", bytes, offset); in copy_large_test()
354 "with size %d at offset %d", bytes, offset); in copy_large_test()
358 memcmp(large_dst + offset, large_src, bytes), 0, in copy_large_test()
359 "with size %d at offset %d", bytes, offset); in copy_large_test()
362 memset(large_dst + offset, 0, bytes); in copy_large_test()
398 static void inner_loop(struct kunit *test, int bytes, int d_off, int s_off) in inner_loop() argument
406 memcpy(&large_dst[s_off], large_src, bytes); in inner_loop()
409 memmove(&large_dst[d_off], &large_dst[s_off], bytes); in inner_loop()
412 KUNIT_ASSERT_EQ_MSG(test, memcmp(&large_dst[d_off], large_src, bytes), 0, in inner_loop()
414 bytes, s_off, d_off); in inner_loop()
421 right_zero_pos = d_off + bytes; in inner_loop()
431 right_zero_pos = s_off + bytes; in inner_loop()
434 src_pos = d_off + bytes; in inner_loop()
443 bytes, s_off, d_off); in inner_loop()
449 bytes, s_off, d_off); in inner_loop()
454 bytes, s_off, d_off); in inner_loop()
480 for (int bytes = bytes_start; bytes < bytes_end; in memmove_overlap_test() local
481 bytes = next_step(bytes, bytes_start, bytes_end, bytes_step)) { in memmove_overlap_test()
485 int s_start = max(d_off - bytes, 0); in memmove_overlap_test()
486 int s_end = min_t(int, d_off + bytes, ARRAY_SIZE(large_src)); in memmove_overlap_test()
491 inner_loop(test, bytes, d_off, s_off); in memmove_overlap_test()