Lines Matching refs:work
20 struct work_struct work; member
31 static void test_mutex_work(struct work_struct *work) in test_mutex_work() argument
33 struct test_mutex *mtx = container_of(work, typeof(*mtx), work); in test_mutex_work()
58 INIT_WORK_ONSTACK(&mtx.work, test_mutex_work); in __test_mutex()
64 schedule_work(&mtx.work); in __test_mutex()
92 flush_work(&mtx.work); in __test_mutex()
93 destroy_work_on_stack(&mtx.work); in __test_mutex()
148 struct work_struct work; member
157 static void test_abba_work(struct work_struct *work) in test_abba_work() argument
159 struct test_abba *abba = container_of(work, typeof(*abba), work); in test_abba_work()
192 INIT_WORK_ONSTACK(&abba.work, test_abba_work); in test_abba()
197 schedule_work(&abba.work); in test_abba()
217 flush_work(&abba.work); in test_abba()
218 destroy_work_on_stack(&abba.work); in test_abba()
238 struct work_struct work; member
246 static void test_cycle_work(struct work_struct *work) in test_cycle_work() argument
248 struct test_cycle *cycle = container_of(work, typeof(*cycle), work); in test_cycle_work()
300 INIT_WORK(&cycle->work, test_cycle_work); in __test_cycle()
305 queue_work(wq, &cycles[n].work); in __test_cycle()
343 struct work_struct work; member
378 static void stress_inorder_work(struct work_struct *work) in stress_inorder_work() argument
380 struct stress *stress = container_of(work, typeof(*stress), work); in stress_inorder_work()
436 static void stress_reorder_work(struct work_struct *work) in stress_reorder_work() argument
438 struct stress *stress = container_of(work, typeof(*stress), work); in stress_reorder_work()
495 static void stress_one_work(struct work_struct *work) in stress_one_work() argument
497 struct stress *stress = container_of(work, typeof(*stress), work); in stress_one_work()
543 void (*fn)(struct work_struct *work); in stress()
566 INIT_WORK(&stress->work, fn); in stress()
571 queue_work(wq, &stress->work); in stress()