/linux-2.6.39/drivers/watchdog/ |
D | smsc37b787_wdt.c | 167 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 …]
|
D | rc32434_wdt.c | 76 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()
|
D | pc87413_wdt.c | 405 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()
|
D | pnx833x_wdt.c | 144 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()
|
D | wafer5823wdt.c | 127 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()
|
D | sbc60xxwdt.c | 265 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()
|
D | txx9wdt.c | 134 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()
|
D | ts72xx_wdt.c | 104 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()
|
D | sc1200wdt.c | 188 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()
|
D | w83877f_wdt.c | 286 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()
|
D | alim7101_wdt.c | 275 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()
|
D | omap_wdt.c | 113 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()
|
D | xen_wdt.c | 178 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()
|
D | sbc7240_wdt.c | 205 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()
|
D | advantechwdt.c | 137 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()
|
D | alim1535_wdt.c | 219 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()
|
D | sc520_wdt.c | 323 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()
|
D | w83627hf_wdt.c | 205 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()
|
D | w83697ug_wdt.c | 212 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()
|
D | bfin_wdt.c | 278 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()
|
D | w83697hf_wdt.c | 236 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()
|
D | wdt977.c | 359 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()
|
D | w83977f_wdt.c | 384 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()
|
D | sch311x_wdt.c | 250 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()
|
D | imx2_wdt.c | 138 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()
|