Lines Matching full:done
22 if (x->done != UINT_MAX) in complete_with_flags()
23 x->done++; in complete_with_flags()
60 * Since complete_all() sets the completion of @x permanently to done
74 x->done = UINT_MAX; in complete_all()
84 if (!x->done) { in do_wait_for_common()
97 } while (!x->done && timeout); in do_wait_for_common()
99 if (!x->done) in do_wait_for_common()
102 if (x->done != UINT_MAX) in do_wait_for_common()
103 x->done--; in do_wait_for_common()
296 * Return: 0 if a decrement cannot be done without blocking
310 * Since x->done will need to be locked only in try_wait_for_completion()
311 * in the non-blocking case, we check x->done in try_wait_for_completion()
315 if (!READ_ONCE(x->done)) in try_wait_for_completion()
319 if (!x->done) in try_wait_for_completion()
321 else if (x->done != UINT_MAX) in try_wait_for_completion()
322 x->done--; in try_wait_for_completion()
341 if (!READ_ONCE(x->done)) in completion_done()
345 * If ->done, we need to wait for complete() to release ->wait.lock in completion_done()
347 * is done referencing it. in completion_done()