Home
last modified time | relevance | path

Searched refs:new_timeout (Results 1 – 25 of 29) sorted by relevance

12

/linux-3.4.99/drivers/watchdog/
Dsmsc37b787_wdt.c167 static inline void wdt_timeout_value(unsigned char new_timeout) in wdt_timeout_value() argument
172 write_io_cr(0xF2, new_timeout); in wdt_timeout_value()
277 static void wb_smsc_wdt_set_timeout(unsigned char new_timeout) in wb_smsc_wdt_set_timeout() argument
284 wdt_timer_ctrl((new_timeout == 0) ? 0x00 : 0x02); in wb_smsc_wdt_set_timeout()
287 wdt_timeout_value(new_timeout); in wb_smsc_wdt_set_timeout()
426 int new_timeout; in wb_smsc_wdt_ioctl() local
472 if (get_user(new_timeout, uarg.i)) in wb_smsc_wdt_ioctl()
476 new_timeout /= 60; in wb_smsc_wdt_ioctl()
477 if (new_timeout < 0 || new_timeout > MAX_TIMEOUT) in wb_smsc_wdt_ioctl()
479 timeout = new_timeout; in wb_smsc_wdt_ioctl()
[all …]
Drc32434_wdt.c76 static int rc32434_wdt_set(int new_timeout) in rc32434_wdt_set() argument
80 if (new_timeout < 0 || new_timeout > max_to) { in rc32434_wdt_set()
84 timeout = new_timeout; in rc32434_wdt_set()
197 int new_timeout; in rc32434_wdt_ioctl() local
234 if (copy_from_user(&new_timeout, argp, sizeof(int))) in rc32434_wdt_ioctl()
236 if (rc32434_wdt_set(new_timeout)) in rc32434_wdt_ioctl()
Dpc87413_wdt.c385 int new_timeout; in pc87413_ioctl() local
432 if (get_user(new_timeout, uarg.i)) in pc87413_ioctl()
435 new_timeout /= 60; in pc87413_ioctl()
436 if (new_timeout < 0 || new_timeout > MAX_TIMEOUT) in pc87413_ioctl()
438 timeout = new_timeout; in pc87413_ioctl()
442 new_timeout = timeout * 60; in pc87413_ioctl()
443 return put_user(new_timeout, uarg.i); in pc87413_ioctl()
Dpnx833x_wdt.c145 int options, new_timeout = 0; in pnx833x_wdt_ioctl() local
186 if (get_user(new_timeout, (int *)arg)) in pnx833x_wdt_ioctl()
189 pnx833x_wdt_timeout = new_timeout; in pnx833x_wdt_ioctl()
191 PNX833X_CONFIG_CPU_WATCHDOG_COMPARE) = new_timeout; in pnx833x_wdt_ioctl()
192 return put_user(new_timeout, (int *)arg); in pnx833x_wdt_ioctl()
Dwafer5823wdt.c129 int new_timeout; in wafwdt_ioctl() local
174 if (get_user(new_timeout, p)) in wafwdt_ioctl()
176 if ((new_timeout < 1) || (new_timeout > 255)) in wafwdt_ioctl()
178 timeout = new_timeout; in wafwdt_ioctl()
Dsbc60xxwdt.c264 int new_timeout; in fop_ioctl() local
265 if (get_user(new_timeout, p)) in fop_ioctl()
268 if (new_timeout < 1 || new_timeout > 3600) in fop_ioctl()
271 timeout = new_timeout; in fop_ioctl()
Dw83877f_wdt.c284 int new_timeout; in fop_ioctl() local
286 if (get_user(new_timeout, p)) in fop_ioctl()
290 if (new_timeout < 1 || new_timeout > 3600) in fop_ioctl()
293 timeout = new_timeout; in fop_ioctl()
Dts72xx_wdt.c104 static int timeout_to_regval(int new_timeout) in timeout_to_regval() argument
109 new_timeout = clamp_val(new_timeout, 1, 8); in timeout_to_regval()
112 if (ts72xx_wdt_map[i].timeout >= new_timeout) in timeout_to_regval()
343 int new_timeout; in ts72xx_wdt_ioctl() local
345 if (get_user(new_timeout, p)) { in ts72xx_wdt_ioctl()
350 regval = timeout_to_regval(new_timeout); in ts72xx_wdt_ioctl()
Dsc1200wdt.c188 int new_timeout; in sc1200wdt_ioctl() local
234 if (get_user(new_timeout, p)) in sc1200wdt_ioctl()
237 new_timeout /= 60; in sc1200wdt_ioctl()
238 if (new_timeout < 0 || new_timeout > MAX_TIMEOUT) in sc1200wdt_ioctl()
240 timeout = new_timeout; in sc1200wdt_ioctl()
Dalim7101_wdt.c271 int new_timeout; in fop_ioctl() local
273 if (get_user(new_timeout, p)) in fop_ioctl()
276 if (new_timeout < 1 || new_timeout > 3600) in fop_ioctl()
278 timeout = new_timeout; in fop_ioctl()
Domap_wdt.c115 static void omap_wdt_adjust_timeout(unsigned new_timeout) in omap_wdt_adjust_timeout() argument
117 if (new_timeout < TIMER_MARGIN_MIN) in omap_wdt_adjust_timeout()
118 new_timeout = TIMER_MARGIN_DEFAULT; in omap_wdt_adjust_timeout()
119 if (new_timeout > TIMER_MARGIN_MAX) in omap_wdt_adjust_timeout()
120 new_timeout = TIMER_MARGIN_MAX; in omap_wdt_adjust_timeout()
121 timer_margin = new_timeout; in omap_wdt_adjust_timeout()
Dxen_wdt.c180 int new_timeout; in xen_wdt_ioctl() local
214 if (get_user(new_timeout, argp)) in xen_wdt_ioctl()
216 if (!new_timeout) in xen_wdt_ioctl()
218 timeout = new_timeout; in xen_wdt_ioctl()
Dadvantechwdt.c137 int new_timeout; in advwdt_ioctl() local
179 if (get_user(new_timeout, p)) in advwdt_ioctl()
181 if (advwdt_set_heartbeat(new_timeout)) in advwdt_ioctl()
Djz4740_wdt.c81 unsigned int new_timeout) in jz4740_wdt_set_timeout() argument
90 timeout_value = rtc_clk_rate * new_timeout; in jz4740_wdt_set_timeout()
112 wdt_dev->timeout = new_timeout; in jz4740_wdt_set_timeout()
Dsbc7240_wdt.c199 int new_timeout; in fop_ioctl() local
201 if (get_user(new_timeout, (int __user *)arg)) in fop_ioctl()
204 if (wdt_set_timeout(new_timeout)) in fop_ioctl()
Dalim1535_wdt.c220 int new_timeout; in ali_ioctl() local
221 if (get_user(new_timeout, p)) in ali_ioctl()
223 if (ali_settimer(new_timeout)) in ali_ioctl()
Dsc520_wdt.c319 int new_timeout; in fop_ioctl() local
321 if (get_user(new_timeout, p)) in fop_ioctl()
324 if (wdt_set_heartbeat(new_timeout)) in fop_ioctl()
Dvia_wdt.c128 unsigned int new_timeout) in wdt_set_timeout() argument
130 writel(new_timeout, wdt_mem + VIA_WDT_COUNT); in wdt_set_timeout()
131 wdd->timeout = new_timeout; in wdt_set_timeout()
Dbfin_wdt.c272 int new_timeout; in bfin_wdt_ioctl() local
274 if (get_user(new_timeout, p)) in bfin_wdt_ioctl()
276 if (bfin_wdt_set_timeout(new_timeout)) in bfin_wdt_ioctl()
Dw83697ug_wdt.c212 int new_timeout; in wdt_ioctl() local
256 if (get_user(new_timeout, p)) in wdt_ioctl()
258 if (wdt_set_heartbeat(new_timeout)) in wdt_ioctl()
Dw83697hf_wdt.c236 int new_timeout; in wdt_ioctl() local
279 if (get_user(new_timeout, p)) in wdt_ioctl()
281 if (wdt_set_heartbeat(new_timeout)) in wdt_ioctl()
Dw83977f_wdt.c382 int new_timeout; in wdt_ioctl() local
423 if (get_user(new_timeout, uarg.i)) in wdt_ioctl()
426 if (wdt_set_timeout(new_timeout)) in wdt_ioctl()
Dwdt977.c357 int new_timeout; in wdt977_ioctl() local
398 if (get_user(new_timeout, uarg.i)) in wdt977_ioctl()
401 if (wdt977_set_timeout(new_timeout)) in wdt977_ioctl()
Dpnx4008_wdt.c122 unsigned int new_timeout) in pnx4008_wdt_set_timeout() argument
124 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout()
Dtxx9wdt.c79 unsigned int new_timeout) in txx9wdt_set_timeout() argument
81 wdt_dev->timeout = new_timeout; in txx9wdt_set_timeout()

12