Lines Matching refs:work

21 typedef void (*work_func_t)(struct work_struct *work);
28 #define work_data_bits(work) ((unsigned long *)(&(work)->data)) argument
112 struct work_struct work; member
121 struct work_struct work; member
206 static inline struct delayed_work *to_delayed_work(struct work_struct *work) in to_delayed_work() argument
208 return container_of(work, struct delayed_work, work); in to_delayed_work()
211 static inline struct rcu_work *to_rcu_work(struct work_struct *work) in to_rcu_work() argument
213 return container_of(work, struct rcu_work, work); in to_rcu_work()
217 struct work_struct work; member
240 .work = __WORK_INITIALIZER((n).work, (f)), \
255 extern void __init_work(struct work_struct *work, int onstack);
256 extern void destroy_work_on_stack(struct work_struct *work);
257 extern void destroy_delayed_work_on_stack(struct delayed_work *work);
258 static inline unsigned int work_static(struct work_struct *work) in work_static() argument
260 return *work_data_bits(work) & WORK_STRUCT_STATIC; in work_static()
263 static inline void __init_work(struct work_struct *work, int onstack) { } in __init_work() argument
264 static inline void destroy_work_on_stack(struct work_struct *work) { } in destroy_work_on_stack() argument
265 static inline void destroy_delayed_work_on_stack(struct delayed_work *work) { } in destroy_delayed_work_on_stack() argument
266 static inline unsigned int work_static(struct work_struct *work) { return 0; } in work_static() argument
313 INIT_WORK(&(_work)->work, (_func)); \
321 INIT_WORK_ONSTACK(&(_work)->work, (_func)); \
340 INIT_WORK(&(_work)->work, (_func))
343 INIT_WORK_ONSTACK(&(_work)->work, (_func))
349 #define work_pending(work) \ argument
350 test_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(work))
358 work_pending(&(w)->work)
497 struct work_struct *work);
499 struct work_struct *work);
501 struct delayed_work *work, unsigned long delay);
513 extern bool flush_work(struct work_struct *work);
514 extern bool cancel_work(struct work_struct *work);
515 extern bool cancel_work_sync(struct work_struct *work);
528 extern unsigned int work_busy(struct work_struct *work);
560 struct work_struct *work) in queue_work() argument
562 return queue_work_on(WORK_CPU_UNBOUND, wq, work); in queue_work()
602 static inline bool schedule_work_on(int cpu, struct work_struct *work) in schedule_work_on() argument
604 return queue_work_on(cpu, system_wq, work); in schedule_work_on()
621 static inline bool schedule_work(struct work_struct *work) in schedule_work() argument
623 return queue_work(system_wq, work); in schedule_work()