Lines Matching refs:seg_idx
237 unsigned int seg_idx __rte_unused) in get_seg_memfd()
261 fd = fd_list[list_idx].fds[seg_idx]; in get_seg_memfd()
265 list_idx, seg_idx); in get_seg_memfd()
272 fd_list[list_idx].fds[seg_idx] = fd; in get_seg_memfd()
282 unsigned int list_idx, unsigned int seg_idx, in get_seg_fd() argument
299 return get_seg_memfd(hi, list_idx, seg_idx); in get_seg_fd()
305 out_fd = &fd_list[list_idx].fds[seg_idx]; in get_seg_fd()
307 list_idx * RTE_MAX_MEMSEG_PER_LIST + seg_idx); in get_seg_fd()
517 unsigned int seg_idx) in alloc_seg() argument
569 fd = get_seg_fd(path, sizeof(path), hi, list_idx, seg_idx, in alloc_seg()
577 map_offset = seg_idx * alloc_sz; in alloc_seg()
730 fd_list[list_idx].fds[seg_idx] = -1; in alloc_seg()
737 unsigned int list_idx, unsigned int seg_idx) in free_seg() argument
767 fd = get_seg_fd(path, sizeof(path), hi, list_idx, seg_idx, NULL); in free_seg()
772 map_offset = seg_idx * ms->len; in free_seg()
796 fd_list[list_idx].fds[seg_idx] = -1; in free_seg()
955 int msl_idx, seg_idx, ret, dir_fd = -1; in free_seg_walk() local
967 seg_idx = RTE_PTR_DIFF(wa->ms->addr, start_addr) / msl->page_sz; in free_seg_walk()
998 rte_fbarray_set_free(&found_msl->memseg_arr, seg_idx); in free_seg_walk()
1000 ret = free_seg(wa->ms, wa->hi, msl_idx, seg_idx); in free_seg_walk()
1205 int seg_idx = start + i; in sync_chunk() local
1207 l_ms = rte_fbarray_get(l_arr, seg_idx); in sync_chunk()
1208 p_ms = rte_fbarray_get(p_arr, seg_idx); in sync_chunk()
1216 msl_idx, seg_idx); in sync_chunk()
1219 rte_fbarray_set_used(l_arr, seg_idx); in sync_chunk()
1221 ret = free_seg(l_ms, hi, msl_idx, seg_idx); in sync_chunk()
1222 rte_fbarray_set_free(l_arr, seg_idx); in sync_chunk()
1583 eal_memalloc_set_seg_fd(int list_idx, int seg_idx, int fd) in eal_memalloc_set_seg_fd() argument
1600 fd_list[list_idx].fds[seg_idx] = fd; in eal_memalloc_set_seg_fd()
1621 eal_memalloc_get_seg_fd(int list_idx, int seg_idx) in eal_memalloc_get_seg_fd() argument
1643 fd = fd_list[list_idx].fds[seg_idx]; in eal_memalloc_get_seg_fd()
1682 eal_memalloc_get_seg_fd_offset(int list_idx, int seg_idx, size_t *offset) in eal_memalloc_get_seg_fd_offset() argument
1704 *offset = pgsz * seg_idx; in eal_memalloc_get_seg_fd_offset()
1711 if (fd_list[list_idx].fds[seg_idx] < 0) in eal_memalloc_get_seg_fd_offset()