/openbmc/linux/include/linux/ |
H A D | watchdog.h | 21 struct watchdog_device; 46 int (*start)(struct watchdog_device *); 48 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 *); 94 struct watchdog_device { struct 220 int watchdog_dev_suspend(struct watchdog_device *wdd); [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | watchdog_pretimeout.h | 7 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 D | watchdog_core.h | 43 struct watchdog_device *wdd; 62 extern int watchdog_dev_register(struct watchdog_device *); 63 extern void watchdog_dev_unregister(struct watchdog_device *); 67 static inline bool watchdog_have_pretimeout(struct watchdog_device *wdd) in watchdog_have_pretimeout() 74 void watchdog_hrtimer_pretimeout_init(struct watchdog_device *wdd); 75 void watchdog_hrtimer_pretimeout_start(struct watchdog_device *wdd); 76 void watchdog_hrtimer_pretimeout_stop(struct watchdog_device *wdd); 78 static inline void watchdog_hrtimer_pretimeout_init(struct watchdog_device *wdd) {} in watchdog_hrtimer_pretimeout_init() 79 static inline void watchdog_hrtimer_pretimeout_start(struct watchdog_device *wdd) {} in watchdog_hrtimer_pretimeout_start() 80 static inline void watchdog_hrtimer_pretimeout_stop(struct watchdog_device *wdd) {} in watchdog_hrtimer_pretimeout_stop()
|
H A D | watchdog_core.c | 76 struct watchdog_device *wdd_tmp; in watchdog_deferred_registration_del() 79 wdd_tmp = list_entry(p, struct watchdog_device, in watchdog_deferred_registration_del() 118 int watchdog_init_timeout(struct watchdog_device *wdd, in watchdog_init_timeout() 161 struct watchdog_device *wdd; in watchdog_reboot_notifier() 181 struct watchdog_device *wdd = container_of(nb, struct watchdog_device, in watchdog_restart_notifier() 196 struct watchdog_device *wdd; in watchdog_pm_notifier() 199 wdd = container_of(nb, struct watchdog_device, pm_nb); in watchdog_pm_notifier() 423 struct watchdog_device *wdd) in devm_watchdog_register_device() 425 struct watchdog_device **rcwdd; in devm_watchdog_register_device() 450 struct watchdog_device *wdd; in watchdog_deferred_registration() [all …]
|
H A D | rave-sp-wdt.c | 41 int (*configure)(struct watchdog_device *, bool); 42 int (*restart)(struct watchdog_device *); 54 struct watchdog_device wdd; 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() 165 static int rave_sp_wdt_restart(struct watchdog_device *wdd, in rave_sp_wdt_restart() 179 static int rave_sp_wdt_start(struct watchdog_device *wdd) in rave_sp_wdt_start() 190 static int rave_sp_wdt_stop(struct watchdog_device *wdd) in rave_sp_wdt_stop() 195 static int rave_sp_wdt_set_timeout(struct watchdog_device *wdd, in rave_sp_wdt_set_timeout() 203 static int rave_sp_wdt_ping(struct watchdog_device *wdd) in rave_sp_wdt_ping() [all …]
|
H A D | watchdog_dev.c | 191 static int watchdog_ping(struct watchdog_device *wdd) in watchdog_ping() 206 struct watchdog_device *wdd = wd_data->wdd; in watchdog_worker_should_ping() 447 struct watchdog_device *wdd = dev_get_drvdata(dev); in nowayout_show() 456 struct watchdog_device *wdd = dev_get_drvdata(dev); in nowayout_store() 476 struct watchdog_device *wdd = dev_get_drvdata(dev); in status_show() 491 struct watchdog_device *wdd = dev_get_drvdata(dev); in bootstatus_show() 500 struct watchdog_device *wdd = dev_get_drvdata(dev); in timeleft_show() 701 struct watchdog_device *wdd; in watchdog_write() 755 struct watchdog_device *wdd; in watchdog_ioctl() 867 struct watchdog_device *wdd; in watchdog_open() [all …]
|
H A D | bcm47xx_wdt.c | 43 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 D | twl4030_wdt.c | 30 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 D | apple_wdt.c | 57 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() 107 static unsigned int apple_wdt_get_timeleft(struct watchdog_device *wdd) in apple_wdt_get_timeleft() 118 static int apple_wdt_restart(struct watchdog_device *wdd, unsigned long mode, in apple_wdt_restart()
|
H A D | booke_wdt.c | 110 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 D | stmp3xxx_rtc_wdt.c | 27 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 D | loongson1_wdt.c | 30 struct watchdog_device wdt; 33 static int ls1x_wdt_ping(struct watchdog_device *wdt_dev) in ls1x_wdt_ping() 42 static int ls1x_wdt_set_timeout(struct watchdog_device *wdt_dev, in ls1x_wdt_set_timeout() 57 static int ls1x_wdt_start(struct watchdog_device *wdt_dev) in ls1x_wdt_start() 66 static int ls1x_wdt_stop(struct watchdog_device *wdt_dev) in ls1x_wdt_stop() 75 static int ls1x_wdt_restart(struct watchdog_device *wdt_dev, in ls1x_wdt_restart() 105 struct watchdog_device *ls1x_wdt; in ls1x_wdt_probe()
|
H A D | da9055_wdt.c | 32 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 D | arm_smc_wdt.c | 34 static int smcwd_call(struct watchdog_device *wdd, enum smcwd_call call, in smcwd_call() 54 static int smcwd_ping(struct watchdog_device *wdd) in smcwd_ping() 59 static unsigned int smcwd_get_timeleft(struct watchdog_device *wdd) in smcwd_get_timeleft() 69 static int smcwd_set_timeout(struct watchdog_device *wdd, unsigned int timeout) in smcwd_set_timeout() 79 static int smcwd_stop(struct watchdog_device *wdd) in smcwd_stop() 84 static int smcwd_start(struct watchdog_device *wdd) in smcwd_start() 113 struct watchdog_device *wdd; in smcwd_probe()
|
H A D | ixp4xx_wdt.c | 24 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 D | gxp-wdt.c | 26 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 D | visconti_wdt.c | 35 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 D | imx_sc_wdt.c | 44 struct watchdog_device wdd; 48 static int imx_sc_wdt_ping(struct watchdog_device *wdog) in imx_sc_wdt_ping() 58 static int imx_sc_wdt_start(struct watchdog_device *wdog) in imx_sc_wdt_start() 73 static int imx_sc_wdt_stop(struct watchdog_device *wdog) in imx_sc_wdt_stop() 83 static int imx_sc_wdt_set_timeout(struct watchdog_device *wdog, in imx_sc_wdt_set_timeout() 95 static int imx_sc_wdt_set_pretimeout(struct watchdog_device *wdog, in imx_sc_wdt_set_pretimeout() 159 struct watchdog_device *wdog; in imx_sc_wdt_probe()
|
H A D | da9052_wdt.c | 28 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() 156 struct watchdog_device *da9052_wdt; in da9052_wdt_probe()
|
H A D | ts72xx_wdt.c | 45 struct watchdog_device wdd; 49 static int ts72xx_wdt_start(struct watchdog_device *wdd) in ts72xx_wdt_start() 59 static int ts72xx_wdt_stop(struct watchdog_device *wdd) in ts72xx_wdt_stop() 69 static int ts72xx_wdt_ping(struct watchdog_device *wdd) in ts72xx_wdt_ping() 78 static int ts72xx_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) in ts72xx_wdt_settimeout() 125 struct watchdog_device *wdd; in ts72xx_wdt_probe()
|
H A D | imx2_wdt.c | 71 struct watchdog_device wdog; 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() 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() 367 struct watchdog_device *wdog = platform_get_drvdata(pdev); in imx2_wdt_shutdown() 384 struct watchdog_device *wdog = dev_get_drvdata(dev); in imx2_wdt_suspend() [all …]
|
H A D | qcom-wdt.c | 47 struct watchdog_device wdd; 59 struct qcom_wdt *to_qcom_wdt(struct watchdog_device *wdd) in to_qcom_wdt() 66 struct watchdog_device *wdd = arg; in qcom_wdt_isr() 73 static int qcom_wdt_start(struct watchdog_device *wdd) in qcom_wdt_start() 86 static int qcom_wdt_stop(struct watchdog_device *wdd) in qcom_wdt_stop() 94 static int qcom_wdt_ping(struct watchdog_device *wdd) in qcom_wdt_ping() 102 static int qcom_wdt_set_timeout(struct watchdog_device *wdd, in qcom_wdt_set_timeout() 109 static int qcom_wdt_set_pretimeout(struct watchdog_device *wdd, in qcom_wdt_set_pretimeout() 116 static int qcom_wdt_restart(struct watchdog_device *wdd, unsigned long action, in qcom_wdt_restart() 143 static int qcom_wdt_is_running(struct watchdog_device *wdd) in qcom_wdt_is_running()
|
H A D | da9063_wdt.c | 97 static int da9063_wdt_start(struct watchdog_device *wdd) in da9063_wdt_start() 110 static int da9063_wdt_stop(struct watchdog_device *wdd) in da9063_wdt_stop() 123 static int da9063_wdt_ping(struct watchdog_device *wdd) in da9063_wdt_ping() 144 static int da9063_wdt_set_timeout(struct watchdog_device *wdd, in da9063_wdt_set_timeout() 172 static int da9063_wdt_restart(struct watchdog_device *wdd, unsigned long action, in da9063_wdt_restart() 219 struct watchdog_device *wdd; in da9063_wdt_probe() 269 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 D | npcm_wdt.c | 45 struct watchdog_device wdd; 50 static inline struct npcm_wdt *to_npcm_wdt(struct watchdog_device *wdd) in to_npcm_wdt() 55 static int npcm_wdt_ping(struct watchdog_device *wdd) in npcm_wdt_ping() 66 static int npcm_wdt_start(struct watchdog_device *wdd) in npcm_wdt_start() 102 static int npcm_wdt_stop(struct watchdog_device *wdd) in npcm_wdt_stop() 114 static int npcm_wdt_set_timeout(struct watchdog_device *wdd, in npcm_wdt_set_timeout() 153 static int npcm_wdt_restart(struct watchdog_device *wdd, in npcm_wdt_restart() 168 static bool npcm_is_running(struct watchdog_device *wdd) in npcm_is_running()
|
/openbmc/linux/include/trace/events/ |
H A D | watchdog.h | 13 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),
|