Lines Matching refs:i
40 for (int i = 0; i < (LIST_LEN * 2); i++) { in child_thread_get() local
43 zassert_equal(qd->data, i); in child_thread_get()
94 for (int i = 0; i < (LIST_LEN * 2); i = i + 2) { in ZTEST() local
99 qdata[i].data = i; in ZTEST()
100 qdata[i].allocated = false; in ZTEST()
101 qdata[i].snode.next = NULL; in ZTEST()
102 k_queue_append(q, &qdata[i]); in ZTEST()
104 qdata[i + 1].data = i + 1; in ZTEST()
105 qdata[i + 1].allocated = true; in ZTEST()
106 qdata[i + 1].snode.next = NULL; in ZTEST()
107 zassert_false(k_queue_alloc_append(q, &qdata[i + 1])); in ZTEST()
141 for (int i = 0; i < LIST_LEN * 2; i++) { in ZTEST_USER() local
142 qdata[i].data = i; in ZTEST_USER()
143 zassert_false(k_queue_alloc_prepend(q, &qdata[i])); in ZTEST_USER()
146 for (int i = (LIST_LEN * 2) - 1; i >= 0; i--) { in ZTEST_USER() local
151 zassert_equal(qd->data, i); in ZTEST_USER()
175 for (int i = 0; i < LIST_LEN * 2; i++) { in ZTEST_USER() local
176 qdata[i].data = i; in ZTEST_USER()
177 zassert_false(k_queue_alloc_append(q, &qdata[i])); in ZTEST_USER()
180 for (int i = 0; i < LIST_LEN * 2; i++) { in ZTEST_USER() local
185 zassert_equal(qd->data, i); in ZTEST_USER()
202 int i; in ZTEST() local
208 for (i = 0; i < 4; i++) { in ZTEST()
209 b[i] = k_heap_alloc(&test_pool, 64, K_FOREVER); in ZTEST()
210 zassert_true(b[i] != NULL, "memory not auto released!"); in ZTEST()
213 for (i = 0; i < 4; i++) { in ZTEST()
214 k_heap_free(&test_pool, b[i]); in ZTEST()