Lines Matching defs:sync
313 int sync;
317 sync = atomic_read(st);
319 if (sync == state) {
320 if (!atomic_try_cmpxchg(st, &sync, next_state))
335 sync = atomic_read(st);
363 int sync = atomic_read(st);
367 if (sync == SYNC_STATE_DEAD)
369 } while (!atomic_try_cmpxchg(st, &sync, SYNC_STATE_SHOULD_DIE));
405 int sync = atomic_read(st);
408 switch (sync) {
424 if (!atomic_try_cmpxchg(st, &sync, SYNC_STATE_KICKED))