Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 2084) sorted by relevance

12345678910>>...84

/drivers/watchdog/
Dnpcm_wdt.c69 if (wdd->timeout < 2) in npcm_wdt_start()
71 else if (wdd->timeout < 3) in npcm_wdt_start()
73 else if (wdd->timeout < 6) in npcm_wdt_start()
75 else if (wdd->timeout < 11) in npcm_wdt_start()
77 else if (wdd->timeout < 22) in npcm_wdt_start()
79 else if (wdd->timeout < 44) in npcm_wdt_start()
81 else if (wdd->timeout < 87) in npcm_wdt_start()
83 else if (wdd->timeout < 173) in npcm_wdt_start()
85 else if (wdd->timeout < 688) in npcm_wdt_start()
107 unsigned int timeout) in npcm_wdt_set_timeout() argument
[all …]
Dda9063_wdt.c69 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument
87 regval = da9063_wdt_timeout_to_sel(timeout); in da9063_wdt_update_timeout()
98 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start()
134 unsigned int timeout) in da9063_wdt_set_timeout() argument
150 ret = da9063_wdt_update_timeout(da9063, timeout); in da9063_wdt_set_timeout()
156 wdd->timeout = wdt_timeout[da9063_wdt_timeout_to_sel(timeout)]; in da9063_wdt_set_timeout()
195 unsigned int timeout; in da9063_wdt_probe() local
219 wdd->timeout = DA9063_WDG_TIMEOUT; in da9063_wdt_probe()
222 timeout = da9063_wdt_read_timeout(da9063); in da9063_wdt_probe()
223 if (timeout) in da9063_wdt_probe()
[all …]
Dux500_wdt.c28 static unsigned int timeout = WATCHDOG_TIMEOUT; variable
29 module_param(timeout, uint, 0);
30 MODULE_PARM_DESC(timeout,
56 unsigned int timeout) in ux500_wdt_set_timeout() argument
59 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_set_timeout()
93 if (pdata->timeout > 0) in ux500_wdt_probe()
94 timeout = pdata->timeout; in ux500_wdt_probe()
106 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_probe()
125 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_suspend()
137 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_resume()
Dnic7018_wdt.c33 static unsigned int timeout; variable
34 module_param(timeout, uint, 0);
35 MODULE_PARM_DESC(timeout,
66 static const struct nic7018_config *nic7018_get_config(u32 timeout, in nic7018_get_config() argument
72 if (timeout < 30 && timeout != 16) { in nic7018_get_config()
74 count = timeout / 2 + 1; in nic7018_get_config()
77 count = DIV_ROUND_UP(timeout + 16, 32); in nic7018_get_config()
87 unsigned int timeout) in nic7018_set_timeout() argument
93 config = nic7018_get_config(timeout, &counter); in nic7018_set_timeout()
98 wdd->timeout = nic7018_timeout(config->period, counter); in nic7018_set_timeout()
[all …]
Dts4800_wdt.c50 const int timeout; member
81 unsigned int timeout) in ts4800_wdt_set_timeout() argument
87 if (ts4800_wdt_map[i].timeout >= timeout) in ts4800_wdt_set_timeout()
91 wdd->timeout = ts4800_wdt_map[i].timeout; in ts4800_wdt_set_timeout()
153 wdd->min_timeout = ts4800_wdt_map[0].timeout; in ts4800_wdt_probe()
154 wdd->max_timeout = ts4800_wdt_map[MAX_TIMEOUT_INDEX].timeout; in ts4800_wdt_probe()
166 if (!wdd->timeout) in ts4800_wdt_probe()
167 wdd->timeout = wdd->max_timeout; in ts4800_wdt_probe()
168 ts4800_wdt_set_timeout(wdd, wdd->timeout); in ts4800_wdt_probe()
183 wdd->timeout, nowayout); in ts4800_wdt_probe()
Dvisconti_wdt.c43 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_start() local
47 writel(timeout, priv->base + WDT_MAX); in visconti_wdt_start()
76 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft() local
79 if (timeout <= cnt) in visconti_wdt_get_timeleft()
81 timeout -= cnt; in visconti_wdt_get_timeleft()
83 return timeout / VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft()
86 static int visconti_wdt_set_timeout(struct watchdog_device *wdev, unsigned int timeout) in visconti_wdt_set_timeout() argument
91 wdev->timeout = timeout; in visconti_wdt_set_timeout()
92 val = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_set_timeout()
164 wdev->timeout = min(wdev->max_timeout, WDT_DEFAULT_TIMEOUT); in visconti_wdt_probe()
Dkempld_wdt.c86 static unsigned int timeout = DEFAULT_TIMEOUT; variable
87 module_param(timeout, uint, 0);
88 MODULE_PARM_DESC(timeout,
132 unsigned int timeout) in kempld_wdt_set_stage_timeout() argument
146 stage_timeout64 = (u64)timeout * pld->pld_clock; in kempld_wdt_set_stage_timeout()
175 unsigned int timeout; in kempld_wdt_get_timeout() local
193 timeout = stage_timeout; in kempld_wdt_get_timeout()
194 WARN_ON_ONCE(timeout != stage_timeout); in kempld_wdt_get_timeout()
196 return timeout; in kempld_wdt_get_timeout()
200 unsigned int timeout) in kempld_wdt_set_timeout() argument
[all …]
Dit87_wdt.c89 static unsigned int timeout = DEFAULT_TIMEOUT; variable
93 module_param(timeout, int, 0);
94 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds, default="
203 return wdt_update_timeout(wdd->timeout); in wdt_start()
228 wdd->timeout = t; in wdt_set_timeout()
331 if (timeout < 1 || timeout > max_units * 60) { in it87_wdt_init()
332 timeout = DEFAULT_TIMEOUT; in it87_wdt_init()
337 if (timeout > max_units) in it87_wdt_init()
338 timeout = wdt_round_time(timeout); in it87_wdt_init()
340 wdt_dev.timeout = timeout; in it87_wdt_init()
[all …]
Dsun4v_wdt.c27 static unsigned int timeout; variable
28 module_param(timeout, uint, 0);
29 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default="
53 hverr = sun4v_mach_set_watchdog(wdd->timeout * 1000, NULL); in sun4v_wdt_ping()
61 unsigned int timeout) in sun4v_wdt_set_timeout() argument
63 wdd->timeout = timeout; in sun4v_wdt_set_timeout()
89 .timeout = WDT_TIMEOUT,
153 watchdog_init_timeout(&wdd, timeout, NULL); in sun4v_wdt_init()
162 wdd.timeout, nowayout); in sun4v_wdt_init()
Dmeson_wdt.c35 static unsigned int timeout; variable
87 unsigned int timeout) in meson_wdt_change_timeout() argument
94 reg |= MESON_SEC_TO_TC(timeout, meson_wdt->data->count_unit); in meson_wdt_change_timeout()
99 unsigned int timeout) in meson_wdt_set_timeout() argument
101 wdt_dev->timeout = timeout; in meson_wdt_set_timeout()
103 meson_wdt_change_timeout(wdt_dev, timeout); in meson_wdt_set_timeout()
126 meson_wdt_change_timeout(wdt_dev, meson_wdt->wdt_dev.timeout); in meson_wdt_start()
183 meson_wdt->wdt_dev.timeout = min_t(unsigned int, in meson_wdt_probe()
189 watchdog_init_timeout(&meson_wdt->wdt_dev, timeout, dev); in meson_wdt_probe()
201 meson_wdt->wdt_dev.timeout, nowayout); in meson_wdt_probe()
[all …]
Dtxx9wdt.c26 static unsigned int timeout = TIMER_MARGIN; /* in seconds */ variable
27 module_param(timeout, uint, 0);
28 MODULE_PARM_DESC(timeout,
54 __raw_writel(WD_TIMER_CLK * wdt_dev->timeout, &txx9wdt_reg->cpra); in txx9wdt_start()
77 wdt_dev->timeout = new_timeout; in txx9wdt_set_timeout()
124 if (timeout < 1 || timeout > WD_MAX_TIMEOUT) in txx9wdt_probe()
125 timeout = TIMER_MARGIN; in txx9wdt_probe()
126 txx9wdt.timeout = timeout; in txx9wdt_probe()
137 timeout, WD_MAX_TIMEOUT, nowayout); in txx9wdt_probe()
Dsl28cpld_wdt.c36 static int timeout; variable
37 module_param(timeout, int, 0);
38 MODULE_PARM_DESC(timeout, "Initial watchdog timeout in seconds");
92 unsigned int timeout) in sl28cpld_wdt_set_timeout() argument
97 ret = regmap_write(wdt->regmap, wdt->offset + WDT_TIMEOUT, timeout); in sl28cpld_wdt_set_timeout()
101 wdd->timeout = timeout; in sl28cpld_wdt_set_timeout()
179 wdd->timeout = val; in sl28cpld_wdt_probe()
181 wdd->timeout = WDT_DEFAULT_TIMEOUT; in sl28cpld_wdt_probe()
183 watchdog_init_timeout(wdd, timeout, &pdev->dev); in sl28cpld_wdt_probe()
184 sl28cpld_wdt_set_timeout(wdd, wdd->timeout); in sl28cpld_wdt_probe()
[all …]
Darm_smc_wdt.c32 static unsigned int timeout; variable
69 static int smcwd_set_timeout(struct watchdog_device *wdd, unsigned int timeout) in smcwd_set_timeout() argument
73 res = smcwd_call(wdd, SMCWD_SET_TIMEOUT, timeout, NULL); in smcwd_set_timeout()
75 wdd->timeout = timeout; in smcwd_set_timeout()
138 wdd->timeout = res.a2; in smcwd_probe()
146 watchdog_init_timeout(wdd, timeout, &pdev->dev); in smcwd_probe()
147 err = smcwd_set_timeout(wdd, wdd->timeout); in smcwd_probe()
157 wdd->timeout, nowayout); in smcwd_probe()
178 module_param(timeout, uint, 0);
179 MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");
Dmsc313e_wdt.c24 static unsigned int timeout; variable
26 module_param(timeout, int, 0);
27 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds");
38 u32 timeout; in msc313e_wdt_start() local
45 timeout = wdev->timeout * clk_get_rate(priv->clk); in msc313e_wdt_start()
46 writew(timeout & 0xffff, priv->base + REG_WDT_MAX_PRD_L); in msc313e_wdt_start()
47 writew((timeout >> 16) & 0xffff, priv->base + REG_WDT_MAX_PRD_H); in msc313e_wdt_start()
73 wdev->timeout = new_time; in msc313e_wdt_settimeout()
121 priv->wdev.timeout = MSC313E_WDT_DEFAULT_TIMEOUT; in msc313e_wdt_probe()
125 watchdog_init_timeout(&priv->wdev, timeout, dev); in msc313e_wdt_probe()
Dmtk_wdt.c61 static unsigned int timeout; variable
189 unsigned int timeout) in mtk_wdt_set_timeout() argument
195 wdt_dev->timeout = timeout; in mtk_wdt_set_timeout()
201 wdt_dev->pretimeout = timeout / 2; in mtk_wdt_set_timeout()
207 reg = WDT_LENGTH_TIMEOUT((timeout - wdt_dev->pretimeout) << 6) in mtk_wdt_set_timeout()
225 mtk_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in mtk_wdt_init()
250 ret = mtk_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in mtk_wdt_start()
266 unsigned int timeout) in mtk_wdt_set_pretimeout() argument
272 if (timeout && !wdd->pretimeout) { in mtk_wdt_set_pretimeout()
273 wdd->pretimeout = wdd->timeout / 2; in mtk_wdt_set_pretimeout()
[all …]
Dw83877f_wdt.c83 static int timeout = WATCHDOG_TIMEOUT; variable
84 module_param(timeout, int, 0);
85 MODULE_PARM_DESC(timeout,
156 next_heartbeat = jiffies + (timeout * HZ); in wdt_startup()
179 next_heartbeat = jiffies + (timeout * HZ); in wdt_keepalive()
289 timeout = new_timeout; in fop_ioctl()
294 return put_user(timeout, p); in fop_ioctl()
353 if (timeout < 1 || timeout > 3600) { /* arbitrary upper limit */ in w83877f_wdt_init()
354 timeout = WATCHDOG_TIMEOUT; in w83877f_wdt_init()
356 timeout); in w83877f_wdt_init()
[all …]
Dsbc60xxwdt.c96 static int timeout = WATCHDOG_TIMEOUT; /* in seconds, multiplied by HZ to variable
98 module_param(timeout, int, 0);
99 MODULE_PARM_DESC(timeout,
139 next_heartbeat = jiffies + (timeout * HZ); in wdt_startup()
157 next_heartbeat = jiffies + (timeout * HZ); in wdt_keepalive()
265 timeout = new_timeout; in fop_ioctl()
270 return put_user(timeout, p); in fop_ioctl()
330 if (timeout < 1 || timeout > 3600) { /* arbitrary upper limit */ in sbc60xxwdt_init()
331 timeout = WATCHDOG_TIMEOUT; in sbc60xxwdt_init()
333 timeout); in sbc60xxwdt_init()
[all …]
Dvia_wdt.c56 static int timeout = WDT_TIMEOUT; variable
57 module_param(timeout, int, 0);
58 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds, between 1 and 1023 "
104 next_heartbeat = jiffies + wdd->timeout * HZ; in wdt_ping()
112 writel(wdd->timeout, wdt_mem + VIA_WDT_COUNT); in wdt_start()
131 wdd->timeout = new_timeout; in wdt_set_timeout()
205 if (timeout < 1 || timeout > WDT_TIMEOUT_MAX) in wdt_probe()
206 timeout = WDT_TIMEOUT; in wdt_probe()
208 wdt_dev.timeout = timeout; in wdt_probe()
Dwafer5823wdt.c60 static int timeout = WD_TIMO; /* in seconds */ variable
61 module_param(timeout, int, 0);
62 MODULE_PARM_DESC(timeout,
84 outb_p(timeout, wdt_start); in wafwdt_start()
174 timeout = new_timeout; in wafwdt_ioctl()
179 return put_user(timeout, p); in wafwdt_ioctl()
259 if (timeout < 1 || timeout > 255) { in wafwdt_init()
260 timeout = WD_TIMO; in wafwdt_init()
262 timeout); in wafwdt_init()
293 timeout, nowayout); in wafwdt_init()
Dsc1200wdt.c70 static int timeout = 1; variable
88 module_param(timeout, int, 0);
89 MODULE_PARM_DESC(timeout, "range is 0-255 minutes, default is 1");
141 __sc1200wdt_write_data(WDTO, timeout); in sc1200wdt_start()
170 if (timeout > MAX_TIMEOUT) in sc1200wdt_open()
171 timeout = MAX_TIMEOUT; in sc1200wdt_open()
174 pr_info("Watchdog enabled, timeout = %d min(s)", timeout); in sc1200wdt_open()
225 sc1200wdt_write_data(WDTO, timeout); in sc1200wdt_ioctl()
235 timeout = new_timeout; in sc1200wdt_ioctl()
236 sc1200wdt_write_data(WDTO, timeout); in sc1200wdt_ioctl()
[all …]
/drivers/gpu/drm/i915/gem/
Di915_gem_wait.c20 long timeout) in i915_gem_object_wait_fence() argument
25 return timeout; in i915_gem_object_wait_fence()
28 return i915_request_wait(to_request(fence), flags, timeout); in i915_gem_object_wait_fence()
32 timeout); in i915_gem_object_wait_fence()
38 long timeout) in i915_gem_object_wait_reservation() argument
53 timeout = i915_gem_object_wait_fence(shared[i], in i915_gem_object_wait_reservation()
54 flags, timeout); in i915_gem_object_wait_reservation()
55 if (timeout < 0) in i915_gem_object_wait_reservation()
74 prune_fences = count && timeout >= 0; in i915_gem_object_wait_reservation()
79 if (excl && timeout >= 0) in i915_gem_object_wait_reservation()
[all …]
/drivers/tty/
Dtty_ldsem.c156 down_read_failed(struct ld_semaphore *sem, long count, long timeout) in down_read_failed() argument
198 if (!timeout) in down_read_failed()
200 timeout = schedule_timeout(timeout); in down_read_failed()
205 if (!timeout) { in down_read_failed()
230 down_write_failed(struct ld_semaphore *sem, long count, long timeout) in down_write_failed() argument
259 if (!timeout) in down_write_failed()
262 timeout = schedule_timeout(timeout); in down_write_failed()
296 int subclass, long timeout) in __ldsem_down_read_nested() argument
305 if (!down_read_failed(sem, count, timeout)) { in __ldsem_down_read_nested()
315 int subclass, long timeout) in __ldsem_down_write_nested() argument
[all …]
/drivers/input/serio/
Dlibps2.c26 unsigned int timeout, unsigned int max_attempts) in ps2_do_sendbyte() argument
47 msecs_to_jiffies(timeout)); in ps2_do_sendbyte()
86 int ps2_sendbyte(struct ps2dev *ps2dev, u8 byte, unsigned int timeout) in ps2_sendbyte() argument
92 retval = ps2_do_sendbyte(ps2dev, byte, timeout, 1); in ps2_sendbyte()
122 void ps2_drain(struct ps2dev *ps2dev, size_t maxbytes, unsigned int timeout) in ps2_drain() argument
138 msecs_to_jiffies(timeout)); in ps2_drain()
171 unsigned int command, unsigned int timeout) in ps2_adjust_timeout() argument
182 if (timeout > msecs_to_jiffies(100)) in ps2_adjust_timeout()
183 timeout = msecs_to_jiffies(100); in ps2_adjust_timeout()
197 timeout = 0; in ps2_adjust_timeout()
[all …]
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dcommon_baco.c30 u32 timeout = 5000, data; in baco_wait_register() local
35 timeout--; in baco_wait_register()
36 } while (value != (data & mask) && (timeout != 0)); in baco_wait_register()
38 if (timeout == 0) in baco_wait_register()
45 u32 shift, u32 value, u32 timeout) in baco_cmd_handler() argument
64 if (timeout) in baco_cmd_handler()
66 msleep(timeout); in baco_cmd_handler()
69 if (timeout) in baco_cmd_handler()
71 udelay(timeout); in baco_cmd_handler()
94 entry[i].shift, entry[i].val, entry[i].timeout)) in baco_program_registers()
[all …]
/drivers/i2c/algos/
Di2c-algo-pcf.c98 int timeout = DEF_TIMEOUT; in wait_for_bb() local
103 while (!(status & I2C_PCF_BB) && --timeout) { in wait_for_bb()
108 if (timeout == 0) { in wait_for_bb()
119 int timeout = DEF_TIMEOUT; in wait_for_pin() local
123 while ((*status & I2C_PCF_PIN) && --timeout) { in wait_for_pin()
132 if (timeout == 0) in wait_for_pin()
209 int wrcount, status, timeout; in pcf_sendbytes() local
215 timeout = wait_for_pin(adap, &status); in pcf_sendbytes()
216 if (timeout) { in pcf_sendbytes()
217 if (timeout == -EINTR) in pcf_sendbytes()
[all …]

12345678910>>...84