Lines Matching refs:bufsize

75 				       void *buffer, size_t bufsize,  in iov_kunit_load_kvec()  argument
85 KUNIT_ASSERT_LE(test, pr->to, bufsize); in iov_kunit_load_kvec()
90 KUNIT_ASSERT_LE(test, size, bufsize); in iov_kunit_load_kvec()
105 size_t bufsize, npages, size, copied; in iov_kunit_copy_to_kvec() local
108 bufsize = 0x100000; in iov_kunit_copy_to_kvec()
109 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_to_kvec()
112 for (i = 0; i < bufsize; i++) in iov_kunit_copy_to_kvec()
116 memset(buffer, 0, bufsize); in iov_kunit_copy_to_kvec()
119 buffer, bufsize, kvec_test_ranges); in iov_kunit_copy_to_kvec()
130 memset(scratch, 0, bufsize); in iov_kunit_copy_to_kvec()
136 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_to_kvec()
155 size_t bufsize, npages, size, copied; in iov_kunit_copy_from_kvec() local
158 bufsize = 0x100000; in iov_kunit_copy_from_kvec()
159 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_from_kvec()
162 for (i = 0; i < bufsize; i++) in iov_kunit_copy_from_kvec()
166 memset(scratch, 0, bufsize); in iov_kunit_copy_from_kvec()
169 buffer, bufsize, kvec_test_ranges); in iov_kunit_copy_from_kvec()
170 size = min(iter.count, bufsize); in iov_kunit_copy_from_kvec()
180 memset(buffer, 0, bufsize); in iov_kunit_copy_from_kvec()
184 if (i >= bufsize) in iov_kunit_copy_from_kvec()
191 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_from_kvec()
220 size_t bufsize, in iov_kunit_load_bvec() argument
231 KUNIT_ASSERT_LT(test, pr->page * PAGE_SIZE, bufsize); in iov_kunit_load_bvec()
264 size_t bufsize, npages, size, copied; in iov_kunit_copy_to_bvec() local
267 bufsize = 0x100000; in iov_kunit_copy_to_bvec()
268 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_to_bvec()
271 for (i = 0; i < bufsize; i++) in iov_kunit_copy_to_bvec()
275 memset(buffer, 0, bufsize); in iov_kunit_copy_to_bvec()
278 bpages, npages, bufsize, bvec_test_ranges); in iov_kunit_copy_to_bvec()
290 memset(scratch, 0, bufsize); in iov_kunit_copy_to_bvec()
299 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_to_bvec()
318 size_t bufsize, npages, size, copied; in iov_kunit_copy_from_bvec() local
321 bufsize = 0x100000; in iov_kunit_copy_from_bvec()
322 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_from_bvec()
325 for (i = 0; i < bufsize; i++) in iov_kunit_copy_from_bvec()
329 memset(scratch, 0, bufsize); in iov_kunit_copy_from_bvec()
332 bpages, npages, bufsize, bvec_test_ranges); in iov_kunit_copy_from_bvec()
343 memset(buffer, 0, bufsize); in iov_kunit_copy_from_bvec()
349 if (i >= bufsize) in iov_kunit_copy_from_bvec()
356 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_from_bvec()
411 size_t bufsize, npages, size, copied; in iov_kunit_copy_to_xarray() local
414 bufsize = 0x100000; in iov_kunit_copy_to_xarray()
415 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_to_xarray()
420 for (i = 0; i < bufsize; i++) in iov_kunit_copy_to_xarray()
424 memset(buffer, 0, bufsize); in iov_kunit_copy_to_xarray()
431 KUNIT_ASSERT_LE(test, pr->to, bufsize); in iov_kunit_copy_to_xarray()
444 memset(scratch, 0, bufsize); in iov_kunit_copy_to_xarray()
450 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_to_xarray()
469 size_t bufsize, npages, size, copied; in iov_kunit_copy_from_xarray() local
472 bufsize = 0x100000; in iov_kunit_copy_from_xarray()
473 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_from_xarray()
478 for (i = 0; i < bufsize; i++) in iov_kunit_copy_from_xarray()
482 memset(scratch, 0, bufsize); in iov_kunit_copy_from_xarray()
489 KUNIT_ASSERT_LE(test, pr->to, bufsize); in iov_kunit_copy_from_xarray()
502 memset(buffer, 0, bufsize); in iov_kunit_copy_from_xarray()
506 if (i >= bufsize) in iov_kunit_copy_from_xarray()
513 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_from_xarray()
533 size_t bufsize, size = 0, npages; in iov_kunit_extract_pages_kvec() local
536 bufsize = 0x100000; in iov_kunit_extract_pages_kvec()
537 npages = bufsize / PAGE_SIZE; in iov_kunit_extract_pages_kvec()
542 buffer, bufsize, kvec_test_ranges); in iov_kunit_extract_pages_kvec()
612 size_t bufsize, size = 0, npages; in iov_kunit_extract_pages_bvec() local
615 bufsize = 0x100000; in iov_kunit_extract_pages_bvec()
616 npages = bufsize / PAGE_SIZE; in iov_kunit_extract_pages_bvec()
620 bpages, npages, bufsize, bvec_test_ranges); in iov_kunit_extract_pages_bvec()
690 size_t bufsize, size = 0, npages; in iov_kunit_extract_pages_xarray() local
693 bufsize = 0x100000; in iov_kunit_extract_pages_xarray()
694 npages = bufsize / PAGE_SIZE; in iov_kunit_extract_pages_xarray()
704 KUNIT_ASSERT_LE(test, pr->to, bufsize); in iov_kunit_extract_pages_xarray()