Lines Matching +full:0 +full:x00002

26 	{ 0x00002, 0x00002 },
27 { 0x00027, 0x03000 },
28 { 0x05193, 0x18794 },
29 { 0x20000, 0x20000 },
30 { 0x20000, 0x24000 },
31 { 0x24000, 0x27001 },
32 { 0x29000, 0xffffb },
33 { 0xffffd, 0xffffe },
39 return x & 0xff; in pattern()
78 size_t size = 0; in iov_kunit_load_kvec()
81 for (i = 0; i < kvmax; i++, pr++) { in iov_kunit_load_kvec()
82 if (pr->from < 0) in iov_kunit_load_kvec()
108 bufsize = 0x100000; 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()
125 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_to_kvec()
126 KUNIT_EXPECT_EQ(test, iter.nr_segs, 0); in iov_kunit_copy_to_kvec()
129 patt = 0; in iov_kunit_copy_to_kvec()
130 memset(scratch, 0, bufsize); in iov_kunit_copy_to_kvec()
131 for (pr = kvec_test_ranges; pr->from >= 0; pr++) in iov_kunit_copy_to_kvec()
136 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_to_kvec()
158 bufsize = 0x100000; 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()
175 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_from_kvec()
176 KUNIT_EXPECT_EQ(test, iter.nr_segs, 0); in iov_kunit_copy_from_kvec()
179 i = 0; in iov_kunit_copy_from_kvec()
180 memset(buffer, 0, bufsize); in iov_kunit_copy_from_kvec()
181 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_from_kvec()
191 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_from_kvec()
205 { 0, 0x0002, 0x0002 },
206 { 1, 0x0027, 0x0893 },
207 { 2, 0x0193, 0x0794 },
208 { 3, 0x0000, 0x1000 },
209 { 4, 0x0000, 0x1000 },
210 { 5, 0x0000, 0x1000 },
211 { 6, 0x0000, 0x0ffb },
212 { 6, 0x0ffd, 0x0ffe },
224 size_t size = 0; in iov_kunit_load_bvec()
227 for (i = 0; i < bvmax; i++, pr++) { in iov_kunit_load_bvec()
228 if (pr->from < 0) in iov_kunit_load_bvec()
232 KUNIT_ASSERT_GE(test, pr->from, 0); in iov_kunit_load_bvec()
237 if (pr->from == 0 && pr->from != pr->to && page == can_merge) { in iov_kunit_load_bvec()
245 if ((pr->to & ~PAGE_MASK) == 0) in iov_kunit_load_bvec()
267 bufsize = 0x100000; 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()
284 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_to_bvec()
285 KUNIT_EXPECT_EQ(test, iter.nr_segs, 0); in iov_kunit_copy_to_bvec()
288 b = 0; in iov_kunit_copy_to_bvec()
289 patt = 0; in iov_kunit_copy_to_bvec()
290 memset(scratch, 0, bufsize); in iov_kunit_copy_to_bvec()
291 for (pr = bvec_test_ranges; pr->from >= 0; pr++, b++) { in iov_kunit_copy_to_bvec()
299 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_to_bvec()
321 bufsize = 0x100000; 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()
338 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_from_bvec()
339 KUNIT_EXPECT_EQ(test, iter.nr_segs, 0); in iov_kunit_copy_from_bvec()
342 i = 0; in iov_kunit_copy_from_bvec()
343 memset(buffer, 0, bufsize); in iov_kunit_copy_from_bvec()
344 for (pr = bvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_from_bvec()
356 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_from_bvec()
378 size_t size = 0; in iov_kunit_load_xarray()
381 for (i = 0; i < npages; i++) { in iov_kunit_load_xarray()
387 iov_iter_xarray(iter, dir, xarray, 0, size); in iov_kunit_load_xarray()
414 bufsize = 0x100000; 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()
428 i = 0; in iov_kunit_copy_to_xarray()
429 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_to_xarray()
437 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_to_xarray()
443 patt = 0; in iov_kunit_copy_to_xarray()
444 memset(scratch, 0, bufsize); in iov_kunit_copy_to_xarray()
445 for (pr = kvec_test_ranges; pr->from >= 0; pr++) in iov_kunit_copy_to_xarray()
450 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_to_xarray()
472 bufsize = 0x100000; 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()
486 i = 0; in iov_kunit_copy_from_xarray()
487 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_from_xarray()
495 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_from_xarray()
501 i = 0; in iov_kunit_copy_from_xarray()
502 memset(buffer, 0, bufsize); in iov_kunit_copy_from_xarray()
503 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { 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()
536 bufsize = 0x100000; in iov_kunit_extract_pages_kvec()
550 for (i = 0; i < ARRAY_SIZE(pagelist); i++) in iov_kunit_extract_pages_kvec()
551 pagelist[i] = (void *)(unsigned long)0xaa55aa55aa55aa55ULL; in iov_kunit_extract_pages_kvec()
554 ARRAY_SIZE(pagelist), 0, &offset0); in iov_kunit_extract_pages_kvec()
555 KUNIT_EXPECT_GE(test, len, 0); in iov_kunit_extract_pages_kvec()
556 if (len < 0) in iov_kunit_extract_pages_kvec()
558 KUNIT_EXPECT_GE(test, (ssize_t)offset0, 0); in iov_kunit_extract_pages_kvec()
564 if (len == 0) in iov_kunit_extract_pages_kvec()
567 for (i = 0; i < ARRAY_SIZE(pagelist); i++) { in iov_kunit_extract_pages_kvec()
572 KUNIT_ASSERT_GE(test, part, 0); in iov_kunit_extract_pages_kvec()
576 if (from < 0) in iov_kunit_extract_pages_kvec()
586 KUNIT_ASSERT_GE(test, len, 0); in iov_kunit_extract_pages_kvec()
587 if (len == 0) in iov_kunit_extract_pages_kvec()
589 offset0 = 0; in iov_kunit_extract_pages_kvec()
594 } while (iov_iter_count(&iter) > 0); in iov_kunit_extract_pages_kvec()
597 KUNIT_EXPECT_EQ(test, size, 0); in iov_kunit_extract_pages_kvec()
598 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_extract_pages_kvec()
612 size_t bufsize, size = 0, npages; in iov_kunit_extract_pages_bvec()
615 bufsize = 0x100000; in iov_kunit_extract_pages_bvec()
628 for (i = 0; i < ARRAY_SIZE(pagelist); i++) in iov_kunit_extract_pages_bvec()
629 pagelist[i] = (void *)(unsigned long)0xaa55aa55aa55aa55ULL; in iov_kunit_extract_pages_bvec()
632 ARRAY_SIZE(pagelist), 0, &offset0); in iov_kunit_extract_pages_bvec()
633 KUNIT_EXPECT_GE(test, len, 0); in iov_kunit_extract_pages_bvec()
634 if (len < 0) in iov_kunit_extract_pages_bvec()
636 KUNIT_EXPECT_GE(test, (ssize_t)offset0, 0); in iov_kunit_extract_pages_bvec()
642 if (len == 0) in iov_kunit_extract_pages_bvec()
645 for (i = 0; i < ARRAY_SIZE(pagelist); i++) { in iov_kunit_extract_pages_bvec()
650 KUNIT_ASSERT_GE(test, part, 0); in iov_kunit_extract_pages_bvec()
654 if (from < 0) in iov_kunit_extract_pages_bvec()
664 KUNIT_ASSERT_GE(test, len, 0); in iov_kunit_extract_pages_bvec()
665 if (len == 0) in iov_kunit_extract_pages_bvec()
667 offset0 = 0; in iov_kunit_extract_pages_bvec()
672 } while (iov_iter_count(&iter) > 0); in iov_kunit_extract_pages_bvec()
675 KUNIT_EXPECT_EQ(test, size, 0); in iov_kunit_extract_pages_bvec()
676 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_extract_pages_bvec()
690 size_t bufsize, size = 0, npages; in iov_kunit_extract_pages_xarray()
693 bufsize = 0x100000; in iov_kunit_extract_pages_xarray()
701 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_extract_pages_xarray()
711 for (i = 0; i < ARRAY_SIZE(pagelist); i++) in iov_kunit_extract_pages_xarray()
712 pagelist[i] = (void *)(unsigned long)0xaa55aa55aa55aa55ULL; in iov_kunit_extract_pages_xarray()
715 ARRAY_SIZE(pagelist), 0, &offset0); in iov_kunit_extract_pages_xarray()
716 KUNIT_EXPECT_GE(test, len, 0); in iov_kunit_extract_pages_xarray()
717 if (len < 0) in iov_kunit_extract_pages_xarray()
721 if (len == 0) in iov_kunit_extract_pages_xarray()
724 KUNIT_EXPECT_GE(test, (ssize_t)offset0, 0); in iov_kunit_extract_pages_xarray()
727 for (i = 0; i < ARRAY_SIZE(pagelist); i++) { in iov_kunit_extract_pages_xarray()
732 KUNIT_ASSERT_GE(test, part, 0); in iov_kunit_extract_pages_xarray()
740 KUNIT_ASSERT_GE(test, len, 0); in iov_kunit_extract_pages_xarray()
741 if (len == 0) in iov_kunit_extract_pages_xarray()
743 offset0 = 0; in iov_kunit_extract_pages_xarray()
748 } while (iov_iter_count(&iter) > 0); in iov_kunit_extract_pages_xarray()
750 KUNIT_EXPECT_EQ(test, size, 0); in iov_kunit_extract_pages_xarray()
751 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_extract_pages_xarray()