Home
last modified time | relevance | path

Searched refs:wdd (Results 1 – 23 of 23) sorted by relevance

/drivers/watchdog/
Dwatchdog_core.c46 static void watchdog_check_min_max_timeout(struct watchdog_device *wdd) in watchdog_check_min_max_timeout() argument
52 if (wdd->min_timeout > wdd->max_timeout) { in watchdog_check_min_max_timeout()
54 wdd->min_timeout = 0; in watchdog_check_min_max_timeout()
55 wdd->max_timeout = 0; in watchdog_check_min_max_timeout()
72 int watchdog_init_timeout(struct watchdog_device *wdd, in watchdog_init_timeout() argument
78 watchdog_check_min_max_timeout(wdd); in watchdog_init_timeout()
81 if (!watchdog_timeout_invalid(wdd, timeout_parm) && timeout_parm) { in watchdog_init_timeout()
82 wdd->timeout = timeout_parm; in watchdog_init_timeout()
92 if (!watchdog_timeout_invalid(wdd, t) && t) in watchdog_init_timeout()
93 wdd->timeout = t; in watchdog_init_timeout()
[all …]
Dbcm47xx_wdt.c47 static inline struct bcm47xx_wdt *bcm47xx_wdt_get(struct watchdog_device *wdd) in bcm47xx_wdt_get() argument
49 return container_of(wdd, struct bcm47xx_wdt, wdd); in bcm47xx_wdt_get()
52 static int bcm47xx_wdt_hard_keepalive(struct watchdog_device *wdd) in bcm47xx_wdt_hard_keepalive() argument
54 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_keepalive()
56 wdt->timer_set_ms(wdt, wdd->timeout * 1000); in bcm47xx_wdt_hard_keepalive()
61 static int bcm47xx_wdt_hard_start(struct watchdog_device *wdd) in bcm47xx_wdt_hard_start() argument
66 static int bcm47xx_wdt_hard_stop(struct watchdog_device *wdd) in bcm47xx_wdt_hard_stop() argument
68 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_stop()
75 static int bcm47xx_wdt_hard_set_timeout(struct watchdog_device *wdd, in bcm47xx_wdt_hard_set_timeout() argument
78 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_set_timeout()
[all …]
Dtegra_wdt.c68 struct watchdog_device wdd; member
86 static int tegra_wdt_start(struct watchdog_device *wdd) in tegra_wdt_start() argument
88 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_start()
109 (wdd->timeout << WDT_CFG_PERIOD_SHIFT) | in tegra_wdt_start()
118 static int tegra_wdt_stop(struct watchdog_device *wdd) in tegra_wdt_stop() argument
120 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_stop()
129 static int tegra_wdt_ping(struct watchdog_device *wdd) in tegra_wdt_ping() argument
131 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_ping()
138 static int tegra_wdt_set_timeout(struct watchdog_device *wdd, in tegra_wdt_set_timeout() argument
141 wdd->timeout = timeout; in tegra_wdt_set_timeout()
[all …]
Dwatchdog_dev.c295 struct watchdog_device *wdd = file->private_data; in watchdog_write() local
306 clear_bit(WDOG_ALLOW_RELEASE, &wdd->status); in watchdog_write()
313 set_bit(WDOG_ALLOW_RELEASE, &wdd->status); in watchdog_write()
317 watchdog_ping(wdd); in watchdog_write()
335 struct watchdog_device *wdd = file->private_data; in watchdog_ioctl() local
341 err = watchdog_ioctl_op(wdd, cmd, arg); in watchdog_ioctl()
347 return copy_to_user(argp, wdd->info, in watchdog_ioctl()
350 err = watchdog_get_status(wdd, &val); in watchdog_ioctl()
355 return put_user(wdd->bootstatus, p); in watchdog_ioctl()
360 err = watchdog_stop(wdd); in watchdog_ioctl()
[all …]
Dkempld_wdt.c83 struct watchdog_device wdd; member
212 static int kempld_wdt_set_timeout(struct watchdog_device *wdd, in kempld_wdt_set_timeout() argument
215 struct kempld_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in kempld_wdt_set_timeout()
235 wdd->timeout = timeout; in kempld_wdt_set_timeout()
239 static int kempld_wdt_set_pretimeout(struct watchdog_device *wdd, in kempld_wdt_set_pretimeout() argument
242 struct kempld_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in kempld_wdt_set_pretimeout()
252 if (pretimeout > wdd->timeout) in kempld_wdt_set_pretimeout()
263 wdd->timeout - pretimeout); in kempld_wdt_set_pretimeout()
291 wdt_data->wdd.timeout = pretimeout + timeout; in kempld_wdt_update_timeouts()
294 static int kempld_wdt_start(struct watchdog_device *wdd) in kempld_wdt_start() argument
[all …]
Dqcom-wdt.c28 struct watchdog_device wdd; member
36 struct qcom_wdt *to_qcom_wdt(struct watchdog_device *wdd) in to_qcom_wdt() argument
38 return container_of(wdd, struct qcom_wdt, wdd); in to_qcom_wdt()
41 static int qcom_wdt_start(struct watchdog_device *wdd) in qcom_wdt_start() argument
43 struct qcom_wdt *wdt = to_qcom_wdt(wdd); in qcom_wdt_start()
47 writel(wdd->timeout * wdt->rate, wdt->base + WDT_BITE_TIME); in qcom_wdt_start()
52 static int qcom_wdt_stop(struct watchdog_device *wdd) in qcom_wdt_stop() argument
54 struct qcom_wdt *wdt = to_qcom_wdt(wdd); in qcom_wdt_stop()
60 static int qcom_wdt_ping(struct watchdog_device *wdd) in qcom_wdt_ping() argument
62 struct qcom_wdt *wdt = to_qcom_wdt(wdd); in qcom_wdt_ping()
[all …]
Ddavinci_wdt.c68 struct watchdog_device wdd; member
71 static int davinci_wdt_start(struct watchdog_device *wdd) in davinci_wdt_start() argument
76 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); in davinci_wdt_start()
90 timer_margin = (((u64)wdd->timeout * wdt_freq) & 0xffffffff); in davinci_wdt_start()
92 timer_margin = (((u64)wdd->timeout * wdt_freq) >> 32); in davinci_wdt_start()
107 static int davinci_wdt_ping(struct watchdog_device *wdd) in davinci_wdt_ping() argument
109 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); in davinci_wdt_ping()
118 static unsigned int davinci_wdt_get_timeleft(struct watchdog_device *wdd) in davinci_wdt_get_timeleft() argument
123 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); in davinci_wdt_get_timeleft()
140 return wdd->timeout - timer_counter; in davinci_wdt_get_timeleft()
[all …]
Dgpio_wdt.c39 struct watchdog_device wdd; member
51 static int gpio_wdt_start(struct watchdog_device *wdd) in gpio_wdt_start() argument
53 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd); in gpio_wdt_start()
63 static int gpio_wdt_stop(struct watchdog_device *wdd) in gpio_wdt_stop() argument
65 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd); in gpio_wdt_stop()
73 static int gpio_wdt_ping(struct watchdog_device *wdd) in gpio_wdt_ping() argument
75 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd); in gpio_wdt_ping()
82 static int gpio_wdt_set_timeout(struct watchdog_device *wdd, unsigned int t) in gpio_wdt_set_timeout() argument
84 wdd->timeout = t; in gpio_wdt_set_timeout()
86 return gpio_wdt_ping(wdd); in gpio_wdt_set_timeout()
[all …]
Dsp805_wdt.c64 struct watchdog_device wdd; member
78 static int wdt_setload(struct watchdog_device *wdd, unsigned int timeout) in wdt_setload() argument
80 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_setload()
99 wdd->timeout = div_u64((load + 1) * 2 + (rate / 2), rate); in wdt_setload()
106 static unsigned int wdt_timeleft(struct watchdog_device *wdd) in wdt_timeleft() argument
108 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_timeleft()
124 static int wdt_config(struct watchdog_device *wdd, bool ping) in wdt_config() argument
126 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_config()
158 static int wdt_ping(struct watchdog_device *wdd) in wdt_ping() argument
160 return wdt_config(wdd, true); in wdt_ping()
[all …]
Dstmp3xxx_rtc_wdt.c28 static int wdt_start(struct watchdog_device *wdd) in wdt_start() argument
30 struct device *dev = watchdog_get_drvdata(wdd); in wdt_start()
33 pdata->wdt_set_timeout(dev->parent, wdd->timeout * WDOG_TICK_RATE); in wdt_start()
37 static int wdt_stop(struct watchdog_device *wdd) in wdt_stop() argument
39 struct device *dev = watchdog_get_drvdata(wdd); in wdt_stop()
46 static int wdt_set_timeout(struct watchdog_device *wdd, unsigned new_timeout) in wdt_set_timeout() argument
48 wdd->timeout = new_timeout; in wdt_set_timeout()
49 return wdt_start(wdd); in wdt_set_timeout()
99 struct watchdog_device *wdd = &stmp3xxx_wdd; in stmp3xxx_wdt_suspend() local
101 if (watchdog_active(wdd)) in stmp3xxx_wdt_suspend()
[all …]
Dsirfsoc_wdt.c42 static unsigned int sirfsoc_wdt_gettimeleft(struct watchdog_device *wdd) in sirfsoc_wdt_gettimeleft() argument
48 wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_gettimeleft()
58 static int sirfsoc_wdt_updatetimeout(struct watchdog_device *wdd) in sirfsoc_wdt_updatetimeout() argument
63 timeout_ticks = wdd->timeout * CLOCK_FREQ; in sirfsoc_wdt_updatetimeout()
64 wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_updatetimeout()
80 static int sirfsoc_wdt_enable(struct watchdog_device *wdd) in sirfsoc_wdt_enable() argument
82 void __iomem *wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_enable()
83 sirfsoc_wdt_updatetimeout(wdd); in sirfsoc_wdt_enable()
97 static int sirfsoc_wdt_disable(struct watchdog_device *wdd) in sirfsoc_wdt_disable() argument
99 void __iomem *wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_disable()
[all …]
Dat91sam9_wdt.c82 #define to_wdt(wdd) container_of(wdd, struct at91wdt, wdd) argument
84 struct watchdog_device wdd; member
125 !watchdog_active(&wdt->wdd)) { in at91_ping()
133 static int at91_wdt_start(struct watchdog_device *wdd) in at91_wdt_start() argument
135 struct at91wdt *wdt = to_wdt(wdd); in at91_wdt_start()
137 wdt->next_heartbeat = jiffies + wdd->timeout * HZ; in at91_wdt_start()
141 static int at91_wdt_stop(struct watchdog_device *wdd) in at91_wdt_stop() argument
147 static int at91_wdt_set_timeout(struct watchdog_device *wdd, unsigned int new_timeout) in at91_wdt_set_timeout() argument
149 wdd->timeout = new_timeout; in at91_wdt_set_timeout()
150 return at91_wdt_start(wdd); in at91_wdt_set_timeout()
[all …]
Dda9063_wdt.c61 static int da9063_wdt_start(struct watchdog_device *wdd) in da9063_wdt_start() argument
63 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd); in da9063_wdt_start()
76 static int da9063_wdt_stop(struct watchdog_device *wdd) in da9063_wdt_stop() argument
78 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd); in da9063_wdt_stop()
90 static int da9063_wdt_ping(struct watchdog_device *wdd) in da9063_wdt_ping() argument
92 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd); in da9063_wdt_ping()
104 static int da9063_wdt_set_timeout(struct watchdog_device *wdd, in da9063_wdt_set_timeout() argument
107 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd); in da9063_wdt_set_timeout()
117 wdd->timeout = wdt_timeout[selector]; in da9063_wdt_set_timeout()
Dvia_wdt.c101 static int wdt_ping(struct watchdog_device *wdd) in wdt_ping() argument
104 next_heartbeat = jiffies + wdd->timeout * HZ; in wdt_ping()
108 static int wdt_start(struct watchdog_device *wdd) in wdt_start() argument
112 writel(wdd->timeout, wdt_mem + VIA_WDT_COUNT); in wdt_start()
114 wdt_ping(wdd); in wdt_start()
119 static int wdt_stop(struct watchdog_device *wdd) in wdt_stop() argument
127 static int wdt_set_timeout(struct watchdog_device *wdd, in wdt_set_timeout() argument
131 wdd->timeout = new_timeout; in wdt_set_timeout()
Dux500_wdt.c41 static int ux500_wdt_start(struct watchdog_device *wdd) in ux500_wdt_start() argument
46 static int ux500_wdt_stop(struct watchdog_device *wdd) in ux500_wdt_stop() argument
51 static int ux500_wdt_keepalive(struct watchdog_device *wdd) in ux500_wdt_keepalive() argument
56 static int ux500_wdt_set_timeout(struct watchdog_device *wdd, in ux500_wdt_set_timeout() argument
59 ux500_wdt_stop(wdd); in ux500_wdt_set_timeout()
61 ux500_wdt_start(wdd); in ux500_wdt_set_timeout()
Dcadence_wdt.c130 static int cdns_wdt_stop(struct watchdog_device *wdd) in cdns_wdt_stop() argument
132 struct cdns_wdt *wdt = watchdog_get_drvdata(wdd); in cdns_wdt_stop()
151 static int cdns_wdt_reload(struct watchdog_device *wdd) in cdns_wdt_reload() argument
153 struct cdns_wdt *wdt = watchdog_get_drvdata(wdd); in cdns_wdt_reload()
181 static int cdns_wdt_start(struct watchdog_device *wdd) in cdns_wdt_start() argument
183 struct cdns_wdt *wdt = watchdog_get_drvdata(wdd); in cdns_wdt_start()
192 count = (wdd->timeout * (clock_f / wdt->prescaler)) / in cdns_wdt_start()
236 static int cdns_wdt_settimeout(struct watchdog_device *wdd, in cdns_wdt_settimeout() argument
239 wdd->timeout = new_time; in cdns_wdt_settimeout()
241 return cdns_wdt_start(wdd); in cdns_wdt_settimeout()
Die6xx_wdt.c101 static int ie6xx_wdt_ping(struct watchdog_device *wdd) in ie6xx_wdt_ping() argument
110 static int ie6xx_wdt_set_timeout(struct watchdog_device *wdd, unsigned int t) in ie6xx_wdt_set_timeout() argument
143 wdd->timeout = t; in ie6xx_wdt_set_timeout()
147 static int ie6xx_wdt_start(struct watchdog_device *wdd) in ie6xx_wdt_start() argument
149 ie6xx_wdt_set_timeout(wdd, wdd->timeout); in ie6xx_wdt_start()
159 static int ie6xx_wdt_stop(struct watchdog_device *wdd) in ie6xx_wdt_stop() argument
Dof_xilinx_wdt.c50 static int xilinx_wdt_start(struct watchdog_device *wdd) in xilinx_wdt_start() argument
53 struct xwdt_device *xdev = watchdog_get_drvdata(wdd); in xilinx_wdt_start()
71 static int xilinx_wdt_stop(struct watchdog_device *wdd) in xilinx_wdt_stop() argument
74 struct xwdt_device *xdev = watchdog_get_drvdata(wdd); in xilinx_wdt_stop()
91 static int xilinx_wdt_keepalive(struct watchdog_device *wdd) in xilinx_wdt_keepalive() argument
94 struct xwdt_device *xdev = watchdog_get_drvdata(wdd); in xilinx_wdt_keepalive()
Dpnx4008_wdt.c85 static int pnx4008_wdt_start(struct watchdog_device *wdd) in pnx4008_wdt_start() argument
102 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base)); in pnx4008_wdt_start()
110 static int pnx4008_wdt_stop(struct watchdog_device *wdd) in pnx4008_wdt_stop() argument
120 static int pnx4008_wdt_set_timeout(struct watchdog_device *wdd, in pnx4008_wdt_set_timeout() argument
123 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout()
Dmax63xx_wdt.c109 static int max63xx_wdt_ping(struct watchdog_device *wdd) in max63xx_wdt_ping() argument
124 static int max63xx_wdt_start(struct watchdog_device *wdd) in max63xx_wdt_start() argument
126 struct max63xx_timeout *entry = watchdog_get_drvdata(wdd); in max63xx_wdt_start()
140 max63xx_wdt_ping(wdd); in max63xx_wdt_start()
144 static int max63xx_wdt_stop(struct watchdog_device *wdd) in max63xx_wdt_stop() argument
Ds3c2410_wdt.c237 static int s3c2410wdt_keepalive(struct watchdog_device *wdd) in s3c2410wdt_keepalive() argument
239 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd); in s3c2410wdt_keepalive()
257 static int s3c2410wdt_stop(struct watchdog_device *wdd) in s3c2410wdt_stop() argument
259 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd); in s3c2410wdt_stop()
268 static int s3c2410wdt_start(struct watchdog_device *wdd) in s3c2410wdt_start() argument
271 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd); in s3c2410wdt_start()
304 static int s3c2410wdt_set_heartbeat(struct watchdog_device *wdd, unsigned timeout) in s3c2410wdt_set_heartbeat() argument
306 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd); in s3c2410wdt_set_heartbeat()
349 wdd->timeout = (count * divisor) / freq; in s3c2410wdt_set_heartbeat()
Dep93xx_wdt.c69 static int ep93xx_wdt_start(struct watchdog_device *wdd) in ep93xx_wdt_start() argument
79 static int ep93xx_wdt_stop(struct watchdog_device *wdd) in ep93xx_wdt_stop() argument
87 static int ep93xx_wdt_keepalive(struct watchdog_device *wdd) in ep93xx_wdt_keepalive() argument
Dcoh901327_wdt.c166 static int coh901327_ping(struct watchdog_device *wdd) in coh901327_ping() argument