Lines Matching refs:self
158 static void __kthread_parkme(struct kthread *self) in __kthread_parkme() argument
161 while (test_bit(KTHREAD_SHOULD_PARK, &self->flags)) { in __kthread_parkme()
162 if (!test_and_set_bit(KTHREAD_IS_PARKED, &self->flags)) in __kthread_parkme()
163 complete(&self->parked); in __kthread_parkme()
167 clear_bit(KTHREAD_IS_PARKED, &self->flags); in __kthread_parkme()
184 struct kthread self; in kthread() local
187 self.flags = 0; in kthread()
188 self.data = data; in kthread()
189 init_completion(&self.exited); in kthread()
190 init_completion(&self.parked); in kthread()
191 current->vfork_done = &self.exited; in kthread()
207 if (!test_bit(KTHREAD_SHOULD_STOP, &self.flags)) { in kthread()
208 __kthread_parkme(&self); in kthread()