Home
last modified time | relevance | path

Searched refs:max_threads (Results 1 – 3 of 3) sorted by relevance

/dpdk/lib/rcu/
H A Drte_rcu_qsbr.h65 #define __RTE_QSBR_THRID_ARRAY_SIZE(max_threads) \ argument
66 RTE_ALIGN(RTE_ALIGN_MUL_CEIL(max_threads, \
69 ((struct rte_rcu_qsbr_cnt *)(v + 1) + v->max_threads) + i)
109 uint32_t max_threads; member
212 rte_rcu_qsbr_get_memsize(uint32_t max_threads);
303 RTE_ASSERT(v != NULL && thread_id < v->max_threads); in rte_rcu_qsbr_thread_online()
354 RTE_ASSERT(v != NULL && thread_id < v->max_threads); in rte_rcu_qsbr_thread_offline()
392 RTE_ASSERT(v != NULL && thread_id < v->max_threads); in rte_rcu_qsbr_lock()
425 RTE_ASSERT(v != NULL && thread_id < v->max_threads); in rte_rcu_qsbr_unlock()
485 RTE_ASSERT(v != NULL && thread_id < v->max_threads); in rte_rcu_qsbr_quiescent()
[all …]
H A Drte_rcu_qsbr.c24 rte_rcu_qsbr_get_memsize(uint32_t max_threads) in rte_rcu_qsbr_get_memsize() argument
28 if (max_threads == 0) { in rte_rcu_qsbr_get_memsize()
31 __func__, max_threads); in rte_rcu_qsbr_get_memsize()
40 sz += sizeof(struct rte_rcu_qsbr_cnt) * max_threads; in rte_rcu_qsbr_get_memsize()
43 sz += __RTE_QSBR_THRID_ARRAY_SIZE(max_threads); in rte_rcu_qsbr_get_memsize()
62 sz = rte_rcu_qsbr_get_memsize(max_threads); in rte_rcu_qsbr_init()
68 v->max_threads = max_threads; in rte_rcu_qsbr_init()
69 v->num_elems = RTE_ALIGN_MUL_CEIL(max_threads, in rte_rcu_qsbr_init()
87 if (v == NULL || thread_id >= v->max_threads) { in rte_rcu_qsbr_thread_register()
139 if (v == NULL || thread_id >= v->max_threads) { in rte_rcu_qsbr_thread_unregister()
[all …]
/dpdk/lib/cryptodev/
H A Drte_cryptodev.c505 const uint32_t max_threads = 1; in cryptodev_cb_init() local
525 size = rte_rcu_qsbr_get_memsize(max_threads); in cryptodev_cb_init()
536 if (rte_rcu_qsbr_init(qsbr, max_threads)) { in cryptodev_cb_init()
554 if (rte_rcu_qsbr_init(qsbr, max_threads)) { in cryptodev_cb_init()