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.
45 struct watchdog_device {
96 int (*start)(struct watchdog_device *);
97 int (*stop)(struct watchdog_device *);
99 int (*ping)(struct watchdog_device *);
100 unsigned int (*status)(struct watchdog_device *);
101 int (*set_timeout)(struct watchdog_device *, unsigned int);
102 unsigned int (*get_timeleft)(struct watchdog_device *);
103 void (*ref)(struct watchdog_device *);
104 void (*unref)(struct watchdog_device *);
105 long (*ioctl)(struct watchdog_device *, unsigned int, unsigned long);
113 If the watchdog_device struct is dynamically allocated, just locking the module
115 ensure the structure holding the watchdog_device does not go away.
118 1) Add a kref struct to the same structure which is holding the watchdog_device
161 routine should set the timeout value of the watchdog_device to the
168 allocated watchdog_device struct.
170 allocated watchdog_device struct.
174 call are: watchdog_device, cmd and arg.
198 * set it statically in your watchdog_device struct with
202 static inline void watchdog_set_nowayout(struct watchdog_device *wdd, int nowayout)
212 static inline void watchdog_set_drvdata(struct watchdog_device *wdd, void *data)
213 static inline void *watchdog_get_drvdata(struct watchdog_device *wdd)
225 extern int watchdog_init_timeout(struct watchdog_device *wdd,
231 to set the default timeout value as timeout value in the watchdog_device and