| /kernel/linux/linux-4.19/include/linux/netfilter/ipset/ |
| D | ip_set_timeout.h | 16 /* Timeout period depending on the timeout value of the given set */ 17 #define IPSET_GC_PERIOD(timeout) \ argument 18 ((timeout/3) ? min_t(u32, (timeout)/3, IPSET_GC_TIME) : 1) 20 /* Entry is set with no timeout value */ 23 /* Set is defined with timeout support: timeout value may be 0 */ 26 /* Max timeout value, see msecs_to_jiffies() in jiffies.h */ 30 ((opt)->ext.timeout != IPSET_NO_TIMEOUT ? (opt)->ext.timeout : (set)->timeout) 35 unsigned int timeout = ip_set_get_h32(tb); in ip_set_timeout_uget() local 38 if (timeout > IPSET_MAX_TIMEOUT) in ip_set_timeout_uget() 39 timeout = IPSET_MAX_TIMEOUT; in ip_set_timeout_uget() [all …]
|
| /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-4.19/kernel/sched/ |
| D | completion.c | 70 long (*action)(long), long timeout, int state) in do_wait_for_common() argument 78 timeout = -ERESTARTSYS; in do_wait_for_common() 83 timeout = action(timeout); in do_wait_for_common() 85 } while (!x->done && timeout); in do_wait_for_common() 88 return timeout; in do_wait_for_common() 92 return timeout ?: 1; in do_wait_for_common() 97 long (*action)(long), long timeout, int state) in __wait_for_common() argument 104 timeout = do_wait_for_common(x, action, timeout, state); in __wait_for_common() 109 return timeout; in __wait_for_common() 113 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-4.19/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() 108 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). 68 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument 74 * The watchdog triggers a reboot if a timeout value is already in da9063_wdt_update_timeout() 75 * programmed because the timeout value combines two functions in da9063_wdt_update_timeout() 77 * The watchdog must be disabled to be able to change the timeout in da9063_wdt_update_timeout() 79 * new timeout value which enables the watchdog again. in da9063_wdt_update_timeout() 86 regval = da9063_wdt_timeout_to_sel(timeout); in da9063_wdt_update_timeout() 97 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start() 133 unsigned int timeout) in da9063_wdt_set_timeout() argument [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 | 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() 150 wdd->min_timeout = ts4800_wdt_map[0].timeout; in ts4800_wdt_probe() 151 wdd->max_timeout = ts4800_wdt_map[MAX_TIMEOUT_INDEX].timeout; in ts4800_wdt_probe() 159 * must be called to initialize timeout and feed_val with valid values. in ts4800_wdt_probe() 160 * Default to maximum timeout if none, or an invalid one, is provided in in ts4800_wdt_probe() [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-4.19/Documentation/watchdog/ |
| D | watchdog-parameters.txt | 22 timeout: Watchdog timeout in seconds. 1<= timeout <=63, default=60. 27 timeout: Watchdog timeout in seconds. (0 < timeout < 18000, default=60 32 timeout: Watchdog timeout in seconds. (1<=timeout<=3600, default=30 67 wd0_timeout: Default watchdog0 timeout in 1/10secs 68 wd1_timeout: Default watchdog1 timeout in 1/10secs 69 wd2_timeout: Default watchdog2 timeout in 1/10secs 72 timeout: Watchdog timeout in seconds. 2<= timeout <=131, default=2.048s 80 timeout: Watchdog timeout in seconds. (1<=timeout<=15300, default=60) 85 timeout: Watchdog timeout in seconds. (1<=timeout<=3600, default=TBD) 99 timeout: Watchdog timeout in seconds. 1<= timeout <=131, default=60. [all …]
|
| D | watchdog-api.txt | 26 system (causing a reboot) after the timeout occurs. 38 timeout or margin. The simplest way to ping the watchdog is to write 53 after the timeout has passed. Watchdog devices also usually support 85 Setting and getting the timeout: 87 For some drivers it is possible to modify the watchdog timeout on the 90 representing the timeout in seconds. The driver returns the real 91 timeout used in the same variable, and this timeout might differ from 94 int timeout = 45; 95 ioctl(fd, WDIOC_SETTIMEOUT, &timeout); 96 printf("The timeout was set to %d seconds\n", timeout); [all …]
|
| /kernel/linux/linux-4.19/net/netfilter/ |
| D | nfnetlink_cttimeout.c | 38 MODULE_DESCRIPTION("cttimeout: Extended Netfilter Connection Tracking timeout tuning"); 49 ctnl_timeout_parse_policy(void *timeout, in ctnl_timeout_parse_policy() argument 70 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy() 86 struct ctnl_timeout *timeout, *matching = NULL; in cttimeout_new_timeout() local 100 list_for_each_entry(timeout, &net->nfct_timeout_list, head) { in cttimeout_new_timeout() 101 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_new_timeout() 107 matching = timeout; in cttimeout_new_timeout() 113 /* You cannot replace one timeout policy by another of in cttimeout_new_timeout() 116 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout() 117 matching->timeout.l4proto->l4proto != l4num) in cttimeout_new_timeout() [all …]
|
| D | nf_conntrack_proto_generic.c | 51 const unsigned int *timeout = nf_ct_timeout_lookup(ct); in generic_packet() local 53 if (!timeout) in generic_packet() 54 timeout = &generic_pernet(nf_ct_net(ct))->timeout; in generic_packet() 56 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in generic_packet() 82 unsigned int *timeout = data; in generic_timeout_nlattr_to_obj() local 84 if (!timeout) in generic_timeout_nlattr_to_obj() 85 timeout = &gn->timeout; in generic_timeout_nlattr_to_obj() 88 *timeout = in generic_timeout_nlattr_to_obj() 91 /* Set default generic timeout. */ in generic_timeout_nlattr_to_obj() 92 *timeout = gn->timeout; in generic_timeout_nlattr_to_obj() [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-4.19/include/linux/ |
| D | wait.h | 242 * on purpose; we use long where we can return timeout values and int 334 #define __wait_event_timeout(wq_head, condition, timeout) \ argument 336 TASK_UNINTERRUPTIBLE, 0, timeout, \ 340 * wait_event_timeout - sleep until a condition gets true or a timeout elapses 343 * @timeout: timeout, in jiffies 353 * 0 if the @condition evaluated to %false after the @timeout elapsed, 354 * 1 if the @condition evaluated to %true after the @timeout elapsed, 356 * to %true before the @timeout elapsed. 358 #define wait_event_timeout(wq_head, condition, timeout) \ argument 360 long __ret = timeout; \ [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-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-4.19/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-4.19/tools/testing/vsock/ |
| D | timeout.c | 1 /* Timeout API for single-threaded programs that use blocking 16 * timeout_begin(TIMEOUT); 28 #include "timeout.h" 30 static volatile bool timeout; variable 38 timeout = true; in sigalrm() 41 /* Start a timeout. Call timeout_check() to verify that the timeout hasn't 42 * expired. timeout_end() must be called to stop the timeout. Timeouts cannot 50 /* Exit with an error message if the timeout has expired */ 53 if (timeout) { in timeout_check() 59 /* Stop a timeout */ [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-4.19/block/ |
| D | blk-timeout.c | 2 * Functions related to generic timeout handling of requests. 140 mod_timer(&q->timeout, round_jiffies_up(next)); in blk_timeout_work() 150 * request by deleting the timer and calling the q's timeout function. 151 * LLDDs who implement their own error recovery MAY ignore the timeout 158 * All we need to ensure is that timeout scan takes place in blk_abort_request() 159 * immediately and that scan sees the new timeout value. in blk_abort_request() 173 unsigned long blk_rq_timeout(unsigned long timeout) in blk_rq_timeout() argument 178 if (time_after(timeout, maxt)) in blk_rq_timeout() 179 timeout = maxt; in blk_rq_timeout() 181 return timeout; in blk_rq_timeout() [all …]
|
| /kernel/linux/linux-4.19/include/net/netfilter/ |
| D | nf_conntrack_timeout.h | 25 struct nf_ct_timeout timeout; member 29 struct nf_ct_timeout __rcu *timeout; member 35 struct nf_ct_timeout *timeout; in nf_ct_timeout_data() local 37 timeout = rcu_dereference(t->timeout); in nf_ct_timeout_data() 38 if (timeout == NULL) in nf_ct_timeout_data() 41 return (unsigned int *)timeout->data; in nf_ct_timeout_data() 56 struct nf_ct_timeout *timeout, in nf_ct_timeout_ext_add() argument 66 rcu_assign_pointer(timeout_ext->timeout, timeout); in nf_ct_timeout_ext_add() 90 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout); 105 extern void (*nf_ct_timeout_put_hook)(struct nf_ct_timeout *timeout);
|