Lines Matching defs:x
96 int32_t x;
105 x = rte_atomic_fetch_add_explicit(&rwl->cnt, RTE_RWLOCK_READ,
109 if (likely(!(x & RTE_RWLOCK_MASK)))
133 int32_t x;
135 x = rte_atomic_load_explicit(&rwl->cnt, rte_memory_order_relaxed);
138 if (x & RTE_RWLOCK_MASK)
142 x = rte_atomic_fetch_add_explicit(&rwl->cnt, RTE_RWLOCK_READ,
146 if (unlikely(x & RTE_RWLOCK_MASK)) {
184 int32_t x;
186 x = rte_atomic_load_explicit(&rwl->cnt, rte_memory_order_relaxed);
187 if (x < RTE_RWLOCK_WRITE &&
188 rte_atomic_compare_exchange_weak_explicit(&rwl->cnt, &x, x + RTE_RWLOCK_WRITE,
206 int32_t x;
209 x = rte_atomic_load_explicit(&rwl->cnt, rte_memory_order_relaxed);
212 if (likely(x < RTE_RWLOCK_WRITE)) {
214 if (rte_atomic_compare_exchange_weak_explicit(&rwl->cnt, &x,
221 if (!(x & RTE_RWLOCK_WAIT))