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
62 x->done = UINT_MAX; in complete_all()
72 if (!x->done) { in do_wait_for_common()
85 } while (!x->done && timeout); in do_wait_for_common()
87 if (!x->done) in do_wait_for_common()
90 if (x->done != UINT_MAX) in do_wait_for_common()
91 x->done--; in do_wait_for_common()
272 * Return: 0 if a decrement cannot be done without blocking
286 * Since x->done will need to be locked only in try_wait_for_completion()
287 * in the non-blocking case, we check x->done in try_wait_for_completion()
291 if (!READ_ONCE(x->done)) in try_wait_for_completion()
295 if (!x->done) in try_wait_for_completion()
297 else if (x->done != UINT_MAX) in try_wait_for_completion()
298 x->done--; in try_wait_for_completion()
317 if (!READ_ONCE(x->done)) in completion_done()
321 * If ->done, we need to wait for complete() to release ->wait.lock in completion_done()
323 * is done referencing it. in completion_done()