Searched refs:new_margin (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/drivers/watchdog/ |
D | wdt285.c | 143 int new_margin, ret = -ENOTTY; in watchdog_ioctl() local 163 ret = get_user(new_margin, int_arg); in watchdog_ioctl() 168 if (new_margin < 0 || new_margin > 60) { in watchdog_ioctl() 173 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() 369 u32 new_margin; in intel_scu_ioctl() local 393 if (get_user(new_margin, p)) in intel_scu_ioctl() 396 if (check_timer_margin(new_margin)) in intel_scu_ioctl() 399 if (intel_scu_set_heartbeat(new_margin)) in intel_scu_ioctl()
|
D | ar7_wdt.c | 128 static void ar7_wdt_update_margin(int new_margin) in ar7_wdt_update_margin() argument 134 change = new_margin * (vbus_rate / prescale_value); in ar7_wdt_update_margin() 212 int new_margin; in ar7_wdt_ioctl() local 229 if (get_user(new_margin, (int *)arg)) in ar7_wdt_ioctl() 231 if (new_margin < 1) in ar7_wdt_ioctl() 235 ar7_wdt_update_margin(new_margin); in ar7_wdt_ioctl()
|
D | riowd.c | 98 int new_margin; in riowd_ioctl() local 130 if (get_user(new_margin, (int __user *)argp)) in riowd_ioctl() 132 if ((new_margin < 60) || (new_margin > (255 * 60))) in riowd_ioctl() 134 riowd_timeout = (new_margin + 59) / 60; in riowd_ioctl()
|
D | scx200_wdt.c | 169 int new_margin; in scx200_wdt_ioctl() local 185 if (get_user(new_margin, p)) in scx200_wdt_ioctl() 187 if (new_margin < 1) in scx200_wdt_ioctl() 189 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()
|
/Linux-v4.19/drivers/rtc/ |
D | rtc-ds1374.c | 511 int new_margin, options; in ds1374_wdt_ioctl() local 525 if (get_user(new_margin, (int __user *)arg)) in ds1374_wdt_ioctl() 531 new_margin <<= 12; in ds1374_wdt_ioctl() 532 if (new_margin < 1 || new_margin > 16777216) in ds1374_wdt_ioctl() 535 wdt_margin = new_margin; in ds1374_wdt_ioctl() 536 ds1374_wdt_settimeout(new_margin); in ds1374_wdt_ioctl()
|
D | rtc-m41t80.c | 721 int new_margin, rv; in wdt_ioctl() local 741 if (get_user(new_margin, (int __user *)arg)) in wdt_ioctl() 744 if (new_margin < 1 || new_margin > 124) in wdt_ioctl() 746 wdt_margin = new_margin; in wdt_ioctl()
|