| /kernel/linux/linux-5.10/kernel/sched/ |
| D | completion.c | 72 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 …]
|
| /kernel/linux/linux-6.6/kernel/sched/ |
| D | completion.c | 82 long (*action)(long), long timeout, int state) in do_wait_for_common() argument 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() argument 116 timeout = do_wait_for_common(x, action, timeout, state); in __wait_for_common() 121 return timeout; in __wait_for_common() 125 wait_for_common(struct completion *x, long timeout, int state) in wait_for_common() argument [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| D | nf_conntrack_timeout.c | 29 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; in nf_ct_set_timeout() local 71 errmsg = "Timeout policy base is empty"; in nf_ct_set_timeout() [all …]
|
| D | nfnetlink_cttimeout.c | 35 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.l4proto->l4proto != l4num) in cttimeout_new_timeout() [all …]
|
| /kernel/linux/linux-6.6/net/netfilter/ |
| D | nf_conntrack_timeout.c | 28 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 77 errmsg = "Timeout policy base is empty"; in nf_ct_set_timeout() [all …]
|
| D | nfnetlink_cttimeout.c | 44 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.l3num != l3num || in cttimeout_new_timeout() [all …]
|
| /kernel/linux/linux-5.10/drivers/watchdog/ |
| D | npcm_wdt.c | 69 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 …]
|
| D | da9063_wdt.c | 23 * 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() [all …]
|
| D | sbsa_gwdt.c | 19 * In the single stage mode, when the timeout is reached, your system 21 * In the two stages mode, when the timeout is reached, the first signal (WS0) 31 * |----timeout-----(panic)----timeout-----reset 35 * |--------------timeout-------------------reset 38 * by WOR, in the single stage mode, the timeout is (WOR * 2); in the two 39 * stages mode, the timeout is WOR. The maximum timeout in the two stages mode 92 static unsigned int timeout; variable 93 module_param(timeout, uint, 0); 94 MODULE_PARM_DESC(timeout, 95 "Watchdog timeout in seconds. (>=0, default=" [all …]
|
| D | ts4800_wdt.c | 38 * TS-4800 supports the following timeout values: 47 * Keep the regmap/timeout map ordered by timeout 50 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() 162 * must be called to initialize timeout and feed_val with valid values. in ts4800_wdt_probe() 163 * Default to maximum timeout if none, or an invalid one, is provided in in ts4800_wdt_probe() [all …]
|
| /kernel/linux/linux-6.6/Documentation/watchdog/ |
| D | watchdog-parameters.rst | 21 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 …]
|
| /kernel/linux/linux-5.10/Documentation/watchdog/ |
| D | watchdog-parameters.rst | 21 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 …]
|
| /kernel/linux/linux-6.6/drivers/watchdog/ |
| D | npcm_wdt.c | 74 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() argument [all …]
|
| D | da9063_wdt.c | 25 * Watchdog selector to timeout in seconds. 27 * others: timeout = 2048 ms * 2^(TWDSCALE-1). 53 * Read the currently active timeout. 73 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument 79 * The watchdog triggers a reboot if a timeout value is already in da9063_wdt_update_timeout() 80 * programmed because the timeout value combines two functions in da9063_wdt_update_timeout() 82 * The watchdog must be disabled to be able to change the timeout in da9063_wdt_update_timeout() 84 * new timeout value which enables the watchdog again. in da9063_wdt_update_timeout() 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() [all …]
|
| D | ts4800_wdt.c | 36 * TS-4800 supports the following timeout values: 45 * Keep the regmap/timeout map ordered by timeout 48 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() 160 * must be called to initialize timeout and feed_val with valid values. in ts4800_wdt_probe() 161 * Default to maximum timeout if none, or an invalid one, is provided in in ts4800_wdt_probe() [all …]
|
| /kernel/linux/linux-6.6/io_uring/ |
| D | timeout.c | 14 #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, data)) { in io_timeout_complete() 81 list_add(&timeout->list, ctx->timeout_list.prev); in io_timeout_complete() 98 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_kill_timeout() local [all …]
|
| /kernel/linux/linux-5.10/block/ |
| D | blk-timeout.c | 3 * Functions related to generic timeout handling of requests. 75 * request by deleting the timer and calling the q's timeout function. 76 * LLDDs who implement their own error recovery MAY ignore the timeout 82 * All we need to ensure is that timeout scan takes place in blk_abort_request() 83 * immediately and that scan sees the new timeout value. in blk_abort_request() 109 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() 121 * blk_add_timer - Start timeout timer for a single request [all …]
|
| /kernel/linux/linux-6.6/block/ |
| D | blk-timeout.c | 3 * Functions related to generic timeout handling of requests. 75 * request by deleting the timer and calling the q's timeout function. 76 * LLDDs who implement their own error recovery MAY ignore the timeout 82 * All we need to ensure is that timeout scan takes place in blk_abort_request() 83 * immediately and that scan sees the new timeout value. in blk_abort_request() 109 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() 121 * blk_add_timer - Start timeout timer for a single request [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
| D | i915_gem_wait.c | 18 long timeout) in i915_gem_object_wait_fence() argument 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() argument 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 >= 0) in i915_gem_object_wait_reservation() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/vsock/ |
| D | timeout.c | 2 /* Timeout API for single-threaded programs that use blocking 12 * timeout_begin(TIMEOUT); 24 #include "timeout.h" 26 static volatile bool timeout; variable 34 timeout = true; in sigalrm() 37 /* Start a timeout. Call timeout_check() to verify that the timeout hasn't 38 * expired. timeout_end() must be called to stop the timeout. Timeouts cannot 46 /* Exit with an error message if the timeout has expired */ 49 if (timeout) { in timeout_check() 55 /* Stop a timeout */ [all …]
|
| /kernel/linux/linux-6.6/tools/testing/vsock/ |
| D | timeout.c | 2 /* Timeout API for single-threaded programs that use blocking 12 * timeout_begin(TIMEOUT); 24 #include "timeout.h" 26 static volatile bool timeout; variable 34 timeout = true; in sigalrm() 37 /* Start a timeout. Call timeout_check() to verify that the timeout hasn't 38 * expired. timeout_end() must be called to stop the timeout. Timeouts cannot 46 /* Exit with an error message if the timeout has expired */ 49 if (timeout) { in timeout_check() 55 /* Stop a timeout */ [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/firmware/ |
| D | fw_fallback.sh | 30 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/firmware/ |
| D | fw_fallback.sh | 30 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 …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | wait.h | 286 * on purpose; we use long where we can return timeout values and int 378 #define __wait_event_timeout(wq_head, condition, timeout) \ argument 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) \ argument 404 long __ret = timeout; \ [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | wait.h | 300 * on purpose; we use long where we can return timeout values and int 392 #define __wait_event_timeout(wq_head, condition, timeout) \ argument 394 TASK_UNINTERRUPTIBLE, 0, timeout, \ 398 * wait_event_timeout - sleep until a condition gets true or a timeout elapses 401 * @timeout: timeout, in jiffies 411 * 0 if the @condition evaluated to %false after the @timeout elapsed, 412 * 1 if the @condition evaluated to %true after the @timeout elapsed, 414 * to %true before the @timeout elapsed. 416 #define wait_event_timeout(wq_head, condition, timeout) \ argument 418 long __ret = timeout; \ [all …]
|