Home
last modified time | relevance | path

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

12345678910>>...121

/linux-5.19.10/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.c73 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument
91 regval = da9063_wdt_timeout_to_sel(timeout); in da9063_wdt_update_timeout()
102 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start()
145 unsigned int timeout) in da9063_wdt_set_timeout() argument
161 ret = da9063_wdt_update_timeout(da9063, timeout); in da9063_wdt_set_timeout()
167 wdd->timeout = wdt_timeout[da9063_wdt_timeout_to_sel(timeout)]; in da9063_wdt_set_timeout()
211 unsigned int timeout; in da9063_wdt_probe() local
238 wdd->timeout = DA9063_WDG_TIMEOUT; in da9063_wdt_probe()
241 timeout = da9063_wdt_read_timeout(da9063); in da9063_wdt_probe()
242 if (timeout) in da9063_wdt_probe()
[all …]
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()
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()
319 if (timeout < 1 || timeout > max_units * 60) { in it87_wdt_init()
320 timeout = DEFAULT_TIMEOUT; in it87_wdt_init()
325 if (timeout > max_units) in it87_wdt_init()
326 timeout = wdt_round_time(timeout); in it87_wdt_init()
328 wdt_dev.timeout = timeout; in it87_wdt_init()
[all …]
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()
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()
/linux-5.19.10/Documentation/watchdog/
Dwatchdog-parameters.rst21 timeout. Setting this to a non-zero value can be useful to ensure that
43 timeout:
44 Watchdog timeout in seconds. 1<= timeout <=63, default=60.
52 timeout:
53 Watchdog timeout in seconds. (0 < timeout < 18000, default=60
61 timeout:
62 Watchdog timeout in seconds. (1<=timeout<=3600, default=30
82 timeout:
83 Watchdog timeout in seconds. (default=120)
135 Default watchdog0 timeout in 1/10secs
[all …]
/linux-5.19.10/net/netfilter/
Dnf_conntrack_timeout.c28 static int untimeout(struct nf_conn *ct, void *timeout) in untimeout() argument
32 if (timeout_ext && (!timeout || timeout_ext->timeout == timeout)) in untimeout()
33 RCU_INIT_POINTER(timeout_ext->timeout, NULL); in untimeout()
39 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout) in nf_ct_untimeout() argument
43 .data = timeout, in nf_ct_untimeout()
50 static void __nf_ct_timeout_put(struct nf_ct_timeout *timeout) in __nf_ct_timeout_put() argument
55 h->timeout_put(timeout); in __nf_ct_timeout_put()
62 struct nf_ct_timeout *timeout; in nf_ct_set_timeout() local
75 timeout = h->timeout_find_get(net, timeout_name); in nf_ct_set_timeout()
76 if (!timeout) { in nf_ct_set_timeout()
[all …]
Dnfnetlink_cttimeout.c44 struct nf_ct_timeout timeout; member
70 ctnl_timeout_parse_policy(void *timeout, in ctnl_timeout_parse_policy() argument
91 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy()
106 struct ctnl_timeout *timeout, *matching = NULL; in cttimeout_new_timeout() local
120 list_for_each_entry(timeout, &pernet->nfct_timeout_list, head) { in cttimeout_new_timeout()
121 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_new_timeout()
127 matching = timeout; in cttimeout_new_timeout()
136 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout()
137 matching->timeout.l4proto->l4proto != l4num) in cttimeout_new_timeout()
140 return ctnl_timeout_parse_policy(&matching->timeout.data, in cttimeout_new_timeout()
[all …]
Dnf_conntrack_proto_generic.c24 unsigned int *timeout = data; in generic_timeout_nlattr_to_obj() local
26 if (!timeout) in generic_timeout_nlattr_to_obj()
27 timeout = &gn->timeout; in generic_timeout_nlattr_to_obj()
30 *timeout = in generic_timeout_nlattr_to_obj()
34 *timeout = gn->timeout; in generic_timeout_nlattr_to_obj()
43 const unsigned int *timeout = data; in generic_timeout_obj_to_nlattr() local
45 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / HZ))) in generic_timeout_obj_to_nlattr()
64 gn->timeout = nf_ct_generic_timeout; in nf_conntrack_generic_init_net()
/linux-5.19.10/kernel/sched/
Dcompletion.c72 long (*action)(long), long timeout, int state) in do_wait_for_common() argument
79 timeout = -ERESTARTSYS; in do_wait_for_common()
85 timeout = action(timeout); in do_wait_for_common()
87 } while (!x->done && timeout); in do_wait_for_common()
90 return timeout; in do_wait_for_common()
94 return timeout ?: 1; in do_wait_for_common()
99 long (*action)(long), long timeout, int state) in __wait_for_common() argument
106 timeout = do_wait_for_common(x, action, timeout, state); in __wait_for_common()
111 return timeout; in __wait_for_common()
115 wait_for_common(struct completion *x, long timeout, int state) in wait_for_common() argument
[all …]
/linux-5.19.10/include/linux/
Dfreezer.h188 static inline long freezable_schedule_timeout(long timeout) in freezable_schedule_timeout() argument
192 __retval = schedule_timeout(timeout); in freezable_schedule_timeout()
201 static inline long freezable_schedule_timeout_interruptible(long timeout) in freezable_schedule_timeout_interruptible() argument
205 __retval = schedule_timeout_interruptible(timeout); in freezable_schedule_timeout_interruptible()
211 static inline long freezable_schedule_timeout_interruptible_unsafe(long timeout) in freezable_schedule_timeout_interruptible_unsafe() argument
216 __retval = schedule_timeout_interruptible(timeout); in freezable_schedule_timeout_interruptible_unsafe()
222 static inline long freezable_schedule_timeout_killable(long timeout) in freezable_schedule_timeout_killable() argument
226 __retval = schedule_timeout_killable(timeout); in freezable_schedule_timeout_killable()
232 static inline long freezable_schedule_timeout_killable_unsafe(long timeout) in freezable_schedule_timeout_killable_unsafe() argument
236 __retval = schedule_timeout_killable(timeout); in freezable_schedule_timeout_killable_unsafe()
[all …]
Dwait.h388 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
390 TASK_UNINTERRUPTIBLE, 0, timeout, \
412 #define wait_event_timeout(wq_head, condition, timeout) \ argument
414 long __ret = timeout; \
417 __ret = __wait_event_timeout(wq_head, condition, timeout); \
421 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
423 TASK_INTERRUPTIBLE, 0, timeout, \
430 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
432 long __ret = timeout; \
435 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
[all …]
Dswait.h193 #define __swait_event_timeout(wq, condition, timeout) \ argument
195 TASK_UNINTERRUPTIBLE, timeout, \
198 #define swait_event_timeout_exclusive(wq, condition, timeout) \ argument
200 long __ret = timeout; \
202 __ret = __swait_event_timeout(wq, condition, timeout); \
218 #define __swait_event_interruptible_timeout(wq, condition, timeout) \ argument
220 TASK_INTERRUPTIBLE, timeout, \
223 #define swait_event_interruptible_timeout_exclusive(wq, condition, timeout)\ argument
225 long __ret = timeout; \
228 condition, timeout); \
[all …]
/linux-5.19.10/tools/testing/selftests/firmware/
Dfw_fallback.sh30 local timeout=10
33 timeout=$(( $timeout - 1 ))
34 if [ "$timeout" -eq 0 ]; then
57 local timeout=10
60 timeout=$(( $timeout - 1 ))
61 if [ "$timeout" -eq 0 ]; then
86 local timeout=10
89 timeout=$(( $timeout - 1 ))
90 if [ "$timeout" -eq 0 ]; then
119 local timeout=10
[all …]
/linux-5.19.10/include/net/netfilter/
Dnf_conntrack_timeout.h21 struct nf_ct_timeout __rcu *timeout; member
28 struct nf_ct_timeout *timeout; in nf_ct_timeout_data() local
30 timeout = rcu_dereference(t->timeout); in nf_ct_timeout_data()
31 if (timeout == NULL) in nf_ct_timeout_data()
34 return (unsigned int *)timeout->data; in nf_ct_timeout_data()
52 struct nf_ct_timeout *timeout, in nf_ct_timeout_ext_add() argument
62 rcu_assign_pointer(timeout_ext->timeout, timeout); in nf_ct_timeout_ext_add()
84 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout);
105 void (*timeout_put)(struct nf_ct_timeout *timeout);
/linux-5.19.10/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_timeout(to_request(fence), flags, timeout); in i915_gem_object_wait_fence()
32 timeout); in i915_gem_object_wait_fence()
69 long timeout) in i915_gem_object_wait_reservation() argument
73 long ret = timeout ?: 1; in i915_gem_object_wait_reservation()
80 ret = i915_gem_object_wait_fence(fence, flags, timeout); in i915_gem_object_wait_reservation()
84 if (timeout) in i915_gem_object_wait_reservation()
85 timeout = ret; in i915_gem_object_wait_reservation()
172 long timeout) in i915_gem_object_wait() argument
[all …]
/linux-5.19.10/block/
Dblk-timeout.c109 unsigned long blk_rq_timeout(unsigned long timeout) in blk_rq_timeout() argument
114 if (time_after(timeout, maxt)) in blk_rq_timeout()
115 timeout = maxt; in blk_rq_timeout()
117 return timeout; in blk_rq_timeout()
137 if (!req->timeout) in blk_add_timer()
138 req->timeout = q->rq_timeout; in blk_add_timer()
142 expiry = jiffies + req->timeout; in blk_add_timer()
152 if (!timer_pending(&q->timeout) || in blk_add_timer()
153 time_before(expiry, q->timeout.expires)) { in blk_add_timer()
154 unsigned long diff = q->timeout.expires - expiry; in blk_add_timer()
[all …]
/linux-5.19.10/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 …]
/linux-5.19.10/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_stack_tracer.tc12 timeout=10
13 while [ $timeout -ne 0 ]; do
17 timeout=$((timeout - 1))
28 timeout=10
29 while [ $timeout -ne 0 ]; do
33 timeout=$((timeout - 1))
/linux-5.19.10/tools/testing/selftests/timens/
Dfutex.c23 struct timespec timeout, end; in run_test() local
29 clock_gettime(clockid, &timeout); in run_test()
30 timeout.tv_nsec += NSEC_PER_SEC / 10; // 100ms in run_test()
31 if (timeout.tv_nsec > NSEC_PER_SEC) { in run_test()
32 timeout.tv_sec++; in run_test()
33 timeout.tv_nsec -= NSEC_PER_SEC; in run_test()
37 &timeout, 0, FUTEX_BITSET_MATCH_ANY) >= 0) { in run_test()
50 if (end.tv_sec < timeout.tv_sec || in run_test()
51 (end.tv_sec == timeout.tv_sec && end.tv_nsec < timeout.tv_nsec)) { in run_test()
/linux-5.19.10/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 …]
/linux-5.19.10/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 …]
/linux-5.19.10/arch/mips/loongson2ef/lemote-2f/
Dec_kb3310b.c53 int timeout; in ec_query_seq() local
66 timeout = EC_CMD_TIMEOUT; in ec_query_seq()
68 while (timeout-- && (status & (1 << 1))) { in ec_query_seq()
75 if (timeout <= 0) { in ec_query_seq()
81 timeout, EC_CMD_TIMEOUT - timeout, cmd, status); in ec_query_seq()
104 int timeout = 100; in ec_get_event_num() local
111 while (timeout-- && !(status & (1 << 0))) { in ec_get_event_num()
115 if (timeout <= 0) { in ec_get_event_num()

12345678910>>...121