Lines Matching refs:work
22 struct tp_work *work; in tp_flush_work() local
27 work = flist_entry(list->next, struct tp_work, list); in tp_flush_work()
28 flist_del(&work->list); in tp_flush_work()
30 prio = work->prio; in tp_flush_work()
34 work->fn(work); in tp_flush_work()
51 if (!tdat->thread_exit && flist_empty(&tdat->work)) in tp_thread()
54 if (!flist_empty(&tdat->work)) in tp_thread()
55 flist_splice_tail_init(&tdat->work, &work_list); in tp_thread()
71 void tp_queue_work(struct tp_data *tdat, struct tp_work *work) in tp_queue_work() argument
73 work->done = 0; in tp_queue_work()
76 flist_add_tail(&work->list, &tdat->work); in tp_queue_work()
92 INIT_FLIST_HEAD(&tdat->work); in tp_init()