Lines Matching refs:wd

502 #define DECLARE_DPM_WATCHDOG_ON_STACK(wd) \  argument
503 struct dpm_watchdog wd
515 struct dpm_watchdog *wd = from_timer(wd, t, timer); in dpm_watchdog_handler() local
516 struct timer_list *timer = &wd->timer; in dpm_watchdog_handler()
519 if (wd->fatal) { in dpm_watchdog_handler()
520 dev_emerg(wd->dev, "**** DPM device timeout ****\n"); in dpm_watchdog_handler()
521 show_stack(wd->tsk, NULL, KERN_EMERG); in dpm_watchdog_handler()
523 dev_driver_string(wd->dev), dev_name(wd->dev)); in dpm_watchdog_handler()
527 dev_warn(wd->dev, "**** DPM device timeout after %u seconds; %u seconds until panic ****\n", in dpm_watchdog_handler()
529 show_stack(wd->tsk, NULL, KERN_WARNING); in dpm_watchdog_handler()
531 wd->fatal = true; in dpm_watchdog_handler()
540 static void dpm_watchdog_set(struct dpm_watchdog *wd, struct device *dev) in dpm_watchdog_set() argument
542 struct timer_list *timer = &wd->timer; in dpm_watchdog_set()
544 wd->dev = dev; in dpm_watchdog_set()
545 wd->tsk = current; in dpm_watchdog_set()
546 wd->fatal = CONFIG_DPM_WATCHDOG_TIMEOUT == CONFIG_DPM_WATCHDOG_WARNING_TIMEOUT; in dpm_watchdog_set()
558 static void dpm_watchdog_clear(struct dpm_watchdog *wd) in dpm_watchdog_clear() argument
560 struct timer_list *timer = &wd->timer; in dpm_watchdog_clear()
566 #define DECLARE_DPM_WATCHDOG_ON_STACK(wd) argument
933 DECLARE_DPM_WATCHDOG_ON_STACK(wd); in device_resume()
960 dpm_watchdog_set(&wd, dev); in device_resume()
1009 dpm_watchdog_clear(&wd); in device_resume()
1628 DECLARE_DPM_WATCHDOG_ON_STACK(wd); in device_suspend()
1683 dpm_watchdog_set(&wd, dev); in device_suspend()
1735 dpm_watchdog_clear(&wd); in device_suspend()