Lines Matching refs:work

23 #define work_data_bits(work) ((unsigned long *)(&(work)->data))  argument
114 struct work_struct work; member
123 struct work_struct work; member
211 static inline struct delayed_work *to_delayed_work(struct work_struct *work) in to_delayed_work() argument
213 return container_of(work, struct delayed_work, work); in to_delayed_work()
216 static inline struct rcu_work *to_rcu_work(struct work_struct *work) in to_rcu_work() argument
218 return container_of(work, struct rcu_work, work); in to_rcu_work()
222 struct work_struct work; member
245 .work = __WORK_INITIALIZER((n).work, (f)), \
260 extern void __init_work(struct work_struct *work, int onstack);
261 extern void destroy_work_on_stack(struct work_struct *work);
262 extern void destroy_delayed_work_on_stack(struct delayed_work *work);
263 static inline unsigned int work_static(struct work_struct *work) in work_static() argument
265 return *work_data_bits(work) & WORK_STRUCT_STATIC; in work_static()
268 static inline void __init_work(struct work_struct *work, int onstack) { } in __init_work() argument
269 static inline void destroy_work_on_stack(struct work_struct *work) { } in destroy_work_on_stack() argument
270 static inline void destroy_delayed_work_on_stack(struct delayed_work *work) { } in destroy_delayed_work_on_stack() argument
271 static inline unsigned int work_static(struct work_struct *work) { return 0; } in work_static() argument
318 INIT_WORK(&(_work)->work, (_func)); \
326 INIT_WORK_ONSTACK(&(_work)->work, (_func)); \
345 INIT_WORK(&(_work)->work, (_func))
348 INIT_WORK_ONSTACK(&(_work)->work, (_func))
354 #define work_pending(work) \ argument
355 test_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(work))
363 work_pending(&(w)->work)
587 struct work_struct *work);
589 struct work_struct *work);
591 struct delayed_work *work, unsigned long delay);
603 extern bool flush_work(struct work_struct *work);
604 extern bool cancel_work(struct work_struct *work);
605 extern bool cancel_work_sync(struct work_struct *work);
611 extern bool disable_work(struct work_struct *work);
612 extern bool disable_work_sync(struct work_struct *work);
613 extern bool enable_work(struct work_struct *work);
628 extern unsigned int work_busy(struct work_struct *work);
660 struct work_struct *work) in queue_work() argument
662 return queue_work_on(WORK_CPU_UNBOUND, wq, work); in queue_work()
702 static inline bool schedule_work_on(int cpu, struct work_struct *work) in schedule_work_on() argument
704 return queue_work_on(cpu, system_wq, work); in schedule_work_on()
721 static inline bool schedule_work(struct work_struct *work) in schedule_work() argument
723 return queue_work(system_wq, work); in schedule_work()
743 struct work_struct *work) in enable_and_queue_work() argument
745 if (enable_work(work)) { in enable_and_queue_work()
746 queue_work(wq, work); in enable_and_queue_work()