Lines Matching refs:bytes

332 	for (int bytes = 1; bytes <= ARRAY_SIZE(large_src); bytes++) {  in copy_large_test()  local
335 int right_zero_pos = offset + bytes; in copy_large_test()
340 memmove(large_dst + offset, large_src, bytes); in copy_large_test()
342 memcpy(large_dst + offset, large_src, bytes); in copy_large_test()
347 "with size %d at offset %d", bytes, offset); in copy_large_test()
351 "with size %d at offset %d", bytes, offset); in copy_large_test()
355 memcmp(large_dst + offset, large_src, bytes), 0, in copy_large_test()
356 "with size %d at offset %d", bytes, offset); in copy_large_test()
359 memset(large_dst + offset, 0, bytes); in copy_large_test()
395 static void inner_loop(struct kunit *test, int bytes, int d_off, int s_off) in inner_loop() argument
403 memcpy(&large_dst[s_off], large_src, bytes); in inner_loop()
406 memmove(&large_dst[d_off], &large_dst[s_off], bytes); in inner_loop()
409 KUNIT_ASSERT_EQ_MSG(test, memcmp(&large_dst[d_off], large_src, bytes), 0, in inner_loop()
411 bytes, s_off, d_off); in inner_loop()
418 right_zero_pos = d_off + bytes; in inner_loop()
428 right_zero_pos = s_off + bytes; in inner_loop()
431 src_pos = d_off + bytes; in inner_loop()
440 bytes, s_off, d_off); in inner_loop()
446 bytes, s_off, d_off); in inner_loop()
451 bytes, s_off, d_off); in inner_loop()
477 for (int bytes = bytes_start; bytes < bytes_end; in memmove_overlap_test() local
478 bytes = next_step(bytes, bytes_start, bytes_end, bytes_step)) { in memmove_overlap_test()
482 int s_start = max(d_off - bytes, 0); in memmove_overlap_test()
483 int s_end = min_t(int, d_off + bytes, ARRAY_SIZE(large_src)); in memmove_overlap_test()
488 inner_loop(test, bytes, d_off, s_off); in memmove_overlap_test()