Lines Matching full:done
34 if (x->done != UINT_MAX) in complete()
35 x->done++; in complete()
50 * Since complete_all() sets the completion of @x permanently to done
64 x->done = UINT_MAX; in complete_all()
74 if (!x->done) { in do_wait_for_common()
87 } while (!x->done && timeout); in do_wait_for_common()
89 if (!x->done) in do_wait_for_common()
92 if (x->done != UINT_MAX) in do_wait_for_common()
93 x->done--; in do_wait_for_common()
286 * Return: 0 if a decrement cannot be done without blocking
300 * Since x->done will need to be locked only in try_wait_for_completion()
301 * in the non-blocking case, we check x->done in try_wait_for_completion()
305 if (!READ_ONCE(x->done)) in try_wait_for_completion()
309 if (!x->done) in try_wait_for_completion()
311 else if (x->done != UINT_MAX) in try_wait_for_completion()
312 x->done--; in try_wait_for_completion()
331 if (!READ_ONCE(x->done)) in completion_done()
335 * If ->done, we need to wait for complete() to release ->wait.lock in completion_done()
337 * is done referencing it. in completion_done()