Home
last modified time | relevance | path

Searched refs:new_margin (Results 1 – 8 of 8) sorted by relevance

/Linux-v4.19/drivers/watchdog/
Dwdt285.c143 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()
Dintel_scu_watchdog.c112 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()
Dar7_wdt.c128 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()
Driowd.c98 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()
Dscx200_wdt.c169 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()
Dib700wdt.c173 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/
Drtc-ds1374.c511 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()
Drtc-m41t80.c721 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()