/third_party/skia/third_party/externals/microhttpd/src/examples/ |
H A D | spdy_fileserver.c | 272 struct timeval timeout; in main() local 316 timeout.tv_sec = 1; in main() 317 timeout.tv_usec = 0; in main() 321 timeout.tv_sec = timeoutlong / 1000; in main() 322 timeout.tv_usec = (timeoutlong % 1000) * 1000; in main() 330 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in main()
|
/third_party/skia/third_party/externals/microhttpd/src/testspdy/ |
H A D | test_request_response_with_callback.c | 168 struct timeval timeout; in parentproc() local 204 timeout.tv_sec = 1; in parentproc() 205 timeout.tv_usec = 0; in parentproc() 209 timeout.tv_sec = timeoutlong / 1000; in parentproc() 210 timeout.tv_usec = (timeoutlong % 1000) * 1000; in parentproc() 218 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in parentproc()
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/ |
H A D | event.h | 59 // wait_for() blocks until the event is signaled, or the timeout has been 61 // If the timeout was reached, then wait_for() return false. 69 // wait_until() blocks until the event is signaled, or the timeout has been 71 // If the timeout was reached, then wait_for() return false. 77 const std::chrono::time_point<Clock, Duration>& timeout) const; 119 const std::chrono::time_point<Clock, Duration>& timeout); 173 const std::chrono::time_point<Clock, Duration>& timeout) { in wait_until() 175 if (!cv.wait_until(lock, timeout, [&] { return signalled; })) { in wait_until() 209 const std::chrono::time_point<Clock, Duration>& timeout) const { in wait_until() 210 return shared->wait_until(timeout); in wait_until() 172 wait_until( const std::chrono::time_point<Clock, Duration>& timeout) wait_until() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | eapol_test.py | 55 def request(self, cmd, timeout=10): 56 return self.ctrl.request(cmd, timeout=timeout) 58 def wait_event(self, events, timeout=10): 68 remaining = start + timeout - now 71 if not self.mon.pending(timeout=remaining):
|
/kernel/linux/linux-5.10/drivers/net/arcnet/ |
H A D | com20020-isa.c | 126 static int timeout = 3; variable 135 module_param(timeout, int, 0); 162 lp->timeout = timeout & 3; in com20020_init() 202 timeout = ints[6]; in com20020isa_setup()
|
/kernel/linux/linux-5.10/drivers/ide/ |
H A D | ide-park.c | 10 static void issue_park_cmd(ide_drive_t *drive, unsigned long timeout) in issue_park_cmd() argument 17 timeout += jiffies; in issue_park_cmd() 20 int reset_timer = time_before(timeout, drive->sleep); in issue_park_cmd() 23 drive->sleep = timeout; in issue_park_cmd() 39 ide_req(rq)->special = &timeout; in issue_park_cmd() 48 * timeout has expired, so power management will be reenabled. in issue_park_cmd()
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | menz69_wdt.c | 72 unsigned int timeout) in men_z069_wdt_set_timeout() 77 wdt->timeout = timeout; in men_z069_wdt_set_timeout() 78 val = timeout * MEN_Z069_TIMER_FREQ; in men_z069_wdt_set_timeout() 122 drv->wdt.timeout = MEN_Z069_DEFAULT_TIMEOUT; in men_z069_probe() 71 men_z069_wdt_set_timeout(struct watchdog_device *wdt, unsigned int timeout) men_z069_wdt_set_timeout() argument
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
H A D | mtk_scp_ipi.c | 159 unsigned long timeout; in scp_ipi_send() local 176 timeout = jiffies + msecs_to_jiffies(2000); in scp_ipi_send() 178 if (time_after(jiffies, timeout)) { in scp_ipi_send() 179 dev_err(scp->dev, "%s: IPI timeout!\n", __func__); in scp_ipi_send() 197 timeout = msecs_to_jiffies(wait); in scp_ipi_send() 200 timeout); in scp_ipi_send()
|
/kernel/linux/linux-6.6/drivers/net/arcnet/ |
H A D | com20020-isa.c | 126 static int timeout = 3; variable 135 module_param(timeout, int, 0); 162 lp->timeout = timeout & 3; in com20020_init() 202 timeout = ints[6]; in com20020isa_setup()
|
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | ixp4xx_wdt.c | 57 __raw_writel(wdd->timeout * iwdt->rate, in ixp4xx_wdt_start() 78 unsigned int timeout) in ixp4xx_wdt_set_timeout() 80 wdd->timeout = timeout; in ixp4xx_wdt_set_timeout() 171 iwdt->wdd.timeout = 60U; in ixp4xx_wdt_probe() 77 ixp4xx_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) ixp4xx_wdt_set_timeout() argument
|
H A D | loongson1_wdt.c | 43 unsigned int timeout) in ls1x_wdt_set_timeout() 49 wdt_dev->timeout = timeout; in ls1x_wdt_set_timeout() 51 counts = drvdata->clk_rate * min(timeout, max_hw_heartbeat); in ls1x_wdt_set_timeout() 129 ls1x_wdt->timeout = DEFAULT_HEARTBEAT; in ls1x_wdt_probe() 42 ls1x_wdt_set_timeout(struct watchdog_device *wdt_dev, unsigned int timeout) ls1x_wdt_set_timeout() argument
|
H A D | menz69_wdt.c | 72 unsigned int timeout) in men_z069_wdt_set_timeout() 77 wdt->timeout = timeout; in men_z069_wdt_set_timeout() 78 val = timeout * MEN_Z069_TIMER_FREQ; in men_z069_wdt_set_timeout() 122 drv->wdt.timeout = MEN_Z069_DEFAULT_TIMEOUT; in men_z069_probe() 71 men_z069_wdt_set_timeout(struct watchdog_device *wdt, unsigned int timeout) men_z069_wdt_set_timeout() argument
|
H A D | pic32-dmt.c | 77 u32 timeout = 500; in dmt_keepalive() local 83 while (--timeout) { in dmt_keepalive() 187 wdd->timeout = pic32_dmt_get_timeout_secs(dmt); in pic32_dmt_probe() 188 if (!wdd->timeout) { in pic32_dmt_probe() 189 dev_err(dev, "failed to read watchdog register timeout\n"); in pic32_dmt_probe() 193 dev_info(dev, "timeout %d\n", wdd->timeout); in pic32_dmt_probe()
|
H A D | xilinx_wwdt.c | 18 /* Max timeout is calculated at 100MHz source clock */ 73 /* Calculate timeout count */ in xilinx_wwdt_start() 74 time_out = xdev->freq * wdd->timeout; in xilinx_wwdt_start() 77 wdd->min_hw_heartbeat_ms = xdev->close_percent * 10 * wdd->timeout; in xilinx_wwdt_start() 161 xilinx_wwdt_wdd->timeout = XWWDT_DEFAULT_TIMEOUT; in xwwdt_probe() 162 xilinx_wwdt_wdd->max_hw_heartbeat_ms = 1000 * xilinx_wwdt_wdd->timeout; in xwwdt_probe() 178 dev_info(dev, "Xilinx window watchdog Timer with timeout %ds\n", in xwwdt_probe() 179 xilinx_wwdt_wdd->timeout); in xwwdt_probe()
|
H A D | watchdog_dev.c | 80 unsigned int t = wdd->timeout * 1000; in watchdog_need_worker() 86 * - The driver provided a value for the maximum hardware timeout, and in watchdog_need_worker() 89 * - Userspace requests a longer timeout than the hardware can handle. in watchdog_need_worker() 102 unsigned int timeout_ms = wdd->timeout * 1000; in watchdog_next_keepalive() 118 * To ensure that the watchdog times out wdd->timeout seconds in watchdog_next_keepalive() 120 * worker ping has to come in hw_heartbeat_ms before this timeout. in watchdog_next_keepalive() 360 * watchdog_set_timeout - set the watchdog timer timeout 361 * @wdd: The watchdog device to set the timeout for 362 * @timeout: Timeout to set in seconds 369 unsigned int timeout) in watchdog_set_timeout() 368 watchdog_set_timeout(struct watchdog_device *wdd, unsigned int timeout) watchdog_set_timeout() argument 401 watchdog_set_pretimeout(struct watchdog_device *wdd, unsigned int timeout) watchdog_set_pretimeout() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-io.h | 27 u32 bits, u32 mask, int timeout); 29 int timeout); 48 u32 bits, u32 mask, int timeout); 95 u32 bits, u32 mask, int timeout) in iwl_poll_umac_prph_bit() 99 bits, mask, timeout); in iwl_poll_umac_prph_bit() 94 iwl_poll_umac_prph_bit(struct iwl_trans *trans, u32 addr, u32 bits, u32 mask, int timeout) iwl_poll_umac_prph_bit() argument
|
/kernel/liteos_a/kernel/extended/hook/include/ |
H A D | los_hook_types.h | 62 UINT32 timeout)) \ 69 UINT32 bufferSize, UINT32 timeout)) \ 71 UINT32 bufferSize, UINT32 timeout)) \ 77 UINT32 timeout)) \ 82 LOS_HOOK_TYPE_DEF(LOS_HOOK_TYPE_MUX_PEND, (const LosMux *muxPended, UINT32 timeout)) \
|
/third_party/ffmpeg/libavformat/ |
H A D | network.h | 90 * This works similarly to ff_network_wait_fd, but waits up to 'timeout' microseconds 95 * @param timeout Timeout interval, in microseconds. Actual precision is 100000 mcs, due to ff_network_wait_fd usage 97 * @return 0 if data can be read/written, AVERROR(ETIMEDOUT) if timeout expired, or negative error code 99 int ff_network_wait_fd_timeout(int fd, int write, int64_t timeout, AVIOInterruptCB *int_cb); 102 * Waits for up to 'timeout' microseconds. If the usert's int_cb is set and 104 * @param timeout Timeout in microseconds. Maybe have lower actual precision. 106 * @return AVERROR(ETIMEDOUT) if timeout expirted, AVERROR_EXIT if interrupted by int_cb 108 int ff_network_sleep_interruptible(int64_t timeout, AVIOInterruptCB *int_cb); 257 * @param timeout Polling timeout i [all...] |
/third_party/ltp/testcases/kernel/syscalls/ipc/semop/ |
H A D | semop02.c | 13 * EAGAIN - semop = 0 and timeout happens 14 * EAGAIN - semop = -1 and timeout happens 15 * EFAULT - invalid timeout pointer 35 static struct tst_ts timeout; variable 36 static struct tst_ts *valid_to = &timeout, *invalid_to; 81 timeout.type = tv->ts_type; in setup() 82 tst_ts_set_sec(&timeout, 0); in setup() 83 tst_ts_set_nsec(&timeout, 10000); in setup()
|
/third_party/python/Lib/test/support/ |
H A D | socket_helper.py | 193 def transient_internet(resource_name, *, timeout=_NOT_SET, errnos=()): 198 if timeout is _NOT_SET: 199 timeout = support.INTERNET_TIMEOUT 246 if timeout is not None: 247 socket.setdefaulttimeout(timeout)
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
H A D | SyncMtl.h | 50 uint64_t timeout, 80 uint64_t timeout, 121 GLuint64 timeout, 125 GLuint64 timeout) override; 146 EGLTime timeout,
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | SyncVk.h | 45 uint64_t timeout, 68 uint64_t timeout, 93 GLuint64 timeout, 97 GLuint64 timeout) override; 119 EGLTime timeout,
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
H A D | mmc_spi.c | 157 static int mmc_spi_skip(struct mmc_spi_host *host, unsigned long timeout, in mmc_spi_skip() argument 176 if (time_is_before_jiffies(start + timeout)) in mmc_spi_skip() 190 mmc_spi_wait_unbusy(struct mmc_spi_host *host, unsigned long timeout) in mmc_spi_wait_unbusy() argument 192 return mmc_spi_skip(host, timeout, sizeof(host->data->status), 0); in mmc_spi_wait_unbusy() 195 static int mmc_spi_readtoken(struct mmc_spi_host *host, unsigned long timeout) in mmc_spi_readtoken() argument 197 return mmc_spi_skip(host, timeout, 1, 0xff); in mmc_spi_readtoken() 605 unsigned long timeout) in mmc_spi_writeblock() 678 return mmc_spi_wait_unbusy(host, timeout); in mmc_spi_writeblock() 699 unsigned long timeout) in mmc_spi_readblock() 715 status = mmc_spi_readtoken(host, timeout); in mmc_spi_readblock() 604 mmc_spi_writeblock(struct mmc_spi_host *host, struct spi_transfer *t, unsigned long timeout) mmc_spi_writeblock() argument 698 mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, unsigned long timeout) mmc_spi_readblock() argument 792 unsigned long timeout; mmc_spi_data_do() local [all...] |
/kernel/linux/linux-6.6/drivers/mmc/host/ |
H A D | mmc_spi.c | 157 static int mmc_spi_skip(struct mmc_spi_host *host, unsigned long timeout, in mmc_spi_skip() argument 178 } while (time_is_after_jiffies(start + timeout)); in mmc_spi_skip() 183 mmc_spi_wait_unbusy(struct mmc_spi_host *host, unsigned long timeout) in mmc_spi_wait_unbusy() argument 185 return mmc_spi_skip(host, timeout, sizeof(host->data->status), 0); in mmc_spi_wait_unbusy() 188 static int mmc_spi_readtoken(struct mmc_spi_host *host, unsigned long timeout) in mmc_spi_readtoken() argument 190 return mmc_spi_skip(host, timeout, 1, 0xff); in mmc_spi_readtoken() 598 unsigned long timeout) in mmc_spi_writeblock() 671 return mmc_spi_wait_unbusy(host, timeout); in mmc_spi_writeblock() 692 unsigned long timeout) in mmc_spi_readblock() 708 status = mmc_spi_readtoken(host, timeout); in mmc_spi_readblock() 597 mmc_spi_writeblock(struct mmc_spi_host *host, struct spi_transfer *t, unsigned long timeout) mmc_spi_writeblock() argument 691 mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, unsigned long timeout) mmc_spi_readblock() argument 786 unsigned long timeout; mmc_spi_data_do() local [all...] |
/kernel/linux/linux-6.6/tools/include/nolibc/ |
H A D | sys.h | 828 * int poll(struct pollfd *fds, int nfds, int timeout); 832 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument 837 if (timeout >= 0) { in sys_poll() 838 t.tv_sec = timeout / 1000; in sys_poll() 839 t.tv_nsec = (timeout % 1000) * 1000000; in sys_poll() 841 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0); in sys_poll() 843 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll() 850 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument 852 return __sysret(sys_poll(fds, nfds, timeout)); in poll() 910 * fd_set *except_fds, struct timeval *timeout); 914 sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) sys_select() argument 942 select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) select() argument [all...] |