• Home
  • Raw
  • Download

Lines Matching refs:work

24 #define work_data_bits(work) ((unsigned long *)(&(work)->data))  argument
115 struct work_struct work; member
127 struct work_struct work; member
215 static inline struct delayed_work *to_delayed_work(struct work_struct *work) in to_delayed_work() argument
217 return container_of(work, struct delayed_work, work); in to_delayed_work()
220 static inline struct rcu_work *to_rcu_work(struct work_struct *work) in to_rcu_work() argument
222 return container_of(work, struct rcu_work, work); in to_rcu_work()
226 struct work_struct work; member
249 .work = __WORK_INITIALIZER((n).work, (f)), \
264 extern void __init_work(struct work_struct *work, int onstack);
265 extern void destroy_work_on_stack(struct work_struct *work);
266 extern void destroy_delayed_work_on_stack(struct delayed_work *work);
267 static inline unsigned int work_static(struct work_struct *work) in work_static() argument
269 return *work_data_bits(work) & WORK_STRUCT_STATIC; in work_static()
272 static inline void __init_work(struct work_struct *work, int onstack) { } in __init_work() argument
273 static inline void destroy_work_on_stack(struct work_struct *work) { } in destroy_work_on_stack() argument
274 static inline void destroy_delayed_work_on_stack(struct delayed_work *work) { } in destroy_delayed_work_on_stack() argument
275 static inline unsigned int work_static(struct work_struct *work) { return 0; } in work_static() argument
322 INIT_WORK(&(_work)->work, (_func)); \
330 INIT_WORK_ONSTACK(&(_work)->work, (_func)); \
349 INIT_WORK(&(_work)->work, (_func))
352 INIT_WORK_ONSTACK(&(_work)->work, (_func))
358 #define work_pending(work) \ argument
359 test_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(work))
367 work_pending(&(w)->work)
593 struct work_struct *work);
595 struct work_struct *work);
597 struct delayed_work *work, unsigned long delay);
609 extern bool flush_work(struct work_struct *work);
610 extern bool cancel_work(struct work_struct *work);
611 extern bool cancel_work_sync(struct work_struct *work);
617 extern bool disable_work(struct work_struct *work);
618 extern bool disable_work_sync(struct work_struct *work);
619 extern bool enable_work(struct work_struct *work);
634 extern unsigned int work_busy(struct work_struct *work);
666 struct work_struct *work) in queue_work() argument
668 return queue_work_on(WORK_CPU_UNBOUND, wq, work); in queue_work()
708 static inline bool schedule_work_on(int cpu, struct work_struct *work) in schedule_work_on() argument
710 return queue_work_on(cpu, system_wq, work); in schedule_work_on()
727 static inline bool schedule_work(struct work_struct *work) in schedule_work() argument
729 return queue_work(system_wq, work); in schedule_work()
749 struct work_struct *work) in enable_and_queue_work() argument
751 if (enable_work(work)) { in enable_and_queue_work()
752 queue_work(wq, work); in enable_and_queue_work()