Lines Matching +full:0 +full:x29000

27 	{ 0x00002, 0x00002 },
28 { 0x00027, 0x03000 },
29 { 0x05193, 0x18794 },
30 { 0x20000, 0x20000 },
31 { 0x20000, 0x24000 },
32 { 0x24000, 0x27001 },
33 { 0x29000, 0xffffb },
34 { 0xffffd, 0xffffe },
40 return x & 0xff; in pattern()
66 for (int i = 0; i < npages; i++) in iov_kunit_create_buffer()
82 size_t size = 0; in iov_kunit_load_kvec()
85 for (i = 0; i < kvmax; i++, pr++) { in iov_kunit_load_kvec()
86 if (pr->from < 0) in iov_kunit_load_kvec()
112 bufsize = 0x100000; in iov_kunit_copy_to_kvec()
116 for (i = 0; i < bufsize; i++) in iov_kunit_copy_to_kvec()
120 memset(buffer, 0, bufsize); in iov_kunit_copy_to_kvec()
129 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_to_kvec()
130 KUNIT_EXPECT_EQ(test, iter.nr_segs, 0); in iov_kunit_copy_to_kvec()
133 patt = 0; in iov_kunit_copy_to_kvec()
134 memset(scratch, 0, bufsize); in iov_kunit_copy_to_kvec()
135 for (pr = kvec_test_ranges; pr->from >= 0; pr++) in iov_kunit_copy_to_kvec()
140 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_to_kvec()
162 bufsize = 0x100000; in iov_kunit_copy_from_kvec()
166 for (i = 0; i < bufsize; i++) in iov_kunit_copy_from_kvec()
170 memset(scratch, 0, bufsize); in iov_kunit_copy_from_kvec()
179 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_from_kvec()
180 KUNIT_EXPECT_EQ(test, iter.nr_segs, 0); in iov_kunit_copy_from_kvec()
183 i = 0; in iov_kunit_copy_from_kvec()
184 memset(buffer, 0, bufsize); in iov_kunit_copy_from_kvec()
185 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_from_kvec()
195 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_from_kvec()
209 { 0, 0x0002, 0x0002 },
210 { 1, 0x0027, 0x0893 },
211 { 2, 0x0193, 0x0794 },
212 { 3, 0x0000, 0x1000 },
213 { 4, 0x0000, 0x1000 },
214 { 5, 0x0000, 0x1000 },
215 { 6, 0x0000, 0x0ffb },
216 { 6, 0x0ffd, 0x0ffe },
228 size_t size = 0; in iov_kunit_load_bvec()
231 for (i = 0; i < bvmax; i++, pr++) { in iov_kunit_load_bvec()
232 if (pr->from < 0) in iov_kunit_load_bvec()
236 KUNIT_ASSERT_GE(test, pr->from, 0); in iov_kunit_load_bvec()
241 if (pr->from == 0 && pr->from != pr->to && page == can_merge) { in iov_kunit_load_bvec()
249 if ((pr->to & ~PAGE_MASK) == 0) in iov_kunit_load_bvec()
271 bufsize = 0x100000; in iov_kunit_copy_to_bvec()
275 for (i = 0; i < bufsize; i++) in iov_kunit_copy_to_bvec()
279 memset(buffer, 0, bufsize); in iov_kunit_copy_to_bvec()
288 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_to_bvec()
289 KUNIT_EXPECT_EQ(test, iter.nr_segs, 0); in iov_kunit_copy_to_bvec()
292 b = 0; in iov_kunit_copy_to_bvec()
293 patt = 0; in iov_kunit_copy_to_bvec()
294 memset(scratch, 0, bufsize); in iov_kunit_copy_to_bvec()
295 for (pr = bvec_test_ranges; pr->from >= 0; pr++, b++) { in iov_kunit_copy_to_bvec()
303 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_to_bvec()
325 bufsize = 0x100000; in iov_kunit_copy_from_bvec()
329 for (i = 0; i < bufsize; i++) in iov_kunit_copy_from_bvec()
333 memset(scratch, 0, bufsize); in iov_kunit_copy_from_bvec()
342 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_from_bvec()
343 KUNIT_EXPECT_EQ(test, iter.nr_segs, 0); in iov_kunit_copy_from_bvec()
346 i = 0; in iov_kunit_copy_from_bvec()
347 memset(buffer, 0, bufsize); in iov_kunit_copy_from_bvec()
348 for (pr = bvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_from_bvec()
360 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_from_bvec()
375 for (int i = 0; i < folioq_nr_slots(folioq); i++) in iov_kunit_destroy_folioq()
388 size_t size = 0; in iov_kunit_load_folioq()
391 for (i = 0; i < npages; i++) { in iov_kunit_load_folioq()
402 iov_iter_folio_queue(iter, dir, folioq, 0, 0, size); in iov_kunit_load_folioq()
429 bufsize = 0x100000; in iov_kunit_copy_to_folioq()
435 for (i = 0; i < bufsize; i++) in iov_kunit_copy_to_folioq()
439 memset(buffer, 0, bufsize); in iov_kunit_copy_to_folioq()
443 i = 0; in iov_kunit_copy_to_folioq()
444 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_to_folioq()
448 iov_iter_folio_queue(&iter, READ, folioq, 0, 0, pr->to); in iov_kunit_copy_to_folioq()
453 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_to_folioq()
461 patt = 0; in iov_kunit_copy_to_folioq()
462 memset(scratch, 0, bufsize); in iov_kunit_copy_to_folioq()
463 for (pr = kvec_test_ranges; pr->from >= 0; pr++) in iov_kunit_copy_to_folioq()
468 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_to_folioq()
491 bufsize = 0x100000; in iov_kunit_copy_from_folioq()
497 for (i = 0; i < bufsize; i++) in iov_kunit_copy_from_folioq()
501 memset(scratch, 0, bufsize); in iov_kunit_copy_from_folioq()
505 i = 0; in iov_kunit_copy_from_folioq()
506 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_from_folioq()
510 iov_iter_folio_queue(&iter, WRITE, folioq, 0, 0, pr->to); in iov_kunit_copy_from_folioq()
515 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_from_folioq()
521 i = 0; in iov_kunit_copy_from_folioq()
522 memset(buffer, 0, bufsize); in iov_kunit_copy_from_folioq()
523 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_from_folioq()
533 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_from_folioq()
555 size_t size = 0; in iov_kunit_load_xarray()
558 for (i = 0; i < npages; i++) { in iov_kunit_load_xarray()
564 iov_iter_xarray(iter, dir, xarray, 0, size); in iov_kunit_load_xarray()
591 bufsize = 0x100000; in iov_kunit_copy_to_xarray()
597 for (i = 0; i < bufsize; i++) in iov_kunit_copy_to_xarray()
601 memset(buffer, 0, bufsize); in iov_kunit_copy_to_xarray()
605 i = 0; in iov_kunit_copy_to_xarray()
606 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_to_xarray()
614 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_to_xarray()
620 patt = 0; in iov_kunit_copy_to_xarray()
621 memset(scratch, 0, bufsize); in iov_kunit_copy_to_xarray()
622 for (pr = kvec_test_ranges; pr->from >= 0; pr++) in iov_kunit_copy_to_xarray()
627 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_to_xarray()
649 bufsize = 0x100000; in iov_kunit_copy_from_xarray()
655 for (i = 0; i < bufsize; i++) in iov_kunit_copy_from_xarray()
659 memset(scratch, 0, bufsize); in iov_kunit_copy_from_xarray()
663 i = 0; in iov_kunit_copy_from_xarray()
664 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_from_xarray()
672 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_copy_from_xarray()
678 i = 0; in iov_kunit_copy_from_xarray()
679 memset(buffer, 0, bufsize); in iov_kunit_copy_from_xarray()
680 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_from_xarray()
690 for (i = 0; i < bufsize; i++) { in iov_kunit_copy_from_xarray()
710 size_t bufsize, size = 0, npages; in iov_kunit_extract_pages_kvec()
713 bufsize = 0x100000; in iov_kunit_extract_pages_kvec()
727 for (i = 0; i < ARRAY_SIZE(pagelist); i++) in iov_kunit_extract_pages_kvec()
728 pagelist[i] = (void *)(unsigned long)0xaa55aa55aa55aa55ULL; in iov_kunit_extract_pages_kvec()
731 ARRAY_SIZE(pagelist), 0, &offset0); in iov_kunit_extract_pages_kvec()
732 KUNIT_EXPECT_GE(test, len, 0); in iov_kunit_extract_pages_kvec()
733 if (len < 0) in iov_kunit_extract_pages_kvec()
735 KUNIT_EXPECT_GE(test, (ssize_t)offset0, 0); in iov_kunit_extract_pages_kvec()
741 if (len == 0) in iov_kunit_extract_pages_kvec()
744 for (i = 0; i < ARRAY_SIZE(pagelist); i++) { in iov_kunit_extract_pages_kvec()
749 KUNIT_ASSERT_GE(test, part, 0); in iov_kunit_extract_pages_kvec()
753 if (from < 0) in iov_kunit_extract_pages_kvec()
763 KUNIT_ASSERT_GE(test, len, 0); in iov_kunit_extract_pages_kvec()
764 if (len == 0) in iov_kunit_extract_pages_kvec()
766 offset0 = 0; in iov_kunit_extract_pages_kvec()
771 } while (iov_iter_count(&iter) > 0); in iov_kunit_extract_pages_kvec()
774 KUNIT_EXPECT_EQ(test, size, 0); in iov_kunit_extract_pages_kvec()
775 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_extract_pages_kvec()
789 size_t bufsize, size = 0, npages; in iov_kunit_extract_pages_bvec()
792 bufsize = 0x100000; in iov_kunit_extract_pages_bvec()
805 for (i = 0; i < ARRAY_SIZE(pagelist); i++) in iov_kunit_extract_pages_bvec()
806 pagelist[i] = (void *)(unsigned long)0xaa55aa55aa55aa55ULL; in iov_kunit_extract_pages_bvec()
809 ARRAY_SIZE(pagelist), 0, &offset0); in iov_kunit_extract_pages_bvec()
810 KUNIT_EXPECT_GE(test, len, 0); in iov_kunit_extract_pages_bvec()
811 if (len < 0) in iov_kunit_extract_pages_bvec()
813 KUNIT_EXPECT_GE(test, (ssize_t)offset0, 0); in iov_kunit_extract_pages_bvec()
819 if (len == 0) in iov_kunit_extract_pages_bvec()
822 for (i = 0; i < ARRAY_SIZE(pagelist); i++) { in iov_kunit_extract_pages_bvec()
827 KUNIT_ASSERT_GE(test, part, 0); in iov_kunit_extract_pages_bvec()
831 if (from < 0) in iov_kunit_extract_pages_bvec()
841 KUNIT_ASSERT_GE(test, len, 0); in iov_kunit_extract_pages_bvec()
842 if (len == 0) in iov_kunit_extract_pages_bvec()
844 offset0 = 0; in iov_kunit_extract_pages_bvec()
849 } while (iov_iter_count(&iter) > 0); in iov_kunit_extract_pages_bvec()
852 KUNIT_EXPECT_EQ(test, size, 0); in iov_kunit_extract_pages_bvec()
853 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_extract_pages_bvec()
867 size_t bufsize, size = 0, npages; in iov_kunit_extract_pages_folioq()
870 bufsize = 0x100000; in iov_kunit_extract_pages_folioq()
878 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_extract_pages_folioq()
883 iov_iter_folio_queue(&iter, WRITE, folioq, 0, 0, pr->to); in iov_kunit_extract_pages_folioq()
889 for (i = 0; i < ARRAY_SIZE(pagelist); i++) in iov_kunit_extract_pages_folioq()
890 pagelist[i] = (void *)(unsigned long)0xaa55aa55aa55aa55ULL; in iov_kunit_extract_pages_folioq()
893 ARRAY_SIZE(pagelist), 0, &offset0); in iov_kunit_extract_pages_folioq()
894 KUNIT_EXPECT_GE(test, len, 0); in iov_kunit_extract_pages_folioq()
895 if (len < 0) in iov_kunit_extract_pages_folioq()
899 if (len == 0) in iov_kunit_extract_pages_folioq()
902 KUNIT_EXPECT_GE(test, (ssize_t)offset0, 0); in iov_kunit_extract_pages_folioq()
905 for (i = 0; i < ARRAY_SIZE(pagelist); i++) { in iov_kunit_extract_pages_folioq()
910 KUNIT_ASSERT_GE(test, part, 0); in iov_kunit_extract_pages_folioq()
918 KUNIT_ASSERT_GE(test, len, 0); in iov_kunit_extract_pages_folioq()
919 if (len == 0) in iov_kunit_extract_pages_folioq()
921 offset0 = 0; in iov_kunit_extract_pages_folioq()
926 } while (iov_iter_count(&iter) > 0); in iov_kunit_extract_pages_folioq()
928 KUNIT_EXPECT_EQ(test, size, 0); in iov_kunit_extract_pages_folioq()
929 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_extract_pages_folioq()
946 size_t bufsize, size = 0, npages; in iov_kunit_extract_pages_xarray()
949 bufsize = 0x100000; in iov_kunit_extract_pages_xarray()
957 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_extract_pages_xarray()
967 for (i = 0; i < ARRAY_SIZE(pagelist); i++) in iov_kunit_extract_pages_xarray()
968 pagelist[i] = (void *)(unsigned long)0xaa55aa55aa55aa55ULL; in iov_kunit_extract_pages_xarray()
971 ARRAY_SIZE(pagelist), 0, &offset0); in iov_kunit_extract_pages_xarray()
972 KUNIT_EXPECT_GE(test, len, 0); in iov_kunit_extract_pages_xarray()
973 if (len < 0) in iov_kunit_extract_pages_xarray()
977 if (len == 0) in iov_kunit_extract_pages_xarray()
980 KUNIT_EXPECT_GE(test, (ssize_t)offset0, 0); in iov_kunit_extract_pages_xarray()
983 for (i = 0; i < ARRAY_SIZE(pagelist); i++) { in iov_kunit_extract_pages_xarray()
988 KUNIT_ASSERT_GE(test, part, 0); in iov_kunit_extract_pages_xarray()
996 KUNIT_ASSERT_GE(test, len, 0); in iov_kunit_extract_pages_xarray()
997 if (len == 0) in iov_kunit_extract_pages_xarray()
999 offset0 = 0; in iov_kunit_extract_pages_xarray()
1004 } while (iov_iter_count(&iter) > 0); in iov_kunit_extract_pages_xarray()
1006 KUNIT_EXPECT_EQ(test, size, 0); in iov_kunit_extract_pages_xarray()
1007 KUNIT_EXPECT_EQ(test, iter.count, 0); in iov_kunit_extract_pages_xarray()