Home
last modified time | relevance | path

Searched refs:TEST_LEN (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/lib/
Dtest_sort.c11 #define TEST_LEN 1000 macro
22 a = kunit_kmalloc_array(test, TEST_LEN, sizeof(*a), GFP_KERNEL); in test_sort()
25 for (i = 0; i < TEST_LEN; i++) { in test_sort()
30 sort(a, TEST_LEN, sizeof(*a), cmpint, NULL); in test_sort()
32 for (i = 0; i < TEST_LEN-1; i++) in test_sort()
/Linux-v6.1/drivers/block/paride/
Dbpck.c277 #define TEST_LEN 16 macro
282 char buf[TEST_LEN]; in bpck_test_proto()
291 for(i=0;i<TEST_LEN;i++) { in bpck_test_proto()
302 for(i=0;i<TEST_LEN;i++) { t2(4); buf[i] = r0(); } in bpck_test_proto()
321 case 2: for (i=0;i<TEST_LEN;i++) buf[i] = r4(); in bpck_test_proto()
323 case 3: for (i=0;i<TEST_LEN/2;i++) ((u16 *)buf)[i] = r4w(); in bpck_test_proto()
325 case 4: for (i=0;i<TEST_LEN/4;i++) ((u32 *)buf)[i] = r4l(); in bpck_test_proto()
340 for (i=0;i<TEST_LEN;i++) printk("%3d",buf[i]); in bpck_test_proto()
345 for (i=0;i<TEST_LEN;i++) if (buf[i] != (i+1)) e++; in bpck_test_proto()
/Linux-v6.1/Documentation/dev-tools/kunit/
Dusage.rst104 a = kunit_kmalloc_array(test, TEST_LEN, sizeof(*a), GFP_KERNEL);
106 for (i = 0; i < TEST_LEN; i++) {
110 sort(a, TEST_LEN, sizeof(*a), cmpint, NULL);
111 for (i = 0; i < TEST_LEN-1; i++)