Lines Matching refs:internal_conf
244 const struct internal_config *internal_conf = in get_seg_memfd() local
247 if (internal_conf->single_file_segments) { in get_seg_memfd()
289 const struct internal_config *internal_conf = in get_seg_fd() local
298 if (internal_conf->in_memory) in get_seg_fd()
301 if (internal_conf->single_file_segments) { in get_seg_fd()
323 if (!internal_conf->hugepage_file.unlink_existing && ret == 0 && in get_seg_fd()
339 if (!internal_conf->single_file_segments && in get_seg_fd()
340 internal_conf->hugepage_file.unlink_existing && in get_seg_fd()
393 const struct internal_config *internal_conf = in resize_hugefile_in_filesystem() local
466 *dirty &= !internal_conf->hugepage_file.unlink_existing; in resize_hugefile_in_filesystem()
477 const struct internal_config *internal_conf = in close_hugefile() local
483 if (!internal_conf->in_memory && in close_hugefile()
500 const struct internal_config *internal_conf = in resize_hugefile() local
503 if (internal_conf->in_memory) { in resize_hugefile()
532 const struct internal_config *internal_conf = in alloc_seg() local
538 if (internal_conf->in_memory && !anonymous_hugepages_supported) { in alloc_seg()
542 if (internal_conf->in_memory && !memfd_create_supported && in alloc_seg()
543 internal_conf->single_file_segments) { in alloc_seg()
551 if (internal_conf->in_memory && !memfd_create_supported) { in alloc_seg()
576 if (internal_conf->single_file_segments) { in alloc_seg()
591 if (internal_conf->hugepage_file.unlink_before_mapping && in alloc_seg()
592 !internal_conf->in_memory) { in alloc_seg()
709 if (internal_conf->single_file_segments) in alloc_seg()
716 if (internal_conf->single_file_segments) { in alloc_seg()
725 if (!internal_conf->hugepage_file.unlink_before_mapping && in alloc_seg()
726 internal_conf->in_memory == 0 && in alloc_seg()
742 const struct internal_config *internal_conf = in free_seg() local
758 if (internal_conf->in_memory && !memfd_create_supported) { in free_seg()
771 if (internal_conf->single_file_segments) { in free_seg()
784 if (!internal_conf->in_memory && in free_seg()
785 internal_conf->hugepage_file.unlink_existing && in free_seg()
786 !internal_conf->hugepage_file.unlink_before_mapping) { in free_seg()
822 const struct internal_config *internal_conf = in alloc_seg_walk() local
873 if (wa->hi->lock_descriptor == -1 && !internal_conf->in_memory) { in alloc_seg_walk()
956 const struct internal_config *internal_conf = in free_seg_walk() local
980 if (wa->hi->lock_descriptor == -1 && !internal_conf->in_memory) { in free_seg_walk()
1023 struct internal_config *internal_conf = in eal_memalloc_alloc_seg_bulk() local
1029 if (internal_conf->legacy_mem) in eal_memalloc_alloc_seg_bulk()
1032 for (i = 0; i < (int) RTE_DIM(internal_conf->hugepage_info); i++) { in eal_memalloc_alloc_seg_bulk()
1034 internal_conf->hugepage_info[i].hugepage_sz) { in eal_memalloc_alloc_seg_bulk()
1035 hi = &internal_conf->hugepage_info[i]; in eal_memalloc_alloc_seg_bulk()
1092 struct internal_config *internal_conf = in eal_memalloc_free_seg_bulk() local
1096 if (internal_conf->legacy_mem) in eal_memalloc_free_seg_bulk()
1114 for (i = 0; i < (int)RTE_DIM(internal_conf->hugepage_info); in eal_memalloc_free_seg_bulk()
1116 hi = &internal_conf->hugepage_info[i]; in eal_memalloc_free_seg_bulk()
1120 if (i == (int)RTE_DIM(internal_conf->hugepage_info)) { in eal_memalloc_free_seg_bulk()
1145 const struct internal_config *internal_conf = in eal_memalloc_free_seg() local
1149 if (internal_conf->legacy_mem) in eal_memalloc_free_seg()
1388 struct internal_config *internal_conf = in sync_walk() local
1398 for (i = 0; i < RTE_DIM(internal_conf->hugepage_info); i++) { in sync_walk()
1400 internal_conf->hugepage_info[i].hugepage_sz; in sync_walk()
1403 hi = &internal_conf->hugepage_info[i]; in sync_walk()
1496 const struct internal_config *internal_conf = in alloc_list() local
1500 if (!internal_conf->single_file_segments) { in alloc_list()
1526 const struct internal_config *internal_conf = in destroy_list() local
1530 if (!internal_conf->single_file_segments) { in destroy_list()
1586 const struct internal_config *internal_conf = in eal_memalloc_set_seg_fd() local
1590 if (internal_conf->single_file_segments) in eal_memalloc_set_seg_fd()
1608 const struct internal_config *internal_conf = in eal_memalloc_set_seg_list_fd() local
1612 if (!internal_conf->single_file_segments) in eal_memalloc_set_seg_list_fd()
1624 const struct internal_config *internal_conf = in eal_memalloc_get_seg_fd() local
1627 if (internal_conf->in_memory || internal_conf->no_hugetlbfs) { in eal_memalloc_get_seg_fd()
1633 if (!internal_conf->no_hugetlbfs && !memfd_create_supported) in eal_memalloc_get_seg_fd()
1637 if (internal_conf->single_file_segments) { in eal_memalloc_get_seg_fd()
1654 const struct internal_config *internal_conf = in test_memfd_create() local
1657 for (i = 0; i < internal_conf->num_hugepage_sizes; i++) { in test_memfd_create()
1658 uint64_t pagesz = internal_conf->hugepage_info[i].hugepage_sz; in test_memfd_create()
1685 const struct internal_config *internal_conf = in eal_memalloc_get_seg_fd_offset() local
1688 if (internal_conf->in_memory || internal_conf->no_hugetlbfs) { in eal_memalloc_get_seg_fd_offset()
1694 if (!internal_conf->no_hugetlbfs && !memfd_create_supported) in eal_memalloc_get_seg_fd_offset()
1698 if (internal_conf->single_file_segments) { in eal_memalloc_get_seg_fd_offset()
1739 const struct internal_config *internal_conf = in eal_memalloc_init() local
1746 internal_conf->in_memory) { in eal_memalloc_init()
1762 if (internal_conf->single_file_segments && in eal_memalloc_init()
1773 if (internal_conf->hugepage_file.unlink_before_mapping && in eal_memalloc_init()
1774 !internal_conf->hugepage_file.unlink_existing) { in eal_memalloc_init()