Lines Matching refs:work
33 struct work_struct work; member
44 static void test_mutex_work(struct work_struct *work) in test_mutex_work() argument
46 struct test_mutex *mtx = container_of(work, typeof(*mtx), work); in test_mutex_work()
71 INIT_WORK_ONSTACK(&mtx.work, test_mutex_work); in __test_mutex()
77 schedule_work(&mtx.work); in __test_mutex()
105 flush_work(&mtx.work); in __test_mutex()
106 destroy_work_on_stack(&mtx.work); in __test_mutex()
161 struct work_struct work; member
170 static void test_abba_work(struct work_struct *work) in test_abba_work() argument
172 struct test_abba *abba = container_of(work, typeof(*abba), work); in test_abba_work()
205 INIT_WORK_ONSTACK(&abba.work, test_abba_work); in test_abba()
210 schedule_work(&abba.work); in test_abba()
230 flush_work(&abba.work); in test_abba()
231 destroy_work_on_stack(&abba.work); in test_abba()
251 struct work_struct work; member
259 static void test_cycle_work(struct work_struct *work) in test_cycle_work() argument
261 struct test_cycle *cycle = container_of(work, typeof(*cycle), work); in test_cycle_work()
313 INIT_WORK(&cycle->work, test_cycle_work); in __test_cycle()
318 queue_work(wq, &cycles[n].work); in __test_cycle()
356 struct work_struct work; member
391 static void stress_inorder_work(struct work_struct *work) in stress_inorder_work() argument
393 struct stress *stress = container_of(work, typeof(*stress), work); in stress_inorder_work()
450 static void stress_reorder_work(struct work_struct *work) in stress_reorder_work() argument
452 struct stress *stress = container_of(work, typeof(*stress), work); in stress_reorder_work()
510 static void stress_one_work(struct work_struct *work) in stress_one_work() argument
512 struct stress *stress = container_of(work, typeof(*stress), work); in stress_one_work()
551 void (*fn)(struct work_struct *work); in stress()
576 INIT_WORK(&stress->work, fn); in stress()
581 queue_work(wq, &stress->work); in stress()