Home
last modified time | relevance | path

Searched refs:watchdog_device (Results 1 – 25 of 109) sorted by relevance

12345

/Linux-v4.19/drivers/watchdog/
Dintel_scu_watchdog.c95 static struct intel_scu_watchdog_dev watchdog_device; variable
158 int_status = ioread32(watchdog_device.timer_interrupt_status_addr); in watchdog_timer_interrupt()
166 if (watchdog_device.timer_started == 0) { in watchdog_timer_interrupt()
172 iowrite32(0x00000002, watchdog_device.timer_control_addr); in watchdog_timer_interrupt()
175 iowrite32(watchdog_device.threshold, in watchdog_timer_interrupt()
176 watchdog_device.timer_load_count_addr); in watchdog_timer_interrupt()
179 iowrite32(0x00000003, watchdog_device.timer_control_addr); in watchdog_timer_interrupt()
188 ioread32(watchdog_device.timer_clear_interrupt_addr); in intel_scu_keepalive()
191 iowrite32(0x00000002, watchdog_device.timer_control_addr); in intel_scu_keepalive()
194 iowrite32(watchdog_device.soft_threshold, in intel_scu_keepalive()
[all …]
Dwatchdog_pretimeout.h7 struct watchdog_device;
11 void (*pretimeout)(struct watchdog_device *wdd);
20 int watchdog_register_pretimeout(struct watchdog_device *wdd);
21 void watchdog_unregister_pretimeout(struct watchdog_device *wdd);
23 int watchdog_pretimeout_governor_get(struct watchdog_device *wdd, char *buf);
24 int watchdog_pretimeout_governor_set(struct watchdog_device *wdd,
34 static inline int watchdog_register_pretimeout(struct watchdog_device *wdd) in watchdog_register_pretimeout()
39 static inline void watchdog_unregister_pretimeout(struct watchdog_device *wdd) in watchdog_unregister_pretimeout()
48 static inline int watchdog_pretimeout_governor_get(struct watchdog_device *wdd, in watchdog_pretimeout_governor_get()
54 static inline int watchdog_pretimeout_governor_set(struct watchdog_device *wdd, in watchdog_pretimeout_governor_set()
Dwatchdog_core.c63 static int watchdog_deferred_registration_add(struct watchdog_device *wdd) in watchdog_deferred_registration_add()
70 static void watchdog_deferred_registration_del(struct watchdog_device *wdd) in watchdog_deferred_registration_del()
73 struct watchdog_device *wdd_tmp; in watchdog_deferred_registration_del()
76 wdd_tmp = list_entry(p, struct watchdog_device, in watchdog_deferred_registration_del()
85 static void watchdog_check_min_max_timeout(struct watchdog_device *wdd) in watchdog_check_min_max_timeout()
112 int watchdog_init_timeout(struct watchdog_device *wdd, in watchdog_init_timeout()
144 struct watchdog_device *wdd = container_of(nb, struct watchdog_device, in watchdog_restart_notifier()
170 void watchdog_set_restart_priority(struct watchdog_device *wdd, int priority) in watchdog_set_restart_priority()
176 static int __watchdog_register_device(struct watchdog_device *wdd) in __watchdog_register_device()
252 int watchdog_register_device(struct watchdog_device *wdd) in watchdog_register_device()
[all …]
Drave-sp-wdt.c41 int (*configure)(struct watchdog_device *, bool);
42 int (*restart)(struct watchdog_device *);
54 struct watchdog_device wdd;
60 static struct rave_sp_wdt *to_rave_sp_wdt(struct watchdog_device *wdd) in to_rave_sp_wdt()
65 static int rave_sp_wdt_exec(struct watchdog_device *wdd, void *data, in rave_sp_wdt_exec()
72 static int rave_sp_wdt_legacy_configure(struct watchdog_device *wdd, bool on) in rave_sp_wdt_legacy_configure()
85 static int rave_sp_wdt_rdu_configure(struct watchdog_device *wdd, bool on) in rave_sp_wdt_rdu_configure()
112 static int rave_sp_wdt_configure(struct watchdog_device *wdd, bool on) in rave_sp_wdt_configure()
117 static int rave_sp_wdt_legacy_restart(struct watchdog_device *wdd) in rave_sp_wdt_legacy_restart()
128 static int rave_sp_wdt_rdu_restart(struct watchdog_device *wdd) in rave_sp_wdt_rdu_restart()
[all …]
Dwatchdog_dev.c68 struct watchdog_device *wdd;
90 static inline bool watchdog_need_worker(struct watchdog_device *wdd) in watchdog_need_worker()
113 static ktime_t watchdog_next_keepalive(struct watchdog_device *wdd) in watchdog_next_keepalive()
142 static inline void watchdog_update_worker(struct watchdog_device *wdd) in watchdog_update_worker()
156 static int __watchdog_ping(struct watchdog_device *wdd) in __watchdog_ping()
197 static int watchdog_ping(struct watchdog_device *wdd) in watchdog_ping()
212 struct watchdog_device *wdd = wd_data->wdd; in watchdog_worker_should_ping()
250 static int watchdog_start(struct watchdog_device *wdd) in watchdog_start()
287 static int watchdog_stop(struct watchdog_device *wdd) in watchdog_stop()
324 static unsigned int watchdog_get_status(struct watchdog_device *wdd) in watchdog_get_status()
[all …]
Dtwl4030_wdt.c42 static int twl4030_wdt_start(struct watchdog_device *wdt) in twl4030_wdt_start()
47 static int twl4030_wdt_stop(struct watchdog_device *wdt) in twl4030_wdt_stop()
52 static int twl4030_wdt_set_timeout(struct watchdog_device *wdt, in twl4030_wdt_set_timeout()
74 struct watchdog_device *wdt; in twl4030_wdt_probe()
102 struct watchdog_device *wdt = platform_get_drvdata(pdev); in twl4030_wdt_remove()
112 struct watchdog_device *wdt = platform_get_drvdata(pdev); in twl4030_wdt_suspend()
121 struct watchdog_device *wdt = platform_get_drvdata(pdev); in twl4030_wdt_resume()
Dbcm47xx_wdt.c43 static inline struct bcm47xx_wdt *bcm47xx_wdt_get(struct watchdog_device *wdd) in bcm47xx_wdt_get()
48 static int bcm47xx_wdt_hard_keepalive(struct watchdog_device *wdd) in bcm47xx_wdt_hard_keepalive()
57 static int bcm47xx_wdt_hard_start(struct watchdog_device *wdd) in bcm47xx_wdt_hard_start()
62 static int bcm47xx_wdt_hard_stop(struct watchdog_device *wdd) in bcm47xx_wdt_hard_stop()
71 static int bcm47xx_wdt_hard_set_timeout(struct watchdog_device *wdd, in bcm47xx_wdt_hard_set_timeout()
87 static int bcm47xx_wdt_restart(struct watchdog_device *wdd, in bcm47xx_wdt_restart()
119 static int bcm47xx_wdt_soft_keepalive(struct watchdog_device *wdd) in bcm47xx_wdt_soft_keepalive()
128 static int bcm47xx_wdt_soft_start(struct watchdog_device *wdd) in bcm47xx_wdt_soft_start()
138 static int bcm47xx_wdt_soft_stop(struct watchdog_device *wdd) in bcm47xx_wdt_soft_stop()
148 static int bcm47xx_wdt_soft_set_timeout(struct watchdog_device *wdd, in bcm47xx_wdt_soft_set_timeout()
Dsirfsoc_wdt.c42 static void __iomem *sirfsoc_wdt_base(struct watchdog_device *wdd) in sirfsoc_wdt_base()
47 static unsigned int sirfsoc_wdt_gettimeleft(struct watchdog_device *wdd) in sirfsoc_wdt_gettimeleft()
63 static int sirfsoc_wdt_updatetimeout(struct watchdog_device *wdd) in sirfsoc_wdt_updatetimeout()
85 static int sirfsoc_wdt_enable(struct watchdog_device *wdd) in sirfsoc_wdt_enable()
102 static int sirfsoc_wdt_disable(struct watchdog_device *wdd) in sirfsoc_wdt_disable()
114 static int sirfsoc_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) in sirfsoc_wdt_settimeout()
139 static struct watchdog_device sirfsoc_wdd = {
175 struct watchdog_device *wdd = platform_get_drvdata(pdev); in sirfsoc_wdt_shutdown()
194 struct watchdog_device *wdd = dev_get_drvdata(dev); in sirfsoc_wdt_resume()
Dimx2_wdt.c66 struct watchdog_device wdog;
92 static int imx2_wdt_restart(struct watchdog_device *wdog, unsigned long action, in imx2_wdt_restart()
122 static inline void imx2_wdt_setup(struct watchdog_device *wdog) in imx2_wdt_setup()
160 static int imx2_wdt_ping(struct watchdog_device *wdog) in imx2_wdt_ping()
169 static void __imx2_wdt_set_timeout(struct watchdog_device *wdog, in __imx2_wdt_set_timeout()
178 static int imx2_wdt_set_timeout(struct watchdog_device *wdog, in imx2_wdt_set_timeout()
187 static int imx2_wdt_set_pretimeout(struct watchdog_device *wdog, in imx2_wdt_set_pretimeout()
205 struct watchdog_device *wdog = wdog_arg; in imx2_wdt_isr()
216 static int imx2_wdt_start(struct watchdog_device *wdog) in imx2_wdt_start()
249 struct watchdog_device *wdog; in imx2_wdt_probe()
[all …]
Dbooke_wdt.c109 struct watchdog_device *wdog = data; in __booke_wdt_set()
128 static int booke_wdt_ping(struct watchdog_device *wdog) in booke_wdt_ping()
138 struct watchdog_device *wdog = data; in __booke_wdt_enable()
170 static int booke_wdt_start(struct watchdog_device *wdog) in booke_wdt_start()
178 static int booke_wdt_stop(struct watchdog_device *wdog) in booke_wdt_stop()
186 static int booke_wdt_set_timeout(struct watchdog_device *wdt_dev, in booke_wdt_set_timeout()
208 static struct watchdog_device booke_wdt_dev = {
Datlas7_wdt.c43 static unsigned int atlas7_wdt_gettimeleft(struct watchdog_device *wdd) in atlas7_wdt_gettimeleft()
55 static int atlas7_wdt_ping(struct watchdog_device *wdd) in atlas7_wdt_ping()
69 static int atlas7_wdt_enable(struct watchdog_device *wdd) in atlas7_wdt_enable()
82 static int atlas7_wdt_disable(struct watchdog_device *wdd) in atlas7_wdt_disable()
93 static int atlas7_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) in atlas7_wdt_settimeout()
117 static struct watchdog_device atlas7_wdd = {
187 struct watchdog_device *wdd = platform_get_drvdata(pdev); in atlas7_wdt_shutdown()
196 struct watchdog_device *wdd = platform_get_drvdata(pdev); in atlas7_wdt_remove()
215 struct watchdog_device *wdd = dev_get_drvdata(dev); in atlas7_wdt_resume()
Dnpcm_wdt.c44 struct watchdog_device wdd;
48 static inline struct npcm_wdt *to_npcm_wdt(struct watchdog_device *wdd) in to_npcm_wdt()
53 static int npcm_wdt_ping(struct watchdog_device *wdd) in npcm_wdt_ping()
64 static int npcm_wdt_start(struct watchdog_device *wdd) in npcm_wdt_start()
97 static int npcm_wdt_stop(struct watchdog_device *wdd) in npcm_wdt_stop()
107 static int npcm_wdt_set_timeout(struct watchdog_device *wdd, in npcm_wdt_set_timeout()
146 static int npcm_wdt_restart(struct watchdog_device *wdd, in npcm_wdt_restart()
157 static bool npcm_is_running(struct watchdog_device *wdd) in npcm_is_running()
Dda9055_wdt.c32 struct watchdog_device wdt;
52 static int da9055_wdt_set_timeout(struct watchdog_device *wdt_dev, in da9055_wdt_set_timeout()
81 static int da9055_wdt_ping(struct watchdog_device *wdt_dev) in da9055_wdt_ping()
97 static int da9055_wdt_start(struct watchdog_device *wdt_dev) in da9055_wdt_start()
102 static int da9055_wdt_stop(struct watchdog_device *wdt_dev) in da9055_wdt_stop()
124 struct watchdog_device *da9055_wdt; in da9055_wdt_probe()
Dstmp3xxx_rtc_wdt.c27 static int wdt_start(struct watchdog_device *wdd) in wdt_start()
36 static int wdt_stop(struct watchdog_device *wdd) in wdt_stop()
45 static int wdt_set_timeout(struct watchdog_device *wdd, unsigned new_timeout) in wdt_set_timeout()
63 static struct watchdog_device stmp3xxx_wdd = {
122 struct watchdog_device *wdd = &stmp3xxx_wdd; in stmp3xxx_wdt_suspend()
132 struct watchdog_device *wdd = &stmp3xxx_wdd; in stmp3xxx_wdt_resume()
Dmt7621_wdt.c55 static int mt7621_wdt_ping(struct watchdog_device *w) in mt7621_wdt_ping()
62 static int mt7621_wdt_set_timeout(struct watchdog_device *w, unsigned int t) in mt7621_wdt_set_timeout()
71 static int mt7621_wdt_start(struct watchdog_device *w) in mt7621_wdt_start()
87 static int mt7621_wdt_stop(struct watchdog_device *w) in mt7621_wdt_stop()
108 static int mt7621_wdt_is_running(struct watchdog_device *w) in mt7621_wdt_is_running()
126 static struct watchdog_device mt7621_wdt_dev = {
Djz4740_wdt.c66 struct watchdog_device wdt;
71 static int jz4740_wdt_ping(struct watchdog_device *wdt_dev) in jz4740_wdt_ping()
79 static int jz4740_wdt_set_timeout(struct watchdog_device *wdt_dev, in jz4740_wdt_set_timeout()
115 static int jz4740_wdt_start(struct watchdog_device *wdt_dev) in jz4740_wdt_start()
123 static int jz4740_wdt_stop(struct watchdog_device *wdt_dev) in jz4740_wdt_stop()
133 static int jz4740_wdt_restart(struct watchdog_device *wdt_dev, in jz4740_wdt_restart()
167 struct watchdog_device *jz4740_wdt; in jz4740_wdt_probe()
Dorion_wdt.c62 int (*start)(struct watchdog_device *);
63 int (*stop)(struct watchdog_device *);
67 struct watchdog_device wdt;
180 static int orion_wdt_ping(struct watchdog_device *wdt_dev) in orion_wdt_ping()
189 static int armada375_start(struct watchdog_device *wdt_dev) in armada375_start()
214 static int armada370_start(struct watchdog_device *wdt_dev) in armada370_start()
237 static int orion_start(struct watchdog_device *wdt_dev) in orion_start()
256 static int orion_wdt_start(struct watchdog_device *wdt_dev) in orion_wdt_start()
264 static int orion_stop(struct watchdog_device *wdt_dev) in orion_stop()
277 static int armada375_stop(struct watchdog_device *wdt_dev) in armada375_stop()
[all …]
Dda9052_wdt.c28 struct watchdog_device wdt;
49 static int da9052_wdt_set_timeout(struct watchdog_device *wdt_dev, in da9052_wdt_set_timeout()
98 static int da9052_wdt_start(struct watchdog_device *wdt_dev) in da9052_wdt_start()
103 static int da9052_wdt_stop(struct watchdog_device *wdt_dev) in da9052_wdt_stop()
108 static int da9052_wdt_ping(struct watchdog_device *wdt_dev) in da9052_wdt_ping()
155 struct watchdog_device *da9052_wdt; in da9052_wdt_probe()
Dretu_wdt.c62 static int retu_wdt_start(struct watchdog_device *wdog) in retu_wdt_start()
71 static int retu_wdt_stop(struct watchdog_device *wdog) in retu_wdt_stop()
80 static int retu_wdt_ping(struct watchdog_device *wdog) in retu_wdt_ping()
87 static int retu_wdt_set_timeout(struct watchdog_device *wdog, in retu_wdt_set_timeout()
113 struct watchdog_device *retu_wdt; in retu_wdt_probe()
156 struct watchdog_device *wdog = platform_get_drvdata(pdev); in retu_wdt_remove()
Dts72xx_wdt.c47 struct watchdog_device wdd;
51 static int ts72xx_wdt_start(struct watchdog_device *wdd) in ts72xx_wdt_start()
61 static int ts72xx_wdt_stop(struct watchdog_device *wdd) in ts72xx_wdt_stop()
71 static int ts72xx_wdt_ping(struct watchdog_device *wdd) in ts72xx_wdt_ping()
80 static int ts72xx_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) in ts72xx_wdt_settimeout()
126 struct watchdog_device *wdd; in ts72xx_wdt_probe()
Ddigicolor_wdt.c48 static int dc_wdt_restart(struct watchdog_device *wdog, unsigned long action, in dc_wdt_restart()
60 static int dc_wdt_start(struct watchdog_device *wdog) in dc_wdt_start()
69 static int dc_wdt_stop(struct watchdog_device *wdog) in dc_wdt_stop()
78 static int dc_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t) in dc_wdt_set_timeout()
88 static unsigned int dc_wdt_get_timeleft(struct watchdog_device *wdog) in dc_wdt_get_timeleft()
111 static struct watchdog_device dc_wdt_wdd = {
Dloongson1_wdt.c28 struct watchdog_device wdt;
31 static int ls1x_wdt_ping(struct watchdog_device *wdt_dev) in ls1x_wdt_ping()
40 static int ls1x_wdt_set_timeout(struct watchdog_device *wdt_dev, in ls1x_wdt_set_timeout()
55 static int ls1x_wdt_start(struct watchdog_device *wdt_dev) in ls1x_wdt_start()
64 static int ls1x_wdt_stop(struct watchdog_device *wdt_dev) in ls1x_wdt_stop()
89 struct watchdog_device *ls1x_wdt; in ls1x_wdt_probe()
Dbcm7038_wdt.c30 struct watchdog_device wdd;
37 static void bcm7038_wdt_set_timeout_reg(struct watchdog_device *wdog) in bcm7038_wdt_set_timeout_reg()
47 static int bcm7038_wdt_ping(struct watchdog_device *wdog) in bcm7038_wdt_ping()
57 static int bcm7038_wdt_start(struct watchdog_device *wdog) in bcm7038_wdt_start()
65 static int bcm7038_wdt_stop(struct watchdog_device *wdog) in bcm7038_wdt_stop()
75 static int bcm7038_wdt_set_timeout(struct watchdog_device *wdog, in bcm7038_wdt_set_timeout()
86 static unsigned int bcm7038_wdt_get_timeleft(struct watchdog_device *wdog) in bcm7038_wdt_get_timeleft()
Dtegra_wdt.c60 struct watchdog_device wdd;
78 static int tegra_wdt_start(struct watchdog_device *wdd) in tegra_wdt_start()
110 static int tegra_wdt_stop(struct watchdog_device *wdd) in tegra_wdt_stop()
121 static int tegra_wdt_ping(struct watchdog_device *wdd) in tegra_wdt_ping()
130 static int tegra_wdt_set_timeout(struct watchdog_device *wdd, in tegra_wdt_set_timeout()
143 static unsigned int tegra_wdt_get_timeleft(struct watchdog_device *wdd) in tegra_wdt_get_timeleft()
184 struct watchdog_device *wdd; in tegra_wdt_probe()
/Linux-v4.19/include/linux/
Dwatchdog.h21 struct watchdog_device;
46 int (*start)(struct watchdog_device *);
47 int (*stop)(struct watchdog_device *);
49 int (*ping)(struct watchdog_device *);
50 unsigned int (*status)(struct watchdog_device *);
51 int (*set_timeout)(struct watchdog_device *, unsigned int);
52 int (*set_pretimeout)(struct watchdog_device *, unsigned int);
53 unsigned int (*get_timeleft)(struct watchdog_device *);
54 int (*restart)(struct watchdog_device *, unsigned long, void *);
55 long (*ioctl)(struct watchdog_device *, unsigned int, unsigned long);
[all …]

12345