Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 2621) sorted by relevance

12345678910>>...105

/Linux-v4.19/drivers/watchdog/
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()
108 unsigned int timeout) in npcm_wdt_set_timeout() argument
[all …]
Dux500_wdt.c29 static unsigned int timeout = WATCHDOG_TIMEOUT; variable
30 module_param(timeout, uint, 0);
31 MODULE_PARM_DESC(timeout,
57 unsigned int timeout) in ux500_wdt_set_timeout() argument
60 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()
132 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_suspend()
144 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_resume()
Dnic7018_wdt.c42 static unsigned int timeout; variable
43 module_param(timeout, uint, 0);
44 MODULE_PARM_DESC(timeout,
75 static const struct nic7018_config *nic7018_get_config(u32 timeout, in nic7018_get_config() argument
81 if (timeout < 30 && timeout != 16) { in nic7018_get_config()
83 count = timeout / 2 + 1; in nic7018_get_config()
86 count = DIV_ROUND_UP(timeout + 16, 32); in nic7018_get_config()
96 unsigned int timeout) in nic7018_set_timeout() argument
102 config = nic7018_get_config(timeout, &counter); in nic7018_set_timeout()
107 wdd->timeout = nic7018_timeout(config->period, counter); in nic7018_set_timeout()
[all …]
Dsun4v_wdt.c31 static unsigned int timeout; variable
32 module_param(timeout, uint, 0);
33 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default="
57 hverr = sun4v_mach_set_watchdog(wdd->timeout * 1000, NULL); in sun4v_wdt_ping()
65 unsigned int timeout) in sun4v_wdt_set_timeout() argument
67 wdd->timeout = timeout; in sun4v_wdt_set_timeout()
93 .timeout = WDT_TIMEOUT,
157 watchdog_init_timeout(&wdd, timeout, NULL); in sun4v_wdt_init()
166 wdd.timeout, nowayout); in sun4v_wdt_init()
Dts4800_wdt.c50 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()
148 wdd->min_timeout = ts4800_wdt_map[0].timeout; in ts4800_wdt_probe()
149 wdd->max_timeout = ts4800_wdt_map[MAX_TIMEOUT_INDEX].timeout; in ts4800_wdt_probe()
161 if (!wdd->timeout) in ts4800_wdt_probe()
162 wdd->timeout = wdd->max_timeout; in ts4800_wdt_probe()
163 ts4800_wdt_set_timeout(wdd, wdd->timeout); in ts4800_wdt_probe()
182 wdd->timeout, nowayout); in ts4800_wdt_probe()
Dit87_wdt.c95 static unsigned int timeout = DEFAULT_TIMEOUT; variable
99 module_param(timeout, int, 0);
100 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds, default="
217 return wdt_update_timeout(wdd->timeout); in wdt_start()
242 wdd->timeout = t; in wdt_set_timeout()
330 if (timeout < 1 || timeout > max_units * 60) { in it87_wdt_init()
331 timeout = DEFAULT_TIMEOUT; in it87_wdt_init()
336 if (timeout > max_units) in it87_wdt_init()
337 timeout = wdt_round_time(timeout); in it87_wdt_init()
339 wdt_dev.timeout = timeout; in it87_wdt_init()
[all …]
/Linux-v4.19/include/linux/netfilter/ipset/
Dip_set_timeout.h17 #define IPSET_GC_PERIOD(timeout) \ argument
18 ((timeout/3) ? min_t(u32, (timeout)/3, IPSET_GC_TIME) : 1)
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()
41 return timeout; in ip_set_timeout_uget()
51 ip_set_timeout_set(unsigned long *timeout, u32 value) in ip_set_timeout_set() argument
56 *timeout = IPSET_ELEM_PERMANENT; in ip_set_timeout_set()
64 *timeout = t; in ip_set_timeout_set()
[all …]
/Linux-v4.19/Documentation/watchdog/
Dwatchdog-parameters.txt22 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 …]
/Linux-v4.19/kernel/sched/
Dcompletion.c70 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 …]
/Linux-v4.19/tools/testing/selftests/firmware/
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=$(( $timeout - 1 ))
90 if [ "$timeout" -eq 0 ]; then
119 local timeout=10
[all …]
/Linux-v4.19/net/netfilter/
Dnfnetlink_cttimeout.c49 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()
116 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout()
117 matching->timeout.l4proto->l4proto != l4num) in cttimeout_new_timeout()
120 return ctnl_timeout_parse_policy(&matching->timeout.data, in cttimeout_new_timeout()
121 matching->timeout.l4proto, in cttimeout_new_timeout()
[all …]
Dnf_conntrack_proto_generic.c51 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()
92 *timeout = gn->timeout; in generic_timeout_nlattr_to_obj()
101 const unsigned int *timeout = data; in generic_timeout_obj_to_nlattr() local
[all …]
Dnf_conntrack_timeout.c31 void (*nf_ct_timeout_put_hook)(struct nf_ct_timeout *timeout) __read_mostly;
34 static int untimeout(struct nf_conn *ct, void *timeout) in untimeout() argument
38 if (timeout_ext && (!timeout || timeout_ext->timeout == timeout)) in untimeout()
39 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
47 nf_ct_iterate_cleanup_net(net, untimeout, timeout, 0, 0); in nf_ct_untimeout()
Dnft_dynset.c26 u64 timeout; member
36 u64 timeout; in nft_dynset_new() local
42 timeout = priv->timeout ? : set->timeout; in nft_dynset_new()
46 timeout, GFP_ATOMIC); in nft_dynset_new()
73 u64 timeout; in nft_dynset_eval() local
83 timeout = priv->timeout ? : set->timeout; in nft_dynset_eval()
84 *nft_set_ext_expiration(ext) = get_jiffies_64() + timeout; in nft_dynset_eval()
118 u64 timeout; in nft_dynset_init() local
161 timeout = 0; in nft_dynset_init()
165 timeout = msecs_to_jiffies(be64_to_cpu(nla_get_be64( in nft_dynset_init()
[all …]
/Linux-v4.19/include/linux/
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_killable(long timeout) in freezable_schedule_timeout_killable() argument
215 __retval = schedule_timeout_killable(timeout); in freezable_schedule_timeout_killable()
221 static inline long freezable_schedule_timeout_killable_unsafe(long timeout) in freezable_schedule_timeout_killable_unsafe() argument
225 __retval = schedule_timeout_killable(timeout); in freezable_schedule_timeout_killable_unsafe()
283 #define freezable_schedule_timeout(timeout) schedule_timeout(timeout) argument
285 #define freezable_schedule_timeout_interruptible(timeout) \ argument
[all …]
Dwait.h334 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
336 TASK_UNINTERRUPTIBLE, 0, timeout, \
358 #define wait_event_timeout(wq_head, condition, timeout) \ argument
360 long __ret = timeout; \
363 __ret = __wait_event_timeout(wq_head, condition, timeout); \
367 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
369 TASK_INTERRUPTIBLE, 0, timeout, \
376 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
378 long __ret = timeout; \
381 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
[all …]
Dswait.h206 #define __swait_event_timeout(wq, condition, timeout) \ argument
208 TASK_UNINTERRUPTIBLE, timeout, \
211 #define swait_event_timeout_exclusive(wq, condition, timeout) \ argument
213 long __ret = timeout; \
215 __ret = __swait_event_timeout(wq, condition, timeout); \
231 #define __swait_event_interruptible_timeout(wq, condition, timeout) \ argument
233 TASK_INTERRUPTIBLE, timeout, \
236 #define swait_event_interruptible_timeout_exclusive(wq, condition, timeout)\ argument
238 long __ret = timeout; \
241 condition, timeout); \
[all …]
/Linux-v4.19/include/net/netfilter/
Dnf_conntrack_timeout.h25 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);
/Linux-v4.19/drivers/tty/
Dtty_ldsem.c180 down_read_failed(struct ld_semaphore *sem, long count, long timeout) in down_read_failed() argument
222 if (!timeout) in down_read_failed()
224 timeout = schedule_timeout(timeout); in down_read_failed()
229 if (!timeout) { in down_read_failed()
253 down_write_failed(struct ld_semaphore *sem, long count, long timeout) in down_write_failed() argument
282 if (!timeout) in down_write_failed()
285 timeout = schedule_timeout(timeout); in down_write_failed()
309 int subclass, long timeout) in __ldsem_down_read_nested() argument
318 if (!down_read_failed(sem, count, timeout)) { in __ldsem_down_read_nested()
328 int subclass, long timeout) in __ldsem_down_write_nested() argument
[all …]
/Linux-v4.19/drivers/input/serio/
Dlibps2.c30 unsigned int timeout, unsigned int max_attempts) in ps2_do_sendbyte() argument
51 msecs_to_jiffies(timeout)); in ps2_do_sendbyte()
90 int ps2_sendbyte(struct ps2dev *ps2dev, u8 byte, unsigned int timeout) in ps2_sendbyte() argument
96 retval = ps2_do_sendbyte(ps2dev, byte, timeout, 1); in ps2_sendbyte()
126 void ps2_drain(struct ps2dev *ps2dev, size_t maxbytes, unsigned int timeout) in ps2_drain() argument
142 msecs_to_jiffies(timeout)); in ps2_drain()
175 unsigned int command, unsigned int timeout) in ps2_adjust_timeout() argument
186 if (timeout > msecs_to_jiffies(100)) in ps2_adjust_timeout()
187 timeout = msecs_to_jiffies(100); in ps2_adjust_timeout()
201 timeout = 0; in ps2_adjust_timeout()
[all …]
/Linux-v4.19/arch/mips/loongson64/lemote-2f/
Dec_kb3310b.c57 int timeout; in ec_query_seq() local
70 timeout = EC_CMD_TIMEOUT; in ec_query_seq()
72 while (timeout-- && (status & (1 << 1))) { in ec_query_seq()
79 if (timeout <= 0) { in ec_query_seq()
85 timeout, EC_CMD_TIMEOUT - timeout, cmd, status); in ec_query_seq()
108 int timeout = 100; in ec_get_event_num() local
115 while (timeout-- && !(status & (1 << 0))) { in ec_get_event_num()
119 if (timeout <= 0) { in ec_get_event_num()
/Linux-v4.19/block/
Dblk-timeout.c140 mod_timer(&q->timeout, round_jiffies_up(next)); in blk_timeout_work()
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()
210 if (!req->timeout) in blk_add_timer()
211 req->timeout = q->rq_timeout; in blk_add_timer()
214 blk_rq_set_deadline(req, jiffies + req->timeout); in blk_add_timer()
230 if (!timer_pending(&q->timeout) || in blk_add_timer()
231 time_before(expiry, q->timeout.expires)) { in blk_add_timer()
[all …]
/Linux-v4.19/kernel/
Dhung_task.c85 static void check_hung_task(struct task_struct *t, unsigned long timeout) in check_hung_task() argument
109 if (time_is_after_jiffies(t->last_switch_time + timeout * HZ)) in check_hung_task()
125 t->comm, t->pid, timeout); in check_hung_task()
172 static void check_hung_uninterruptible_tasks(unsigned long timeout) in check_hung_uninterruptible_tasks() argument
197 check_hung_task(t, timeout); in check_hung_uninterruptible_tasks()
210 unsigned long timeout) in hung_timeout_jiffies() argument
213 return timeout ? last_checked - jiffies + timeout * HZ : in hung_timeout_jiffies()
255 unsigned long timeout = sysctl_hung_task_timeout_secs; in watchdog() local
260 interval = timeout; in watchdog()
261 interval = min_t(unsigned long, interval, timeout); in watchdog()
[all …]
/Linux-v4.19/arch/mips/include/asm/octeon/
Dcvmx-spi.h57 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);
/Linux-v4.19/arch/arm/mach-sa1100/
Dssp.c56 int timeout = TIMEOUT; in ssp_write_word() local
59 if (!--timeout) in ssp_write_word()
66 timeout = TIMEOUT; in ssp_write_word()
68 if (!--timeout) in ssp_write_word()
93 int timeout = TIMEOUT; in ssp_read_word() local
96 if (!--timeout) in ssp_read_word()
120 int timeout = TIMEOUT * 2; in ssp_flush() local
124 if (!--timeout) in ssp_flush()
128 if (!--timeout) in ssp_flush()

12345678910>>...105