Lines Matching refs:cur_idx
820 int cur_idx, start_idx, j, dir_fd = -1; in alloc_seg_walk() local
840 cur_idx = rte_fbarray_find_next_n_free(&cur_msl->memseg_arr, 0, in alloc_seg_walk()
842 if (cur_idx < 0) in alloc_seg_walk()
844 start_idx = cur_idx; in alloc_seg_walk()
852 cur_idx = rte_fbarray_find_biggest_free(&cur_msl->memseg_arr, in alloc_seg_walk()
854 if (cur_idx < 0) in alloc_seg_walk()
856 start_idx = cur_idx; in alloc_seg_walk()
861 cur_idx); in alloc_seg_walk()
889 for (i = 0; i < need; i++, cur_idx++) { in alloc_seg_walk()
893 cur = rte_fbarray_get(&cur_msl->memseg_arr, cur_idx); in alloc_seg_walk()
895 cur_idx * page_sz); in alloc_seg_walk()
898 msl_idx, cur_idx)) { in alloc_seg_walk()
907 for (j = start_idx; j < cur_idx; j++) { in alloc_seg_walk()
932 rte_fbarray_set_used(&cur_msl->memseg_arr, cur_idx); in alloc_seg_walk()