Lines Matching refs:inner

15     inner: SpinLock<InnerCompletion>,  field
21 inner: SpinLock::new(InnerCompletion::new()), in new()
31 let mut inner = self.inner.lock_irqsave(); in do_wait_for_common() localVariable
33 if inner.done == 0 { in do_wait_for_common()
43 unsafe { inner.wait_queue.sleep_without_schedule() }; in do_wait_for_common()
45 unsafe { inner.wait_queue.sleep_without_schedule_uninterruptible() }; in do_wait_for_common()
47 drop(inner); in do_wait_for_common()
49 inner = self.inner.lock_irqsave(); in do_wait_for_common()
50 if inner.done != 0 || timeout <= 0 { in do_wait_for_common()
54 inner.wait_queue.wakeup(None); in do_wait_for_common()
55 if inner.done == 0 { in do_wait_for_common()
56 drop(inner); in do_wait_for_common()
60 if inner.done != COMPLETE_ALL { in do_wait_for_common()
61 inner.done -= 1; in do_wait_for_common()
63 drop(inner); in do_wait_for_common()
93 let mut inner = self.inner.lock_irqsave(); in complete() localVariable
94 if inner.done != COMPLETE_ALL { in complete()
95 inner.done = inner.done.saturating_add(1); in complete()
97 inner.wait_queue.wakeup(None); in complete()
103 let mut inner = self.inner.lock_irqsave(); in complete_all() localVariable
104 inner.done = COMPLETE_ALL; in complete_all()
105 inner.wait_queue.wakeup_all(None); in complete_all()
114 let mut inner = self.inner.lock_irqsave(); in try_wait_for_completion() localVariable
115 if inner.done == 0 { in try_wait_for_completion()
119 if inner.done != 0 { in try_wait_for_completion()
121 } else if inner.done != COMPLETE_ALL { in try_wait_for_completion()
122 inner.done -= 1; in try_wait_for_completion()
130 let inner = self.inner.lock_irqsave(); in completion_done() localVariable
131 if inner.done == 0 { in completion_done()
135 if inner.done == 0 { in completion_done()