Home
last modified time | relevance | path

Searched refs:mcfg (Results 1 – 16 of 16) sorted by relevance

/f-stack/dpdk/lib/librte_eal/common/
H A Deal_common_mcfg.c22 mcfg->magic = RTE_MAGIC; in eal_mcfg_complete()
33 while (mcfg->magic != RTE_MAGIC) in eal_mcfg_wait_complete()
43 if (mcfg->version != RTE_VERSION) in eal_mcfg_check_version()
70 mcfg->version = RTE_VERSION; in eal_mcfg_update_from_internal()
105 rte_rwlock_read_lock(&mcfg->qlock); in rte_mcfg_tailq_read_lock()
112 rte_rwlock_read_unlock(&mcfg->qlock); in rte_mcfg_tailq_read_unlock()
119 rte_rwlock_write_lock(&mcfg->qlock); in rte_mcfg_tailq_write_lock()
133 rte_rwlock_read_lock(&mcfg->mplock); in rte_mcfg_mempool_read_lock()
147 rte_rwlock_write_lock(&mcfg->mplock); in rte_mcfg_mempool_write_lock()
161 rte_spinlock_lock(&mcfg->tlock); in rte_mcfg_timer_lock()
[all …]
H A Deal_common_memzone.c32 struct rte_mem_config *mcfg; in memzone_lookup_thread_unsafe() local
39 arr = &mcfg->memzones; in memzone_lookup_thread_unsafe()
62 struct rte_mem_config *mcfg; in memzone_reserve_aligned_thread_unsafe() local
71 arr = &mcfg->memzones; in memzone_reserve_aligned_thread_unsafe()
194 struct rte_mem_config *mcfg; in rte_memzone_reserve_thread_safe() local
254 struct rte_mem_config *mcfg; in rte_memzone_free() local
266 arr = &mcfg->memzones; in rte_memzone_free()
299 struct rte_mem_config *mcfg; in rte_memzone_lookup() local
377 struct rte_mem_config *mcfg; in rte_eal_memzone_init() local
405 struct rte_mem_config *mcfg; in rte_memzone_walk() local
[all …]
H A Deal_common_tailqs.c40 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in rte_eal_tailq_lookup() local
46 if (!strncmp(name, mcfg->tailq_head[i].name, in rte_eal_tailq_lookup()
48 return &mcfg->tailq_head[i]; in rte_eal_tailq_lookup()
57 struct rte_mem_config *mcfg; in rte_dump_tailq() local
60 mcfg = rte_eal_get_configuration()->mem_config; in rte_dump_tailq()
64 const struct rte_tailq_head *tailq = &mcfg->tailq_head[i]; in rte_dump_tailq()
80 struct rte_mem_config *mcfg; in rte_eal_tailq_create() local
82 mcfg = rte_eal_get_configuration()->mem_config; in rte_eal_tailq_create()
83 head = &mcfg->tailq_head[rte_tailqs_count]; in rte_eal_tailq_create()
H A Deal_common_memory.c315 msl = &mcfg->memsegs[msl_idx]; in virt2memseg_list()
425 msl_idx = msl - mcfg->memsegs; in dump_memseg()
582 mcfg->dma_maskbits = mcfg->dma_maskbits == 0 ? maskbits : in check_dma_mask()
583 RTE_MIN(mcfg->dma_maskbits, maskbits); in check_dma_mask()
612 mcfg->dma_maskbits = mcfg->dma_maskbits == 0 ? maskbits : in rte_mem_set_dma_mask()
613 RTE_MIN(mcfg->dma_maskbits, maskbits); in rte_mem_set_dma_mask()
800 msl_idx = msl - mcfg->memsegs; in rte_memseg_get_fd_thread_unsafe()
855 msl_idx = msl - mcfg->memsegs; in rte_memseg_get_fd_offset_thread_unsafe()
915 socket_id = mcfg->next_socket_id; in rte_extmem_register()
932 mcfg->next_socket_id++; in rte_extmem_register()
[all …]
H A Drte_malloc.c230 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in rte_malloc_get_socket_stats() local
237 return malloc_heap_get_stats(&mcfg->malloc_heaps[heap_idx], in rte_malloc_get_socket_stats()
247 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in rte_malloc_dump_heaps() local
252 malloc_heap_dump(&mcfg->malloc_heaps[idx], f); in rte_malloc_dump_heaps()
259 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in rte_malloc_heap_get_socket() local
273 struct malloc_heap *tmp = &mcfg->malloc_heaps[idx]; in rte_malloc_heap_get_socket()
295 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in rte_malloc_heap_socket_is_external() local
304 struct malloc_heap *tmp = &mcfg->malloc_heaps[idx]; in rte_malloc_heap_socket_is_external()
329 struct malloc_heap *heap = &mcfg->malloc_heaps[heap_id]; in rte_malloc_dump_stats()
388 struct malloc_heap *heap = &mcfg->malloc_heaps[i]; in find_named_heap()
[all …]
H A Dmalloc_heap.c83 struct malloc_heap *heap = &mcfg->malloc_heaps[i]; in malloc_socket_to_heap_id()
128 heap = &mcfg->malloc_heaps[heap_idx]; in malloc_add_seg()
131 msl_idx = msl - mcfg->memsegs; in malloc_add_seg()
136 found_msl = &mcfg->memsegs[msl_idx]; in malloc_add_seg()
342 if (mcfg->dma_maskbits && in alloc_pages_on_heap()
554 struct rte_memseg_list *msl = &mcfg->memsegs[i]; in alloc_more_mem_on_socket()
1117 struct rte_memseg_list *tmp = &mcfg->memsegs[i]; in malloc_heap_create_external_seg()
1182 found_idx = msl - mcfg->memsegs; in extseg_walk()
1183 wa->msl = &mcfg->memsegs[found_idx]; in extseg_walk()
1277 uint32_t next_socket_id = mcfg->next_socket_id; in malloc_heap_create()
[all …]
H A Deal_common_timer.c60 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in set_tsc_freq() local
70 eal_tsc_resolution_hz = mcfg->tsc_hz; in set_tsc_freq()
82 mcfg->tsc_hz = freq; in set_tsc_freq()
H A Deal_common_dynmem.c22 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in eal_dynmem_memseg_lists_init() local
186 msl = &mcfg->memsegs[msl_idx++]; in eal_dynmem_memseg_lists_init()
H A Deal_common_proc.c1252 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in set_mp_status() local
1258 if (__atomic_compare_exchange_n(&mcfg->mp_status, &expected, desired, in set_mp_status()
1262 return __atomic_load_n(&mcfg->mp_status, __ATOMIC_RELAXED) == desired; in set_mp_status()
/f-stack/dpdk/lib/librte_eal/freebsd/
H A Deal_memory.c56 struct rte_mem_config *mcfg; in rte_eal_hugepage_init() local
64 mcfg = rte_eal_get_configuration()->mem_config; in rte_eal_hugepage_init()
73 msl = &mcfg->memsegs[0]; in rte_eal_hugepage_init()
146 msl = &mcfg->memsegs[msl_idx]; in rte_eal_hugepage_init()
203 seg->nchannel = mcfg->nchannel; in rte_eal_hugepage_init()
204 seg->nrank = mcfg->nrank; in rte_eal_hugepage_init()
336 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in memseg_primary_init() local
412 msl = &mcfg->memsegs[msl_idx++]; in memseg_primary_init()
441 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in memseg_secondary_init() local
447 msl = &mcfg->memsegs[msl_idx]; in memseg_secondary_init()
/f-stack/dpdk/lib/librte_eal/linux/
H A Deal_memalloc.c810 msl_idx = msl - mcfg->memsegs; in alloc_seg_walk()
811 cur_msl = &mcfg->memsegs[msl_idx]; in alloc_seg_walk()
944 msl_idx = msl - mcfg->memsegs; in free_seg_walk()
948 found_msl = &mcfg->memsegs[msl_idx]; in free_seg_walk()
1372 msl_idx = msl - mcfg->memsegs; in sync_walk()
1373 primary_msl = &mcfg->memsegs[msl_idx]; in sync_walk()
1423 msl_idx = msl - mcfg->memsegs; in secondary_msl_create_walk()
1424 primary_msl = &mcfg->memsegs[msl_idx]; in secondary_msl_create_walk()
1487 msl_idx = msl - mcfg->memsegs; in fd_list_create_walk()
1506 int len = mcfg->memsegs[list_idx].memseg_arr.len; in eal_memalloc_set_seg_fd()
[all …]
H A Deal_memory.c690 msl = &mcfg->memsegs[msl_idx];
958 msl = &mcfg->memsegs[msl_idx];
1111 struct rte_mem_config *mcfg; local
1127 mcfg = rte_eal_get_configuration()->mem_config;
1147 msl = &mcfg->memsegs[0];
1218 if (mcfg->dma_maskbits &&
1448 struct rte_memseg_list *msl = &mcfg->memsegs[i];
1467 if (mcfg->dma_maskbits &&
1593 msl_idx = msl - mcfg->memsegs;
1825 msl = &mcfg->memsegs[msl_idx];
[all …]
/f-stack/dpdk/lib/librte_eal/windows/
H A Deal_memalloc.c187 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in alloc_seg_walk() local
201 msl_idx = msl - mcfg->memsegs; in alloc_seg_walk()
202 cur_msl = &mcfg->memsegs[msl_idx]; in alloc_seg_walk()
288 struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; in free_seg_walk() local
301 msl_idx = msl - mcfg->memsegs; in free_seg_walk()
305 found_msl = &mcfg->memsegs[msl_idx]; in free_seg_walk()
H A Deal_memory.c652 struct rte_mem_config *mcfg; in eal_nohuge_init() local
658 mcfg = rte_eal_get_configuration()->mem_config; in eal_nohuge_init()
665 msl = &mcfg->memsegs[0]; in eal_nohuge_init()
689 if (mcfg->dma_maskbits && in eal_nohuge_init()
690 rte_mem_check_dma_mask_thread_unsafe(mcfg->dma_maskbits)) { in eal_nohuge_init()
/f-stack/freebsd/amd64/pci/
H A Dpci_cfgreg.c71 SYSCTL_INT(_hw_pci, OID_AUTO, mcfg, CTLFLAG_RDTUN, &mcfg_enable, 0,
/f-stack/freebsd/i386/pci/
H A Dpci_cfgreg.c77 SYSCTL_INT(_hw_pci, OID_AUTO, mcfg, CTLFLAG_RDTUN, &mcfg_enable, 0,