| /f-stack/dpdk/lib/librte_mempool/ |
| H A D | rte_mempool_ops_default.c | 17 size_t mem_size; in rte_mempool_op_calc_mem_size_helper() local 21 mem_size = 0; in rte_mempool_op_calc_mem_size_helper() 23 mem_size = total_elt_sz * obj_num + chunk_reserve; in rte_mempool_op_calc_mem_size_helper() 36 mem_size = RTE_ALIGN_CEIL(total_elt_sz + chunk_reserve, in rte_mempool_op_calc_mem_size_helper() 48 mem_size = objs_in_last_page * total_elt_sz + in rte_mempool_op_calc_mem_size_helper() 51 mem_size += ((obj_num - objs_in_last_page) / in rte_mempool_op_calc_mem_size_helper() 58 mem_size += total_elt_sz - 1; in rte_mempool_op_calc_mem_size_helper() 65 return mem_size; in rte_mempool_op_calc_mem_size_helper()
|
| H A D | rte_mempool.c | 476 ssize_t mem_size; in rte_mempool_populate_default() local 541 mem_size = rte_mempool_ops_calc_mem_size( in rte_mempool_populate_default() 544 if (mem_size < 0) { in rte_mempool_populate_default() 545 ret = mem_size; in rte_mempool_populate_default() 559 if (min_chunk_size == (size_t)mem_size) in rte_mempool_populate_default() 565 RTE_MIN((size_t)mem_size, max_alloc_size), in rte_mempool_populate_default() 572 (size_t)mem_size) / 2; in rte_mempool_populate_default()
|
| /f-stack/dpdk/lib/librte_eal/freebsd/ |
| H A D | eal_hugepage_info.c | 24 map_shared_memory(const char *filename, const size_t mem_size, int flags) in map_shared_memory() argument 30 if (ftruncate(fd, mem_size) < 0) { in map_shared_memory() 34 retval = mmap(NULL, mem_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in map_shared_memory() 40 open_shared_memory(const char *filename, const size_t mem_size) in open_shared_memory() argument 42 return map_shared_memory(filename, mem_size, O_RDWR); in open_shared_memory() 46 create_shared_memory(const char *filename, const size_t mem_size) in create_shared_memory() argument 48 return map_shared_memory(filename, mem_size, O_RDWR | O_CREAT); in create_shared_memory()
|
| /f-stack/dpdk/drivers/mempool/octeontx/ |
| H A D | rte_mempool_octeontx.c | 134 ssize_t mem_size; in octeontx_fpavf_calc_mem_size() local 141 mem_size = rte_mempool_op_calc_mem_size_helper(mp, obj_num, pg_shift, in octeontx_fpavf_calc_mem_size() 144 if (mem_size >= 0) { in octeontx_fpavf_calc_mem_size() 149 *min_chunk_size = mem_size; in octeontx_fpavf_calc_mem_size() 152 return mem_size; in octeontx_fpavf_calc_mem_size()
|
| /f-stack/dpdk/lib/librte_eal/linux/ |
| H A D | eal_hugepage_info.c | 47 map_shared_memory(const char *filename, const size_t mem_size, int flags) in map_shared_memory() argument 53 if (ftruncate(fd, mem_size) < 0) { in map_shared_memory() 57 retval = mmap(NULL, mem_size, PROT_READ | PROT_WRITE, in map_shared_memory() 64 open_shared_memory(const char *filename, const size_t mem_size) in open_shared_memory() argument 66 return map_shared_memory(filename, mem_size, O_RDWR); in open_shared_memory() 70 create_shared_memory(const char *filename, const size_t mem_size) in create_shared_memory() argument 72 return map_shared_memory(filename, mem_size, O_RDWR | O_CREAT); in create_shared_memory()
|
| /f-stack/dpdk/drivers/vdpa/mlx5/ |
| H A D | mlx5_vdpa_mem.c | 75 mlx5_vdpa_vhost_mem_regions_prepare(int vid, uint8_t *mode, uint64_t *mem_size, in mlx5_vdpa_vhost_mem_regions_prepare() argument 92 *mem_size = (mem->regions[(mem->nregions - 1)].guest_phys_addr) + in mlx5_vdpa_vhost_mem_regions_prepare() 124 klm_fbs_entries_num = *mem_size / *gcd; in mlx5_vdpa_vhost_mem_regions_prepare() 142 PRIx64 ".", mem->nregions, *mem_size, *gcd, klm_fbs_entries_num, in mlx5_vdpa_vhost_mem_regions_prepare() 185 uint64_t mem_size; in mlx5_vdpa_mem_register() local 190 (priv->vid, &mode, &mem_size, &gcd, &entries_num); in mlx5_vdpa_mem_register() 272 mkey_attr.size = mem_size; in mlx5_vdpa_mem_register()
|
| /f-stack/freebsd/contrib/octeon-sdk/ |
| H A D | cvmx-bootmem.c | 1072 int64_t cvmx_bootmem_phy_mem_list_init(uint64_t mem_size, uint32_t low_reserved_bytes, cvmx_bootmem… in cvmx_bootmem_phy_mem_list_init() argument 1091 if (mem_size > OCTEON_MAX_PHY_MEM_SIZE) in cvmx_bootmem_phy_mem_list_init() 1093 mem_size = OCTEON_MAX_PHY_MEM_SIZE; in cvmx_bootmem_phy_mem_list_init() 1119 if (mem_size <= OCTEON_DDR0_SIZE) in cvmx_bootmem_phy_mem_list_init() 1121 __cvmx_bootmem_phy_free(cur_block_addr, mem_size - low_reserved_bytes, 0); in cvmx_bootmem_phy_mem_list_init() 1127 mem_size -= OCTEON_DDR0_SIZE; in cvmx_bootmem_phy_mem_list_init() 1130 if (mem_size > OCTEON_DDR1_SIZE) in cvmx_bootmem_phy_mem_list_init() 1133 __cvmx_bootmem_phy_free(OCTEON_DDR2_BASE, mem_size - OCTEON_DDR1_SIZE, 0); in cvmx_bootmem_phy_mem_list_init() 1137 __cvmx_bootmem_phy_free(OCTEON_DDR1_BASE, mem_size, 0); in cvmx_bootmem_phy_mem_list_init()
|
| H A D | cvmx-zone.c | 65 void* mem_ptr, uint64_t mem_size, uint32_t flags) in cvmx_zone_create_from_addr() argument 74 if (mem_size < sizeof(struct cvmx_zone) + elem_size * num_elem) in cvmx_zone_create_from_addr()
|
| H A D | cvmx-malloc.h | 183 void* mem_ptr, uint64_t mem_size, uint32_t flags);
|
| H A D | cvmx-l2c.c | 1149 void cvmx_l2c_set_big_size(uint64_t mem_size, int mode) in cvmx_l2c_set_big_size() argument 1158 if (mem_size > (CVMX_L2C_MAX_MEMSZ_ALLOWED * 1024)) in cvmx_l2c_set_big_size() 1161 … (unsigned long long)mem_size, (unsigned long long)CVMX_L2C_MAX_MEMSZ_ALLOWED * 1024); in cvmx_l2c_set_big_size() 1162 mem_size = CVMX_L2C_MAX_MEMSZ_ALLOWED * 1024; in cvmx_l2c_set_big_size() 1165 mem = mem_size; in cvmx_l2c_set_big_size() 1176 …lld) requested, refer to L2C_BIG_CTL[maxdram] for valid options.\n", (unsigned long long)mem_size); in cvmx_l2c_set_big_size()
|
| H A D | cvmx-bootmem.h | 462 int64_t cvmx_bootmem_phy_mem_list_init(uint64_t mem_size, uint32_t low_reserved_bytes, cvmx_bootmem…
|
| H A D | cvmx-l2c.h | 461 void cvmx_l2c_set_big_size(uint64_t mem_size, int mode);
|
| /f-stack/dpdk/lib/librte_eal/include/ |
| H A D | rte_bitmap.h | 170 rte_bitmap_init(uint32_t n_bits, uint8_t *mem, uint32_t mem_size) in rte_bitmap_init() argument 188 if (size < mem_size) { in rte_bitmap_init() 255 rte_bitmap_init_with_all_set(uint32_t n_bits, uint8_t *mem, uint32_t mem_size) in rte_bitmap_init_with_all_set() argument 269 if (size < mem_size) in rte_bitmap_init_with_all_set()
|
| /f-stack/dpdk/lib/librte_hash/ |
| H A D | rte_fbk_hash.c | 84 const uint32_t mem_size = in rte_fbk_hash_create() local 128 ht = rte_zmalloc_socket(hash_name, mem_size, in rte_fbk_hash_create()
|
| /f-stack/freebsd/contrib/openzfs/module/zstd/ |
| H A D | zfs_zstd.c | 112 size_t mem_size; member 648 mem->mem_size = size; in create_fallback_mem() 649 mem->mem = vmem_zalloc(mem->mem_size, KM_SLEEP); in create_fallback_mem() 761 vmem_free(zstd_dctx_fallback.mem, zstd_dctx_fallback.mem_size); in zstd_fini()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_malloc.c | 690 const unsigned mem_size = sizeof(struct mem_list) + \ in test_random_alloc_free() local 694 mem_size, align); in test_random_alloc_free() 700 || allocated_size < mem_size) in test_random_alloc_free() 703 mem_size - sizeof(*entry)); in test_random_alloc_free()
|
| /f-stack/freebsd/kern/ |
| H A D | kern_malloc.c | 1078 u_long mem_size; in kmeminit() local 1109 mem_size = vm_cnt.v_page_count; in kmeminit() 1110 if (mem_size <= 32768) /* delphij XXX 128MB */ in kmeminit() 1121 vm_kmem_size = mem_size / vm_kmem_size_scale; in kmeminit() 1139 if (vm_kmem_size / 2 / PAGE_SIZE > mem_size) in kmeminit() 1140 vm_kmem_size = 2 * mem_size * PAGE_SIZE; in kmeminit()
|
| /f-stack/freebsd/contrib/x86emu/ |
| H A D | x86emu.h | 141 size_t mem_size; member
|
| /f-stack/lib/ |
| H A D | ff_config.h | 192 int mem_size; member
|
| H A D | ff_memory.c | 234 uint64_t bsd_memsz = (ff_global_cfg.freebsd.mem_size << 20); in ff_mmap_init() 249 …LOGTYPE_USER1, "ff_mmap_init mmap %d pages, %d MB.\n", bsd_pagesz, ff_global_cfg.freebsd.mem_size); in ff_mmap_init()
|
| /f-stack/dpdk/drivers/net/bnxt/ |
| H A D | bnxt_ethdev.c | 4056 uint32_t mem_size, in bnxt_alloc_ctx_mem_blk() argument 4068 if (!mem_size) in bnxt_alloc_ctx_mem_blk() 4071 rmem->nr_pages = RTE_ALIGN_MUL_CEIL(mem_size, BNXT_PAGE_SIZE) / in bnxt_alloc_ctx_mem_blk() 4111 mem_size, in bnxt_alloc_ctx_mem_blk() 4194 uint32_t mem_size, ena, entries; in bnxt_alloc_ctx_mem() local 4209 mem_size = ctx->qp_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem() 4216 mem_size = ctx->srq_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem() 4223 mem_size = ctx->cq_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem() 4231 mem_size = ctx->vnic_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem() 4238 mem_size = ctx->stat_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem() [all …]
|
| /f-stack/dpdk/drivers/net/dpaa2/mc/ |
| H A D | fsl_dpdmux_cmd.h | 102 uint16_t mem_size; member
|
| H A D | fsl_dpdmux.h | 148 uint16_t mem_size; member
|
| H A D | dpdmux.c | 316 attr->mem_size = le16_to_cpu(rsp_params->mem_size); in dpdmux_get_attributes()
|
| /f-stack/freebsd/contrib/dpdk_rte_lpm/ |
| H A D | rte_lpm.c | 146 uint32_t mem_size, rules_size, tbl8s_size; in rte_lpm_create() local 163 mem_size = sizeof(*lpm); in rte_lpm_create() 194 lpm = rte_zmalloc_socket(mem_name, mem_size, in rte_lpm_create()
|