Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/watchdog/
Dsmsc37b787_wdt.c163 static inline void wdt_timeout_value(unsigned char new_timeout) in wdt_timeout_value() argument
168 write_io_cr(0xF2, new_timeout); in wdt_timeout_value()
273 static void wb_smsc_wdt_set_timeout(unsigned char new_timeout) in wb_smsc_wdt_set_timeout() argument
280 wdt_timer_ctrl((new_timeout == 0) ? 0x00 : 0x02); in wb_smsc_wdt_set_timeout()
283 wdt_timeout_value(new_timeout); in wb_smsc_wdt_set_timeout()
422 int new_timeout; in wb_smsc_wdt_ioctl() local
468 if (get_user(new_timeout, uarg.i)) in wb_smsc_wdt_ioctl()
472 new_timeout /= 60; in wb_smsc_wdt_ioctl()
473 if (new_timeout < 0 || new_timeout > MAX_TIMEOUT) in wb_smsc_wdt_ioctl()
475 timeout = new_timeout; in wb_smsc_wdt_ioctl()
[all …]
Drc32434_wdt.c71 static int rc32434_wdt_set(int new_timeout) in rc32434_wdt_set() argument
75 if (new_timeout < 0 || new_timeout > max_to) { in rc32434_wdt_set()
79 timeout = new_timeout; in rc32434_wdt_set()
192 int new_timeout; in rc32434_wdt_ioctl() local
229 if (copy_from_user(&new_timeout, argp, sizeof(int))) in rc32434_wdt_ioctl()
231 if (rc32434_wdt_set(new_timeout)) in rc32434_wdt_ioctl()
Dpc87413_wdt.c381 int new_timeout; in pc87413_ioctl() local
428 if (get_user(new_timeout, uarg.i)) in pc87413_ioctl()
431 new_timeout /= 60; in pc87413_ioctl()
432 if (new_timeout < 0 || new_timeout > MAX_TIMEOUT) in pc87413_ioctl()
434 timeout = new_timeout; in pc87413_ioctl()
438 new_timeout = timeout * 60; in pc87413_ioctl()
439 return put_user(new_timeout, uarg.i); in pc87413_ioctl()
Dpnx833x_wdt.c141 int options, new_timeout = 0; in pnx833x_wdt_ioctl() local
182 if (get_user(new_timeout, (int *)arg)) in pnx833x_wdt_ioctl()
185 pnx833x_wdt_timeout = new_timeout; in pnx833x_wdt_ioctl()
187 PNX833X_CONFIG_CPU_WATCHDOG_COMPARE) = new_timeout; in pnx833x_wdt_ioctl()
188 return put_user(new_timeout, (int *)arg); in pnx833x_wdt_ioctl()
Dwafer5823wdt.c125 int new_timeout; in wafwdt_ioctl() local
170 if (get_user(new_timeout, p)) in wafwdt_ioctl()
172 if ((new_timeout < 1) || (new_timeout > 255)) in wafwdt_ioctl()
174 timeout = new_timeout; in wafwdt_ioctl()
Dsbc60xxwdt.c258 int new_timeout; in fop_ioctl() local
259 if (get_user(new_timeout, p)) in fop_ioctl()
262 if (new_timeout < 1 || new_timeout > 3600) in fop_ioctl()
265 timeout = new_timeout; in fop_ioctl()
Dw83877f_wdt.c280 int new_timeout; in fop_ioctl() local
282 if (get_user(new_timeout, p)) in fop_ioctl()
286 if (new_timeout < 1 || new_timeout > 3600) in fop_ioctl()
289 timeout = new_timeout; in fop_ioctl()
Dsc1200wdt.c183 int new_timeout; in sc1200wdt_ioctl() local
229 if (get_user(new_timeout, p)) in sc1200wdt_ioctl()
232 new_timeout /= 60; in sc1200wdt_ioctl()
233 if (new_timeout < 0 || new_timeout > MAX_TIMEOUT) in sc1200wdt_ioctl()
235 timeout = new_timeout; in sc1200wdt_ioctl()
Dalim7101_wdt.c272 int new_timeout; in fop_ioctl() local
274 if (get_user(new_timeout, p)) in fop_ioctl()
277 if (new_timeout < 1 || new_timeout > 3600) in fop_ioctl()
279 timeout = new_timeout; in fop_ioctl()
Dimx2_wdt.c169 unsigned int new_timeout) in __imx2_wdt_set_timeout() argument
174 WDOG_SEC_TO_COUNT(new_timeout)); in __imx2_wdt_set_timeout()
178 unsigned int new_timeout) in imx2_wdt_set_timeout() argument
182 actual = min(new_timeout, IMX2_WDT_MAX_TIME); in imx2_wdt_set_timeout()
184 wdog->timeout = new_timeout; in imx2_wdt_set_timeout()
Djz4740_wdt.c56 unsigned int new_timeout) in jz4740_wdt_set_timeout() argument
59 u16 timeout_value = (u16)(drvdata->clk_rate * new_timeout); in jz4740_wdt_set_timeout()
71 wdt_dev->timeout = new_timeout; in jz4740_wdt_set_timeout()
Dsbc7240_wdt.c190 int new_timeout; in fop_ioctl() local
192 if (get_user(new_timeout, (int __user *)arg)) in fop_ioctl()
195 if (wdt_set_timeout(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()
Dadvantechwdt.c133 int new_timeout; in advwdt_ioctl() local
175 if (get_user(new_timeout, p)) in advwdt_ioctl()
177 if (advwdt_set_heartbeat(new_timeout)) in advwdt_ioctl()
Dalim1535_wdt.c216 int new_timeout; in ali_ioctl() local
217 if (get_user(new_timeout, p)) in ali_ioctl()
219 if (ali_settimer(new_timeout)) in ali_ioctl()
Dsc520_wdt.c314 int new_timeout; in fop_ioctl() local
316 if (get_user(new_timeout, p)) in fop_ioctl()
319 if (wdt_set_heartbeat(new_timeout)) in fop_ioctl()
Dstmp3xxx_rtc_wdt.c45 static int wdt_set_timeout(struct watchdog_device *wdd, unsigned new_timeout) in wdt_set_timeout() argument
47 wdd->timeout = new_timeout; in wdt_set_timeout()
Dwdt977.c353 int new_timeout; in wdt977_ioctl() local
394 if (get_user(new_timeout, uarg.i)) in wdt977_ioctl()
397 if (wdt977_set_timeout(new_timeout)) in wdt977_ioctl()
Dw83977f_wdt.c377 int new_timeout; in wdt_ioctl() local
418 if (get_user(new_timeout, uarg.i)) in wdt_ioctl()
421 if (wdt_set_timeout(new_timeout)) in wdt_ioctl()
Dtxx9wdt.c75 unsigned int new_timeout) in txx9wdt_set_timeout() argument
77 wdt_dev->timeout = new_timeout; in txx9wdt_set_timeout()
Dsch311x_wdt.c247 int new_timeout; in sch311x_wdt_ioctl() local
293 if (get_user(new_timeout, p)) in sch311x_wdt_ioctl()
295 if (sch311x_wdt_set_heartbeat(new_timeout)) in sch311x_wdt_ioctl()
Dtangox_wdt.c48 unsigned int new_timeout) in tangox_wdt_set_timeout() argument
50 wdt->timeout = new_timeout; in tangox_wdt_set_timeout()
Dpnx4008_wdt.c119 unsigned int new_timeout) in pnx4008_wdt_set_timeout() argument
121 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout()
Dimgpdc_wdt.c125 unsigned int new_timeout) in pdc_wdt_set_timeout() argument
129 wdt->wdt_dev.timeout = new_timeout; in pdc_wdt_set_timeout()
Dlpc18xx_wdt.c113 unsigned int new_timeout) in lpc18xx_wdt_set_timeout() argument
117 lpc18xx_wdt->wdt_dev.timeout = new_timeout; in lpc18xx_wdt_set_timeout()

12