Lines Matching full:scratch

108 	u8 *scratch, *buffer;  in iov_kunit_copy_to_kvec()  local
115 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_to_kvec()
117 scratch[i] = pattern(i); in iov_kunit_copy_to_kvec()
126 copied = copy_to_iter(scratch, size, &iter); in iov_kunit_copy_to_kvec()
132 /* Build the expected image in the scratch buffer. */ in iov_kunit_copy_to_kvec()
134 memset(scratch, 0, bufsize); in iov_kunit_copy_to_kvec()
137 scratch[i] = pattern(patt++); in iov_kunit_copy_to_kvec()
141 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_kvec()
142 if (buffer[i] != scratch[i]) in iov_kunit_copy_to_kvec()
158 u8 *scratch, *buffer; in iov_kunit_copy_from_kvec() local
169 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_from_kvec()
170 memset(scratch, 0, bufsize); in iov_kunit_copy_from_kvec()
176 copied = copy_from_iter(scratch, size, &iter); in iov_kunit_copy_from_kvec()
196 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_kvec()
197 if (scratch[i] != buffer[i]) in iov_kunit_copy_from_kvec()
267 u8 *scratch, *buffer; in iov_kunit_copy_to_bvec() local
274 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_to_bvec()
276 scratch[i] = pattern(i); in iov_kunit_copy_to_bvec()
285 copied = copy_to_iter(scratch, size, &iter); in iov_kunit_copy_to_bvec()
291 /* Build the expected image in the scratch buffer. */ in iov_kunit_copy_to_bvec()
294 memset(scratch, 0, bufsize); in iov_kunit_copy_to_bvec()
296 u8 *p = scratch + pr->page * PAGE_SIZE; in iov_kunit_copy_to_bvec()
304 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_bvec()
305 if (buffer[i] != scratch[i]) in iov_kunit_copy_to_bvec()
321 u8 *scratch, *buffer; in iov_kunit_copy_from_bvec() local
332 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_from_bvec()
333 memset(scratch, 0, bufsize); in iov_kunit_copy_from_bvec()
339 copied = copy_from_iter(scratch, size, &iter); in iov_kunit_copy_from_bvec()
361 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_bvec()
362 if (scratch[i] != buffer[i]) in iov_kunit_copy_from_bvec()
425 u8 *scratch, *buffer; in iov_kunit_copy_to_folioq() local
434 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_to_folioq()
436 scratch[i] = pattern(i); in iov_kunit_copy_to_folioq()
450 copied = copy_to_iter(scratch + i, size, &iter); in iov_kunit_copy_to_folioq()
460 /* Build the expected image in the scratch buffer. */ in iov_kunit_copy_to_folioq()
462 memset(scratch, 0, bufsize); in iov_kunit_copy_to_folioq()
465 scratch[i] = pattern(patt++); in iov_kunit_copy_to_folioq()
469 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_folioq()
470 if (buffer[i] != scratch[i]) in iov_kunit_copy_to_folioq()
487 u8 *scratch, *buffer; in iov_kunit_copy_from_folioq() local
500 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_from_folioq()
501 memset(scratch, 0, bufsize); in iov_kunit_copy_from_folioq()
512 copied = copy_from_iter(scratch + i, size, &iter); in iov_kunit_copy_from_folioq()
534 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_folioq()
535 if (scratch[i] != buffer[i]) in iov_kunit_copy_from_folioq()
587 u8 *scratch, *buffer; in iov_kunit_copy_to_xarray() local
596 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_to_xarray()
598 scratch[i] = pattern(i); in iov_kunit_copy_to_xarray()
611 copied = copy_to_iter(scratch + i, size, &iter); in iov_kunit_copy_to_xarray()
619 /* Build the expected image in the scratch buffer. */ in iov_kunit_copy_to_xarray()
621 memset(scratch, 0, bufsize); in iov_kunit_copy_to_xarray()
624 scratch[i] = pattern(patt++); in iov_kunit_copy_to_xarray()
628 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_xarray()
629 if (buffer[i] != scratch[i]) in iov_kunit_copy_to_xarray()
645 u8 *scratch, *buffer; in iov_kunit_copy_from_xarray() local
658 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_from_xarray()
659 memset(scratch, 0, bufsize); in iov_kunit_copy_from_xarray()
669 copied = copy_from_iter(scratch + i, size, &iter); in iov_kunit_copy_from_xarray()
691 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_xarray()
692 if (scratch[i] != buffer[i]) in iov_kunit_copy_from_xarray()