/Linux-v6.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 | 73 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument 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() 145 unsigned int timeout) in da9063_wdt_set_timeout() argument 161 ret = da9063_wdt_update_timeout(da9063, timeout); in da9063_wdt_set_timeout() 167 wdd->timeout = wdt_timeout[da9063_wdt_timeout_to_sel(timeout)]; in da9063_wdt_set_timeout() 220 unsigned int timeout; in da9063_wdt_probe() local 247 wdd->timeout = DA9063_WDG_TIMEOUT; in da9063_wdt_probe() 250 timeout = da9063_wdt_read_timeout(da9063); in da9063_wdt_probe() 251 if (timeout) in da9063_wdt_probe() [all …]
|
D | visconti_wdt.c | 43 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() 149 wdev->timeout = min(wdev->max_timeout, WDT_DEFAULT_TIMEOUT); in visconti_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 …]
|
D | ts4800_wdt.c | 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() 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()
|
D | it87_wdt.c | 89 static unsigned int timeout = DEFAULT_TIMEOUT; variable 93 module_param(timeout, int, 0); 94 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds, default=" 203 return wdt_update_timeout(wdd->timeout); in wdt_start() 228 wdd->timeout = t; in wdt_set_timeout() 319 if (timeout < 1 || timeout > max_units * 60) { in it87_wdt_init() 320 timeout = DEFAULT_TIMEOUT; in it87_wdt_init() 325 if (timeout > max_units) in it87_wdt_init() 326 timeout = wdt_round_time(timeout); in it87_wdt_init() 328 wdt_dev.timeout = timeout; in it87_wdt_init() [all …]
|
D | sun4v_wdt.c | 27 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()
|
/Linux-v6.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 …]
|
/Linux-v6.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 81 timeout = h->timeout_find_get(net, timeout_name); in nf_ct_set_timeout() [all …]
|
D | nfnetlink_cttimeout.c | 44 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 …]
|
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()
|
/Linux-v6.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 …]
|
/Linux-v6.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 …]
|
/Linux-v6.6/io_uring/ |
D | timeout.c | 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 104 list_del_init(&timeout->list); in io_kill_timeout() 114 struct io_timeout *timeout, *tmp; in io_flush_timeouts() local [all …]
|
/Linux-v6.6/include/linux/ |
D | wait.h | 391 #define __wait_event_timeout(wq_head, condition, timeout) \ argument 393 TASK_UNINTERRUPTIBLE, 0, timeout, \ 415 #define wait_event_timeout(wq_head, condition, timeout) \ argument 417 long __ret = timeout; \ 420 __ret = __wait_event_timeout(wq_head, condition, timeout); \ 424 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument 426 (TASK_INTERRUPTIBLE|TASK_FREEZABLE), 0, timeout, \ 433 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument 435 long __ret = timeout; \ 438 __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 …]
|
/Linux-v6.6/include/net/netfilter/ |
D | nf_conntrack_timeout.h | 21 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-v6.6/drivers/gpu/drm/i915/gem/ |
D | i915_gem_wait.c | 20 long timeout) in i915_gem_object_wait_fence() argument 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() argument 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() 172 long timeout) in i915_gem_object_wait() argument [all …]
|
/Linux-v6.6/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 …]
|
/Linux-v6.6/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 …]
|
/Linux-v6.6/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()
|
/Linux-v6.6/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))
|
/Linux-v6.6/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | common_baco.c | 30 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-v6.6/arch/mips/loongson2ef/lemote-2f/ |
D | ec_kb3310b.c | 53 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()
|
/Linux-v6.6/arch/mips/include/asm/octeon/ |
D | cvmx-spi.h | 57 int timeout); 60 int (*training_cb) (int interface, cvmx_spi_mode_t mode, int timeout); 64 int timeout); 98 int timeout, int num_ports); 114 int timeout); 218 int timeout); 235 int timeout); 252 int timeout);
|