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
111 struct work_struct work; member
120 struct work_struct work; member
153 static inline struct delayed_work *to_delayed_work(struct work_struct *work) in to_delayed_work() argument
155 return container_of(work, struct delayed_work, work); in to_delayed_work()
158 static inline struct rcu_work *to_rcu_work(struct work_struct *work) in to_rcu_work() argument
160 return container_of(work, struct rcu_work, work); in to_rcu_work()
164 struct work_struct work; member
187 .work = __WORK_INITIALIZER((n).work, (f)), \
202 extern void __init_work(struct work_struct *work, int onstack);
203 extern void destroy_work_on_stack(struct work_struct *work);
204 extern void destroy_delayed_work_on_stack(struct delayed_work *work);
205 static inline unsigned int work_static(struct work_struct *work) in work_static() argument
207 return *work_data_bits(work) & WORK_STRUCT_STATIC; in work_static()
210 static inline void __init_work(struct work_struct *work, int onstack) { } in __init_work() argument
211 static inline void destroy_work_on_stack(struct work_struct *work) { } in destroy_work_on_stack() argument
212 static inline void destroy_delayed_work_on_stack(struct delayed_work *work) { } in destroy_delayed_work_on_stack() argument
213 static inline unsigned int work_static(struct work_struct *work) { return 0; } in work_static() argument
252 INIT_WORK(&(_work)->work, (_func)); \
260 INIT_WORK_ONSTACK(&(_work)->work, (_func)); \
279 INIT_WORK(&(_work)->work, (_func))
282 INIT_WORK_ONSTACK(&(_work)->work, (_func))
288 #define work_pending(work) \ argument
289 test_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(work))
297 work_pending(&(w)->work)
439 struct work_struct *work);
441 struct work_struct *work);
443 struct delayed_work *work, unsigned long delay);
455 extern bool flush_work(struct work_struct *work);
456 extern bool cancel_work_sync(struct work_struct *work);
469 extern unsigned int work_busy(struct work_struct *work);
499 struct work_struct *work) in queue_work() argument
501 return queue_work_on(WORK_CPU_UNBOUND, wq, work); in queue_work()
541 static inline bool schedule_work_on(int cpu, struct work_struct *work) in schedule_work_on() argument
543 return queue_work_on(cpu, system_wq, work); in schedule_work_on()
560 static inline bool schedule_work(struct work_struct *work) in schedule_work() argument
562 return queue_work(system_wq, work); in schedule_work()