Home
last modified time | relevance | path

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

12345678910>>...77

/linux/kernel/time/
H A Dsleep_timeout.c25 struct process_timer *timeout = timer_container_of(timeout, t, timer); in process_timeout() local
27 wake_up_process(timeout->task); in process_timeout()
61 signed long __sched schedule_timeout(signed long timeout) in schedule_timeout() argument
66 switch (timeout) { in schedule_timeout()
85 if (timeout < 0) { in schedule_timeout()
86 pr_err("%s: wrong timeout value %lx\n", __func__, timeout); in schedule_timeout()
93 expire = timeout + jiffies; in schedule_timeout()
105 timeout = expire - jiffies; in schedule_timeout()
108 return timeout < 0 ? 0 : timeout; in schedule_timeout()
125 signed long __sched schedule_timeout_interruptible(signed long timeout) in schedule_timeout_interruptible() argument
[all …]
/linux/Documentation/watchdog/
H A 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)
125 Default watchdog0 timeout in 1/10secs
[all …]
/linux/net/netfilter/
H A Dnf_conntrack_timeout.c28 static int untimeout(struct nf_conn *ct, void *timeout) in untimeout() argument
35 t = rcu_access_pointer(timeout_ext->timeout); in untimeout()
37 if (!timeout || t == timeout) in untimeout()
38 RCU_INIT_POINTER(timeout_ext->timeout, NULL); in untimeout()
45 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout) in nf_ct_untimeout() argument
49 .data = timeout, in nf_ct_untimeout()
56 static void __nf_ct_timeout_put(struct nf_ct_timeout *timeout) in __nf_ct_timeout_put() argument
61 h->timeout_put(timeout); in __nf_ct_timeout_put()
68 struct nf_ct_timeout *timeout; in nf_ct_set_timeout() local
81 timeout = h->timeout_find_get(net, timeout_name); in nf_ct_set_timeout()
[all …]
H A 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 …]
H A 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/kernel/sched/
H A Dcompletion.c87 long (*action)(long), long timeout, int state) in do_wait_for_common() argument
94 timeout = -ERESTARTSYS; in do_wait_for_common()
100 timeout = action(timeout); in do_wait_for_common()
102 } while (!x->done && timeout); in do_wait_for_common()
105 return timeout; in do_wait_for_common()
109 return timeout ?: 1; in do_wait_for_common()
114 long (*action)(long), long timeout, int state) in __wait_for_common() argument
121 timeout = do_wait_for_common(x, action, timeout, state); in __wait_for_common()
126 return timeout; in __wait_for_common()
130 wait_for_common(struct completion *x, long timeout, int state) in wait_for_common() argument
[all …]
/linux/tools/testing/selftests/firmware/
H A 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/drivers/gpu/drm/xe/
H A Dxe_wait_user_fence.c62 long timeout; in to_jiffies_timeout() local
70 if (args->timeout < 0) { in to_jiffies_timeout()
71 args->timeout = MAX_SCHEDULE_TIMEOUT; in to_jiffies_timeout()
75 if (args->timeout == 0) in to_jiffies_timeout()
83 t = drm_timeout_abs_to_jiffies(args->timeout); in to_jiffies_timeout()
85 t = nsecs_to_jiffies(args->timeout); in to_jiffies_timeout()
94 timeout = MAX_SCHEDULE_TIMEOUT - 1; in to_jiffies_timeout()
96 timeout = t; in to_jiffies_timeout()
98 return timeout ?: 1; in to_jiffies_timeout()
111 long timeout; in xe_wait_user_fence_ioctl() local
[all …]
H A Dxe_hw_engine_class_sysfs.c30 bool xe_hw_engine_timeout_in_range(u64 timeout, u64 min, u64 max) in xe_hw_engine_timeout_in_range() argument
32 return timeout >= min && timeout <= max; in xe_hw_engine_timeout_in_range()
97 u32 timeout; in job_timeout_max_store() local
100 err = kstrtou32(buf, 0, &timeout); in job_timeout_max_store()
104 if (timeout < eclass->sched_props.job_timeout_min) in job_timeout_max_store()
107 if (!xe_hw_engine_timeout_in_range(timeout, in job_timeout_max_store()
112 WRITE_ONCE(eclass->sched_props.job_timeout_max, timeout); in job_timeout_max_store()
133 u32 timeout; in job_timeout_min_store() local
136 err = kstrtou32(buf, 0, &timeout); in job_timeout_min_store()
140 if (timeout > eclass->sched_props.job_timeout_max) in job_timeout_min_store()
[all …]
/linux/include/linux/
H A Dwait.h393 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
395 TASK_UNINTERRUPTIBLE, 0, timeout, \
417 #define wait_event_timeout(wq_head, condition, timeout) \ argument
419 long __ret = timeout; \
422 __ret = __wait_event_timeout(wq_head, condition, timeout); \
426 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
428 (TASK_INTERRUPTIBLE|TASK_FREEZABLE), 0, timeout, \
435 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
437 long __ret = timeout; \
440 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
[all …]
H A 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/tools/include/nolibc/sys/
H A Dselect.h64 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument
71 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select()
74 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select()
76 return my_syscall5(__NR_select, nfds, rfds, wfds, efds, timeout); in sys_select()
80 if (timeout) { in sys_select()
81 t.tv_sec = timeout->tv_sec; in sys_select()
82 t.tv_nsec = timeout->tv_usec * 1000; in sys_select()
84 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select()
88 if (timeout) { in sys_select()
89 t.tv_sec = timeout->tv_sec; in sys_select()
[all …]
/linux/include/net/netfilter/
H A 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/block/
H A 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/tools/testing/selftests/timens/
H A 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 in run_test()
[all...]
/linux/drivers/watchdog/
H A Dda9063_wdt.c72 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument
90 regval = da9063_wdt_timeout_to_sel(timeout); in da9063_wdt_update_timeout()
101 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start()
144 unsigned int timeout) in da9063_wdt_set_timeout() argument
160 ret = da9063_wdt_update_timeout(da9063, timeout); in da9063_wdt_set_timeout()
166 wdd->timeout = wdt_timeout[da9063_wdt_timeout_to_sel(timeout)]; in da9063_wdt_set_timeout()
219 unsigned int timeout; in da9063_wdt_probe() local
246 wdd->timeout = DA9063_WDG_TIMEOUT; in da9063_wdt_probe()
249 timeout = da9063_wdt_read_timeout(da9063); in da9063_wdt_probe()
250 if (timeout) in da9063_wdt_probe()
[all …]
H A 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()
148 wdev->timeout = min(wdev->max_timeout, WDT_DEFAULT_TIMEOUT); in visconti_wdt_probe()
H A Dts4800_wdt.c48 const int timeout; member
79 unsigned int timeout) in ts4800_wdt_set_timeout() argument
85 if (ts4800_wdt_map[i].timeout >= timeout) in ts4800_wdt_set_timeout()
89 wdd->timeout = ts4800_wdt_map[i].timeout; in ts4800_wdt_set_timeout()
151 wdd->min_timeout = ts4800_wdt_map[0].timeout; in ts4800_wdt_probe()
152 wdd->max_timeout = ts4800_wdt_map[MAX_TIMEOUT_INDEX].timeout; in ts4800_wdt_probe()
164 if (!wdd->timeout) in ts4800_wdt_probe()
165 wdd->timeout = wdd->max_timeout; in ts4800_wdt_probe()
166 ts4800_wdt_set_timeout(wdd, wdd->timeout); in ts4800_wdt_probe()
181 wdd->timeout, nowayout); in ts4800_wdt_probe()
H A 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()
H A Dkempld_wdt.c84 static unsigned int timeout = DEFAULT_TIMEOUT; variable
85 module_param(timeout, uint, 0);
86 MODULE_PARM_DESC(timeout,
130 unsigned int timeout) in kempld_wdt_set_stage_timeout() argument
144 stage_timeout64 = (u64)timeout * pld->pld_clock; in kempld_wdt_set_stage_timeout()
173 unsigned int timeout; in kempld_wdt_get_timeout() local
191 timeout = stage_timeout; in kempld_wdt_get_timeout()
192 WARN_ON_ONCE(timeout != stage_timeout); in kempld_wdt_get_timeout()
194 return timeout; in kempld_wdt_get_timeout()
198 unsigned int timeout) in kempld_wdt_set_timeout() argument
[all …]
H A 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 …]
/linux/tools/testing/selftests/ftrace/test.d/ftrace/
H A 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/drivers/i2c/algos/
H A Di2c-algo-pcf.c81 int timeout = DEF_TIMEOUT; in wait_for_bb() local
86 while (!(status & I2C_PCF_BB) && --timeout) { in wait_for_bb()
91 if (timeout == 0) { in wait_for_bb()
102 int timeout = DEF_TIMEOUT; in wait_for_pin() local
106 while ((*status & I2C_PCF_PIN) && --timeout) { in wait_for_pin()
115 if (timeout == 0) in wait_for_pin()
184 int wrcount, status, timeout; in pcf_sendbytes() local
188 timeout = wait_for_pin(adap, &status); in pcf_sendbytes()
189 if (timeout) { in pcf_sendbytes()
190 if (timeout == -EINTR) in pcf_sendbytes()
[all …]
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A 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/arch/mips/loongson2ef/lemote-2f/
H A 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>>...77