Searched refs:QEMU_LOCKCNT_COUNT_STEP (Results 1 – 1 of 1) sorted by relevance
29 #define QEMU_LOCKCNT_COUNT_STEP 4 macro118 if (val >= QEMU_LOCKCNT_COUNT_STEP) { in qemu_lockcnt_inc()121 val + QEMU_LOCKCNT_COUNT_STEP); in qemu_lockcnt_inc()127 if (qemu_lockcnt_cmpxchg_or_wait(lockcnt, &val, QEMU_LOCKCNT_COUNT_STEP, in qemu_lockcnt_inc()147 qatomic_sub(&lockcnt->count, QEMU_LOCKCNT_COUNT_STEP); in qemu_lockcnt_dec()161 if (val >= 2 * QEMU_LOCKCNT_COUNT_STEP) { in qemu_lockcnt_dec_and_lock()164 val - QEMU_LOCKCNT_COUNT_STEP); in qemu_lockcnt_dec_and_lock()209 while (val < 2 * QEMU_LOCKCNT_COUNT_STEP) { in qemu_lockcnt_dec_if_lock()264 new = (val + QEMU_LOCKCNT_COUNT_STEP) & ~QEMU_LOCKCNT_STATE_MASK; in qemu_lockcnt_inc_and_unlock()