Lines Matching full:wdd
18 /* The spinlock protects default_gov, wdd->gov and pretimeout_list */
25 struct watchdog_device *wdd; member
66 int watchdog_pretimeout_governor_get(struct watchdog_device *wdd, char *buf) in watchdog_pretimeout_governor_get() argument
71 if (wdd->gov) in watchdog_pretimeout_governor_get()
72 count = sysfs_emit(buf, "%s\n", wdd->gov->name); in watchdog_pretimeout_governor_get()
78 int watchdog_pretimeout_governor_set(struct watchdog_device *wdd, in watchdog_pretimeout_governor_set() argument
92 wdd->gov = priv->gov; in watchdog_pretimeout_governor_set()
100 void watchdog_notify_pretimeout(struct watchdog_device *wdd) in watchdog_notify_pretimeout() argument
105 if (!wdd->gov) { in watchdog_notify_pretimeout()
110 wdd->gov->pretimeout(wdd); in watchdog_notify_pretimeout()
141 if (!p->wdd->gov) in watchdog_register_governor()
142 p->wdd->gov = default_gov; in watchdog_register_governor()
169 if (p->wdd->gov == gov) in watchdog_unregister_governor()
170 p->wdd->gov = default_gov; in watchdog_unregister_governor()
177 int watchdog_register_pretimeout(struct watchdog_device *wdd) in watchdog_register_pretimeout() argument
181 if (!watchdog_have_pretimeout(wdd)) in watchdog_register_pretimeout()
190 p->wdd = wdd; in watchdog_register_pretimeout()
191 wdd->gov = default_gov; in watchdog_register_pretimeout()
197 void watchdog_unregister_pretimeout(struct watchdog_device *wdd) in watchdog_unregister_pretimeout() argument
201 if (!watchdog_have_pretimeout(wdd)) in watchdog_unregister_pretimeout()
205 wdd->gov = NULL; in watchdog_unregister_pretimeout()
208 if (p->wdd == wdd) { in watchdog_unregister_pretimeout()