Searched refs:TEST_LIST_LEN (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/lib/ |
H A D | test_list_sort.c | 16 #define TEST_LIST_LEN (512+128+2) /* not including head */ macro 33 KUNIT_EXPECT_LT_MSG(test, ela->serial, (unsigned int)TEST_LIST_LEN, "incorrect serial"); in check() 34 KUNIT_EXPECT_LT_MSG(test, elb->serial, (unsigned int)TEST_LIST_LEN, "incorrect serial"); in check() 65 elts = kunit_kcalloc(test, TEST_LIST_LEN, sizeof(*elts), GFP_KERNEL); in list_sort_test() 69 for (i = 0; i < TEST_LIST_LEN; i++) { in list_sort_test() 74 el->value = get_random_u32_below(TEST_LIST_LEN / 3); in list_sort_test() 106 KUNIT_EXPECT_EQ_MSG(test, count, TEST_LIST_LEN, in list_sort_test()
|
/openbmc/u-boot/lib/ |
H A D | list_sort.c | 158 #define TEST_LIST_LEN (512+128+2) /* not including head */ macro 176 if (ela->serial >= TEST_LIST_LEN) { in check() 181 if (elb->serial >= TEST_LIST_LEN) { in check() 223 elts = kmalloc(sizeof(void *) * TEST_LIST_LEN, GFP_KERNEL); in list_sort_test() 230 for (i = 0; i < TEST_LIST_LEN; i++) { in list_sort_test() 238 el->value = prandom_u32() % (TEST_LIST_LEN / 3); in list_sort_test() 281 if (count != TEST_LIST_LEN) { in list_sort_test()
|