Lines Matching full:wd

530 #define DECLARE_DPM_WATCHDOG_ON_STACK(wd) \  argument
531 struct dpm_watchdog wd
605 struct dpm_watchdog *wd = timer_container_of(wd, t, timer); in dpm_watchdog_handler() local
606 struct timer_list *timer = &wd->timer; in dpm_watchdog_handler()
609 if (wd->fatal) { in dpm_watchdog_handler()
612 dev_emerg(wd->dev, "**** DPM device timeout ****\n"); in dpm_watchdog_handler()
613 show_stack(wd->tsk, NULL, KERN_EMERG); in dpm_watchdog_handler()
617 dev_driver_string(wd->dev), dev_name(wd->dev)); in dpm_watchdog_handler()
621 dev_warn(wd->dev, "**** DPM device timeout after %u seconds; %u seconds until panic ****\n", in dpm_watchdog_handler()
623 show_stack(wd->tsk, NULL, KERN_WARNING); in dpm_watchdog_handler()
625 wd->fatal = true; in dpm_watchdog_handler()
631 * @wd: Watchdog. Must be allocated on the stack.
634 static void dpm_watchdog_set(struct dpm_watchdog *wd, struct device *dev) in dpm_watchdog_set() argument
636 struct timer_list *timer = &wd->timer; in dpm_watchdog_set()
641 wd->dev = dev; in dpm_watchdog_set()
642 wd->tsk = current; in dpm_watchdog_set()
643 wd->fatal = dpm_watchdog_timeout == dpm_watchdog_warning_timeout; in dpm_watchdog_set()
653 * @wd: Watchdog to disable.
655 static void dpm_watchdog_clear(struct dpm_watchdog *wd) in dpm_watchdog_clear() argument
657 struct timer_list *timer = &wd->timer; in dpm_watchdog_clear()
666 #define DECLARE_DPM_WATCHDOG_ON_STACK(wd) argument
1118 DECLARE_DPM_WATCHDOG_ON_STACK(wd); in device_resume()
1147 dpm_watchdog_set(&wd, dev); in device_resume()
1195 dpm_watchdog_clear(&wd); in device_resume()
1945 DECLARE_DPM_WATCHDOG_ON_STACK(wd); in device_suspend()
2000 dpm_watchdog_set(&wd, dev); in device_suspend()
2052 dpm_watchdog_clear(&wd); in device_suspend()