Home
last modified time | relevance | path

Searched refs:total_size (Results 1 – 25 of 39) sorted by relevance

12

/dpdk/lib/eal/common/
H A Deal_common_dynmem.c384 size_t total_size; in eal_dynmem_calc_num_pages_per_socket() local
401 total_size = internal_conf->memory; in eal_dynmem_calc_num_pages_per_socket()
402 for (socket = 0; socket < RTE_MAX_NUMA_NODES && total_size != 0; in eal_dynmem_calc_num_pages_per_socket()
415 total_size -= default_size; in eal_dynmem_calc_num_pages_per_socket()
422 for (socket = 0; socket < RTE_MAX_NUMA_NODES && total_size != 0; in eal_dynmem_calc_num_pages_per_socket()
427 total_size); in eal_dynmem_calc_num_pages_per_socket()
431 total_size -= default_size; in eal_dynmem_calc_num_pages_per_socket()
437 total_size = internal_conf->memory; in eal_dynmem_calc_num_pages_per_socket()
438 for (socket = 0; socket < RTE_MAX_NUMA_NODES && total_size != 0; in eal_dynmem_calc_num_pages_per_socket()
450 memory[socket] = total_size; in eal_dynmem_calc_num_pages_per_socket()
H A Dmalloc_heap.c136 heap->total_size += len; in malloc_add_seg()
310 heap->total_size + alloc_sz) < 0) { in alloc_pages_on_heap()
441 heap->total_size += alloc_sz; in try_expand_heap_primary()
994 heap->total_size -= aligned_len; in malloc_heap_free()
1122 socket_stats->heap_totalsz_bytes = heap->total_size; in malloc_heap_get_stats()
1141 fprintf(f, "Heap size: 0x%zx\n", heap->total_size); in malloc_heap_dump()
1165 heap->total_size -= len; in destroy_elem()
1301 heap->total_size += msl->len; in malloc_heap_add_external_memory()
1361 heap->total_size = 0; in malloc_heap_create()
1385 if (heap->total_size != 0) in malloc_heap_destroy()
H A Deal_common_log.c444 const size_t total_size = type_size * type_count; in rte_log_list_types() local
447 sorted_types = malloc(total_size); in rte_log_list_types()
452 memcpy(sorted_types, rte_logs.dynamic_types, total_size); in rte_log_list_types()
H A Dmalloc_heap.h32 size_t total_size; member
/dpdk/lib/table/
H A Drte_swx_table_wm.c364 size_t total_size; member
378 env_free(t, t->total_size); in table_free()
388 size_t meta_sz, data_sz, total_size; in table_create() local
400 total_size = meta_sz + data_sz; in table_create()
402 t = env_malloc(total_size, RTE_CACHE_LINE_SIZE, numa_node); in table_create()
406 memset(t, 0, total_size); in table_create()
408 t->total_size = total_size; in table_create()
H A Drte_table_array.c48 uint32_t total_cl_size, total_size; in rte_table_array_create() local
61 total_size = total_cl_size * RTE_CACHE_LINE_SIZE; in rte_table_array_create()
62 t = rte_zmalloc_socket("TABLE", total_size, RTE_CACHE_LINE_SIZE, socket_id); in rte_table_array_create()
66 __func__, total_size); in rte_table_array_create()
H A Drte_table_hash_cuckoo.c85 uint32_t total_size; in rte_table_hash_cuckoo_create() local
92 total_size = sizeof(struct rte_table_hash) + in rte_table_hash_cuckoo_create()
95 t = rte_zmalloc_socket(p->name, total_size, RTE_CACHE_LINE_SIZE, socket_id); in rte_table_hash_cuckoo_create()
99 __func__, total_size, p->name); in rte_table_hash_cuckoo_create()
136 __func__, p->name, total_size); in rte_table_hash_cuckoo_create()
H A Drte_table_hash_key8.c142 uint64_t bucket_size, total_size; in rte_table_hash_create_key8_lru() local
175 if (total_size > SIZE_MAX) { in rte_table_hash_create_key8_lru()
178 __func__, total_size, p->name); in rte_table_hash_create_key8_lru()
183 (size_t)total_size, in rte_table_hash_create_key8_lru()
189 __func__, total_size, p->name); in rte_table_hash_create_key8_lru()
195 __func__, p->name, total_size); in rte_table_hash_create_key8_lru()
379 if (total_size > SIZE_MAX) { in rte_table_hash_create_key8_ext()
382 __func__, total_size, p->name); in rte_table_hash_create_key8_ext()
387 (size_t)total_size, in rte_table_hash_create_key8_ext()
394 __func__, total_size, p->name); in rte_table_hash_create_key8_ext()
[all …]
H A Drte_table_hash_key16.c150 uint64_t bucket_size, total_size; in rte_table_hash_create_key16_lru() local
183 if (total_size > SIZE_MAX) { in rte_table_hash_create_key16_lru()
186 __func__, total_size, p->name); in rte_table_hash_create_key16_lru()
191 (size_t)total_size, in rte_table_hash_create_key16_lru()
197 __func__, total_size, p->name); in rte_table_hash_create_key16_lru()
202 __func__, p->name, total_size); in rte_table_hash_create_key16_lru()
393 if (total_size > SIZE_MAX) { in rte_table_hash_create_key16_ext()
396 __func__, total_size, p->name); in rte_table_hash_create_key16_ext()
401 (size_t)total_size, in rte_table_hash_create_key16_ext()
407 __func__, total_size, p->name); in rte_table_hash_create_key16_ext()
[all …]
H A Drte_table_hash_key32.c154 uint64_t bucket_size, total_size; in rte_table_hash_create_key32_lru() local
186 if (total_size > SIZE_MAX) { in rte_table_hash_create_key32_lru()
189 __func__, total_size, p->name); in rte_table_hash_create_key32_lru()
194 (size_t)total_size, in rte_table_hash_create_key32_lru()
200 __func__, total_size, p->name); in rte_table_hash_create_key32_lru()
206 __func__, p->name, total_size); in rte_table_hash_create_key32_lru()
402 if (total_size > SIZE_MAX) { in rte_table_hash_create_key32_ext()
405 __func__, total_size, p->name); in rte_table_hash_create_key32_ext()
410 (size_t)total_size, in rte_table_hash_create_key32_ext()
416 __func__, total_size, p->name); in rte_table_hash_create_key32_ext()
[all …]
H A Drte_table_lpm_ipv6.c55 uint32_t total_size, nht_size; in rte_table_lpm_ipv6_create() local
89 total_size = sizeof(struct rte_table_lpm_ipv6) + nht_size; in rte_table_lpm_ipv6_create()
90 lpm = rte_zmalloc_socket("TABLE", total_size, RTE_CACHE_LINE_SIZE, in rte_table_lpm_ipv6_create()
95 __func__, total_size); in rte_table_lpm_ipv6_create()
H A Drte_swx_table_em.c255 uint64_t total_size; member
378 key_stack_sz, bkt_ext_stack_sz, data_sz, total_size; in __table_create() local
406 total_size = table_meta_sz + key_mask_sz + bucket_sz + bucket_ext_sz + in __table_create()
419 *memory_footprint = total_size; in __table_create()
423 memory = env_malloc(total_size, RTE_CACHE_LINE_SIZE, numa_node); in __table_create()
425 memset(memory, 0, total_size); in __table_create()
437 t->total_size = total_size; in __table_create()
474 env_free(t, t->total_size); in table_free()
H A Drte_table_lpm.c58 uint32_t total_size, nht_size; in rte_table_lpm_create() local
92 total_size = sizeof(struct rte_table_lpm) + nht_size; in rte_table_lpm_create()
93 lpm = rte_zmalloc_socket("TABLE", total_size, RTE_CACHE_LINE_SIZE, in rte_table_lpm_create()
98 __func__, total_size); in rte_table_lpm_create()
H A Drte_swx_table_learner.c291 size_t total_size; member
352 p->total_size = sizeof(struct table) + p->n_buckets * p->bucket_size; in table_params_get()
384 return status ? 0 : p.total_size; in rte_swx_table_learner_footprint_get()
400 t = env_calloc(p.total_size, RTE_CACHE_LINE_SIZE, numa_node); in rte_swx_table_learner_create()
423 env_free(t, t->params.total_size); in rte_swx_table_learner_free()
H A Drte_table_hash_lru.c147 uint64_t data_sz, total_size; in rte_table_hash_lru_create() local
186 total_size = table_meta_sz + key_mask_sz + bucket_sz + key_sz + in rte_table_hash_lru_create()
189 if (total_size > SIZE_MAX) { in rte_table_hash_lru_create()
193 __func__, total_size, p->name); in rte_table_hash_lru_create()
198 (size_t)total_size, in rte_table_hash_lru_create()
205 __func__, total_size, p->name); in rte_table_hash_lru_create()
210 __func__, p->key_size, p->name, total_size); in rte_table_hash_lru_create()
H A Drte_table_hash_ext.c170 uint64_t key_stack_sz, bkt_ext_stack_sz, data_sz, total_size; in rte_table_hash_ext_create() local
210 total_size = table_meta_sz + key_mask_sz + bucket_sz + bucket_ext_sz + in rte_table_hash_ext_create()
213 if (total_size > SIZE_MAX) { in rte_table_hash_ext_create()
216 __func__, total_size, p->name); in rte_table_hash_ext_create()
221 (size_t)total_size, in rte_table_hash_ext_create()
227 __func__, total_size, p->name); in rte_table_hash_ext_create()
232 __func__, p->key_size, p->name, total_size); in rte_table_hash_ext_create()
H A Drte_table_acl.c61 uint32_t total_size; in rte_table_acl_create() local
95 total_size = sizeof(struct rte_table_acl) + action_table_size + in rte_table_acl_create()
98 acl = rte_zmalloc_socket("TABLE", total_size, RTE_CACHE_LINE_SIZE, in rte_table_acl_create()
103 __func__, total_size); in rte_table_acl_create()
/dpdk/lib/ip_frag/
H A Dip_frag_internal.c105 fp->total_size = ofs + len; in ip_frag_process()
129 fp->total_size, fp->frag_size, fp->last_idx, in ip_frag_process()
142 fp->total_size, fp->frag_size, fp->last_idx, in ip_frag_process()
163 if (likely (fp->frag_size < fp->total_size)) { in ip_frag_process()
167 } else if (fp->frag_size == fp->total_size && in ip_frag_process()
187 fp->total_size, fp->frag_size, fp->last_idx, in ip_frag_process()
200 fp->total_size, fp->frag_size, fp->last_idx, in ip_frag_process()
H A Drte_ipv4_reassembly.c72 ip_hdr->total_length = rte_cpu_to_be_16((uint16_t)(fp->total_size + in ipv4_frag_reassemble()
155 fp->total_size, fp->frag_size, fp->last_idx); in rte_ipv4_frag_reassemble_packet()
170 fp->total_size, fp->frag_size, fp->last_idx); in rte_ipv4_frag_reassemble_packet()
H A Drte_ipv6_reassembly.c199 fp->total_size, fp->frag_size, fp->last_idx); in rte_ipv6_frag_reassemble_packet()
215 fp->total_size, fp->frag_size, fp->last_idx); in rte_ipv6_frag_reassemble_packet()
H A Dip_reassembly.h55 uint32_t total_size; /* expected reassembled size */ member
/dpdk/lib/acl/
H A Dacl_gen.c453 size_t total_size; in rte_acl_gen() local
467 total_size = RTE_ALIGN(data_index_sz, RTE_CACHE_LINE_SIZE) + in rte_acl_gen()
472 if (total_size > max_size) { in rte_acl_gen()
476 ctx->name, total_size, max_size); in rte_acl_gen()
480 mem = rte_zmalloc_socket(ctx->name, total_size, RTE_CACHE_LINE_SIZE, in rte_acl_gen()
485 total_size, ctx->socket_id, ctx->name); in rte_acl_gen()
520 ctx->mem_sz = total_size; in rte_acl_gen()
/dpdk/drivers/net/qede/base/
H A Decore_cxt.c317 u32 total_size, u32 elem_size) in ecore_ilt_cli_blk_fill() argument
322 if (p_blk->total_size) in ecore_ilt_cli_blk_fill()
325 p_blk->total_size = total_size; in ecore_ilt_cli_blk_fill()
337 if (!p_blk->total_size) in ecore_ilt_cli_adv_line()
392 p_blk->total_size = 0; in ecore_cxt_set_blk()
655 total_size = total * sizeof(struct src_ent); in ecore_cxt_cfg_ilt_compute()
660 total_size, elem_size); in ecore_cxt_cfg_ilt_compute()
712 u32 total_size, u32 page_size) in ecore_cxt_t2_alloc_pages() argument
732 total_size -= size; in ecore_cxt_t2_alloc_pages()
875 if (!p_blk->total_size) in ecore_ilt_blk_alloc()
[all …]
/dpdk/lib/eal/linux/
H A Deal_hugepage_info.c395 uint64_t *total_size = whd->user_data; in inspect_hugedir_cb() local
402 (*total_size) += st.st_size; in inspect_hugedir_cb()
410 inspect_hugedir(const char *hugedir, uint64_t *total_size) in inspect_hugedir() argument
412 return walk_hugedir(hugedir, inspect_hugedir_cb, total_size); in inspect_hugedir()
/dpdk/lib/pipeline/
H A Drte_port_in_action.c156 size_t total_size; member
193 ap_data->total_size = offset; in action_data_offset_set()
331 size = sizeof(struct rte_port_in_action) + profile->data.total_size; in rte_port_in_action_create()

12