/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 | 69 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument 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() 134 unsigned int timeout) in da9063_wdt_set_timeout() argument 150 ret = da9063_wdt_update_timeout(da9063, timeout); in da9063_wdt_set_timeout() 156 wdd->timeout = wdt_timeout[da9063_wdt_timeout_to_sel(timeout)]; in da9063_wdt_set_timeout() 195 unsigned int timeout; in da9063_wdt_probe() local 219 wdd->timeout = DA9063_WDG_TIMEOUT; in da9063_wdt_probe() 222 timeout = da9063_wdt_read_timeout(da9063); in da9063_wdt_probe() 223 if (timeout) in da9063_wdt_probe() [all …]
|
D | ux500_wdt.c | 28 static unsigned int timeout = WATCHDOG_TIMEOUT; variable 29 module_param(timeout, uint, 0); 30 MODULE_PARM_DESC(timeout, 56 unsigned int timeout) in ux500_wdt_set_timeout() argument 59 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_set_timeout() 93 if (pdata->timeout > 0) in ux500_wdt_probe() 94 timeout = pdata->timeout; in ux500_wdt_probe() 106 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_probe() 125 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_suspend() 137 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_resume()
|
D | ts4800_wdt.c | 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() 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()
|
D | nic7018_wdt.c | 33 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 …]
|
/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-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 75 timeout = timeout_find_get(net, timeout_name); in nf_ct_set_timeout() [all …]
|
D | nfnetlink_cttimeout.c | 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() 113 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout() 114 matching->timeout.l4proto->l4proto != l4num) in cttimeout_new_timeout() 117 return ctnl_timeout_parse_policy(&matching->timeout.data, in cttimeout_new_timeout() 118 matching->timeout.l4proto, in cttimeout_new_timeout() [all …]
|
D | nf_conntrack_proto_generic.c | 24 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()
|
/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-5.10/include/linux/ |
D | freezer.h | 188 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 …]
|
D | wait.h | 378 #define __wait_event_timeout(wq_head, condition, timeout) \ argument 380 TASK_UNINTERRUPTIBLE, 0, timeout, \ 402 #define wait_event_timeout(wq_head, condition, timeout) \ argument 404 long __ret = timeout; \ 407 __ret = __wait_event_timeout(wq_head, condition, timeout); \ 411 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument 413 TASK_INTERRUPTIBLE, 0, timeout, \ 420 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument 422 long __ret = timeout; \ 425 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \ [all …]
|
D | swait.h | 193 #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 …]
|
/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-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/include/net/netfilter/ |
D | nf_conntrack_timeout.h | 25 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() argument 70 rcu_assign_pointer(timeout_ext->timeout, timeout); in nf_ct_timeout_ext_add() 94 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout); 124 extern void (*nf_ct_timeout_put_hook)(struct nf_ct_timeout *timeout);
|
/kernel/linux/linux-5.10/block/ |
D | blk-timeout.c | 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() 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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/ftrace/test.d/ftrace/ |
D | func_stack_tracer.tc | 12 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))
|
/kernel/linux/linux-5.10/tools/testing/selftests/timens/ |
D | futex.c | 23 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()
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | tty_ldsem.c | 156 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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | intel_gt_requests.c | 34 static bool flush_submission(struct intel_gt *gt, long timeout) in flush_submission() argument 40 if (!timeout) in flush_submission() 133 long intel_gt_retire_requests_timeout(struct intel_gt *gt, long timeout) in intel_gt_retire_requests_timeout() argument 142 if (unlikely(timeout < 0)) in intel_gt_retire_requests_timeout() 143 timeout = -timeout, interruptible = false; in intel_gt_retire_requests_timeout() 145 flush_submission(gt, timeout); /* kick the ksoftirqd tasklets */ in intel_gt_retire_requests_timeout() 158 if (timeout > 0) { in intel_gt_retire_requests_timeout() 165 timeout = dma_fence_wait_timeout(fence, in intel_gt_retire_requests_timeout() 167 timeout); in intel_gt_retire_requests_timeout() 200 if (flush_submission(gt, timeout)) /* Wait, there's more! */ in intel_gt_retire_requests_timeout() [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | hung_task.c | 96 static void check_hung_task(struct task_struct *t, unsigned long timeout) in check_hung_task() argument 120 if (time_is_after_jiffies(t->last_switch_time + timeout * HZ)) in check_hung_task() 184 static void check_hung_uninterruptible_tasks(unsigned long timeout) in check_hung_uninterruptible_tasks() argument 209 check_hung_task(t, timeout); in check_hung_uninterruptible_tasks() 227 unsigned long timeout) in hung_timeout_jiffies() argument 230 return timeout ? last_checked - jiffies + timeout * HZ : in hung_timeout_jiffies() 296 unsigned long timeout = HEARTBEAT_TIME; in watchdog() local 298 unsigned long timeout = sysctl_hung_task_timeout_secs; in watchdog() 304 interval = timeout; in watchdog() 305 timeout = min_t(unsigned long, interval, timeout); in watchdog() [all …]
|
/kernel/liteos_a/testsuites/unittest/extended/signal/full/ |
D | signal_test_026.cpp | 46 struct timespec timeout; in TestCase() local 48 timeout.tv_nsec = 0; in TestCase() 49 timeout.tv_sec = 1; in TestCase() 57 ret = sigtimedwait(&newset, &info, &timeout); in TestCase() 68 timeout.tv_nsec = 1; in TestCase() 69 timeout.tv_sec = -1; in TestCase() 70 ret = sigtimedwait(&newset, &info, &timeout); in TestCase() 81 timeout.tv_nsec = 1; in TestCase() 82 timeout.tv_sec = 3; // 3, set the sec of timeout. in TestCase() 83 … ret = sigtimedwait(&newset, reinterpret_cast<siginfo_t *>(2), &timeout); // 2, wait for signal num in TestCase()
|
/kernel/linux/linux-5.10/drivers/input/serio/ |
D | libps2.c | 26 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 …]
|
/kernel/liteos_m/components/net/test/ |
D | net_socket_test_004.c | 42 struct timeval timeout; in SockOptTest() local 56 len = sizeof(timeout); in SockOptTest() 57 ret = getsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, &len); in SockOptTest() 60 timeout.tv_sec = OPT_TIMEOUT; in SockOptTest() 61 len = sizeof(timeout); in SockOptTest() 62 ret = setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, len); in SockOptTest() 65 (void)memset_s(&timeout, len, 0, len); in SockOptTest() 66 ret = getsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, &len); in SockOptTest() 68 ICUNIT_ASSERT_EQUAL(timeout.tv_sec, OPT_TIMEOUT, 7); in SockOptTest()
|