Lines Matching refs:version
322 unsigned char version[1], expected_version; in test0_prpw_aligned_1byte() local
326 version[0] = random_version(); in test0_prpw_aligned_1byte()
327 expected_version = version[0]; in test0_prpw_aligned_1byte()
331 ret = pwrite_adi(fd, version, sizeof(version), offset); in test0_prpw_aligned_1byte()
332 if (ret != sizeof(version)) in test0_prpw_aligned_1byte()
335 ret = pread_adi(fd, version, sizeof(version), offset); in test0_prpw_aligned_1byte()
336 if (ret != sizeof(version)) in test0_prpw_aligned_1byte()
339 if (expected_version != version[0]) { in test0_prpw_aligned_1byte()
341 expected_version, version[0]); in test0_prpw_aligned_1byte()
356 unsigned char version[TEST1_VERSION_SZ], in test1_prpw_aligned_4096bytes() local
362 version[i] = random_version(); in test1_prpw_aligned_4096bytes()
363 expected_version[i] = version[i]; in test1_prpw_aligned_4096bytes()
368 ret = pwrite_adi(fd, version, sizeof(version), offset); in test1_prpw_aligned_4096bytes()
369 if (ret != sizeof(version)) in test1_prpw_aligned_4096bytes()
372 ret = pread_adi(fd, version, sizeof(version), offset); in test1_prpw_aligned_4096bytes()
373 if (ret != sizeof(version)) in test1_prpw_aligned_4096bytes()
377 if (expected_version[i] != version[i]) { in test1_prpw_aligned_4096bytes()
380 expected_version, version[0]); in test1_prpw_aligned_4096bytes()
396 unsigned char version[TEST2_VERSION_SZ], in test2_prpw_aligned_10327bytes() local
402 version[i] = random_version(); in test2_prpw_aligned_10327bytes()
403 expected_version[i] = version[i]; in test2_prpw_aligned_10327bytes()
408 ret = pwrite_adi(fd, version, sizeof(version), offset); in test2_prpw_aligned_10327bytes()
409 if (ret != sizeof(version)) in test2_prpw_aligned_10327bytes()
412 ret = pread_adi(fd, version, sizeof(version), offset); in test2_prpw_aligned_10327bytes()
413 if (ret != sizeof(version)) in test2_prpw_aligned_10327bytes()
417 if (expected_version[i] != version[i]) { in test2_prpw_aligned_10327bytes()
420 expected_version, version[0]); in test2_prpw_aligned_10327bytes()
436 unsigned char version[TEST3_VERSION_SZ], in test3_prpw_unaligned_12541bytes() local
442 version[i] = random_version(); in test3_prpw_unaligned_12541bytes()
443 expected_version[i] = version[i]; in test3_prpw_unaligned_12541bytes()
448 ret = pwrite_adi(fd, version, sizeof(version), offset); in test3_prpw_unaligned_12541bytes()
449 if (ret != sizeof(version)) in test3_prpw_unaligned_12541bytes()
452 ret = pread_adi(fd, version, sizeof(version), offset); in test3_prpw_unaligned_12541bytes()
453 if (ret != sizeof(version)) in test3_prpw_unaligned_12541bytes()
457 if (expected_version[i] != version[i]) { in test3_prpw_unaligned_12541bytes()
460 expected_version, version[0]); in test3_prpw_unaligned_12541bytes()
524 unsigned char version, expected_version; in test5_rw_aligned_1byte() local
530 version = expected_version = random_version(); in test5_rw_aligned_1byte()
538 ret = write_adi(fd, &version, sizeof(version)); in test5_rw_aligned_1byte()
539 if (ret != sizeof(version)) in test5_rw_aligned_1byte()
548 ret = read_adi(fd, &version, sizeof(version)); in test5_rw_aligned_1byte()
549 if (ret != sizeof(version)) in test5_rw_aligned_1byte()
552 if (expected_version != version) { in test5_rw_aligned_1byte()
554 expected_version, version); in test5_rw_aligned_1byte()
569 unsigned char version[TEST6_VERSION_SZ], in test6_rw_aligned_9434bytes() local
577 version[i] = expected_version[i] = random_version(); in test6_rw_aligned_9434bytes()
585 ret = write_adi(fd, version, sizeof(version)); in test6_rw_aligned_9434bytes()
586 if (ret != sizeof(version)) in test6_rw_aligned_9434bytes()
589 memset(version, 0, TEST6_VERSION_SZ); in test6_rw_aligned_9434bytes()
597 ret = read_adi(fd, version, sizeof(version)); in test6_rw_aligned_9434bytes()
598 if (ret != sizeof(version)) in test6_rw_aligned_9434bytes()
602 if (expected_version[i] != version[i]) { in test6_rw_aligned_9434bytes()
605 expected_version[i], version[i]); in test6_rw_aligned_9434bytes()
621 unsigned char version[TEST7_VERSION_SZ], in test7_rw_aligned_14963bytes() local
629 version[i] = random_version(); in test7_rw_aligned_14963bytes()
630 expected_version[i] = version[i]; in test7_rw_aligned_14963bytes()
639 ret = write_adi(fd, version, sizeof(version)); in test7_rw_aligned_14963bytes()
640 if (ret != sizeof(version)) in test7_rw_aligned_14963bytes()
643 memset(version, 0, TEST7_VERSION_SZ); in test7_rw_aligned_14963bytes()
651 ret = read_adi(fd, version, sizeof(version)); in test7_rw_aligned_14963bytes()
652 if (ret != sizeof(version)) in test7_rw_aligned_14963bytes()
656 if (expected_version[i] != version[i]) { in test7_rw_aligned_14963bytes()
659 expected_version[i], version[i]); in test7_rw_aligned_14963bytes()