Lines Matching refs:idx

305 	const int idx = 0;  in check_free()  local
309 TEST_ASSERT_EQUAL(rte_fbarray_find_next_free(&param.arr, idx), idx, in check_free()
311 TEST_ASSERT_EQUAL(rte_fbarray_find_next_n_free(&param.arr, idx, 1), idx, in check_free()
313 TEST_ASSERT_EQUAL(rte_fbarray_find_contig_free(&param.arr, idx), in check_free()
317 TEST_ASSERT_EQUAL(rte_fbarray_find_prev_free(&param.arr, idx), idx, in check_free()
319 TEST_ASSERT_EQUAL(rte_fbarray_find_prev_n_free(&param.arr, idx, 1), idx, in check_free()
321 TEST_ASSERT_EQUAL(rte_fbarray_find_rev_contig_free(&param.arr, idx), 1, in check_free()
333 TEST_ASSERT(rte_fbarray_find_next_used(&param.arr, idx) < 0, in check_free()
336 TEST_ASSERT(rte_fbarray_find_next_n_used(&param.arr, idx, 1) < 0, in check_free()
339 TEST_ASSERT_EQUAL(rte_fbarray_find_contig_used(&param.arr, idx), 0, in check_free()
357 const int idx = 0; in check_used_one() local
361 TEST_ASSERT_EQUAL(rte_fbarray_find_next_used(&param.arr, idx), idx, in check_used_one()
363 TEST_ASSERT_EQUAL(rte_fbarray_find_next_n_used(&param.arr, idx, 1), idx, in check_used_one()
365 TEST_ASSERT_EQUAL(rte_fbarray_find_contig_used(&param.arr, idx), 1, in check_used_one()
368 TEST_ASSERT_EQUAL(rte_fbarray_find_prev_used(&param.arr, last_idx), idx, in check_used_one()
371 idx, "Used space not found where expected\n"); in check_used_one()
372 TEST_ASSERT_EQUAL(rte_fbarray_find_rev_contig_used(&param.arr, idx), 1, in check_used_one()
375 last_idx), idx, in check_used_one()
379 TEST_ASSERT(rte_fbarray_find_next_used(&param.arr, idx + 1) < 0, in check_used_one()
382 TEST_ASSERT(rte_fbarray_find_next_n_used(&param.arr, idx + 1, 1) < 0, in check_used_one()
385 TEST_ASSERT_EQUAL(rte_fbarray_find_contig_used(&param.arr, idx + 1), 0, in check_used_one()
387 TEST_ASSERT_EQUAL(rte_fbarray_find_contig_free(&param.arr, idx + 1), in check_used_one()
407 const int idx = 0; in test_basic() local
418 TEST_ASSERT_EQUAL(rte_fbarray_is_used(&param.arr, idx), 0, in test_basic()
422 TEST_ASSERT_SUCCESS(rte_fbarray_set_used(&param.arr, idx), in test_basic()
426 TEST_ASSERT_NOT_EQUAL(rte_fbarray_is_used(&param.arr, idx), 0, in test_basic()
444 TEST_ASSERT_SUCCESS(rte_fbarray_set_free(&param.arr, idx), in test_basic()
451 TEST_ASSERT_EQUAL(rte_fbarray_is_used(&param.arr, idx), 0, in test_basic()