| /Linux-v5.15/include/linux/ |
| 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 *); 54 int (*restart)(struct watchdog_device *, unsigned long, void *); 55 long (*ioctl)(struct watchdog_device *, unsigned int, unsigned long); [all …]
|
| /Linux-v5.15/drivers/watchdog/ |
| 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()
|
| 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()
|
| D | watchdog_core.c | 64 static void 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() 115 int watchdog_init_timeout(struct watchdog_device *wdd, in watchdog_init_timeout() 158 struct watchdog_device *wdd; in watchdog_reboot_notifier() 160 wdd = container_of(nb, struct watchdog_device, reboot_nb); in watchdog_reboot_notifier() 177 struct watchdog_device *wdd = container_of(nb, struct watchdog_device, in watchdog_restart_notifier() 192 struct watchdog_device *wdd; in watchdog_pm_notifier() [all …]
|
| D | rave-sp-wdt.c | 41 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 …]
|
| D | watchdog_dev.c | 73 static inline bool watchdog_need_worker(struct watchdog_device *wdd) in watchdog_need_worker() 96 static ktime_t watchdog_next_keepalive(struct watchdog_device *wdd) in watchdog_next_keepalive() 126 static inline void watchdog_update_worker(struct watchdog_device *wdd) in watchdog_update_worker() 141 static int __watchdog_ping(struct watchdog_device *wdd) in __watchdog_ping() 185 static int watchdog_ping(struct watchdog_device *wdd) in watchdog_ping() 200 struct watchdog_device *wdd = wd_data->wdd; in watchdog_worker_should_ping() 244 static int watchdog_start(struct watchdog_device *wdd) in watchdog_start() 288 static int watchdog_stop(struct watchdog_device *wdd) in watchdog_stop() 326 static unsigned int watchdog_get_status(struct watchdog_device *wdd) in watchdog_get_status() 362 static int watchdog_set_timeout(struct watchdog_device *wdd, in watchdog_set_timeout() [all …]
|
| 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()
|
| D | imx2_wdt.c | 66 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() 172 static void __imx2_wdt_set_timeout(struct watchdog_device *wdog, in __imx2_wdt_set_timeout() 181 static int imx2_wdt_set_timeout(struct watchdog_device *wdog, in imx2_wdt_set_timeout() 192 static int imx2_wdt_set_pretimeout(struct watchdog_device *wdog, in imx2_wdt_set_pretimeout() 210 struct watchdog_device *wdog = wdog_arg; in imx2_wdt_isr() 221 static int imx2_wdt_start(struct watchdog_device *wdog) in imx2_wdt_start() 260 struct watchdog_device *wdog; in imx2_wdt_probe() [all …]
|
| D | twl4030_wdt.c | 29 static int twl4030_wdt_start(struct watchdog_device *wdt) in twl4030_wdt_start() 34 static int twl4030_wdt_stop(struct watchdog_device *wdt) in twl4030_wdt_stop() 39 static int twl4030_wdt_set_timeout(struct watchdog_device *wdt, in twl4030_wdt_set_timeout() 61 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()
|
| 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 = {
|
| 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 = { 120 struct watchdog_device *wdd = &stmp3xxx_wdd; in stmp3xxx_wdt_suspend() 130 struct watchdog_device *wdd = &stmp3xxx_wdd; in stmp3xxx_wdt_resume()
|
| D | npcm_wdt.c | 44 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() 106 static int npcm_wdt_set_timeout(struct watchdog_device *wdd, in npcm_wdt_set_timeout() 145 static int npcm_wdt_restart(struct watchdog_device *wdd, in npcm_wdt_restart() 156 static bool npcm_is_running(struct watchdog_device *wdd) in npcm_is_running()
|
| 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()
|
| 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()
|
| D | qcom-wdt.c | 48 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()
|
| D | mt7621_wdt.c | 53 static int mt7621_wdt_ping(struct watchdog_device *w) in mt7621_wdt_ping() 60 static int mt7621_wdt_set_timeout(struct watchdog_device *w, unsigned int t) in mt7621_wdt_set_timeout() 69 static int mt7621_wdt_start(struct watchdog_device *w) in mt7621_wdt_start() 85 static int mt7621_wdt_stop(struct watchdog_device *w) in mt7621_wdt_stop() 106 static int mt7621_wdt_is_running(struct watchdog_device *w) in mt7621_wdt_is_running() 124 static struct watchdog_device mt7621_wdt_dev = {
|
| D | ts72xx_wdt.c | 47 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() 127 struct watchdog_device *wdd; in ts72xx_wdt_probe()
|
| 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()
|
| 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()
|
| D | sl28cpld_wdt.c | 41 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()
|
| D | jz4740_wdt.c | 40 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()
|
| 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() 122 struct watchdog_device *wdev; in visconti_wdt_probe()
|
| D | tegra_wdt.c | 60 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()
|
| D | loongson1_wdt.c | 24 struct watchdog_device wdt; 27 static int ls1x_wdt_ping(struct watchdog_device *wdt_dev) in ls1x_wdt_ping() 36 static int ls1x_wdt_set_timeout(struct watchdog_device *wdt_dev, in ls1x_wdt_set_timeout() 51 static int ls1x_wdt_start(struct watchdog_device *wdt_dev) in ls1x_wdt_start() 60 static int ls1x_wdt_stop(struct watchdog_device *wdt_dev) in ls1x_wdt_stop() 91 struct watchdog_device *ls1x_wdt; in ls1x_wdt_probe()
|
| D | keembay_wdt.c | 51 struct watchdog_device wdd; 70 static void keembay_wdt_set_timeout_reg(struct watchdog_device *wdog) in keembay_wdt_set_timeout_reg() 77 static void keembay_wdt_set_pretimeout_reg(struct watchdog_device *wdog) in keembay_wdt_set_pretimeout_reg() 88 static int keembay_wdt_start(struct watchdog_device *wdog) in keembay_wdt_start() 97 static int keembay_wdt_stop(struct watchdog_device *wdog) in keembay_wdt_stop() 106 static int keembay_wdt_ping(struct watchdog_device *wdog) in keembay_wdt_ping() 113 static int keembay_wdt_set_timeout(struct watchdog_device *wdog, u32 t) in keembay_wdt_set_timeout() 122 static int keembay_wdt_set_pretimeout(struct watchdog_device *wdog, u32 t) in keembay_wdt_set_pretimeout() 133 static unsigned int keembay_wdt_get_timeleft(struct watchdog_device *wdog) in keembay_wdt_get_timeleft()
|