Home
last modified time | relevance | path

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

12

/linux-2.6.39/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()
429 int new_timeout; in wb_smsc_wdt_ioctl() local
475 if (get_user(new_timeout, uarg.i)) in wb_smsc_wdt_ioctl()
479 new_timeout /= 60; in wb_smsc_wdt_ioctl()
480 if (new_timeout < 0 || new_timeout > MAX_TIMEOUT) in wb_smsc_wdt_ioctl()
482 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()
85 timeout = new_timeout; in rc32434_wdt_set()
199 int new_timeout; in rc32434_wdt_ioctl() local
236 if (copy_from_user(&new_timeout, argp, sizeof(int))) in rc32434_wdt_ioctl()
238 if (rc32434_wdt_set(new_timeout)) in rc32434_wdt_ioctl()
Dpc87413_wdt.c405 int new_timeout; in pc87413_ioctl() local
452 if (get_user(new_timeout, uarg.i)) in pc87413_ioctl()
455 new_timeout /= 60; in pc87413_ioctl()
456 if (new_timeout < 0 || new_timeout > MAX_TIMEOUT) in pc87413_ioctl()
458 timeout = new_timeout; in pc87413_ioctl()
462 new_timeout = timeout * 60; in pc87413_ioctl()
463 return put_user(new_timeout, uarg.i); in pc87413_ioctl()
Dpnx833x_wdt.c144 int options, new_timeout = 0; in pnx833x_wdt_ioctl() local
185 if (get_user(new_timeout, (int *)arg)) in pnx833x_wdt_ioctl()
188 pnx833x_wdt_timeout = new_timeout; in pnx833x_wdt_ioctl()
190 PNX833X_CONFIG_CPU_WATCHDOG_COMPARE) = new_timeout; in pnx833x_wdt_ioctl()
191 return put_user(new_timeout, (int *)arg); in pnx833x_wdt_ioctl()
Dwafer5823wdt.c127 int new_timeout; in wafwdt_ioctl() local
172 if (get_user(new_timeout, p)) in wafwdt_ioctl()
174 if ((new_timeout < 1) || (new_timeout > 255)) in wafwdt_ioctl()
176 timeout = new_timeout; in wafwdt_ioctl()
Dsbc60xxwdt.c265 int new_timeout; in fop_ioctl() local
266 if (get_user(new_timeout, p)) in fop_ioctl()
269 if (new_timeout < 1 || new_timeout > 3600) in fop_ioctl()
272 timeout = new_timeout; in fop_ioctl()
Dtxx9wdt.c134 int new_timeout; in txx9wdt_ioctl() local
153 if (get_user(new_timeout, p)) in txx9wdt_ioctl()
155 if (new_timeout < 1 || new_timeout > WD_MAX_TIMEOUT) in txx9wdt_ioctl()
157 timeout = new_timeout; in txx9wdt_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()
342 int new_timeout; in ts72xx_wdt_ioctl() local
344 if (get_user(new_timeout, p)) { in ts72xx_wdt_ioctl()
349 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()
Dw83877f_wdt.c286 int new_timeout; in fop_ioctl() local
288 if (get_user(new_timeout, p)) in fop_ioctl()
292 if (new_timeout < 1 || new_timeout > 3600) in fop_ioctl()
295 timeout = new_timeout; in fop_ioctl()
Dalim7101_wdt.c275 int new_timeout; in fop_ioctl() local
277 if (get_user(new_timeout, p)) in fop_ioctl()
280 if (new_timeout < 1 || new_timeout > 3600) in fop_ioctl()
282 timeout = new_timeout; in fop_ioctl()
Domap_wdt.c113 static void omap_wdt_adjust_timeout(unsigned new_timeout) in omap_wdt_adjust_timeout() argument
115 if (new_timeout < TIMER_MARGIN_MIN) in omap_wdt_adjust_timeout()
116 new_timeout = TIMER_MARGIN_DEFAULT; in omap_wdt_adjust_timeout()
117 if (new_timeout > TIMER_MARGIN_MAX) in omap_wdt_adjust_timeout()
118 new_timeout = TIMER_MARGIN_MAX; in omap_wdt_adjust_timeout()
119 timer_margin = new_timeout; in omap_wdt_adjust_timeout()
Dxen_wdt.c178 int new_timeout; in xen_wdt_ioctl() local
212 if (get_user(new_timeout, argp)) in xen_wdt_ioctl()
214 if (!new_timeout) in xen_wdt_ioctl()
216 timeout = new_timeout; in xen_wdt_ioctl()
Dsbc7240_wdt.c205 int new_timeout; in fop_ioctl() local
207 if (get_user(new_timeout, (int __user *)arg)) in fop_ioctl()
210 if (wdt_set_timeout(new_timeout)) in fop_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()
Dalim1535_wdt.c219 int new_timeout; in ali_ioctl() local
220 if (get_user(new_timeout, p)) in ali_ioctl()
222 if (ali_settimer(new_timeout)) in ali_ioctl()
Dsc520_wdt.c323 int new_timeout; in fop_ioctl() local
325 if (get_user(new_timeout, p)) in fop_ioctl()
328 if (wdt_set_heartbeat(new_timeout)) in fop_ioctl()
Dw83627hf_wdt.c205 int new_timeout; in wdt_ioctl() local
241 if (get_user(new_timeout, p)) in wdt_ioctl()
243 if (wdt_set_heartbeat(new_timeout)) in 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()
Dbfin_wdt.c278 int new_timeout; in bfin_wdt_ioctl() local
280 if (get_user(new_timeout, p)) in bfin_wdt_ioctl()
282 if (bfin_wdt_set_timeout(new_timeout)) in bfin_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()
Dwdt977.c359 int new_timeout; in wdt977_ioctl() local
400 if (get_user(new_timeout, uarg.i)) in wdt977_ioctl()
403 if (wdt977_set_timeout(new_timeout)) in wdt977_ioctl()
Dw83977f_wdt.c384 int new_timeout; in wdt_ioctl() local
425 if (get_user(new_timeout, uarg.i)) in wdt_ioctl()
428 if (wdt_set_timeout(new_timeout)) in wdt_ioctl()
Dsch311x_wdt.c250 int new_timeout; in sch311x_wdt_ioctl() local
296 if (get_user(new_timeout, p)) in sch311x_wdt_ioctl()
298 if (sch311x_wdt_set_heartbeat(new_timeout)) in sch311x_wdt_ioctl()
Dimx2_wdt.c138 static void imx2_wdt_set_timeout(int new_timeout) in imx2_wdt_set_timeout() argument
144 val |= WDOG_SEC_TO_COUNT(new_timeout); in imx2_wdt_set_timeout()

12