Home
last modified time | relevance | path

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

/dpdk/lib/eal/include/generic/
H A Drte_spinlock.h204 rte_spinlock_init(&slr->sl); in rte_spinlock_recursive_init()
205 slr->user = -1; in rte_spinlock_recursive_init()
206 slr->count = 0; in rte_spinlock_recursive_init()
219 if (slr->user != id) { in rte_spinlock_recursive_lock()
221 slr->user = id; in rte_spinlock_recursive_lock()
223 slr->count++; in rte_spinlock_recursive_lock()
233 if (--(slr->count) == 0) { in rte_spinlock_recursive_unlock()
234 slr->user = -1; in rte_spinlock_recursive_unlock()
253 if (slr->user != id) { in rte_spinlock_recursive_trylock()
256 slr->user = id; in rte_spinlock_recursive_trylock()
[all …]
/dpdk/app/test/
H A Dtest_spinlock.c48 static rte_spinlock_recursive_t slr; variable
72 rte_spinlock_recursive_lock(&slr); in test_spinlock_recursive_per_core()
74 id, slr.count); in test_spinlock_recursive_per_core()
75 rte_spinlock_recursive_lock(&slr); in test_spinlock_recursive_per_core()
77 id, slr.count); in test_spinlock_recursive_per_core()
78 rte_spinlock_recursive_lock(&slr); in test_spinlock_recursive_per_core()
80 id, slr.count); in test_spinlock_recursive_per_core()
86 id, slr.count); in test_spinlock_recursive_per_core()
89 id, slr.count); in test_spinlock_recursive_per_core()
92 id, slr.count); in test_spinlock_recursive_per_core()
[all …]
/dpdk/lib/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()
/dpdk/lib/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()
/dpdk/lib/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()