Home
last modified time | relevance | path

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

123456

/linux/include/linux/
H A Dwatchdog.h25 struct watchdog_device;
50 int (*start)(struct watchdog_device *);
52 int (*stop)(struct watchdog_device *);
53 int (*ping)(struct watchdog_device *);
54 unsigned int (*status)(struct watchdog_device *);
55 int (*set_timeout)(struct watchdog_device *, unsigned int);
56 int (*set_pretimeout)(struct watchdog_device *, unsigned int);
57 unsigned int (*get_timeleft)(struct watchdog_device *);
58 int (*restart)(struct watchdog_device *, unsigned long, void *);
59 long (*ioctl)(struct watchdog_device *, unsigned int, unsigned long);
[all …]
/linux/drivers/watchdog/
H A 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()
H A Dwatchdog_core.h49 struct watchdog_device *wdd;
68 extern int watchdog_dev_register(struct watchdog_device *);
69 extern void watchdog_dev_unregister(struct watchdog_device *);
73 static inline bool watchdog_have_pretimeout(struct watchdog_device *wdd) in watchdog_have_pretimeout()
80 void watchdog_hrtimer_pretimeout_init(struct watchdog_device *wdd);
81 void watchdog_hrtimer_pretimeout_start(struct watchdog_device *wdd);
82 void watchdog_hrtimer_pretimeout_stop(struct watchdog_device *wdd);
84 static inline void watchdog_hrtimer_pretimeout_init(struct watchdog_device *wdd) {} in watchdog_hrtimer_pretimeout_init()
85 static inline void watchdog_hrtimer_pretimeout_start(struct watchdog_device *wdd) {} in watchdog_hrtimer_pretimeout_start()
86 static inline void watchdog_hrtimer_pretimeout_stop(struct watchdog_device *wdd) {} in watchdog_hrtimer_pretimeout_stop()
H A 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 …]
H A 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()
H A Dtwl4030_wdt.c30 static int twl4030_wdt_start(struct watchdog_device *wdt) in twl4030_wdt_start()
35 static int twl4030_wdt_stop(struct watchdog_device *wdt) in twl4030_wdt_stop()
40 static int twl4030_wdt_set_timeout(struct watchdog_device *wdt, in twl4030_wdt_set_timeout()
62 struct watchdog_device *wdt; in twl4030_wdt_probe()
86 struct watchdog_device *wdt = platform_get_drvdata(pdev); in twl4030_wdt_suspend()
95 struct watchdog_device *wdt = platform_get_drvdata(pdev); in twl4030_wdt_resume()
H A Dbooke_wdt.c110 struct watchdog_device *wdog = data; in __booke_wdt_set()
129 static int booke_wdt_ping(struct watchdog_device *wdog) in booke_wdt_ping()
139 struct watchdog_device *wdog = data; in __booke_wdt_enable()
171 static int booke_wdt_start(struct watchdog_device *wdog) in booke_wdt_start()
179 static int booke_wdt_stop(struct watchdog_device *wdog) in booke_wdt_stop()
187 static int booke_wdt_set_timeout(struct watchdog_device *wdt_dev, in booke_wdt_set_timeout()
209 static struct watchdog_device booke_wdt_dev = {
H A 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 = {
119 struct watchdog_device *wdd = &stmp3xxx_wdd; in stmp3xxx_wdt_suspend()
129 struct watchdog_device *wdd = &stmp3xxx_wdd; in stmp3xxx_wdt_resume()
H A Dapple_wdt.c57 struct watchdog_device wdd;
62 static struct apple_wdt *to_apple_wdt(struct watchdog_device *wdd) in to_apple_wdt()
67 static int apple_wdt_start(struct watchdog_device *wdd) in apple_wdt_start()
77 static int apple_wdt_stop(struct watchdog_device *wdd) in apple_wdt_stop()
86 static int apple_wdt_ping(struct watchdog_device *wdd) in apple_wdt_ping()
95 static int apple_wdt_set_timeout(struct watchdog_device *wdd, unsigned int s) in apple_wdt_set_timeout()
110 static unsigned int apple_wdt_get_timeleft(struct watchdog_device *wdd) in apple_wdt_get_timeleft()
121 static int apple_wdt_restart(struct watchdog_device *wdd, unsigned long mode, in apple_wdt_restart()
H A Dixp4xx_wdt.c24 struct watchdog_device wdd;
46 struct ixp4xx_wdt *to_ixp4xx_wdt(struct watchdog_device *wdd) in to_ixp4xx_wdt()
51 static int ixp4xx_wdt_start(struct watchdog_device *wdd) in ixp4xx_wdt_start()
66 static int ixp4xx_wdt_stop(struct watchdog_device *wdd) in ixp4xx_wdt_stop()
77 static int ixp4xx_wdt_set_timeout(struct watchdog_device *wdd, in ixp4xx_wdt_set_timeout()
87 static int ixp4xx_wdt_restart(struct watchdog_device *wdd, in ixp4xx_wdt_restart()
115 static int ixp4xx_wdt_dummy(struct watchdog_device *wdd) in ixp4xx_wdt_dummy()
H A Dgxp-wdt.c26 struct watchdog_device wdd;
38 static int gxp_wdt_start(struct watchdog_device *wdd) in gxp_wdt_start()
47 static int gxp_wdt_stop(struct watchdog_device *wdd) in gxp_wdt_stop()
58 static int gxp_wdt_set_timeout(struct watchdog_device *wdd, in gxp_wdt_set_timeout()
71 static unsigned int gxp_wdt_get_timeleft(struct watchdog_device *wdd) in gxp_wdt_get_timeleft()
79 static int gxp_wdt_ping(struct watchdog_device *wdd) in gxp_wdt_ping()
87 static int gxp_restart(struct watchdog_device *wdd, unsigned long action, in gxp_restart()
H A 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()
125 struct watchdog_device *da9055_wdt; in da9055_wdt_probe()
H A Dimx2_wdt.c71 struct watchdog_device wdog;
100 static int imx2_wdt_restart(struct watchdog_device *wdog, unsigned long action, in imx2_wdt_restart()
130 static inline void imx2_wdt_setup(struct watchdog_device *wdog) in imx2_wdt_setup()
171 static int imx2_wdt_ping(struct watchdog_device *wdog) in imx2_wdt_ping()
183 static void __imx2_wdt_set_timeout(struct watchdog_device *wdog, in __imx2_wdt_set_timeout()
192 static int imx2_wdt_set_timeout(struct watchdog_device *wdog, in imx2_wdt_set_timeout()
203 static int imx2_wdt_set_pretimeout(struct watchdog_device *wdog, in imx2_wdt_set_pretimeout()
221 struct watchdog_device *wdog = wdog_arg; in imx2_wdt_isr()
232 static int imx2_wdt_start(struct watchdog_device *wdog) in imx2_wdt_start()
271 struct watchdog_device *wdog; in imx2_wdt_probe()
[all …]
H A Dqcom-wdt.c48 struct watchdog_device wdd;
60 struct qcom_wdt *to_qcom_wdt(struct watchdog_device *wdd) in to_qcom_wdt()
67 struct watchdog_device *wdd = arg; in qcom_wdt_isr()
74 static int qcom_wdt_start(struct watchdog_device *wdd) in qcom_wdt_start()
87 static int qcom_wdt_stop(struct watchdog_device *wdd) in qcom_wdt_stop()
95 static int qcom_wdt_ping(struct watchdog_device *wdd) in qcom_wdt_ping()
103 static int qcom_wdt_set_timeout(struct watchdog_device *wdd, in qcom_wdt_set_timeout()
110 static int qcom_wdt_set_pretimeout(struct watchdog_device *wdd, in qcom_wdt_set_pretimeout()
117 static int qcom_wdt_restart(struct watchdog_device *wdd, unsigned long action, in qcom_wdt_restart()
144 static int qcom_wdt_is_running(struct watchdog_device *wdd) in qcom_wdt_is_running()
H A Darm_smc_wdt.c34 static int smcwd_call(struct watchdog_device *wdd, enum smcwd_call call, in smcwd_call()
56 static int smcwd_ping(struct watchdog_device *wdd) in smcwd_ping()
61 static unsigned int smcwd_get_timeleft(struct watchdog_device *wdd) in smcwd_get_timeleft()
71 static int smcwd_set_timeout(struct watchdog_device *wdd, unsigned int timeout) in smcwd_set_timeout()
81 static int smcwd_stop(struct watchdog_device *wdd) in smcwd_stop()
86 static int smcwd_start(struct watchdog_device *wdd) in smcwd_start()
115 struct watchdog_device *wdd; in smcwd_probe()
H A Dvisconti_wdt.c35 struct watchdog_device wdev;
40 static int visconti_wdt_start(struct watchdog_device *wdev) in visconti_wdt_start()
54 static int visconti_wdt_stop(struct watchdog_device *wdev) in visconti_wdt_stop()
64 static int visconti_wdt_ping(struct watchdog_device *wdd) in visconti_wdt_ping()
73 static unsigned int visconti_wdt_get_timeleft(struct watchdog_device *wdev) in visconti_wdt_get_timeleft()
86 static int visconti_wdt_set_timeout(struct watchdog_device *wdev, unsigned int timeout) in visconti_wdt_set_timeout()
117 struct watchdog_device *wdev; in visconti_wdt_probe()
H A Dda9063_wdt.c96 static int da9063_wdt_start(struct watchdog_device *wdd) in da9063_wdt_start()
109 static int da9063_wdt_stop(struct watchdog_device *wdd) in da9063_wdt_stop()
122 static int da9063_wdt_ping(struct watchdog_device *wdd) in da9063_wdt_ping()
143 static int da9063_wdt_set_timeout(struct watchdog_device *wdd, in da9063_wdt_set_timeout()
171 static int da9063_wdt_restart(struct watchdog_device *wdd, unsigned long action, in da9063_wdt_restart()
218 struct watchdog_device *wdd; in da9063_wdt_probe()
268 struct watchdog_device *wdd = dev_get_drvdata(dev); in da9063_wdt_suspend()
282 struct watchdog_device *wdd = dev_get_drvdata(dev); in da9063_wdt_resume()
H A Ds32g_wdt.c39 struct watchdog_device wdog;
63 static struct s32g_wdt_device *wdd_to_s32g_wdt(struct watchdog_device *wdd) in wdd_to_s32g_wdt()
73 static int s32g_wdt_ping(struct watchdog_device *wdog) in s32g_wdt_ping()
83 static int s32g_wdt_start(struct watchdog_device *wdog) in s32g_wdt_start()
97 static int s32g_wdt_stop(struct watchdog_device *wdog) in s32g_wdt_stop()
111 static int s32g_wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) in s32g_wdt_set_timeout()
131 static unsigned int s32g_wdt_get_timeleft(struct watchdog_device *wdog) in s32g_wdt_get_timeleft()
220 struct watchdog_device *wdog; in s32g_wdt_probe()
H A 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()
185 struct watchdog_device *wdd; in tegra_wdt_probe()
H A Djz4740_wdt.c40 struct watchdog_device wdt;
46 static int jz4740_wdt_ping(struct watchdog_device *wdt_dev) in jz4740_wdt_ping()
55 static int jz4740_wdt_set_timeout(struct watchdog_device *wdt_dev, in jz4740_wdt_set_timeout()
75 static int jz4740_wdt_start(struct watchdog_device *wdt_dev) in jz4740_wdt_start()
96 static int jz4740_wdt_stop(struct watchdog_device *wdt_dev) in jz4740_wdt_stop()
106 static int jz4740_wdt_restart(struct watchdog_device *wdt_dev, in jz4740_wdt_restart()
141 struct watchdog_device *jz4740_wdt; in jz4740_wdt_probe()
H A Dimx_sc_wdt.c45 struct watchdog_device wdd;
49 static int imx_sc_wdt_ping(struct watchdog_device *wdog) in imx_sc_wdt_ping()
78 static int imx_sc_wdt_start(struct watchdog_device *wdog) in imx_sc_wdt_start()
95 static int imx_sc_wdt_stop(struct watchdog_device *wdog) in imx_sc_wdt_stop()
105 static int imx_sc_wdt_set_timeout(struct watchdog_device *wdog, in imx_sc_wdt_set_timeout()
117 static int imx_sc_wdt_set_pretimeout(struct watchdog_device *wdog, in imx_sc_wdt_set_pretimeout()
181 struct watchdog_device *wdog; in imx_sc_wdt_probe()
H A Dairoha_wdt.c38 struct watchdog_device wdog_dev;
54 static int airoha_wdt_start(struct watchdog_device *wdog_dev) in airoha_wdt_start()
68 static int airoha_wdt_stop(struct watchdog_device *wdog_dev) in airoha_wdt_stop()
80 static int airoha_wdt_ping(struct watchdog_device *wdog_dev) in airoha_wdt_ping()
92 static int airoha_wdt_set_timeout(struct watchdog_device *wdog_dev, unsigned int timeout) in airoha_wdt_set_timeout()
104 static unsigned int airoha_wdt_get_timeleft(struct watchdog_device *wdog_dev) in airoha_wdt_get_timeleft()
130 struct watchdog_device *wdog_dev; in airoha_wdt_probe()
H A Dsl28cpld_wdt.c41 struct watchdog_device wdd;
47 static int sl28cpld_wdt_ping(struct watchdog_device *wdd) in sl28cpld_wdt_ping()
55 static int sl28cpld_wdt_start(struct watchdog_device *wdd) in sl28cpld_wdt_start()
70 static int sl28cpld_wdt_stop(struct watchdog_device *wdd) in sl28cpld_wdt_stop()
78 static unsigned int sl28cpld_wdt_get_timeleft(struct watchdog_device *wdd) in sl28cpld_wdt_get_timeleft()
91 static int sl28cpld_wdt_set_timeout(struct watchdog_device *wdd, in sl28cpld_wdt_set_timeout()
122 struct watchdog_device *wdd; in sl28cpld_wdt_probe()
H A Dcgbc_wdt.c57 struct watchdog_device wdd;
72 static int cgbc_wdt_start(struct watchdog_device *wdd) in cgbc_wdt_start()
105 static int cgbc_wdt_stop(struct watchdog_device *wdd) in cgbc_wdt_stop()
117 static int cgbc_wdt_keepalive(struct watchdog_device *wdd) in cgbc_wdt_keepalive()
126 static int cgbc_wdt_set_pretimeout(struct watchdog_device *wdd, in cgbc_wdt_set_pretimeout()
137 static int cgbc_wdt_set_timeout(struct watchdog_device *wdd, in cgbc_wdt_set_timeout()
171 struct watchdog_device *wdd; in cgbc_wdt_probe()
/linux/include/trace/events/
H A Dwatchdog.h13 TP_PROTO(struct watchdog_device *wdd, int err),
31 TP_PROTO(struct watchdog_device *wdd, int err),
35 TP_PROTO(struct watchdog_device *wdd, int err),
39 TP_PROTO(struct watchdog_device *wdd, int err),
44 TP_PROTO(struct watchdog_device *wdd, unsigned int timeout, int err),

123456