Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 4 of 4) sorted by relevance

/dpdk/lib/eal/common/
H A Dmalloc_elem.c667 const size_t new_size = size + elem->pad + MALLOC_ELEM_OVERHEAD; in malloc_elem_resize() local
670 if (elem->size >= new_size) { in malloc_elem_resize()
679 if (elem->size + elem->next->size < new_size) in malloc_elem_resize()
688 if (elem->size - new_size >= MIN_DATA_SIZE + MALLOC_ELEM_OVERHEAD) { in malloc_elem_resize()
690 struct malloc_elem *split_pt = RTE_PTR_ADD(elem, new_size); in malloc_elem_resize()
/dpdk/lib/eal/linux/
H A Deal_memalloc.c409 uint64_t new_size = fa_offset + page_sz; in resize_hugefile_in_filesystem() local
414 *dirty = new_size <= cur_size; in resize_hugefile_in_filesystem()
415 if (new_size > cur_size && in resize_hugefile_in_filesystem()
416 ftruncate(fd, new_size) < 0) { in resize_hugefile_in_filesystem()
/dpdk/lib/mempool/
H A Drte_mempool.c252 unsigned new_size; in rte_mempool_calc_obj_size() local
253 new_size = arch_mem_object_align in rte_mempool_calc_obj_size()
255 sz->trailer_size = new_size - sz->header_size - sz->elt_size; in rte_mempool_calc_obj_size()
/dpdk/drivers/net/sfc/
H A Dsfc_ethdev.c1927 size_t new_size; in sfc_journal_ctx_add_controller() local
1950 new_size = ctx->nb_controllers * sizeof(ctx->controllers[0]); in sfc_journal_ctx_add_controller()
1952 new_controllers = rte_realloc(ctx->controllers, new_size, 0); in sfc_journal_ctx_add_controller()