Home
last modified time | relevance | path

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

12345678910>>...23

/f-stack/app/micro_thread/
H A Dmt_api.cpp223 int time_left = timeout; in mt_tcpsendrcv()
243 time_left = (timeout > (int)cost_time) ? (timeout - (int)cost_time) : 0; in mt_tcpsendrcv()
253 time_left = (timeout > (int)cost_time) ? (timeout - (int)cost_time) : 0; in mt_tcpsendrcv()
306 time_left = (timeout > (int)cost_time) ? (timeout - (int)cost_time) : 0; in mt_tcpsendrcv_short()
316 time_left = (timeout > (int)cost_time) ? (timeout - (int)cost_time) : 0; in mt_tcpsendrcv_short()
366 time_left = (timeout > (int)cost_time) ? (timeout - (int)cost_time) : 0; in mt_tcpsend()
419 time_left = (timeout > (int)cost_time) ? (timeout - (int)cost_time) : 0; in mt_tcpsend_short()
898 time_left = (timeout > (int)cost_time) ? (timeout - (int)cost_time) : 0; in mt_tcpsendrcv()
908 time_left = (timeout > (int)cost_time) ? (timeout - (int)cost_time) : 0; in mt_tcpsendrcv()
962 time_left = (timeout > (int)cost_time) ? (timeout - (int)cost_time) : 0; in mt_tcpsendrcv_short()
[all …]
H A Dmt_api.h34 …udpsendrcv(struct sockaddr_in* dst, void* pkg, int len, void* rcv_buf, int& buf_size, int timeout);
39 int timeout, MtFuncTcpMsgLen chek_func);
52 int timeout, MtFuncTcpMsgLen func, MT_TCP_CONN_TYPE type = MT_TCP_LONG);
58 int timeout, MtFuncTcpMsgChecker check_func, void* msg_ctx=NULL,
121 int mt_connect(int fd, const struct sockaddr *addr, int addrlen, int timeout);
123 int mt_accept(int fd, struct sockaddr *addr, socklen_t *addrlen, int timeout);
125 ssize_t mt_read(int fd, void *buf, size_t nbyte, int timeout);
127 ssize_t mt_write(int fd, const void *buf, size_t nbyte, int timeout);
129 ssize_t mt_recv(int fd, void *buf, int len, int flags, int timeout);
131 ssize_t mt_send(int fd, const void *buf, size_t nbyte, int flags, int timeout);
[all …]
H A Dmt_concurrent.h39 int mt_msg_sendrcv(IMtActList& req_list, int timeout);
41 int mt_multi_netfd_poll(IMtActList& req_list, int how, int timeout);
45 int mt_multi_open(IMtActList& req_list, int timeout);
47 int mt_multi_sendto(IMtActList& req_list, int timeout);
49 int mt_multi_recvfrom(IMtActList& req_list, int timeout);
51 int mt_multi_sendrcv_ex(IMtActList& req_list, int timeout);
H A Dmt_concurrent.cpp78 if (!mtframe || !mtframe->KqueueSchedule(&fdlist, NULL, (int)timeout)) in mt_multi_netfd_poll()
150 int NS_MICRO_THREAD::mt_multi_open(IMtActList& req_list, int timeout) in mt_multi_open() argument
153 utime64_t end_ms = start_ms + timeout; in mt_multi_open()
226 int NS_MICRO_THREAD::mt_multi_sendto(IMtActList& req_list, int timeout) in mt_multi_sendto() argument
229 utime64_t end_ms = start_ms + timeout; in mt_multi_sendto()
312 utime64_t end_ms = start_ms + timeout; in mt_multi_recvfrom()
396 rc = mt_multi_open(req_list, timeout); in mt_multi_sendrcv_ex()
405 rc = mt_multi_sendto(req_list, timeout - (curr_ms - start_ms)); in mt_multi_sendrcv_ex()
414 rc = mt_multi_recvfrom(req_list, timeout - (curr_ms - start_ms)); in mt_multi_sendrcv_ex()
425 int NS_MICRO_THREAD::mt_msg_sendrcv(IMtActList& req_list, int timeout) in mt_msg_sendrcv() argument
[all …]
H A Dmicro_thread.cpp975 if (timeout <= -1) in recvfrom()
977 timeout = 0x7fffffff; in recvfrom()
983 if ((int)(now - start) > timeout) in recvfrom()
1040 if ((int)(now - start) > timeout) in sendto()
1086 if ((int)(now - start) > timeout) in connect()
1137 if ((int)(now - start) > timeout) in accept()
1183 if ((int)(now - start) > timeout) in read()
1282 if (timeout <= -1) in recv()
1284 timeout = 0x7fffffff; in recv()
1403 if (timeout <= -1) in WaitEvents()
[all …]
/f-stack/freebsd/arm/freescale/imx/
H A Dimx_wdog.c109 if (timeout < 1 || timeout > 128) in imx_wdog_enable()
113 if (timeout != sc->sc_timeout) { in imx_wdog_enable()
114 sc->sc_timeout = timeout; in imx_wdog_enable()
117 reg |= ((2 * timeout - 1) << WDOG_CR_WT_SHIFT); in imx_wdog_enable()
138 u_int timeout; in imx_watchdog() local
147 if (imx_wdog_enable(sc, timeout) == 0) in imx_watchdog()
191 pcell_t timeout; in imx_wdog_attach() local
228 &timeout, sizeof(timeout)) == sizeof(timeout)) { in imx_wdog_attach()
229 if (timeout < 1 || timeout > 128) { in imx_wdog_attach()
232 timeout = 128; in imx_wdog_attach()
[all …]
H A Dimx6_ahci.c76 int timeout; in imx6_ahci_phy_ctrl() local
87 for (timeout = 5000; timeout > 0; --timeout) { in imx6_ahci_phy_ctrl()
96 if (timeout > 0) { in imx6_ahci_phy_ctrl()
237 int error, timeout; in imx6_ahci_attach() local
291 for (timeout = 50; timeout > 0; --timeout) { in imx6_ahci_attach()
303 if (timeout <= 0) { in imx6_ahci_attach()
H A Dimx6_ccm.c324 int timeout; in imx6_ccm_sata_enable() local
334 for (timeout = 100000; timeout > 0; timeout--) { in imx6_ccm_sata_enable()
340 if (timeout <= 0) { in imx6_ccm_sata_enable()
400 int timeout; in imx_ccm_pll_video_enable() local
425 for (timeout = 100000; timeout > 0; timeout--) { in imx_ccm_pll_video_enable()
431 if (timeout <= 0) { in imx_ccm_pll_video_enable()
/f-stack/app/redis-5.0.5/deps/hiredis/
H A Dnet.c183 const struct timeval *timeout = c->timeout; in redisContextTimeoutMsec() local
188 if (timeout->tv_usec > 1000000 || timeout->tv_sec > __MAX_MSEC) { in redisContextTimeoutMsec()
193 msec = (timeout->tv_sec * 1000) + ((timeout->tv_usec + 999) / 1000); in redisContextTimeoutMsec()
294 if (timeout) { in _redisContextConnectTcp()
295 if (c->timeout != timeout) { in _redisContextConnectTcp()
299 memcpy(c->timeout, timeout, sizeof(struct timeval)); in _redisContextConnectTcp()
302 if (c->timeout) in _redisContextConnectTcp()
443 if (timeout) { in redisContextConnectUnix()
444 if (c->timeout != timeout) { in redisContextConnectUnix()
448 memcpy(c->timeout, timeout, sizeof(struct timeval)); in redisContextConnectUnix()
[all …]
/f-stack/app/redis-5.0.5/src/
H A Dsyncio.c49 ssize_t syncWrite(int fd, char *ptr, ssize_t size, long long timeout) { in syncWrite() argument
52 long long remaining = timeout; in syncWrite()
73 if (elapsed >= timeout) { in syncWrite()
77 remaining = timeout - elapsed; in syncWrite()
85 ssize_t syncRead(int fd, char *ptr, ssize_t size, long long timeout) { in syncRead() argument
88 long long remaining = timeout; in syncRead()
112 if (elapsed >= timeout) { in syncRead()
116 remaining = timeout - elapsed; in syncRead()
125 ssize_t syncReadLine(int fd, char *ptr, ssize_t size, long long timeout) { in syncReadLine() argument
132 if (syncRead(fd,&c,1,timeout) == -1) return -1; in syncReadLine()
/f-stack/app/redis-5.0.5/deps/jemalloc/test/src/
H A Dmq.c15 struct timespec timeout; in mq_nanosleep() local
18 timeout.tv_sec = 0; in mq_nanosleep()
19 timeout.tv_nsec = ns; in mq_nanosleep()
21 timeout.tv_sec = 1; in mq_nanosleep()
22 timeout.tv_nsec = 0; in mq_nanosleep()
24 nanosleep(&timeout, NULL); in mq_nanosleep()
/f-stack/freebsd/contrib/octeon-sdk/
H A Dcvmx-spi.h86 int (*clock_detect_cb)(int interface, cvmx_spi_mode_t mode, int timeout);
89 int (*training_cb)(int interface, cvmx_spi_mode_t mode, int timeout);
92 int (*calendar_sync_cb)(int interface, cvmx_spi_mode_t mode, int timeout);
126 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports…
141 extern int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout);
224 extern int cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode, int timeout);
238 extern int cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode, int timeout);
252 extern int cvmx_spi_calendar_sync_cb(int interface, cvmx_spi_mode_t mode, int timeout);
H A Dcvmx-spi.c150 INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mode, timeout); in cvmx_spi_start_interface()
153 INVOKE_CB(cvmx_spi_callbacks.training_cb, interface, mode, timeout); in cvmx_spi_start_interface()
156 INVOKE_CB(cvmx_spi_callbacks.calendar_sync_cb, interface, mode, timeout); in cvmx_spi_start_interface()
177 int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout) in cvmx_spi_restart_interface() argument
194 INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mode, timeout); in cvmx_spi_restart_interface()
197 INVOKE_CB(cvmx_spi_callbacks.training_cb, interface, mode, timeout); in cvmx_spi_restart_interface()
200 INVOKE_CB(cvmx_spi_callbacks.calendar_sync_cb, interface, mode, timeout); in cvmx_spi_restart_interface()
446 timeout_time = cvmx_get_cycle() + 1000ull * MS * timeout; in cvmx_spi_clock_detect_cb()
470 timeout_time = cvmx_get_cycle() + 1000ull * MS * timeout; in cvmx_spi_clock_detect_cb()
508 int cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode, int timeout) in cvmx_spi_training_cb() argument
[all …]
/f-stack/freebsd/sys/
H A Dtimepps.h111 struct timespec timeout; member
117 struct timespec timeout; member
218 pps_info_t *ppsinfobuf, const struct timespec *timeout) in time_pps_fetch() argument
224 if (timeout == NULL) { in time_pps_fetch()
225 arg.timeout.tv_sec = -1; in time_pps_fetch()
226 arg.timeout.tv_nsec = -1; in time_pps_fetch()
228 arg.timeout = *timeout; in time_pps_fetch()
242 if (timeout == NULL) { in time_pps_fetch_ffc()
243 arg.timeout.tv_sec = -1; in time_pps_fetch_ffc()
244 arg.timeout.tv_nsec = -1; in time_pps_fetch_ffc()
[all …]
/f-stack/freebsd/mips/ingenic/
H A Djz4780_rtc.c98 int timeout; in jz4780_rtc_wait() local
100 timeout = JZ_RTC_TIMEOUT; in jz4780_rtc_wait()
101 while (timeout-- > 0) { in jz4780_rtc_wait()
116 int ret, timeout; in jz4780_rtc_write() local
128 timeout = JZ_RTC_TIMEOUT; in jz4780_rtc_write()
129 while (timeout-- > 0) { in jz4780_rtc_write()
133 if (timeout < 0) in jz4780_rtc_write()
184 int timeout; in jz4780_rtc_gettime() local
188 timeout = JZ_RTC_TIMEOUT; in jz4780_rtc_gettime()
193 } while (val1 != val2 && timeout-- >= 0); in jz4780_rtc_gettime()
[all …]
/f-stack/dpdk/app/test/
H A Dautotest_test_funcs.py45 pexpect.TIMEOUT], timeout=10)
75 pexpect.TIMEOUT], timeout=5)
108 pexpect.TIMEOUT], timeout=10)
145 pexpect.TIMEOUT], timeout=5)
178 pexpect.TIMEOUT], timeout=5)
215 pexpect.TIMEOUT], timeout=10)
225 pexpect.TIMEOUT], timeout=10)
235 pexpect.TIMEOUT], timeout=5)
244 pexpect.TIMEOUT], timeout=5)
253 pexpect.TIMEOUT], timeout=5)
[all …]
/f-stack/freebsd/contrib/device-tree/Bindings/watchdog/
H A Dcadence-wdt.txt7 - interrupts : This is wd_irq - watchdog timeout interrupt.
10 - reset-on-timeout : If this property exists, then a reset is done
12 - timeout-sec : Watchdog timeout value (in seconds).
21 reset-on-timeout;
22 timeout-sec = <10>;
H A Dstericsson-coh901327.txt7 - interrupts: the interrupt used for the watchdog timeout warning.
10 - timeout-sec: contains the watchdog timeout in seconds.
18 timeout-sec = <60>;
H A Dqcom,pm8916-wdt.txt9 - interrupts : Watchdog pre-timeout (bark) interrupt.
10 - timeout-sec : Watchdog timeout value in seconds.
25 timeout-sec = <10>;
H A Dqcom-wdt.txt19 - timeout-sec : shall contain the default watchdog timeout in seconds,
20 if unset, the default timeout is 30 seconds
27 timeout-sec = <10>;
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_reopen/
H A Dzpool_reopen.shlib60 # Wait until specific event or timeout occur.
64 # timeout occurs.
65 # It returns 1 on timeout or 0 otherwise.
67 function wait_for_action #pool timeout function
70 typeset -i timeout=$2
73 while [ $timeout -gt 0 ]; do
74 (( --timeout ))
90 function wait_for_resilver_start #pool timeout
96 function wait_for_resilver_end #pool timeout
102 function wait_for_scrub_end #pool timeout
/f-stack/freebsd/arm/ti/clk/
H A Dti_clk_clkctrl.c101 uint32_t timeout = 100; in ti_clkctrl_set_gdbclk_gate() local
122 while (timeout) { in ti_clkctrl_set_gdbclk_gate()
130 timeout--; in ti_clkctrl_set_gdbclk_gate()
132 if (timeout == 0) { in ti_clkctrl_set_gdbclk_gate()
145 uint32_t timeout=100; in ti_clkctrl_set_gate() local
162 while (timeout) { in ti_clkctrl_set_gate()
175 timeout--; in ti_clkctrl_set_gate()
178 if (timeout == 0) { in ti_clkctrl_set_gate()
/f-stack/freebsd/arm/nvidia/
H A Dtegra_i2c.c241 int timeout; in tegra_i2c_flush_fifo() local
248 timeout = 10; in tegra_i2c_flush_fifo()
282 int timeout; in tegra_i2c_bus_clear() local
291 for (timeout = 1000; timeout > 0; timeout--) { in tegra_i2c_bus_clear()
296 if (timeout <= 0) in tegra_i2c_bus_clear()
302 for (timeout = 1000; timeout > 0; timeout--) { in tegra_i2c_bus_clear()
308 if (timeout <= 0) in tegra_i2c_bus_clear()
319 int rv, timeout; in tegra_i2c_hw_init() local
345 for (timeout = 1000; timeout > 0; timeout--) { in tegra_i2c_hw_init()
518 int timeout; in tegra_i2c_poll() local
[all …]
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_wait/
H A Dzpool_wait_no_activity.ksh42 log_must timeout $TIMEOUT_SECS zpool wait -t $activity $TESTPOOL
46 log_must timeout $TIMEOUT_SECS zpool wait -t scrub,initialize $TESTPOOL
47 log_must timeout $TIMEOUT_SECS zpool wait -t free,remove,discard $TESTPOOL
50 log_must timeout $TIMEOUT_SECS zpool wait $TESTPOOL
/f-stack/freebsd/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_util_os.c105 long timeout = 10; /* seconds */ in libzfs_load_module_impl() local
140 timeout = strtol(timeout_str, NULL, 0); in libzfs_load_module_impl()
141 timeout = MAX(MIN(timeout, (10 * 60)), 0); /* 0 <= N <= 600 */ in libzfs_load_module_impl()
157 } while (NSEC2MSEC(gethrtime() - start) < (timeout * MILLISEC)); in libzfs_load_module_impl()

12345678910>>...23