Searched refs:new_margin (Results 1 – 10 of 10) sorted by relevance
/linux-3.4.99/drivers/watchdog/ |
D | wdt285.c | 142 unsigned int new_margin; in watchdog_ioctl() local 164 ret = get_user(new_margin, int_arg); in watchdog_ioctl() 169 if (new_margin < 0 || new_margin > 60) { in watchdog_ioctl() 174 soft_margin = new_margin; in watchdog_ioctl()
|
D | intel_scu_watchdog.c | 112 static int check_timer_margin(int new_margin) in check_timer_margin() argument 114 if ((new_margin < MIN_TIME_CYCLE) || in check_timer_margin() 115 (new_margin > MAX_TIME - timer_set)) { in check_timer_margin() 117 new_margin, MIN_TIME_CYCLE, MAX_TIME - timer_set); in check_timer_margin() 371 u32 new_margin; in intel_scu_ioctl() local 395 if (get_user(new_margin, p)) in intel_scu_ioctl() 398 if (check_timer_margin(new_margin)) in intel_scu_ioctl() 401 if (intel_scu_set_heartbeat(new_margin)) in intel_scu_ioctl()
|
D | riowd.c | 99 int new_margin; in riowd_ioctl() local 131 if (get_user(new_margin, (int __user *)argp)) in riowd_ioctl() 133 if ((new_margin < 60) || (new_margin > (255 * 60))) in riowd_ioctl() 135 riowd_timeout = (new_margin + 59) / 60; in riowd_ioctl()
|
D | ar7_wdt.c | 142 static void ar7_wdt_update_margin(int new_margin) in ar7_wdt_update_margin() argument 148 change = new_margin * (vbus_rate / prescale_value); in ar7_wdt_update_margin() 226 int new_margin; in ar7_wdt_ioctl() local 243 if (get_user(new_margin, (int *)arg)) in ar7_wdt_ioctl() 245 if (new_margin < 1) in ar7_wdt_ioctl() 249 ar7_wdt_update_margin(new_margin); in ar7_wdt_ioctl()
|
D | hpwdt.c | 455 static int hpwdt_change_timer(int new_margin) in hpwdt_change_timer() argument 457 if (new_margin < 1 || new_margin > HPWDT_MAX_TIMER) { in hpwdt_change_timer() 459 new_margin); in hpwdt_change_timer() 463 soft_margin = new_margin; in hpwdt_change_timer() 464 pr_debug("New timer passed in is %d seconds\n", new_margin); in hpwdt_change_timer() 585 int new_margin; in hpwdt_ioctl() local 606 ret = get_user(new_margin, p); in hpwdt_ioctl() 610 ret = hpwdt_change_timer(new_margin); in hpwdt_ioctl()
|
D | scx200_wdt.c | 170 int new_margin; in scx200_wdt_ioctl() local 186 if (get_user(new_margin, p)) in scx200_wdt_ioctl() 188 if (new_margin < 1) in scx200_wdt_ioctl() 190 margin = new_margin; in scx200_wdt_ioctl()
|
D | ib700wdt.c | 173 int new_margin; in ibwdt_ioctl() local 216 if (get_user(new_margin, p)) in ibwdt_ioctl() 218 if (ibwdt_set_heartbeat(new_margin)) in ibwdt_ioctl()
|
D | twl4030_wdt.c | 93 int new_margin; in twl4030_wdt_ioctl() local 116 if (get_user(new_margin, p)) in twl4030_wdt_ioctl() 118 if (twl4030_wdt_set_timeout(wdt, new_margin)) in twl4030_wdt_ioctl()
|
D | omap_wdt.c | 215 int new_margin; in omap_wdt_ioctl() local 246 if (get_user(new_margin, (int __user *)arg)) in omap_wdt_ioctl() 248 omap_wdt_adjust_timeout(new_margin); in omap_wdt_ioctl()
|
/linux-3.4.99/drivers/rtc/ |
D | rtc-m41t80.c | 621 int new_margin, rv; in wdt_ioctl() local 641 if (get_user(new_margin, (int __user *)arg)) in wdt_ioctl() 644 if (new_margin < 1 || new_margin > 124) in wdt_ioctl() 646 wdt_margin = new_margin; in wdt_ioctl()
|