Searched refs:slr (Results 1 – 5 of 5) sorted by relevance
202 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 …]
49 static rte_spinlock_recursive_t slr; variable73 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 …]
150 rte_spinlock_recursive_lock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_lock_tm() argument152 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() argument161 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() argument170 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()
43 rte_spinlock_recursive_lock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_lock_tm() argument45 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() argument51 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() argument57 return rte_spinlock_recursive_trylock(slr); in rte_spinlock_recursive_trylock_tm()
67 rte_spinlock_recursive_lock_tm(rte_spinlock_recursive_t *slr) in rte_spinlock_recursive_lock_tm() argument69 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() argument75 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() argument81 return rte_spinlock_recursive_trylock(slr); in rte_spinlock_recursive_trylock_tm()