Lines Matching full:done
27 if (x->done != UINT_MAX) in complete_with_flags()
28 x->done++; in complete_with_flags()
65 * Since complete_all() sets the completion of @x permanently to done
79 x->done = UINT_MAX; in complete_all()
89 if (!x->done) { in do_wait_for_common()
102 } while (!x->done && timeout); in do_wait_for_common()
104 if (!x->done) in do_wait_for_common()
107 if (x->done != UINT_MAX) in do_wait_for_common()
108 x->done--; in do_wait_for_common()
301 * Return: 0 if a decrement cannot be done without blocking
315 * Since x->done will need to be locked only in try_wait_for_completion()
316 * in the non-blocking case, we check x->done in try_wait_for_completion()
320 if (!READ_ONCE(x->done)) in try_wait_for_completion()
324 if (!x->done) in try_wait_for_completion()
326 else if (x->done != UINT_MAX) in try_wait_for_completion()
327 x->done--; in try_wait_for_completion()
346 if (!READ_ONCE(x->done)) in completion_done()
350 * If ->done, we need to wait for complete() to release ->wait.lock in completion_done()
352 * is done referencing it. in completion_done()