Home
last modified time | relevance | path

Searched refs:timeout (Results 1 - 25 of 5869) sorted by relevance

12345678910>>...235

/kernel/linux/linux-5.10/drivers/watchdog/
H A 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()
106 npcm_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) npcm_wdt_set_timeout() argument
[all...]
H A Dda9063_wdt.c23 * Watchdog selector to timeout in seconds.
25 * others: timeout = 2048 ms * 2^(TWDSCALE-1).
49 * Read the currently active timeout.
69 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument
75 * The watchdog triggers a reboot if a timeout value is already in da9063_wdt_update_timeout()
76 * programmed because the timeout value combines two functions in da9063_wdt_update_timeout()
78 * The watchdog must be disabled to be able to change the timeout in da9063_wdt_update_timeout()
80 * new timeout value which enables the watchdog again. in da9063_wdt_update_timeout()
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()
133 da9063_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) da9063_wdt_set_timeout() argument
195 unsigned int timeout; da9063_wdt_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/watchdog/
H A Dnpcm_wdt.c74 if (wdd->timeout < 2) in npcm_wdt_start()
76 else if (wdd->timeout < 3) in npcm_wdt_start()
78 else if (wdd->timeout < 6) in npcm_wdt_start()
80 else if (wdd->timeout < 11) in npcm_wdt_start()
82 else if (wdd->timeout < 22) in npcm_wdt_start()
84 else if (wdd->timeout < 44) in npcm_wdt_start()
86 else if (wdd->timeout < 87) in npcm_wdt_start()
88 else if (wdd->timeout < 173) in npcm_wdt_start()
90 else if (wdd->timeout < 688) in npcm_wdt_start()
115 unsigned int timeout) in npcm_wdt_set_timeout()
114 npcm_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) npcm_wdt_set_timeout() argument
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_conntrack_timeout.c29 void (*nf_ct_timeout_put_hook)(struct nf_ct_timeout *timeout) __read_mostly;
32 static int untimeout(struct nf_conn *ct, void *timeout) in untimeout() argument
36 if (timeout_ext && (!timeout || timeout_ext->timeout == timeout)) in untimeout()
37 RCU_INIT_POINTER(timeout_ext->timeout, NULL); in untimeout()
43 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout) in nf_ct_untimeout() argument
45 nf_ct_iterate_cleanup_net(net, untimeout, timeout, 0, 0); in nf_ct_untimeout()
49 static void __nf_ct_timeout_put(struct nf_ct_timeout *timeout) in __nf_ct_timeout_put() argument
55 timeout_put(timeout); in __nf_ct_timeout_put()
62 struct nf_ct_timeout *timeout; nf_ct_set_timeout() local
[all...]
H A Dnfnetlink_cttimeout.c35 MODULE_DESCRIPTION("cttimeout: Extended Netfilter Connection Tracking timeout tuning");
46 ctnl_timeout_parse_policy(void *timeout, in ctnl_timeout_parse_policy() argument
67 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy()
83 struct ctnl_timeout *timeout, *matching = NULL; in cttimeout_new_timeout() local
97 list_for_each_entry(timeout, &net->nfct_timeout_list, head) { in cttimeout_new_timeout()
98 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_new_timeout()
104 matching = timeout; in cttimeout_new_timeout()
110 /* You cannot replace one timeout policy by another of in cttimeout_new_timeout()
113 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout()
114 matching->timeout in cttimeout_new_timeout()
159 ctnl_timeout_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, int event, struct ctnl_timeout *timeout) ctnl_timeout_fill_info() argument
289 ctnl_timeout_try_del(struct net *net, struct ctnl_timeout *timeout) ctnl_timeout_try_del() argument
506 struct ctnl_timeout *timeout, *matching = NULL; ctnl_timeout_find_get() local
528 struct ctnl_timeout *timeout = ctnl_timeout_put() local
[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()
33 /* Set default generic 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 / H in generic_timeout_obj_to_nlattr()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A 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...]
H A Dwait.h286 * on purpose; we use long where we can return timeout values and int
378 #define __wait_event_timeout(wq_head, condition, timeout) \
380 TASK_UNINTERRUPTIBLE, 0, timeout, \
384 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
387 * @timeout: timeout, in jiffies
397 * 0 if the @condition evaluated to %false after the @timeout elapsed,
398 * 1 if the @condition evaluated to %true after the @timeout elapsed,
400 * to %true before the @timeout elapsed.
402 #define wait_event_timeout(wq_head, condition, timeout) \
[all...]
H A Dswait.h193 #define __swait_event_timeout(wq, condition, timeout) \
195 TASK_UNINTERRUPTIBLE, timeout, \
198 #define swait_event_timeout_exclusive(wq, condition, timeout) \
200 long __ret = timeout; \
202 __ret = __swait_event_timeout(wq, condition, timeout); \
218 #define __swait_event_interruptible_timeout(wq, condition, timeout) \
220 TASK_INTERRUPTIBLE, timeout, \
223 #define swait_event_interruptible_timeout_exclusive(wq, condition, timeout)\
225 long __ret = timeout; \
228 condition, timeout); \
[all...]
/kernel/linux/linux-6.6/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
[all...]
H A Dnfnetlink_cttimeout.c44 struct nf_ct_timeout timeout; member
54 MODULE_DESCRIPTION("cttimeout: Extended Netfilter Connection Tracking timeout tuning");
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()
133 /* You cannot replace one timeout policy by another of in cttimeout_new_timeout()
136 if (matching->timeout in cttimeout_new_timeout()
184 ctnl_timeout_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, int event, struct ctnl_timeout *timeout) ctnl_timeout_fill_info() argument
312 ctnl_timeout_try_del(struct net *net, struct ctnl_timeout *timeout) ctnl_timeout_try_del() argument
516 struct ctnl_timeout *timeout, *matching = NULL; ctnl_timeout_find_get() local
533 struct ctnl_timeout *timeout = ctnl_timeout_put() local
660 untimeout(struct nf_conn *ct, void *timeout) untimeout() argument
[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()
33 /* Set default generic 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 / H in generic_timeout_obj_to_nlattr()
[all...]
/kernel/linux/linux-5.10/kernel/sched/
H A Dcompletion.c72 long (*action)(long), long timeout, int state) in do_wait_for_common()
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()
106 timeout = do_wait_for_common(x, action, timeout, stat in __wait_for_common()
71 do_wait_for_common(struct completion *x, long (*action)(long), long timeout, int state) do_wait_for_common() argument
98 __wait_for_common(struct completion *x, long (*action)(long), long timeout, int state) __wait_for_common() argument
115 wait_for_common(struct completion *x, long timeout, int state) wait_for_common() argument
121 wait_for_common_io(struct completion *x, long timeout, int state) wait_for_common_io() argument
155 wait_for_completion_timeout(struct completion *x, unsigned long timeout) wait_for_completion_timeout() argument
189 wait_for_completion_io_timeout(struct completion *x, unsigned long timeout) wait_for_completion_io_timeout() argument
225 wait_for_completion_interruptible_timeout(struct completion *x, unsigned long timeout) wait_for_completion_interruptible_timeout() argument
263 wait_for_completion_killable_timeout(struct completion *x, unsigned long timeout) wait_for_completion_killable_timeout() argument
[all...]
/kernel/linux/linux-6.6/kernel/sched/
H A Dcompletion.c82 long (*action)(long), long timeout, int state) in do_wait_for_common()
89 timeout = -ERESTARTSYS; in do_wait_for_common()
95 timeout = action(timeout); in do_wait_for_common()
97 } while (!x->done && timeout); in do_wait_for_common()
100 return timeout; in do_wait_for_common()
104 return timeout ?: 1; in do_wait_for_common()
109 long (*action)(long), long timeout, int state) in __wait_for_common()
116 timeout = do_wait_for_common(x, action, timeout, stat in __wait_for_common()
81 do_wait_for_common(struct completion *x, long (*action)(long), long timeout, int state) do_wait_for_common() argument
108 __wait_for_common(struct completion *x, long (*action)(long), long timeout, int state) __wait_for_common() argument
125 wait_for_common(struct completion *x, long timeout, int state) wait_for_common() argument
131 wait_for_common_io(struct completion *x, long timeout, int state) wait_for_common_io() argument
165 wait_for_completion_timeout(struct completion *x, unsigned long timeout) wait_for_completion_timeout() argument
199 wait_for_completion_io_timeout(struct completion *x, unsigned long timeout) wait_for_completion_io_timeout() argument
236 wait_for_completion_interruptible_timeout(struct completion *x, unsigned long timeout) wait_for_completion_interruptible_timeout() argument
285 wait_for_completion_killable_timeout(struct completion *x, unsigned long timeout) wait_for_completion_killable_timeout() argument
[all...]
/kernel/linux/linux-6.6/io_uring/
H A Dtimeout.c14 #include "timeout.h"
32 /* timeout update */
40 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_is_timeout_noseq() local
43 return !timeout->off || data->flags & IORING_TIMEOUT_MULTISHOT; in io_is_timeout_noseq()
54 static inline bool io_timeout_finish(struct io_timeout *timeout, in io_timeout_finish() argument
60 if (!timeout->off || (timeout->repeats && --timeout->repeats)) in io_timeout_finish()
70 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_timeout_complete() local
74 if (!io_timeout_finish(timeout, dat in io_timeout_complete()
98 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); global() variable
114 struct io_timeout *timeout, *tmp; io_flush_timeouts() local
224 struct io_timeout *timeout = io_kiocb_to_cmd(link, struct io_timeout); global() variable
241 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_timeout_fn() local
264 struct io_timeout *timeout; global() variable
305 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_req_task_link_timeout() local
332 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_link_timeout_fn() local
379 struct io_timeout *timeout; global() variable
408 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); global() variable
496 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); __io_timeout_prep() local
573 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_timeout() local
624 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_queue_linked_timeout() local
667 struct io_timeout *timeout, *tmp; io_kill_timeouts() local
[all...]
/kernel/linux/linux-5.10/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
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
H A Di915_gem_wait.c18 long timeout) in i915_gem_object_wait_fence()
23 return timeout; in i915_gem_object_wait_fence()
26 return i915_request_wait(to_request(fence), flags, timeout); in i915_gem_object_wait_fence()
30 timeout); in i915_gem_object_wait_fence()
36 long timeout) in i915_gem_object_wait_reservation()
52 timeout = i915_gem_object_wait_fence(shared[i], in i915_gem_object_wait_reservation()
53 flags, timeout); in i915_gem_object_wait_reservation()
54 if (timeout < 0) in i915_gem_object_wait_reservation()
73 prune_fences = count && timeout >= 0; in i915_gem_object_wait_reservation()
78 if (excl && timeout > in i915_gem_object_wait_reservation()
16 i915_gem_object_wait_fence(struct dma_fence *fence, unsigned int flags, long timeout) i915_gem_object_wait_fence() argument
34 i915_gem_object_wait_reservation(struct dma_resv *resv, unsigned int flags, long timeout) i915_gem_object_wait_reservation() argument
172 i915_gem_object_wait(struct drm_i915_gem_object *obj, unsigned int flags, long timeout) i915_gem_object_wait() argument
[all...]
/kernel/linux/linux-6.6/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
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dwait.h299 * on purpose; we use long where we can return timeout values and int
391 #define __wait_event_timeout(wq_head, condition, timeout) \
393 TASK_UNINTERRUPTIBLE, 0, timeout, \
397 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
400 * @timeout: timeout, in jiffies
410 * 0 if the @condition evaluated to %false after the @timeout elapsed,
411 * 1 if the @condition evaluated to %true after the @timeout elapsed,
413 * to %true before the @timeout elapsed.
415 #define wait_event_timeout(wq_head, condition, timeout) \
[all...]
H A Dswait.h193 #define __swait_event_timeout(wq, condition, timeout) \
195 TASK_UNINTERRUPTIBLE, timeout, \
198 #define swait_event_timeout_exclusive(wq, condition, timeout) \
200 long __ret = timeout; \
202 __ret = __swait_event_timeout(wq, condition, timeout); \
218 #define __swait_event_interruptible_timeout(wq, condition, timeout) \
220 TASK_INTERRUPTIBLE, timeout, \
223 #define swait_event_interruptible_timeout_exclusive(wq, condition, timeout)\
225 long __ret = timeout; \
228 condition, timeout); \
[all...]
/kernel/linux/linux-5.10/include/net/netfilter/
H A Dnf_conntrack_timeout.h25 struct nf_ct_timeout timeout; member
29 struct nf_ct_timeout __rcu *timeout; member
36 struct nf_ct_timeout *timeout; in nf_ct_timeout_data() local
38 timeout = rcu_dereference(t->timeout); in nf_ct_timeout_data()
39 if (timeout == NULL) in nf_ct_timeout_data()
42 return (unsigned int *)timeout->data; in nf_ct_timeout_data()
60 struct nf_ct_timeout *timeout, in nf_ct_timeout_ext_add()
70 rcu_assign_pointer(timeout_ext->timeout, timeout); in nf_ct_timeout_ext_add()
59 nf_ct_timeout_ext_add(struct nf_conn *ct, struct nf_ct_timeout *timeout, gfp_t gfp) nf_ct_timeout_ext_add() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/
H A Di915_gem_wait.c20 long timeout) in i915_gem_object_wait_fence()
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()
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()
167 * @timeout
18 i915_gem_object_wait_fence(struct dma_fence *fence, unsigned int flags, long timeout) i915_gem_object_wait_fence() argument
67 i915_gem_object_wait_reservation(struct dma_resv *resv, unsigned int flags, long timeout) i915_gem_object_wait_reservation() argument
170 i915_gem_object_wait(struct drm_i915_gem_object *obj, unsigned int flags, long timeout) i915_gem_object_wait() argument
[all...]
/kernel/linux/linux-6.6/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()
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);
51 nf_ct_timeout_ext_add(struct nf_conn *ct, struct nf_ct_timeout *timeout, gfp_t gfp) nf_ct_timeout_ext_add() argument
[all...]
/kernel/linux/linux-5.10/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...]
/kernel/linux/linux-6.6/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...]

Completed in 11 milliseconds

12345678910>>...235