Lines Matching refs:NENTRIES
6 #define NENTRIES 9 macro
21 for (i = 0; i < NENTRIES; i++) { in init_entries()
32 for (i = 0; i < NENTRIES; i++) { in test_independent_entries()
41 for (i = 0; i < NENTRIES; i++) { in test_independent_entries()
50 for (i = 0; i < NENTRIES; i++) { in test_independent_entries()
56 for (i = 0; i < NENTRIES; i++) { in test_independent_entries()
65 ring_t entries[NENTRIES]; in TEST_BEGIN()
77 for (i = 0; i < NENTRIES; i++) { in test_entries_ring()
80 assert_c_eq(t->id, entries[(i+j) % NENTRIES].id, in test_entries_ring()
85 for (i = 0; i < NENTRIES; i++) { in test_entries_ring()
88 assert_c_eq(t->id, entries[(NENTRIES+i-j-1) % in test_entries_ring()
89 NENTRIES].id, "Element id mismatch"); in test_entries_ring()
93 for (i = 0; i < NENTRIES; i++) { in test_entries_ring()
95 assert_c_eq(t->id, entries[(i+1) % NENTRIES].id, in test_entries_ring()
98 for (i = 0; i < NENTRIES; i++) { in test_entries_ring()
100 assert_c_eq(t->id, entries[(NENTRIES+i-1) % NENTRIES].id, in test_entries_ring()
106 ring_t entries[NENTRIES]; in TEST_BEGIN()
110 for (i = 1; i < NENTRIES; i++) { in TEST_BEGIN()
118 ring_t entries[NENTRIES]; in TEST_BEGIN()
123 for (i = 1; i < NENTRIES; i++) { in TEST_BEGIN()
127 for (i = 0; i < NENTRIES; i++) { in TEST_BEGIN()
136 assert_c_eq(t->id, entries[NENTRIES - 1 - j].id, in TEST_BEGIN()
147 ring_t entries[NENTRIES]; in TEST_BEGIN()
152 for (i = 1; i < NENTRIES; i++) { in TEST_BEGIN()
155 for (i = 0; i < NENTRIES; i++) { in TEST_BEGIN()
158 assert_c_eq(t->id, entries[(NENTRIES+i-j) % in TEST_BEGIN()
159 NENTRIES].id, "Element id mismatch"); in TEST_BEGIN()
163 for (i = 0; i < NENTRIES; i++) { in TEST_BEGIN()
166 assert_c_eq(t->id, entries[(i+j+1) % NENTRIES].id, in TEST_BEGIN()
171 for (i = 0; i < NENTRIES; i++) { in TEST_BEGIN()
173 assert_c_eq(t->id, entries[(NENTRIES+i-1) % NENTRIES].id, in TEST_BEGIN()
176 for (i = 0; i < NENTRIES; i++) { in TEST_BEGIN()
178 assert_c_eq(t->id, entries[(i+1) % NENTRIES].id, in TEST_BEGIN()
189 for (i = 0; i < NENTRIES; i++) { in test_split_entries()
198 (NENTRIES-SPLIT_INDEX) + SPLIT_INDEX].id, in test_split_entries()
207 ring_t entries[NENTRIES]; in TEST_BEGIN()
211 for (i = 1; i < NENTRIES; i++) { in TEST_BEGIN()