Searched refs:TEST_SIZE (Results 1 – 5 of 5) sorted by relevance
/openbmc/hiomapd/test/ |
H A D | flash_copy.c | 19 #define TEST_SIZE 4096 macro 39 system_set_mtd_sizes(TEST_SIZE, TEST_SIZE); in main() 43 src = malloc(TEST_SIZE); in main() 44 dst = malloc(TEST_SIZE); in main() 60 processed = read(rand_fd, src, TEST_SIZE); in main() 61 if (processed != TEST_SIZE) { in main() 66 processed = write(tmp.fd, src, TEST_SIZE); in main() 67 if (processed != TEST_SIZE) { in main() 74 backend_copy(&context.backend, 0, dst, TEST_SIZE); in main() 75 assert(0 == memcmp(src, dst, TEST_SIZE)); in main()
|
/openbmc/phosphor-mboxd/test/ |
H A D | copy_flash.c | 18 #define TEST_SIZE 4096 macro 40 src = malloc(TEST_SIZE); in main() 41 dst = malloc(TEST_SIZE); in main() 57 processed = read(rand_fd, src, TEST_SIZE); in main() 58 if (processed != TEST_SIZE) { in main() 63 processed = write(tmp.fd, src, TEST_SIZE); in main() 64 if (processed != TEST_SIZE) { in main() 71 copy_flash(&context, 0, dst, TEST_SIZE); in main() 72 assert(0 == memcmp(src, dst, TEST_SIZE)); in main()
|
/openbmc/u-boot/test/ |
H A D | bloblist.c | 25 TEST_SIZE = 10, enumerator 80 data = bloblist_add(TEST_TAG, TEST_SIZE); in bloblist_test_blob() 83 data = bloblist_find(TEST_TAG, TEST_SIZE); in bloblist_test_blob() 87 ut_asserteq_ptr(data, bloblist_ensure(TEST_TAG, TEST_SIZE)); in bloblist_test_blob() 89 rec2 = (struct bloblist_rec *)(data + ALIGN(TEST_SIZE, BLOBLIST_ALIGN)); in bloblist_test_blob() 92 ut_asserteq_ptr(data, bloblist_ensure(TEST_TAG, TEST_SIZE)); in bloblist_test_blob() 109 ut_asserteq_ptr(data, bloblist_ensure(TEST_TAG, TEST_SIZE)); in bloblist_test_bad_blob() 110 ut_asserteq_ptr(data, bloblist_ensure(TEST_TAG, TEST_SIZE)); in bloblist_test_bad_blob() 148 data = bloblist_add(TEST_TAG, TEST_SIZE); in bloblist_test_checksum() 171 data[TEST_SIZE]++; in bloblist_test_checksum()
|
/openbmc/qemu/tests/tcg/multiarch/system/ |
H A D | memory.c | 28 #define TEST_SIZE (MEM_PAGE_SIZE * 4) /* 4 pages */ macro 32 __attribute__((aligned(TEST_SIZE))) 33 static uint8_t test_data[TEST_SIZE]; 77 for (i = 0; i < TEST_SIZE; i++) { in init_test_data_u8() 103 for (i = 0; i < TEST_SIZE / 2; i++) { in init_test_data_s8() 139 const int max = (TEST_SIZE - offset) / sizeof(word); in init_test_data_u16() 159 const int max = (TEST_SIZE - offset) / sizeof(word); in init_test_data_u32() 182 const int max = (TEST_SIZE - offset) / sizeof(word); in init_test_data_u64() 208 const int max = (TEST_SIZE - offset) / sizeof(word); in read_test_data_u16() 233 const int max = (TEST_SIZE - offset) / sizeof(word); in read_test_data_u32() [all …]
|
/openbmc/linux/lib/ |
H A D | overflow_kunit.c | 560 #define TEST_SIZE (5 * 4096) macro 565 volatile size_t a = TEST_SIZE; \ 566 volatile size_t b = (SIZE_MAX / TEST_SIZE) + 1; \
|