Home
last modified time | relevance | path

Searched refs:alloc_sz (Results 1 – 8 of 8) sorted by relevance

/f-stack/dpdk/drivers/event/dlb2/pf/
H A Ddlb2_pf.c267 int alloc_sz, qe_sz; in dlb2_pf_ldb_port_create() local
283 alloc_sz = cq_alloc_depth * qe_sz; in dlb2_pf_ldb_port_create()
284 alloc_sz = RTE_CACHE_LINE_ROUNDUP(alloc_sz); in dlb2_pf_ldb_port_create()
286 port_base = dlb2_alloc_coherent_aligned(&mz, &cq_base, alloc_sz, in dlb2_pf_ldb_port_create()
298 memset(port_base, 0, alloc_sz); in dlb2_pf_ldb_port_create()
343 int alloc_sz, qe_sz; in dlb2_pf_dir_port_create() local
358 alloc_sz = cfg->cq_depth * qe_sz; in dlb2_pf_dir_port_create()
359 alloc_sz = RTE_CACHE_LINE_ROUNDUP(alloc_sz); in dlb2_pf_dir_port_create()
361 port_base = dlb2_alloc_coherent_aligned(&mz, &cq_base, alloc_sz, in dlb2_pf_dir_port_create()
373 memset(port_base, 0, alloc_sz); in dlb2_pf_dir_port_create()
/f-stack/dpdk/lib/librte_eal/windows/
H A Deal_memalloc.c41 size_t alloc_sz; in alloc_seg() local
64 alloc_sz = hi->hugepage_sz; in alloc_seg()
68 addr = eal_mem_alloc_socket(alloc_sz, socket_id); in alloc_seg()
71 "on socket %d\n", alloc_sz, socket_id); in alloc_seg()
76 addr = eal_mem_commit(requested_addr, alloc_sz, socket_id); in alloc_seg()
92 requested_addr, alloc_sz, socket_id); in alloc_seg()
136 ms->len = alloc_sz; in alloc_seg()
146 if (eal_mem_decommit(addr, alloc_sz) && (rte_errno == EADDRNOTAVAIL)) { in alloc_seg()
/f-stack/dpdk/drivers/event/dlb/pf/
H A Ddlb_pf.c280 int alloc_sz, qe_sz, cq_alloc_depth; in dlb_pf_ldb_port_create() local
302 alloc_sz = 2 * RTE_CACHE_LINE_SIZE + cq_alloc_depth * qe_sz; in dlb_pf_ldb_port_create()
303 alloc_sz = RTE_CACHE_LINE_ROUNDUP(alloc_sz); in dlb_pf_ldb_port_create()
306 alloc_sz, PAGE_SIZE); in dlb_pf_ldb_port_create()
317 memset(port_base, 0, alloc_sz); in dlb_pf_ldb_port_create()
364 int alloc_sz, qe_sz; in dlb_pf_dir_port_create() local
380 alloc_sz = 2 * RTE_CACHE_LINE_SIZE + cfg->cq_depth * qe_sz; in dlb_pf_dir_port_create()
381 alloc_sz = RTE_CACHE_LINE_ROUNDUP(alloc_sz); in dlb_pf_dir_port_create()
384 alloc_sz, PAGE_SIZE); in dlb_pf_dir_port_create()
395 memset(port_base, 0, alloc_sz); in dlb_pf_dir_port_create()
/f-stack/dpdk/lib/librte_eal/linux/
H A Deal_memalloc.c508 size_t alloc_sz; in alloc_seg() local
514 alloc_sz = hi->hugepage_sz; in alloc_seg()
554 map_offset = seg_idx * alloc_sz; in alloc_seg()
562 if (ftruncate(fd, alloc_sz) < 0) { in alloc_seg()
596 munmap(va, alloc_sz); in alloc_seg()
609 (unsigned int)(alloc_sz >> 20)); in alloc_seg()
655 ms->hugepage_sz = alloc_sz; in alloc_seg()
656 ms->len = alloc_sz; in alloc_seg()
665 munmap(addr, alloc_sz); in alloc_seg()
668 new_addr = eal_get_virtual_area(addr, &alloc_sz, alloc_sz, 0, flags); in alloc_seg()
[all …]
/f-stack/dpdk/lib/librte_eal/common/
H A Dmalloc_heap.c300 size_t alloc_sz; in alloc_pages_on_heap() local
304 alloc_sz = (size_t)pg_sz * n_segs; in alloc_pages_on_heap()
308 heap->total_size + alloc_sz) < 0) { in alloc_pages_on_heap()
383 rollback_expand_heap(ms, n_segs, elem, map_addr, alloc_sz); in alloc_pages_on_heap()
395 size_t alloc_sz; in try_expand_heap_primary() local
399 alloc_sz = RTE_ALIGN_CEIL(align + elt_size + in try_expand_heap_primary()
401 n_segs = alloc_sz / pg_sz; in try_expand_heap_primary()
435 heap->total_size += alloc_sz; in try_expand_heap_primary()
438 socket, alloc_sz >> 20ULL); in try_expand_heap_primary()
447 map_addr, alloc_sz); in try_expand_heap_primary()
[all …]
H A Dmalloc_mp.c186 size_t alloc_sz; in handle_alloc_request() local
190 alloc_sz = RTE_ALIGN_CEIL(ar->align + ar->elt_size + in handle_alloc_request()
192 n_segs = alloc_sz / ar->page_sz; in handle_alloc_request()
213 eal_memalloc_mem_event_notify(RTE_MEM_EVENT_ALLOC, map_addr, alloc_sz); in handle_alloc_request()
223 req->alloc_state.map_len = alloc_sz; in handle_alloc_request()
/f-stack/dpdk/app/test-crypto-perf/
H A Dcperf_test_pmd_cyclecount.c105 size_t alloc_sz = sizeof(struct rte_crypto_op *) * in cperf_pmd_cyclecount_test_constructor() local
133 ctx->ops = rte_malloc("ops", alloc_sz, 0); in cperf_pmd_cyclecount_test_constructor()
137 ctx->ops_processed = rte_malloc("ops_processed", alloc_sz, 0); in cperf_pmd_cyclecount_test_constructor()
/f-stack/freebsd/net80211/
H A Dieee80211_hwmp.c312 int alloc_sz = -1; in verify_mesh_preq_len() local
316 alloc_sz = IEEE80211_MESHPREQ_BASE_SZ_AE; in verify_mesh_preq_len()
320 alloc_sz = IEEE80211_MESHPREQ_BASE_SZ; in verify_mesh_preq_len()
323 alloc_sz += ndest * IEEE80211_MESHPREQ_TRGT_SZ; in verify_mesh_preq_len()
325 if(iefrm[1] != (alloc_sz)) { in verify_mesh_preq_len()
343 int alloc_sz = -1; in verify_mesh_prep_len() local
346 alloc_sz = IEEE80211_MESHPREP_BASE_SZ_AE; in verify_mesh_prep_len()
348 alloc_sz = IEEE80211_MESHPREP_BASE_SZ; in verify_mesh_prep_len()
349 if(alloc_sz < 0) { in verify_mesh_prep_len()
367 int alloc_sz = -1; in verify_mesh_perr_len() local
[all …]