Lines Matching refs:work
29 struct work_struct work; member
40 static void test_mutex_work(struct work_struct *work) in test_mutex_work() argument
42 struct test_mutex *mtx = container_of(work, typeof(*mtx), work); in test_mutex_work()
67 INIT_WORK_ONSTACK(&mtx.work, test_mutex_work); in __test_mutex()
73 schedule_work(&mtx.work); in __test_mutex()
101 flush_work(&mtx.work); in __test_mutex()
102 destroy_work_on_stack(&mtx.work); in __test_mutex()
177 struct work_struct work; member
186 static void test_abba_work(struct work_struct *work) in test_abba_work() argument
188 struct test_abba *abba = container_of(work, typeof(*abba), work); in test_abba_work()
226 INIT_WORK_ONSTACK(&abba.work, test_abba_work); in test_abba()
232 schedule_work(&abba.work); in test_abba()
257 flush_work(&abba.work); in test_abba()
258 destroy_work_on_stack(&abba.work); in test_abba()
278 struct work_struct work; member
286 static void test_cycle_work(struct work_struct *work) in test_cycle_work() argument
288 struct test_cycle *cycle = container_of(work, typeof(*cycle), work); in test_cycle_work()
340 INIT_WORK(&cycle->work, test_cycle_work); in __test_cycle()
345 queue_work(wq, &cycles[n].work); in __test_cycle()
383 struct work_struct work; member
418 static void stress_inorder_work(struct work_struct *work) in stress_inorder_work() argument
420 struct stress *stress = container_of(work, typeof(*stress), work); in stress_inorder_work()
476 static void stress_reorder_work(struct work_struct *work) in stress_reorder_work() argument
478 struct stress *stress = container_of(work, typeof(*stress), work); in stress_reorder_work()
535 static void stress_one_work(struct work_struct *work) in stress_one_work() argument
537 struct stress *stress = container_of(work, typeof(*stress), work); in stress_one_work()
583 void (*fn)(struct work_struct *work); in stress()
606 INIT_WORK(&stress->work, fn); in stress()
611 queue_work(wq, &stress->work); in stress()