Home
last modified time | relevance | path

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

/f-stack/dpdk/lib/librte_rcu/
H A Drte_rcu_qsbr.h69 #define __RTE_QSBR_THRID_ARRAY_SIZE(max_threads) \ argument
70 RTE_ALIGN(RTE_ALIGN_MUL_CEIL(max_threads, \
73 ((struct rte_rcu_qsbr_cnt *)(v + 1) + v->max_threads) + i)
113 uint32_t max_threads; member
216 rte_rcu_qsbr_get_memsize(uint32_t max_threads);
307 RTE_ASSERT(v != NULL && thread_id < v->max_threads); in rte_rcu_qsbr_thread_online()
363 RTE_ASSERT(v != NULL && thread_id < v->max_threads); in rte_rcu_qsbr_thread_offline()
401 RTE_ASSERT(v != NULL && thread_id < v->max_threads); in rte_rcu_qsbr_lock()
434 RTE_ASSERT(v != NULL && thread_id < v->max_threads); in rte_rcu_qsbr_unlock()
494 RTE_ASSERT(v != NULL && thread_id < v->max_threads); in rte_rcu_qsbr_quiescent()
[all …]
H A Drte_rcu_qsbr.c28 rte_rcu_qsbr_get_memsize(uint32_t max_threads) in rte_rcu_qsbr_get_memsize() argument
32 if (max_threads == 0) { in rte_rcu_qsbr_get_memsize()
35 __func__, max_threads); in rte_rcu_qsbr_get_memsize()
44 sz += sizeof(struct rte_rcu_qsbr_cnt) * max_threads; in rte_rcu_qsbr_get_memsize()
47 sz += __RTE_QSBR_THRID_ARRAY_SIZE(max_threads); in rte_rcu_qsbr_get_memsize()
66 sz = rte_rcu_qsbr_get_memsize(max_threads); in rte_rcu_qsbr_init()
72 v->max_threads = max_threads; in rte_rcu_qsbr_init()
73 v->num_elems = RTE_ALIGN_MUL_CEIL(max_threads, in rte_rcu_qsbr_init()
91 if (v == NULL || thread_id >= v->max_threads) { in rte_rcu_qsbr_thread_register()
143 if (v == NULL || thread_id >= v->max_threads) { in rte_rcu_qsbr_thread_unregister()
[all …]
/f-stack/freebsd/contrib/openzfs/lib/libtpool/
H A Dthread_pool.c322 tpool_create(uint_t min_threads, uint_t max_threads, uint_t linger, in tpool_create() argument
331 if (min_threads > max_threads || max_threads < 1) { in tpool_create()
346 if (stacksize < minstack || max_threads != 1) { in tpool_create()
366 tpool->tp_maximum = max_threads; in tpool_create()
/f-stack/freebsd/contrib/openzfs/include/
H A Dthread_pool.h42 extern tpool_t *tpool_create(uint_t min_threads, uint_t max_threads,
/f-stack/freebsd/contrib/openzfs/lib/libzfs_core/
H A Dlibzfs_core.abi2211 …<parameter type-id='type-id-46' name='max_threads' filepath='/home/fedora/zfs/lib/libtpool/thread_…