Searched defs:wdd (Results 1 - 23 of 23) sorted by relevance

/drivers/watchdog/
H A Dwatchdog_core.c46 static void watchdog_check_min_max_timeout(struct watchdog_device *wdd) argument
52 if (wdd->min_timeout > wdd->max_timeout) {
54 wdd->min_timeout = 0;
55 wdd->max_timeout = 0;
72 int watchdog_init_timeout(struct watchdog_device *wdd, argument
78 watchdog_check_min_max_timeout(wdd);
81 if (!watchdog_timeout_invalid(wdd, timeout_parm) && timeout_parm) {
82 wdd->timeout = timeout_parm;
92 if (!watchdog_timeout_invalid(wdd,
111 watchdog_register_device(struct watchdog_device *wdd) argument
176 watchdog_unregister_device(struct watchdog_device *wdd) argument
[all...]
H A Dep93xx_wdt.c69 static int ep93xx_wdt_start(struct watchdog_device *wdd) argument
79 static int ep93xx_wdt_stop(struct watchdog_device *wdd) argument
87 static int ep93xx_wdt_keepalive(struct watchdog_device *wdd) argument
H A Dstmp3xxx_rtc_wdt.c28 static int wdt_start(struct watchdog_device *wdd) argument
30 struct device *dev = watchdog_get_drvdata(wdd);
33 pdata->wdt_set_timeout(dev->parent, wdd->timeout * WDOG_TICK_RATE);
37 static int wdt_stop(struct watchdog_device *wdd) argument
39 struct device *dev = watchdog_get_drvdata(wdd);
46 static int wdt_set_timeout(struct watchdog_device *wdd, unsigned new_timeout) argument
48 wdd->timeout = new_timeout;
49 return wdt_start(wdd);
99 struct watchdog_device *wdd = &stmp3xxx_wdd; local
101 if (watchdog_active(wdd))
109 struct watchdog_device *wdd = &stmp3xxx_wdd; local
[all...]
H A Dux500_wdt.c41 static int ux500_wdt_start(struct watchdog_device *wdd) argument
46 static int ux500_wdt_stop(struct watchdog_device *wdd) argument
51 static int ux500_wdt_keepalive(struct watchdog_device *wdd) argument
56 static int ux500_wdt_set_timeout(struct watchdog_device *wdd, argument
59 ux500_wdt_stop(wdd);
61 ux500_wdt_start(wdd);
H A Dbcm47xx_wdt.c47 static inline struct bcm47xx_wdt *bcm47xx_wdt_get(struct watchdog_device *wdd) argument
49 return container_of(wdd, struct bcm47xx_wdt, wdd);
52 static int bcm47xx_wdt_hard_keepalive(struct watchdog_device *wdd) argument
54 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd);
56 wdt->timer_set_ms(wdt, wdd->timeout * 1000);
61 static int bcm47xx_wdt_hard_start(struct watchdog_device *wdd) argument
66 static int bcm47xx_wdt_hard_stop(struct watchdog_device *wdd) argument
68 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd);
75 static int bcm47xx_wdt_hard_set_timeout(struct watchdog_device *wdd, argument
112 bcm47xx_wdt_soft_keepalive(struct watchdog_device *wdd) argument
121 bcm47xx_wdt_soft_start(struct watchdog_device *wdd) argument
131 bcm47xx_wdt_soft_stop(struct watchdog_device *wdd) argument
141 bcm47xx_wdt_soft_set_timeout(struct watchdog_device *wdd, unsigned int new_time) argument
[all...]
H A Dda9063_wdt.c61 static int da9063_wdt_start(struct watchdog_device *wdd) argument
63 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd);
76 static int da9063_wdt_stop(struct watchdog_device *wdd) argument
78 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd);
90 static int da9063_wdt_ping(struct watchdog_device *wdd) argument
92 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd);
104 static int da9063_wdt_set_timeout(struct watchdog_device *wdd, argument
107 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd);
117 wdd->timeout = wdt_timeout[selector];
H A Dgpio_wdt.c39 struct watchdog_device wdd; member in struct:gpio_wdt_priv
51 static int gpio_wdt_start(struct watchdog_device *wdd) argument
53 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd);
63 static int gpio_wdt_stop(struct watchdog_device *wdd) argument
65 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd);
73 static int gpio_wdt_ping(struct watchdog_device *wdd) argument
75 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd);
82 static int gpio_wdt_set_timeout(struct watchdog_device *wdd, unsigned int t) argument
84 wdd->timeout = t;
86 return gpio_wdt_ping(wdd);
91 struct watchdog_device *wdd = (struct watchdog_device *)data; local
[all...]
H A Dmax63xx_wdt.c109 static int max63xx_wdt_ping(struct watchdog_device *wdd) argument
124 static int max63xx_wdt_start(struct watchdog_device *wdd) argument
126 struct max63xx_timeout *entry = watchdog_get_drvdata(wdd);
140 max63xx_wdt_ping(wdd);
144 static int max63xx_wdt_stop(struct watchdog_device *wdd) argument
H A Dof_xilinx_wdt.c50 static int xilinx_wdt_start(struct watchdog_device *wdd) argument
53 struct xwdt_device *xdev = watchdog_get_drvdata(wdd);
71 static int xilinx_wdt_stop(struct watchdog_device *wdd) argument
74 struct xwdt_device *xdev = watchdog_get_drvdata(wdd);
91 static int xilinx_wdt_keepalive(struct watchdog_device *wdd) argument
94 struct xwdt_device *xdev = watchdog_get_drvdata(wdd);
H A Dqcom-wdt.c28 struct watchdog_device wdd; member in struct:qcom_wdt
36 struct qcom_wdt *to_qcom_wdt(struct watchdog_device *wdd) argument
38 return container_of(wdd, struct qcom_wdt, wdd);
41 static int qcom_wdt_start(struct watchdog_device *wdd) argument
43 struct qcom_wdt *wdt = to_qcom_wdt(wdd);
47 writel(wdd->timeout * wdt->rate, wdt->base + WDT_BITE_TIME);
52 static int qcom_wdt_stop(struct watchdog_device *wdd) argument
54 struct qcom_wdt *wdt = to_qcom_wdt(wdd);
60 static int qcom_wdt_ping(struct watchdog_device *wdd) argument
68 qcom_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) argument
[all...]
H A Dwatchdog_dev.c295 struct watchdog_device *wdd = file->private_data; local
306 clear_bit(WDOG_ALLOW_RELEASE, &wdd->status);
313 set_bit(WDOG_ALLOW_RELEASE, &wdd->status);
317 watchdog_ping(wdd);
335 struct watchdog_device *wdd = file->private_data; local
341 err = watchdog_ioctl_op(wdd, cmd, arg);
347 return copy_to_user(argp, wdd->info,
350 err = watchdog_get_status(wdd, &val);
355 return put_user(wdd->bootstatus, p);
360 err = watchdog_stop(wdd);
414 struct watchdog_device *wdd; local
464 struct watchdog_device *wdd = file->private_data; local
[all...]
H A Dat91sam9_wdt.c82 #define to_wdt(wdd) container_of(wdd, struct at91wdt, wdd)
84 struct watchdog_device wdd; member in struct:at91wdt
125 !watchdog_active(&wdt->wdd)) {
133 static int at91_wdt_start(struct watchdog_device *wdd) argument
135 struct at91wdt *wdt = to_wdt(wdd);
137 wdt->next_heartbeat = jiffies + wdd->timeout * HZ;
141 static int at91_wdt_stop(struct watchdog_device *wdd) argument
147 static int at91_wdt_set_timeout(struct watchdog_device *wdd, unsigne argument
[all...]
H A Ddavinci_wdt.c63 * @wdd - hold watchdog device as is in WDT core
68 struct watchdog_device wdd; member in struct:davinci_wdt_device
71 static int davinci_wdt_start(struct watchdog_device *wdd) argument
76 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd);
90 timer_margin = (((u64)wdd->timeout * wdt_freq) & 0xffffffff);
92 timer_margin = (((u64)wdd->timeout * wdt_freq) >> 32);
107 static int davinci_wdt_ping(struct watchdog_device *wdd) argument
109 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd);
118 static unsigned int davinci_wdt_get_timeleft(struct watchdog_device *wdd) argument
123 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd);
161 struct watchdog_device *wdd; local
[all...]
H A Die6xx_wdt.c101 static int ie6xx_wdt_ping(struct watchdog_device *wdd) argument
110 static int ie6xx_wdt_set_timeout(struct watchdog_device *wdd, unsigned int t) argument
143 wdd->timeout = t;
147 static int ie6xx_wdt_start(struct watchdog_device *wdd) argument
149 ie6xx_wdt_set_timeout(wdd, wdd->timeout);
159 static int ie6xx_wdt_stop(struct watchdog_device *wdd) argument
H A Dpnx4008_wdt.c85 static int pnx4008_wdt_start(struct watchdog_device *wdd) argument
102 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base));
110 static int pnx4008_wdt_stop(struct watchdog_device *wdd) argument
120 static int pnx4008_wdt_set_timeout(struct watchdog_device *wdd, argument
123 wdd->timeout = new_timeout;
H A Dsirfsoc_wdt.c42 static unsigned int sirfsoc_wdt_gettimeleft(struct watchdog_device *wdd) argument
48 wdt_base = watchdog_get_drvdata(wdd);
58 static int sirfsoc_wdt_updatetimeout(struct watchdog_device *wdd) argument
63 timeout_ticks = wdd->timeout * CLOCK_FREQ;
64 wdt_base = watchdog_get_drvdata(wdd);
80 static int sirfsoc_wdt_enable(struct watchdog_device *wdd) argument
82 void __iomem *wdt_base = watchdog_get_drvdata(wdd);
83 sirfsoc_wdt_updatetimeout(wdd);
97 static int sirfsoc_wdt_disable(struct watchdog_device *wdd) argument
99 void __iomem *wdt_base = watchdog_get_drvdata(wdd);
109 sirfsoc_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) argument
169 struct watchdog_device *wdd = platform_get_drvdata(pdev); local
188 struct watchdog_device *wdd = dev_get_drvdata(dev); local
[all...]
H A Dsp805_wdt.c55 * @wdd: instance of struct watchdog_device
64 struct watchdog_device wdd; member in struct:sp805_wdt
78 static int wdt_setload(struct watchdog_device *wdd, unsigned int timeout) argument
80 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd);
99 wdd->timeout = div_u64((load + 1) * 2 + (rate / 2), rate);
106 static unsigned int wdt_timeleft(struct watchdog_device *wdd) argument
108 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd);
124 static int wdt_config(struct watchdog_device *wdd, bool ping) argument
126 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd);
158 static int wdt_ping(struct watchdog_device *wdd) argument
164 wdt_enable(struct watchdog_device *wdd) argument
170 wdt_disable(struct watchdog_device *wdd) argument
[all...]
H A Dtegra_wdt.c68 struct watchdog_device wdd; member in struct:tegra_wdt
86 static int tegra_wdt_start(struct watchdog_device *wdd) argument
88 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd);
109 (wdd->timeout << WDT_CFG_PERIOD_SHIFT) |
118 static int tegra_wdt_stop(struct watchdog_device *wdd) argument
120 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd);
129 static int tegra_wdt_ping(struct watchdog_device *wdd) argument
131 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd);
138 static int tegra_wdt_set_timeout(struct watchdog_device *wdd, argument
141 wdd
149 tegra_wdt_get_timeleft(struct watchdog_device *wdd) argument
190 struct watchdog_device *wdd; local
[all...]
H A Dvia_wdt.c101 static int wdt_ping(struct watchdog_device *wdd) argument
104 next_heartbeat = jiffies + wdd->timeout * HZ;
108 static int wdt_start(struct watchdog_device *wdd) argument
112 writel(wdd->timeout, wdt_mem + VIA_WDT_COUNT);
114 wdt_ping(wdd);
119 static int wdt_stop(struct watchdog_device *wdd) argument
127 static int wdt_set_timeout(struct watchdog_device *wdd, argument
131 wdd->timeout = new_timeout;
H A Dcadence_wdt.c123 * @wdd: watchdog device
130 static int cdns_wdt_stop(struct watchdog_device *wdd) argument
132 struct cdns_wdt *wdt = watchdog_get_drvdata(wdd);
145 * @wdd: watchdog device
151 static int cdns_wdt_reload(struct watchdog_device *wdd) argument
153 struct cdns_wdt *wdt = watchdog_get_drvdata(wdd);
166 * @wdd: watchdog device
181 static int cdns_wdt_start(struct watchdog_device *wdd) argument
183 struct cdns_wdt *wdt = watchdog_get_drvdata(wdd);
192 count = (wdd
236 cdns_wdt_settimeout(struct watchdog_device *wdd, unsigned int new_time) argument
[all...]
H A Dcoh901327_wdt.c166 static int coh901327_ping(struct watchdog_device *wdd) argument
H A Dkempld_wdt.c83 struct watchdog_device wdd; member in struct:kempld_wdt_data
205 static int kempld_wdt_set_timeout(struct watchdog_device *wdd, argument
208 struct kempld_wdt_data *wdt_data = watchdog_get_drvdata(wdd);
228 wdd->timeout = timeout;
232 static int kempld_wdt_set_pretimeout(struct watchdog_device *wdd, argument
235 struct kempld_wdt_data *wdt_data = watchdog_get_drvdata(wdd);
245 if (pretimeout > wdd->timeout)
256 wdd->timeout - pretimeout);
284 wdt_data->wdd.timeout = pretimeout + timeout;
287 static int kempld_wdt_start(struct watchdog_device *wdd) argument
312 kempld_wdt_stop(struct watchdog_device *wdd) argument
332 kempld_wdt_keepalive(struct watchdog_device *wdd) argument
344 kempld_wdt_ioctl(struct watchdog_device *wdd, unsigned int cmd, unsigned long arg) argument
370 kempld_wdt_probe_stages(struct watchdog_device *wdd) argument
447 struct watchdog_device *wdd; local
512 struct watchdog_device *wdd = &wdt_data->wdd; local
529 struct watchdog_device *wdd = &wdt_data->wdd; local
547 struct watchdog_device *wdd = &wdt_data->wdd; local
[all...]
H A Ds3c2410_wdt.c237 static int s3c2410wdt_keepalive(struct watchdog_device *wdd) argument
239 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd);
257 static int s3c2410wdt_stop(struct watchdog_device *wdd) argument
259 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd);
268 static int s3c2410wdt_start(struct watchdog_device *wdd) argument
271 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd);
304 static int s3c2410wdt_set_heartbeat(struct watchdog_device *wdd, unsigned timeout) argument
306 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd);
349 wdd->timeout = (count * divisor) / freq;

Completed in 115 milliseconds