Lines Matching refs:hi

235 get_seg_memfd(struct hugepage_info *hi __rte_unused,  in get_seg_memfd()
243 int flags = RTE_MFD_HUGETLB | pagesz_flags(hi->hugepage_sz); in get_seg_memfd()
281 get_seg_fd(char *path, int buflen, struct hugepage_info *hi, in get_seg_fd() argument
299 return get_seg_memfd(hi, list_idx, seg_idx); in get_seg_fd()
303 eal_get_hugefile_path(path, buflen, hi->hugedir, list_idx); in get_seg_fd()
306 eal_get_hugefile_path(path, buflen, hi->hugedir, in get_seg_fd()
516 struct hugepage_info *hi, unsigned int list_idx, in alloc_seg() argument
535 alloc_sz = hi->hugepage_sz; in alloc_seg()
569 fd = get_seg_fd(path, sizeof(path), hi, list_idx, seg_idx, in alloc_seg()
736 free_seg(struct rte_memseg *ms, struct hugepage_info *hi, in free_seg() argument
767 fd = get_seg_fd(path, sizeof(path), hi, list_idx, seg_idx, NULL); in free_seg()
805 struct hugepage_info *hi; member
873 if (wa->hi->lock_descriptor == -1 && !internal_conf->in_memory) { in alloc_seg_walk()
874 dir_fd = open(wa->hi->hugedir, O_RDONLY); in alloc_seg_walk()
877 __func__, wa->hi->hugedir, strerror(errno)); in alloc_seg_walk()
883 __func__, wa->hi->hugedir, strerror(errno)); in alloc_seg_walk()
897 if (alloc_seg(cur, map_addr, wa->socket, wa->hi, in alloc_seg_walk()
918 if (free_seg(tmp, wa->hi, msl_idx, j)) in alloc_seg_walk()
945 struct hugepage_info *hi; member
980 if (wa->hi->lock_descriptor == -1 && !internal_conf->in_memory) { in free_seg_walk()
981 dir_fd = open(wa->hi->hugedir, O_RDONLY); in free_seg_walk()
984 __func__, wa->hi->hugedir, strerror(errno)); in free_seg_walk()
990 __func__, wa->hi->hugedir, strerror(errno)); in free_seg_walk()
1000 ret = free_seg(wa->ms, wa->hi, msl_idx, seg_idx); in free_seg_walk()
1022 struct hugepage_info *hi = NULL; in eal_memalloc_alloc_seg_bulk() local
1035 hi = &internal_conf->hugepage_info[i]; in eal_memalloc_alloc_seg_bulk()
1039 if (!hi) { in eal_memalloc_alloc_seg_bulk()
1054 wa.hi = hi; in eal_memalloc_alloc_seg_bulk()
1101 struct hugepage_info *hi = NULL; in eal_memalloc_free_seg_bulk() local
1116 hi = &internal_conf->hugepage_info[i]; in eal_memalloc_free_seg_bulk()
1117 if (cur->hugepage_sz == hi->hugepage_sz) in eal_memalloc_free_seg_bulk()
1127 wa.hi = hi; in eal_memalloc_free_seg_bulk()
1157 struct rte_memseg_list *local_msl, struct hugepage_info *hi, in sync_chunk() argument
1215 p_ms->socket_id, hi, in sync_chunk()
1221 ret = free_seg(l_ms, hi, msl_idx, seg_idx); in sync_chunk()
1254 struct rte_memseg_list *local_msl, struct hugepage_info *hi, in sync_status() argument
1311 ret = sync_chunk(primary_msl, local_msl, hi, msl_idx, in sync_status()
1335 struct rte_memseg_list *local_msl, struct hugepage_info *hi, in sync_existing() argument
1345 dir_fd = open(hi->hugedir, O_RDONLY); in sync_existing()
1348 hi->hugedir, strerror(errno)); in sync_existing()
1354 hi->hugedir, strerror(errno)); in sync_existing()
1360 ret = sync_status(primary_msl, local_msl, hi, msl_idx, true); in sync_existing()
1365 ret = sync_status(primary_msl, local_msl, hi, msl_idx, false); in sync_existing()
1385 struct hugepage_info *hi = NULL; in sync_walk() local
1403 hi = &internal_conf->hugepage_info[i]; in sync_walk()
1407 if (!hi) { in sync_walk()
1414 sync_existing(primary_msl, local_msl, hi, msl_idx)) in sync_walk()