Lines Matching defs:thread
1431 n->thread = kthread_run(napi_threaded_poll, n, "napi/%s-%d",
1433 if (IS_ERR(n->thread)) {
1434 err = PTR_ERR(n->thread);
1436 n->thread = NULL;
4463 struct task_struct *thread;
4471 * read on napi->thread. Only call
4474 thread = READ_ONCE(napi->thread);
4475 if (thread) {
4476 /* Avoid doing set_bit() if the thread is in
4479 * if the thread is explicitly woken from here.
4481 if (READ_ONCE(thread->__state) != TASK_INTERRUPTIBLE)
4483 wake_up_process(thread);
6399 if (!napi->thread) {
6506 if (n->dev->threaded && n->thread)
6538 if (napi->thread) {
6539 kthread_stop(napi->thread);
6540 napi->thread = NULL;
6646 * set by some other busy poll thread or by napi_disable().
6655 /* woken being true indicates this thread owns this napi. */