/linux-3.4.99/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() 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 …]
|
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() 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()
|
D | pc87413_wdt.c | 385 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()
|
D | pnx833x_wdt.c | 145 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()
|
D | wafer5823wdt.c | 129 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()
|
D | sbc60xxwdt.c | 264 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()
|
D | w83877f_wdt.c | 284 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()
|
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() 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()
|
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 | alim7101_wdt.c | 271 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()
|
D | omap_wdt.c | 115 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()
|
D | xen_wdt.c | 180 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()
|
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 | jz4740_wdt.c | 81 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()
|
D | sbc7240_wdt.c | 199 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()
|
D | alim1535_wdt.c | 220 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()
|
D | sc520_wdt.c | 319 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()
|
D | via_wdt.c | 128 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()
|
D | bfin_wdt.c | 272 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()
|
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 | 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 | w83977f_wdt.c | 382 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()
|
D | wdt977.c | 357 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()
|
D | pnx4008_wdt.c | 122 unsigned int new_timeout) in pnx4008_wdt_set_timeout() argument 124 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout()
|
D | txx9wdt.c | 79 unsigned int new_timeout) in txx9wdt_set_timeout() argument 81 wdt_dev->timeout = new_timeout; in txx9wdt_set_timeout()
|