Lines Matching refs:watchdog_device

28 extern int watchdog_register_device(struct watchdog_device *);
29 extern void watchdog_unregister_device(struct watchdog_device *);
32 The parameter of this routine is a pointer to a watchdog_device structure.
37 watchdog_device structure.
41 struct watchdog_device {
89 int (*start)(struct watchdog_device *);
90 int (*stop)(struct watchdog_device *);
92 int (*ping)(struct watchdog_device *);
93 unsigned int (*status)(struct watchdog_device *);
94 int (*set_timeout)(struct watchdog_device *, unsigned int);
95 unsigned int (*get_timeleft)(struct watchdog_device *);
96 void (*ref)(struct watchdog_device *);
97 void (*unref)(struct watchdog_device *);
98 long (*ioctl)(struct watchdog_device *, unsigned int, unsigned long);
106 If the watchdog_device struct is dynamically allocated, just locking the module
108 ensure the structure holding the watchdog_device does not go away.
111 1) Add a kref struct to the same structure which is holding the watchdog_device
154 routine should set the timeout value of the watchdog_device to the
161 allocated watchdog_device struct.
163 allocated watchdog_device struct.
167 call are: watchdog_device, cmd and arg.
191 * set it statically in your watchdog_device struct with
195 static inline void watchdog_set_nowayout(struct watchdog_device *wdd, int nowayout)
205 static inline void watchdog_set_drvdata(struct watchdog_device *wdd, void *data)
206 static inline void *watchdog_get_drvdata(struct watchdog_device *wdd)
218 extern int watchdog_init_timeout(struct watchdog_device *wdd,
224 to set the default timeout value as timeout value in the watchdog_device and