Lines Matching refs:work
22 typedef void (*work_func_t)(struct work_struct *work);
29 #define work_data_bits(work) ((unsigned long *)(&(work)->data)) argument
119 struct work_struct work; member
131 struct work_struct work; member
164 static inline struct delayed_work *to_delayed_work(struct work_struct *work) in to_delayed_work() argument
166 return container_of(work, struct delayed_work, work); in to_delayed_work()
169 static inline struct rcu_work *to_rcu_work(struct work_struct *work) in to_rcu_work() argument
171 return container_of(work, struct rcu_work, work); in to_rcu_work()
175 struct work_struct work; member
198 .work = __WORK_INITIALIZER((n).work, (f)), \
213 extern void __init_work(struct work_struct *work, int onstack);
214 extern void destroy_work_on_stack(struct work_struct *work);
215 extern void destroy_delayed_work_on_stack(struct delayed_work *work);
216 static inline unsigned int work_static(struct work_struct *work) in work_static() argument
218 return *work_data_bits(work) & WORK_STRUCT_STATIC; in work_static()
221 static inline void __init_work(struct work_struct *work, int onstack) { } in __init_work() argument
222 static inline void destroy_work_on_stack(struct work_struct *work) { } in destroy_work_on_stack() argument
223 static inline void destroy_delayed_work_on_stack(struct delayed_work *work) { } in destroy_delayed_work_on_stack() argument
224 static inline unsigned int work_static(struct work_struct *work) { return 0; } in work_static() argument
263 INIT_WORK(&(_work)->work, (_func)); \
271 INIT_WORK_ONSTACK(&(_work)->work, (_func)); \
290 INIT_WORK(&(_work)->work, (_func))
293 INIT_WORK_ONSTACK(&(_work)->work, (_func))
299 #define work_pending(work) \ argument
300 test_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(work))
308 work_pending(&(w)->work)
451 struct work_struct *work);
453 struct work_struct *work);
455 struct delayed_work *work, unsigned long delay);
467 extern bool flush_work(struct work_struct *work);
468 extern bool cancel_work_sync(struct work_struct *work);
481 extern unsigned int work_busy(struct work_struct *work);
511 struct work_struct *work) in queue_work() argument
513 return queue_work_on(WORK_CPU_UNBOUND, wq, work); in queue_work()
553 static inline bool schedule_work_on(int cpu, struct work_struct *work) in schedule_work_on() argument
555 return queue_work_on(cpu, system_wq, work); in schedule_work_on()
572 static inline bool schedule_work(struct work_struct *work) in schedule_work() argument
574 return queue_work(system_wq, work); in schedule_work()