Home
last modified time | relevance | path

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

/f-stack/dpdk/lib/librte_eal/include/generic/
H A Drte_spinlock.h202 rte_spinlock_init(&slr->sl); in rte_spinlock_recursive_init()
203 slr->user = -1; in rte_spinlock_recursive_init()
204 slr->count = 0; in rte_spinlock_recursive_init()
217 if (slr->user != id) { in rte_spinlock_recursive_lock()
219 slr->user = id; in rte_spinlock_recursive_lock()
221 slr->count++; in rte_spinlock_recursive_lock()
231 if (--(slr->count) == 0) { in rte_spinlock_recursive_unlock()
232 slr->user = -1; in rte_spinlock_recursive_unlock()
250 if (slr->user != id) { in rte_spinlock_recursive_trylock()
253 slr->user = id; in rte_spinlock_recursive_trylock()
[all …]
/f-stack/dpdk/app/test/
H A Dtest_spinlock.c49 static rte_spinlock_recursive_t slr; variable
73 rte_spinlock_recursive_lock(&slr); in test_spinlock_recursive_per_core()
75 id, slr.count); in test_spinlock_recursive_per_core()
76 rte_spinlock_recursive_lock(&slr); in test_spinlock_recursive_per_core()
78 id, slr.count); in test_spinlock_recursive_per_core()
79 rte_spinlock_recursive_lock(&slr); in test_spinlock_recursive_per_core()
81 id, slr.count); in test_spinlock_recursive_per_core()
87 id, slr.count); in test_spinlock_recursive_per_core()
90 id, slr.count); in test_spinlock_recursive_per_core()
93 id, slr.count); in test_spinlock_recursive_per_core()
[all …]
/f-stack/dpdk/lib/librte_eal/x86/include/
H A Drte_spinlock.h150 rte_spinlock_recursive_lock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_lock_tm() argument
152 if (likely(rte_try_tm(&slr->sl.locked))) in rte_spinlock_recursive_lock_tm()
155 rte_spinlock_recursive_lock(slr); /* fall-back */ in rte_spinlock_recursive_lock_tm()
159 rte_spinlock_recursive_unlock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_unlock_tm() argument
161 if (unlikely(slr->sl.locked)) in rte_spinlock_recursive_unlock_tm()
162 rte_spinlock_recursive_unlock(slr); in rte_spinlock_recursive_unlock_tm()
168 rte_spinlock_recursive_trylock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_trylock_tm() argument
170 if (likely(rte_try_tm(&slr->sl.locked))) in rte_spinlock_recursive_trylock_tm()
173 return rte_spinlock_recursive_trylock(slr); in rte_spinlock_recursive_trylock_tm()
/f-stack/dpdk/lib/librte_eal/arm/include/
H A Drte_spinlock.h43 rte_spinlock_recursive_lock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_lock_tm() argument
45 rte_spinlock_recursive_lock(slr); /* fall-back */ in rte_spinlock_recursive_lock_tm()
49 rte_spinlock_recursive_unlock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_unlock_tm() argument
51 rte_spinlock_recursive_unlock(slr); in rte_spinlock_recursive_unlock_tm()
55 rte_spinlock_recursive_trylock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_trylock_tm() argument
57 return rte_spinlock_recursive_trylock(slr); in rte_spinlock_recursive_trylock_tm()
/f-stack/dpdk/lib/librte_eal/ppc/include/
H A Drte_spinlock.h67 rte_spinlock_recursive_lock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_lock_tm() argument
69 rte_spinlock_recursive_lock(slr); /* fall-back */ in rte_spinlock_recursive_lock_tm()
73 rte_spinlock_recursive_unlock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_unlock_tm() argument
75 rte_spinlock_recursive_unlock(slr); in rte_spinlock_recursive_unlock_tm()
79 rte_spinlock_recursive_trylock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_trylock_tm() argument
81 return rte_spinlock_recursive_trylock(slr); in rte_spinlock_recursive_trylock_tm()