Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 25 of 29) sorted by relevance

12

/f-stack/app/redis-5.0.5/deps/jemalloc/test/unit/
H A Dpages.c4 size_t alloc_size; in TEST_BEGIN() local
8 alloc_size = HUGEPAGE * 2 - PAGE; in TEST_BEGIN()
10 pages = pages_map(NULL, alloc_size, PAGE, &commit); in TEST_BEGIN()
21 pages_unmap(pages, alloc_size); in TEST_BEGIN()
/f-stack/freebsd/net/route/
H A Dnhgrp.c217 size_t alloc_size; in consider_resize() local
221 alloc_size = CHT_SLIST_GET_RESIZE_SIZE(new_nh_buckets); in consider_resize()
222 nh_ptr = malloc(alloc_size, M_NHOP, M_NOWAIT | M_ZERO); in consider_resize()
227 alloc_size = bitmask_get_size(new_idx_items); in consider_resize()
228 nh_idx_ptr = malloc(alloc_size, M_NHOP, M_NOWAIT | M_ZERO); in consider_resize()
263 size_t alloc_size; in nhgrp_ctl_alloc_default() local
270 alloc_size = CHT_SLIST_GET_RESIZE_SIZE(num_buckets); in nhgrp_ctl_alloc_default()
271 cht_ptr = malloc(alloc_size, M_NHOP, malloc_flags); in nhgrp_ctl_alloc_default()
H A Dnhop.c75 size_t alloc_size; in nhops_init_rib() local
86 alloc_size = CHT_SLIST_GET_RESIZE_SIZE(num_buckets); in nhops_init_rib()
87 ptr = malloc(alloc_size, M_NHOP, M_WAITOK | M_ZERO); in nhops_init_rib()
241 size_t alloc_size; in consider_resize() local
245 alloc_size = CHT_SLIST_GET_RESIZE_SIZE(new_nh_buckets); in consider_resize()
246 nh_ptr = malloc(alloc_size, M_NHOP, M_NOWAIT | M_ZERO); in consider_resize()
251 alloc_size = bitmask_get_size(new_idx_items); in consider_resize()
252 nh_idx_ptr = malloc(alloc_size, M_NHOP, M_NOWAIT | M_ZERO); in consider_resize()
/f-stack/app/redis-5.0.5/deps/jemalloc/src/
H A Dpages.c99 os_pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, in os_pages_trim() argument
103 assert(alloc_size >= leadsize + size); in os_pages_trim()
105 os_pages_unmap(addr, alloc_size); in os_pages_trim()
115 size_t trailsize = alloc_size - leadsize - size; in os_pages_trim()
156 size_t alloc_size = size + alignment - os_page; in pages_map_slow() local
158 if (alloc_size < size) { in pages_map_slow()
164 void *pages = os_pages_map(NULL, alloc_size, alignment, commit); in pages_map_slow()
170 ret = os_pages_trim(pages, alloc_size, leadsize, size, commit); in pages_map_slow()
H A Dzone.c195 size_t alloc_size; in zone_free_definite_size() local
197 alloc_size = ivsalloc(tsdn_fetch(), ptr); in zone_free_definite_size()
198 if (alloc_size != 0) { in zone_free_definite_size()
199 assert(alloc_size == size); in zone_free_definite_size()
H A Dextent.c1244 size_t alloc_size = sz_pind2sz(arena->extent_grow_next + egn_skip); in extent_grow_retained() local
1245 while (alloc_size < alloc_size_min) { in extent_grow_retained()
1252 alloc_size = sz_pind2sz(arena->extent_grow_next + egn_skip); in extent_grow_retained()
1265 alloc_size, PAGE, &zeroed, &committed); in extent_grow_retained()
1269 alloc_size, PAGE, &zeroed, &committed, in extent_grow_retained()
1274 extent_init(extent, arena, ptr, alloc_size, false, NSIZES, in extent_grow_retained()
/f-stack/freebsd/contrib/octeon-sdk/
H A Docteon-pci-console.c455 …int alloc_size = num_consoles * (buffer_size * 2 + sizeof(octeon_pci_console_t) + sizeof(uint64_t)… in octeon_pci_console_init() local
460 …console_block_addr = cvmx_bootmem_phy_named_block_alloc(alloc_size, OCTEON_DDR0_SIZE - alloc_size in octeon_pci_console_init()
462 …ck_addr = cvmx_bootmem_phy_named_block_alloc(alloc_size, OCTEON_DDR2_BASE + 1, OCTEON_DDR2_BASE + in octeon_pci_console_init()
464 …console_block_addr = cvmx_bootmem_phy_named_block_alloc(alloc_size, 0, 0x7fffffff, 128, OCTEON_PCI… in octeon_pci_console_init()
470 memset(cons_desc_ptr, 0, alloc_size); /* Clear entire alloc'ed memory */ in octeon_pci_console_init()
/f-stack/dpdk/drivers/event/dlb/pf/base/
H A Ddlb_osdep_bitmap.h48 uint32_t alloc_size; in dlb_bitmap_alloc() local
64 alloc_size = rte_bitmap_get_memory_footprint(nbits); in dlb_bitmap_alloc()
65 mem = rte_malloc("DLB_PF_BITMAP", alloc_size, RTE_CACHE_LINE_SIZE); in dlb_bitmap_alloc()
71 bm->map = rte_bitmap_init(len, mem, alloc_size); in dlb_bitmap_alloc()
/f-stack/dpdk/drivers/event/dlb2/pf/base/
H A Ddlb2_osdep_bitmap.h46 uint32_t alloc_size; in dlb2_bitmap_alloc() local
61 alloc_size = rte_bitmap_get_memory_footprint(nbits); in dlb2_bitmap_alloc()
62 mem = rte_malloc("DLB2_PF_BITMAP", alloc_size, RTE_CACHE_LINE_SIZE); in dlb2_bitmap_alloc()
68 bm->map = rte_bitmap_init(len, mem, alloc_size); in dlb2_bitmap_alloc()
/f-stack/app/redis-5.0.5/deps/jemalloc/test/src/
H A Dtest.c42 size_t alloc_size = 1; in do_hook() local
44 free(malloc(alloc_size)); in do_hook()
45 alloc_size *= 2; in do_hook()
/f-stack/freebsd/arm64/arm64/
H A Dbusdma_bounce.c75 size_t alloc_size; member
271 newtag->alloc_size = newtag->common.maxsize; in bounce_bus_dma_tag_create()
281 newtag->alloc_size = roundup2(newtag->common.maxsize, in bounce_bus_dma_tag_create()
590 if ((dmat->alloc_size <= PAGE_SIZE) && in bounce_bus_dmamem_alloc()
591 (dmat->alloc_alignment <= dmat->alloc_size) && in bounce_bus_dmamem_alloc()
594 *vaddr = malloc(dmat->alloc_size, M_DEVBUF, mflags); in bounce_bus_dmamem_alloc()
596 howmany(dmat->alloc_size, MIN(dmat->common.maxsegsz, PAGE_SIZE)) && in bounce_bus_dmamem_alloc()
600 *vaddr = (void *)kmem_alloc_attr(dmat->alloc_size, mflags, in bounce_bus_dmamem_alloc()
604 *vaddr = (void *)kmem_alloc_contig(dmat->alloc_size, mflags, in bounce_bus_dmamem_alloc()
641 kmem_free((vm_offset_t)vaddr, dmat->alloc_size); in bounce_bus_dmamem_free()
/f-stack/app/redis-5.0.5/deps/jemalloc/include/jemalloc/
H A Djemalloc_macros.h.in89 # define JEMALLOC_ALLOC_SIZE(s) JEMALLOC_ATTR(alloc_size(s))
90 # define JEMALLOC_ALLOC_SIZE2(s1, s2) JEMALLOC_ATTR(alloc_size(s1, s2))
H A Djemalloc_defs.h.in4 /* Defined if alloc_size attribute is supported. */
/f-stack/freebsd/vm/
H A Dvm_phys.h86 vm_paddr_t vm_phys_early_alloc(int domain, size_t alloc_size);
H A Dvm_phys.c1616 vm_phys_early_alloc(int domain, size_t alloc_size) in vm_phys_early_alloc() argument
1659 if (phys_avail[i+1] - alloc_size < mem_start || in vm_phys_early_alloc()
1668 alloc_size = round_page(alloc_size); in vm_phys_early_alloc()
1673 if (alloc_size == PAGE_SIZE) { in vm_phys_early_alloc()
1683 align = phys_avail[biggestone + 1] & (alloc_size - 1); in vm_phys_early_alloc()
1684 if (alloc_size + align > biggestsize) in vm_phys_early_alloc()
1692 phys_avail[biggestone + 1] -= alloc_size; in vm_phys_early_alloc()
/f-stack/dpdk/drivers/net/avp/
H A Drte_avp_common.h328 uint32_t alloc_size; /**< Size of each alloc queue */ member
/f-stack/dpdk/drivers/mempool/octeontx2/
H A Dotx2_mempool_ops.c562 int rc, aura_id, pool_id, stack_size, alloc_size; in npa_lf_aura_pool_pair_alloc() local
603 alloc_size = stack_size * lf->stack_pg_bytes; in npa_lf_aura_pool_pair_alloc()
605 mz = npa_lf_stack_dma_alloc(lf, name, pool_id, alloc_size); in npa_lf_aura_pool_pair_alloc()
/f-stack/dpdk/lib/librte_acl/
H A Dacl_bld.c103 size_t alloc_size = n * s; in acl_build_alloc() local
110 alloc_size && context->blocks[m].mem_ptr != NULL) { in acl_build_alloc()
113 memset(p, 0, alloc_size); in acl_build_alloc()
121 p = tb_alloc(&context->pool, alloc_size); in acl_build_alloc()
/f-stack/dpdk/drivers/net/mlx5/
H A Dmlx5_utils.c43 uint32_t alloc_size; in mlx5_hlist_create() local
55 alloc_size = sizeof(struct mlx5_hlist) + in mlx5_hlist_create()
58 h = mlx5_malloc(MLX5_MEM_ZERO, alloc_size, RTE_CACHE_LINE_SIZE, in mlx5_hlist_create()
/f-stack/dpdk/lib/librte_eal/include/
H A Drte_common.h155 __attribute__((alloc_size(__VA_ARGS__)))
/f-stack/freebsd/contrib/openzfs/module/nvpair/
H A Dnvpair.c2669 size_t alloc_size; in nvlist_xpack() local
2694 if ((err = nvlist_size(nvl, &alloc_size, encoding))) in nvlist_xpack()
2697 if ((buf = nv_mem_zalloc(&nvpriv, alloc_size)) == NULL) in nvlist_xpack()
2700 if ((err = nvlist_common(nvl, buf, &alloc_size, encoding, in nvlist_xpack()
2702 nv_mem_free(&nvpriv, buf, alloc_size); in nvlist_xpack()
2704 *buflen = alloc_size; in nvlist_xpack()
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_autoindex_module.c19 size_t alloc_size;
987 ctx->buf = ngx_create_temp_buf(ctx->pool, ctx->alloc_size);
/f-stack/freebsd/netinet/
H A Dsctp_auth.c633 int alloc_size; in sctp_alloc_hmaclist() local
635 alloc_size = sizeof(*new_list) + num_hmacs * sizeof(new_list->hmac[0]); in sctp_alloc_hmaclist()
636 SCTP_MALLOC(new_list, sctp_hmaclist_t *, alloc_size, in sctp_alloc_hmaclist()
/f-stack/dpdk/drivers/event/opdl/
H A Dopdl_ring.c903 size_t alloc_size = RTE_CACHE_LINE_ROUNDUP(sizeof(*t) + in opdl_ring_create() local
936 mz = rte_memzone_reserve(mz_name, alloc_size, socket, mz_flags); in opdl_ring_create()
/f-stack/freebsd/contrib/openzfs/cmd/zpool/
H A Dzpool_main.c4175 unsigned int alloc_size = (sizeof (struct stat_array)) * len; in calc_and_alloc_stats_ex() local
4185 newnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
4186 oldnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
4187 calcnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
4193 alloc_size = calcnva[j].count * sizeof (calcnva[j].data[0]); in calc_and_alloc_stats_ex()
4194 calcnva[j].data = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
4195 memcpy(calcnva[j].data, newnva[j].data, alloc_size); in calc_and_alloc_stats_ex()

12