Lines Matching defs:dwork
1071 struct delayed_work *dwork = (struct delayed_work *)__data;
1072 struct cpu_workqueue_struct *cwq = get_work_cwq(&dwork->work);
1074 __queue_work(smp_processor_id(), cwq->wq, &dwork->work);
1080 * @dwork: delayable work to queue
1086 struct delayed_work *dwork, unsigned long delay)
1089 return queue_work(wq, &dwork->work);
1091 return queue_delayed_work_on(-1, wq, dwork, delay);
1099 * @dwork: work to queue
1105 struct delayed_work *dwork, unsigned long delay)
1108 struct timer_list *timer = &dwork->timer;
1109 struct work_struct *work = &dwork->work;
1117 timer_stats_timer_set_start_info(&dwork->timer);
1137 timer->data = (unsigned long)dwork;
2518 * @dwork: the delayed work struct
2520 * Returns true if @dwork was pending.
2522 * It is possible to use this function if @dwork rearms itself via queue_work()
2525 int cancel_delayed_work_sync(struct delayed_work *dwork)
2527 return __cancel_work_timer(&dwork->work, &dwork->timer);
2563 * @dwork: job to be done
2569 int schedule_delayed_work(struct delayed_work *dwork,
2572 return queue_delayed_work(system_wq, dwork, delay);
2578 * @dwork: the delayed work which is to be flushed
2582 void flush_delayed_work(struct delayed_work *dwork)
2584 if (del_timer_sync(&dwork->timer)) {
2585 __queue_work(get_cpu(), get_work_cwq(&dwork->work)->wq,
2586 &dwork->work);
2589 flush_work(&dwork->work);
2596 * @dwork: job to be done
2603 struct delayed_work *dwork, unsigned long delay)
2605 return queue_delayed_work_on(cpu, system_wq, dwork, delay);