Home
last modified time | relevance | path

Searched refs:timeout (Results 101 - 125 of 7536) sorted by relevance

12345678910>>...302

/third_party/python/Lib/test/test_asyncio/
H A Dtest_timeouts.py18 async with asyncio.timeout(0.01) as cm:
53 async with asyncio.timeout(0.01):
64 async with asyncio.timeout(10) as cm:
76 async with asyncio.timeout(None) as cm:
101 async with asyncio.timeout(0) as cm:
113 async with asyncio.timeout(0) as cm:
125 async with asyncio.timeout(-11) as cm:
135 async with asyncio.timeout(0.01) as cm:
146 async with asyncio.timeout(0.01):
151 async with asyncio.timeout(1
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Djump_label_ratelimit.h11 unsigned long timeout; member
17 unsigned long timeout; member
23 unsigned long timeout; member
28 __static_key_slow_dec_deferred(&(x)->key, &(x)->work, (x)->timeout)
30 __static_key_slow_dec_deferred(&(x)->key.key, &(x)->work, (x)->timeout)
38 unsigned long timeout);
48 .timeout = (rl), \
57 .timeout = (rl), \
/kernel/linux/linux-6.6/include/linux/
H A Djump_label_ratelimit.h11 unsigned long timeout; member
17 unsigned long timeout; member
23 unsigned long timeout; member
28 __static_key_slow_dec_deferred(&(x)->key, &(x)->work, (x)->timeout)
30 __static_key_slow_dec_deferred(&(x)->key.key, &(x)->work, (x)->timeout)
38 unsigned long timeout);
48 .timeout = (rl), \
57 .timeout = (rl), \
/third_party/curl/tests/libtest/
H A Dlib1507.c88 struct timeval timeout; in test() local
102 /* set a suitable timeout to play around with */ in test()
103 timeout.tv_sec = 1; in test()
104 timeout.tv_usec = 0; in test()
108 curlx_mstotv(&timeout, curl_timeo); in test()
109 if(timeout.tv_sec > 1) { in test()
110 timeout.tv_sec = 1; in test()
111 timeout.tv_usec = 0; in test()
124 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
136 case 0: /* timeout */ in test()
[all...]
H A Dlib1531.c70 struct timeval timeout; in test() local
85 /* set a suitable timeout to play around with */ in test()
86 timeout.tv_sec = 1; in test()
87 timeout.tv_usec = 0; in test()
91 curlx_mstotv(&timeout, curl_timeo); in test()
92 if(timeout.tv_sec > 1) { in test()
93 timeout.tv_sec = 1; in test()
94 timeout.tv_usec = 0; in test()
123 /* Note that on some platforms 'timeout' may be modified by select(). in test()
125 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
[all...]
/third_party/musl/src/network/
H A Drecvmmsg.c13 int recvmmsg(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags, struct timespec *timeout) in recvmmsg() argument
22 time_t s = timeout ? timeout->tv_sec : 0; in recvmmsg()
23 long ns = timeout ? timeout->tv_nsec : 0; in recvmmsg()
25 timeout ? ((long long[]){s, ns}) : 0); in recvmmsg()
32 timeout ? ((long[]){CLAMP(s), ns}) : 0); in recvmmsg()
37 return syscall_cp(SYS_recvmmsg, fd, msgvec, vlen, flags, timeout); in recvmmsg()
/base/startup/init/services/param/linux/
H A Dparam_request.c94 static int ReadMessage(int fd, char *buffer, uint32_t timeout) in ReadMessage() argument
107 if (diff >= timeout) { in ReadMessage()
124 PARAM_LOGE("ReadMessage errno %d diff %u timeout %d ret %d", errno, diff, timeout, ret); in ReadMessage()
129 static int GetClientSocket(int timeout) in GetClientSocket() argument
132 time.tv_sec = timeout; in GetClientSocket()
147 static int StartRequest(int clientFd, ParamMessage *request, int timeout) in StartRequest() argument
157 if (timeout <= 0) { in StartRequest()
160 int ret = ReadMessage(clientFd, (char *)request, timeout); in StartRequest()
167 static int SystemSetParameter_(const char *name, const char *value, int timeout) in SystemSetParameter_() argument
250 SystemWaitParameter(const char *name, const char *value, int32_t timeout) SystemWaitParameter() argument
[all...]
/base/telephony/ril_adapter/services/hril/src/
H A Dhril_event.cpp50 "next = %{public}ds + %{public}dus", (int32_t)eventIt->timeout.tv_sec, (int32_t)eventIt->timeout.tv_usec); in GetNextTimeOut()
51 if (timercmp(&eventIt->timeout, &now, >)) { in GetNextTimeOut()
52 timersub(&eventIt->timeout, &now, &tv); in GetNextTimeOut()
68 while ((eventIt != timerList_.end()) && (timercmp(&now, &eventIt->timeout, >))) { in ProcessTimerList()
74 evMsg.timeout = eventIt->timeout; in ProcessTimerList()
91 eventMsg->timeout = eventIt->timeout; in HasEventMessageFromPendingList()
162 timeradd(&now, &tv, &eventMsg.timeout); in AddTimerEvent()
224 struct timeval timeout; EventMessageLoop() local
[all...]
/kernel/linux/linux-5.10/drivers/watchdog/
H A Darm_smc_wdt.c32 static unsigned int timeout; variable
69 static int smcwd_set_timeout(struct watchdog_device *wdd, unsigned int timeout) in smcwd_set_timeout() argument
73 res = smcwd_call(wdd, SMCWD_SET_TIMEOUT, timeout, NULL); in smcwd_set_timeout()
75 wdd->timeout = timeout; in smcwd_set_timeout()
138 wdd->timeout = res.a2; in smcwd_probe()
146 watchdog_init_timeout(wdd, timeout, &pdev->dev); in smcwd_probe()
147 err = smcwd_set_timeout(wdd, wdd->timeout); in smcwd_probe()
156 "Watchdog registered (timeout=%d sec, nowayout=%d)\n", in smcwd_probe()
157 wdd->timeout, nowayou in smcwd_probe()
[all...]
H A Dwafer5823wdt.c42 #define WD_TIMO 60 /* 60 sec default timeout */
51 * To enable, write the timeout value in seconds (1 to 255) to I/O
60 static int timeout = WD_TIMO; /* in seconds */ variable
61 module_param(timeout, int, 0);
62 MODULE_PARM_DESC(timeout,
63 "Watchdog timeout in seconds. 1 <= timeout <= 255, default="
84 outb_p(timeout, wdt_start); in wafwdt_start()
174 timeout = new_timeout; in wafwdt_ioctl()
179 return put_user(timeout, in wafwdt_ioctl()
[all...]
H A Dtxx9wdt.c26 static unsigned int timeout = TIMER_MARGIN; /* in seconds */ variable
27 module_param(timeout, uint, 0);
28 MODULE_PARM_DESC(timeout,
29 "Watchdog timeout in seconds. "
30 "(0<timeout<((2^" __MODULE_STRING(TXX9_TIMER_BITS) ")/(IMCLK/256)), "
54 __raw_writel(WD_TIMER_CLK * wdt_dev->timeout, &txx9wdt_reg->cpra); in txx9wdt_start()
77 wdt_dev->timeout = new_timeout; in txx9wdt_set_timeout()
124 if (timeout < 1 || timeout > WD_MAX_TIMEOUT) in txx9wdt_probe()
125 timeout in txx9wdt_probe()
[all...]
H A Dmeson_wdt.c35 static unsigned int timeout; variable
87 unsigned int timeout) in meson_wdt_change_timeout()
94 reg |= MESON_SEC_TO_TC(timeout, meson_wdt->data->count_unit); in meson_wdt_change_timeout()
99 unsigned int timeout) in meson_wdt_set_timeout()
101 wdt_dev->timeout = timeout; in meson_wdt_set_timeout()
103 meson_wdt_change_timeout(wdt_dev, timeout); in meson_wdt_set_timeout()
126 meson_wdt_change_timeout(wdt_dev, meson_wdt->wdt_dev.timeout); in meson_wdt_start()
189 meson_wdt->wdt_dev.timeout = min_t(unsigned int, in meson_wdt_probe()
195 watchdog_init_timeout(&meson_wdt->wdt_dev, timeout, de in meson_wdt_probe()
86 meson_wdt_change_timeout(struct watchdog_device *wdt_dev, unsigned int timeout) meson_wdt_change_timeout() argument
98 meson_wdt_set_timeout(struct watchdog_device *wdt_dev, unsigned int timeout) meson_wdt_set_timeout() argument
[all...]
/kernel/linux/linux-6.6/drivers/base/firmware_loader/
H A Dfallback.c19 * use small loading timeout for caching devices' firmware because all these
30 /* Restores the timeout to the value last configured during normal operation */
42 static inline int fw_sysfs_wait_timeout(struct fw_priv *fw_priv, long timeout) in fw_sysfs_wait_timeout() argument
44 return __fw_state_wait_common(fw_priv, timeout); in fw_sysfs_wait_timeout()
66 * @timeout: timeout to wait for the load
70 static int fw_load_sysfs_fallback(struct fw_sysfs *fw_sysfs, long timeout) in fw_load_sysfs_fallback() argument
103 timeout = MAX_JIFFY_OFFSET; in fw_load_sysfs_fallback()
106 retval = fw_sysfs_wait_timeout(fw_priv, timeout); in fw_load_sysfs_fallback()
131 long timeout; in fw_load_from_user_helper() local
[all...]
/kernel/linux/linux-6.6/drivers/watchdog/
H A Darm_smc_wdt.c32 static unsigned int timeout; variable
69 static int smcwd_set_timeout(struct watchdog_device *wdd, unsigned int timeout) in smcwd_set_timeout() argument
73 res = smcwd_call(wdd, SMCWD_SET_TIMEOUT, timeout, NULL); in smcwd_set_timeout()
75 wdd->timeout = timeout; in smcwd_set_timeout()
138 wdd->timeout = res.a2; in smcwd_probe()
146 watchdog_init_timeout(wdd, timeout, &pdev->dev); in smcwd_probe()
147 err = smcwd_set_timeout(wdd, wdd->timeout); in smcwd_probe()
156 "Watchdog registered (timeout=%d sec, nowayout=%d)\n", in smcwd_probe()
157 wdd->timeout, nowayou in smcwd_probe()
[all...]
H A Dmsc313e_wdt.c24 static unsigned int timeout; variable
26 module_param(timeout, int, 0);
27 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds");
38 u32 timeout; in msc313e_wdt_start() local
45 timeout = wdev->timeout * clk_get_rate(priv->clk); in msc313e_wdt_start()
46 writew(timeout & 0xffff, priv->base + REG_WDT_MAX_PRD_L); in msc313e_wdt_start()
47 writew((timeout >> 16) & 0xffff, priv->base + REG_WDT_MAX_PRD_H); in msc313e_wdt_start()
73 wdev->timeout in msc313e_wdt_settimeout()
[all...]
H A Dtxx9wdt.c26 static unsigned int timeout = TIMER_MARGIN; /* in seconds */ variable
27 module_param(timeout, uint, 0);
28 MODULE_PARM_DESC(timeout,
29 "Watchdog timeout in seconds. "
30 "(0<timeout<((2^" __MODULE_STRING(TXX9_TIMER_BITS) ")/(IMCLK/256)), "
54 __raw_writel(WD_TIMER_CLK * wdt_dev->timeout, &txx9wdt_reg->cpra); in txx9wdt_start()
77 wdt_dev->timeout = new_timeout; in txx9wdt_set_timeout()
124 if (timeout < 1 || timeout > WD_MAX_TIMEOUT) in txx9wdt_probe()
125 timeout in txx9wdt_probe()
[all...]
H A Dwafer5823wdt.c42 #define WD_TIMO 60 /* 60 sec default timeout */
51 * To enable, write the timeout value in seconds (1 to 255) to I/O
60 static int timeout = WD_TIMO; /* in seconds */ variable
61 module_param(timeout, int, 0);
62 MODULE_PARM_DESC(timeout,
63 "Watchdog timeout in seconds. 1 <= timeout <= 255, default="
84 outb_p(timeout, wdt_start); in wafwdt_start()
174 timeout = new_timeout; in wafwdt_ioctl()
179 return put_user(timeout, in wafwdt_ioctl()
[all...]
H A Dmeson_wdt.c35 static unsigned int timeout; variable
87 unsigned int timeout) in meson_wdt_change_timeout()
94 reg |= MESON_SEC_TO_TC(timeout, meson_wdt->data->count_unit); in meson_wdt_change_timeout()
99 unsigned int timeout) in meson_wdt_set_timeout()
101 wdt_dev->timeout = timeout; in meson_wdt_set_timeout()
103 meson_wdt_change_timeout(wdt_dev, timeout); in meson_wdt_set_timeout()
126 meson_wdt_change_timeout(wdt_dev, meson_wdt->wdt_dev.timeout); in meson_wdt_start()
183 meson_wdt->wdt_dev.timeout = min_t(unsigned int, in meson_wdt_probe()
189 watchdog_init_timeout(&meson_wdt->wdt_dev, timeout, de in meson_wdt_probe()
86 meson_wdt_change_timeout(struct watchdog_device *wdt_dev, unsigned int timeout) meson_wdt_change_timeout() argument
98 meson_wdt_set_timeout(struct watchdog_device *wdt_dev, unsigned int timeout) meson_wdt_set_timeout() argument
[all...]
/kernel/linux/linux-6.6/kernel/locking/
H A Dsemaphore.c40 static noinline int __down_timeout(struct semaphore *sem, long timeout);
152 * @timeout: how long to wait before failing
159 int __sched down_timeout(struct semaphore *sem, long timeout) in down_timeout() argument
169 result = __down_timeout(sem, timeout); in down_timeout()
207 * 'timeout' parameter for the cases without timeouts.
210 long timeout) in ___down_common()
221 if (unlikely(timeout <= 0)) in ___down_common()
225 timeout = schedule_timeout(timeout); in ___down_common()
241 long timeout) in __down_common()
209 ___down_common(struct semaphore *sem, long state, long timeout) ___down_common() argument
240 __down_common(struct semaphore *sem, long state, long timeout) __down_common() argument
267 __down_timeout(struct semaphore *sem, long timeout) __down_timeout() argument
[all...]
/third_party/skia/third_party/externals/microhttpd/src/examples/
H A Dmhd2spdy.c69 struct timeval timeout; in run_everything() local
126 timeout.tv_sec = 0; in run_everything()
127 timeout.tv_usec = 0; in run_everything()
142 timeout.tv_sec = 5; in run_everything()
145 timeout.tv_sec = timeoutlong / 1000; in run_everything()
146 timeout.tv_usec = (timeoutlong % 1000) * 1000; in run_everything()
167 PRINT_INFO2("MHD timeout %lld %lld", (unsigned long long)timeout.tv_sec, (unsigned long long)timeout.tv_usec); in run_everything()
171 ret = select(maxfd+1, &rs, &ws, &es, &timeout); in run_everything()
[all...]
/kernel/linux/linux-5.10/arch/mips/kernel/
H A Dearly_printk_8250.c17 unsigned int timeout) in setup_8250_early_printk_port()
21 serial8250_tx_timeout = timeout; in setup_8250_early_printk_port()
36 unsigned int timeout; in prom_putchar() local
42 timeout = serial8250_tx_timeout; in prom_putchar()
48 if (--timeout == 0) in prom_putchar()
52 if (timeout) in prom_putchar()
16 setup_8250_early_printk_port(unsigned long base, unsigned int reg_shift, unsigned int timeout) setup_8250_early_printk_port() argument
/kernel/linux/linux-6.6/arch/mips/kernel/
H A Dearly_printk_8250.c17 unsigned int timeout) in setup_8250_early_printk_port()
21 serial8250_tx_timeout = timeout; in setup_8250_early_printk_port()
36 unsigned int timeout; in prom_putchar() local
42 timeout = serial8250_tx_timeout; in prom_putchar()
48 if (--timeout == 0) in prom_putchar()
52 if (timeout) in prom_putchar()
16 setup_8250_early_printk_port(unsigned long base, unsigned int reg_shift, unsigned int timeout) setup_8250_early_printk_port() argument
/third_party/skia/third_party/externals/swiftshader/tests/regres/shell/
H A Dshell.go32 // If the process does not finish within timeout a errTimeout will be returned.
33 func Shell(timeout time.Duration, exe, wd string, args ...string) error {
34 return Env(timeout, exe, wd, nil, args...)
39 // If the process does not finish within timeout a errTimeout will be returned.
40 func Env(timeout time.Duration, exe, wd string, env []string, args ...string) error {
41 if out, err := Exec(timeout, exe, wd, env, args...); err != nil {
51 timeout time.Duration
55 return fmt.Sprintf("'%v' did not return after %v", e.process, e.timeout)
/kernel/linux/linux-6.6/kernel/
H A Dhung_task.c47 * Zero means infinite timeout - no checking done:
99 static void check_hung_task(struct task_struct *t, unsigned long timeout) in check_hung_task() argument
123 if (time_is_after_jiffies(t->last_switch_time + timeout * HZ)) in check_hung_task()
189 static void check_hung_uninterruptible_tasks(unsigned long timeout) in check_hung_uninterruptible_tasks() argument
222 check_hung_task(t, timeout); in check_hung_uninterruptible_tasks()
240 unsigned long timeout) in hung_timeout_jiffies()
242 /* timeout of 0 will disable the watchdog */ in hung_timeout_jiffies()
243 return timeout ? last_checked - jiffies + timeout * HZ : in hung_timeout_jiffies()
249 * Process updating of timeout sysct
239 hung_timeout_jiffies(unsigned long last_checked, unsigned long timeout) hung_timeout_jiffies() argument
381 unsigned long timeout = HEARTBEAT_TIME; watchdog() local
[all...]
/kernel/linux/linux-6.6/drivers/net/mdio/
H A Dmdio-cavium.c33 int timeout = 1000; in cavium_mdiobus_c45_addr() local
53 } while (smi_wr.s.pending && --timeout); in cavium_mdiobus_c45_addr()
55 if (timeout <= 0) in cavium_mdiobus_c45_addr()
65 int timeout = 1000; in cavium_mdiobus_read_c22() local
81 } while (smi_rd.s.pending && --timeout); in cavium_mdiobus_read_c22()
96 int timeout = 1000; in cavium_mdiobus_read_c45() local
115 } while (smi_rd.s.pending && --timeout); in cavium_mdiobus_read_c45()
130 int timeout = 1000; in cavium_mdiobus_write_c22() local
150 } while (smi_wr.s.pending && --timeout); in cavium_mdiobus_write_c22()
152 if (timeout < in cavium_mdiobus_write_c22()
165 int timeout = 1000; cavium_mdiobus_write_c45() local
[all...]

Completed in 9 milliseconds

12345678910>>...302