/kernel/linux/linux-6.6/fs/autofs/ |
H A D | dev-ioctl.c | 399 /* Set the autofs mount timeout */ 404 unsigned long timeout; in autofs_dev_ioctl_timeout() local 406 timeout = param->timeout.timeout; in autofs_dev_ioctl_timeout() 407 param->timeout.timeout = sbi->exp_timeout / HZ; in autofs_dev_ioctl_timeout() 408 sbi->exp_timeout = timeout * HZ; in autofs_dev_ioctl_timeout()
|
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | cpwd.c | 79 unsigned long timeout; member 90 u16 timeout; member 166 MODULE_PARM_DESC(wd0_timeout, "Default watchdog0 timeout in 1/10secs"); 168 MODULE_PARM_DESC(wd1_timeout, "Default watchdog1 timeout in 1/10secs"); 170 MODULE_PARM_DESC(wd2_timeout, "Default watchdog2 timeout in 1/10secs"); 298 cpwd_writew(p->devs[index].timeout, p->devs[index].regs + WD_LIMIT); in cpwd_starttimer() 552 str_prop = of_get_property(options, "watchdog-timeout", NULL); in cpwd_probe() 554 p->timeout = simple_strtoul(str_prop, NULL, 10); in cpwd_probe() 583 p->devs[i].timeout = p->timeout; in cpwd_probe() [all...] |
/kernel/linux/linux-6.6/drivers/xen/xenbus/ |
H A D | xenbus_probe_frontend.c | 131 unsigned long timeout = 5*HZ; in xenbus_frontend_dev_shutdown() local 142 timeout = wait_for_completion_timeout(&dev->down, timeout); in xenbus_frontend_dev_shutdown() 143 if (!timeout) in xenbus_frontend_dev_shutdown() 144 pr_info("%s: %s timeout closing device\n", in xenbus_frontend_dev_shutdown() 288 * On a 5-minute timeout, wait for all devices currently configured. We need 361 long timeout; in xenbus_reset_wait_for_backend() local 362 timeout = wait_event_interruptible_timeout(backend_state_wq, in xenbus_reset_wait_for_backend() 364 if (timeout <= 0) in xenbus_reset_wait_for_backend()
|
/kernel/linux/linux-6.6/drivers/pps/ |
H A D | pps.c | 58 /* Manage the timeout */ in pps_cdev_pps_fetch() 59 if (fdata->timeout.flags & PPS_TIME_INVALID) in pps_cdev_pps_fetch() 65 dev_dbg(pps->dev, "timeout %lld.%09d\n", in pps_cdev_pps_fetch() 66 (long long) fdata->timeout.sec, in pps_cdev_pps_fetch() 67 fdata->timeout.nsec); in pps_cdev_pps_fetch() 68 ticks = fdata->timeout.sec * HZ; in pps_cdev_pps_fetch() 69 ticks += fdata->timeout.nsec / (NSEC_PER_SEC / HZ); in pps_cdev_pps_fetch() 268 memcpy(&fdata.timeout, &compat.timeout, in pps_cdev_compat_ioctl()
|
/kernel/linux/linux-6.6/drivers/usb/musb/ |
H A D | da8xx.c | 193 static void da8xx_musb_try_idle(struct musb *musb, unsigned long timeout) in da8xx_musb_try_idle() argument 197 if (timeout == 0) in da8xx_musb_try_idle() 198 timeout = jiffies + msecs_to_jiffies(3); in da8xx_musb_try_idle() 200 /* Never idle if active, or when VBUS timeout is not set as host */ in da8xx_musb_try_idle() 210 if (time_after(last_timer, timeout) && timer_pending(&musb->dev_timer)) { in da8xx_musb_try_idle() 214 last_timer = timeout; in da8xx_musb_try_idle() 218 jiffies_to_msecs(timeout - jiffies)); in da8xx_musb_try_idle() 219 mod_timer(&musb->dev_timer, timeout); in da8xx_musb_try_idle()
|
/kernel/linux/linux-6.6/drivers/fpga/ |
H A D | socfpga.c | 212 int timeout = 2; in socfpga_fpga_dclk_set_and_wait_clear() local 222 /* Poll DCLKSTAT to see if it completed in the timeout period. */ in socfpga_fpga_dclk_set_and_wait_clear() 230 } while (timeout--); in socfpga_fpga_dclk_set_and_wait_clear() 238 int timeout = 2; in socfpga_fpga_wait_for_state() local 242 * if it matches the requested state within the timeout period. in socfpga_fpga_wait_for_state() 248 } while (timeout--); in socfpga_fpga_wait_for_state() 304 int timeout, ret = 0; in socfpga_fpga_wait_for_config_done() local 310 timeout = wait_for_completion_interruptible_timeout( in socfpga_fpga_wait_for_config_done() 313 if (timeout == 0) in socfpga_fpga_wait_for_config_done()
|
/kernel/linux/linux-6.6/kernel/futex/ |
H A D | waitwake.c | 323 * futex_wait_queue() - futex_queue() and wait for wakeup, timeout, or signal 326 * @timeout: the prepared hrtimer_sleeper, or null for no timeout 329 struct hrtimer_sleeper *timeout) in futex_wait_queue() 341 if (timeout) in futex_wait_queue() 342 hrtimer_sleeper_start_expires(timeout, HRTIMER_MODE_ABS); in futex_wait_queue() 352 * is no timeout, or if it has yet to expire. in futex_wait_queue() 354 if (!timeout || timeout->task) in futex_wait_queue() 493 * Sleep if and only if the timeout has 328 futex_wait_queue(struct futex_hash_bucket *hb, struct futex_q *q, struct hrtimer_sleeper *timeout) futex_wait_queue() argument 634 struct hrtimer_sleeper timeout, *to; futex_wait() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/st/cw1200/ |
H A D | scan.c | 40 queue_delayed_work(priv->workqueue, &priv->scan.timeout, in cw1200_scan_start() 45 cancel_delayed_work_sync(&priv->scan.timeout); in cw1200_scan_start() 306 if (cancel_delayed_work_sync(&priv->scan.timeout) > 0) { in cw1200_scan_failed_cb() 308 queue_delayed_work(priv->workqueue, &priv->scan.timeout, 0); in cw1200_scan_failed_cb() 320 if (cancel_delayed_work_sync(&priv->scan.timeout) > 0) { in cw1200_scan_complete_cb() 322 queue_delayed_work(priv->workqueue, &priv->scan.timeout, 0); in cw1200_scan_complete_cb() 337 container_of(work, struct cw1200_common, scan.timeout.work); in cw1200_scan_timeout()
|
/kernel/linux/linux-6.6/drivers/parport/ |
H A D | ieee1284.c | 51 * @timeout: time to wait (in jiffies) 53 * This function waits for up to @timeout jiffies for an 54 * interrupt to occur on a parallel port. If the port timeout is 57 * If an interrupt occurs before the timeout period elapses, this 64 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event() argument 68 if (!port->physport->cad->timeout) in parport_wait_event() 69 /* Zero timeout is special, and we can't down() the in parport_wait_event() 74 mod_timer(&port->timer, jiffies + timeout); in parport_wait_event() 88 * @usec: timeout 91 * the desired values, or until the timeout perio [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | sch56xx-common.c | 246 unsigned int timeout) in watchdog_set_timeout() 254 if (timeout <= 255) in watchdog_set_timeout() 259 if (timeout < resolution || timeout > (resolution * 255)) in watchdog_set_timeout() 280 * Remember new timeout value, but do not write as that (re)starts in watchdog_set_timeout() 283 data->watchdog_preset = DIV_ROUND_UP(timeout, resolution); in watchdog_set_timeout() 284 wddev->timeout = data->watchdog_preset * resolution; in watchdog_set_timeout() 420 data->wddev.timeout = 60; in sch56xx_watchdog_register() 428 the BIOS set timeout from (if any was set at all) -> in sch56xx_watchdog_register() 429 Choose a preset which will give us a 1 minute timeout */ in sch56xx_watchdog_register() 245 watchdog_set_timeout(struct watchdog_device *wddev, unsigned int timeout) watchdog_set_timeout() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/amd/yc/ |
H A D | acp6x-pdm-dma.c | 104 int timeout; in acp6x_start_pdm_dma() local 112 timeout = 0; in acp6x_start_pdm_dma() 113 while (++timeout < ACP_COUNTER) { in acp6x_start_pdm_dma() 125 int timeout; in acp6x_stop_pdm_dma() local 135 timeout = 0; in acp6x_stop_pdm_dma() 136 while (++timeout < ACP_COUNTER) { in acp6x_stop_pdm_dma() 142 if (timeout == ACP_COUNTER) in acp6x_stop_pdm_dma()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | network_helpers.c | 56 struct timeval timeout = { .tv_sec = 3 }; in settimeo() local 59 timeout.tv_sec = timeout_ms / 1000; in settimeo() 60 timeout.tv_usec = (timeout_ms % 1000) * 1000; in settimeo() 63 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, in settimeo() 64 sizeof(timeout))) { in settimeo() 69 if (setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &timeout, in settimeo() 70 sizeof(timeout))) { in settimeo()
|
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/fp/ |
H A D | fp-stress.c | 432 { "timeout", required_argument, NULL, 't' }, 439 int timeout = 10; in main() local 451 ret = sscanf(optarg, "%d", &timeout); in main() 453 ksft_exit_fail_msg("Failed to parse timeout %s\n", in main() 499 if (timeout > 0) in main() 500 ksft_print_msg("Will run for %ds\n", timeout); in main() 620 ksft_print_msg("Sending signals, timeout remaining: %d\n", in main() 621 timeout); in main() 626 /* Negative timeout means run indefinitely */ in main() 627 if (timeout < in main() [all...] |
/kernel/linux/linux-6.6/sound/isa/wavefront/ |
H A D | wavefront_midi.c | 119 int timeout; in snd_wavefront_midi_output_write() local 140 for (timeout = 30000; timeout > 0; timeout--) { in snd_wavefront_midi_output_write() 183 for (timeout = 30000; timeout > 0; timeout--) { in snd_wavefront_midi_output_write()
|
/kernel/linux/linux-6.6/sound/soc/amd/renoir/ |
H A D | acp3x-pdm-dma.c | 129 int timeout; in start_pdm_dma() local 137 timeout = 0; in start_pdm_dma() 138 while (++timeout < ACP_COUNTER) { in start_pdm_dma() 150 int timeout; in stop_pdm_dma() local 157 timeout = 0; in stop_pdm_dma() 158 while (++timeout < ACP_COUNTER) { in stop_pdm_dma() 165 if (timeout == ACP_COUNTER) in stop_pdm_dma()
|
/kernel/linux/linux-6.6/sound/pci/emu10k1/ |
H A D | emumpu401.c | 47 int timeout = 100000; in mpu401_clear_rx() local 48 for (; timeout > 0 && mpu401_input_avail(emu, mpu); timeout--) in mpu401_clear_rx() 51 if (timeout <= 0) in mpu401_clear_rx() 53 "cmd: clear rx timeout (status = 0x%x)\n", in mpu401_clear_rx() 107 int timeout, ok; in snd_emu10k1_midi_cmd() local 116 timeout = 10000; in snd_emu10k1_midi_cmd() 117 while (!ok && timeout-- > 0) { in snd_emu10k1_midi_cmd()
|
/kernel/linux/linux-6.6/sound/soc/amd/ps/ |
H A D | ps-pdm-dma.c | 108 int timeout; in acp63_start_pdm_dma() local 116 timeout = 0; in acp63_start_pdm_dma() 117 while (++timeout < ACP_COUNTER) { in acp63_start_pdm_dma() 129 int timeout; in acp63_stop_pdm_dma() local 139 timeout = 0; in acp63_stop_pdm_dma() 140 while (++timeout < ACP_COUNTER) { in acp63_stop_pdm_dma() 146 if (timeout == ACP_COUNTER) in acp63_stop_pdm_dma()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_conntrack_bpf.c | 104 u32 timeout) in __bpf_nf_ct_alloc_entry() 139 __nf_ct_set_timeout(ct, timeout * HZ); in __bpf_nf_ct_alloc_entry() 385 nfct->timeout += nfct_time_stamp; in bpf_ct_insert_entry() 410 /* bpf_ct_set_timeout - Set timeout of allocated nf_conn 412 * Sets the default timeout of newly allocated nf_conn before insertion. 418 * @timeout - Timeout in msecs. 420 __bpf_kfunc void bpf_ct_set_timeout(struct nf_conn___init *nfct, u32 timeout) in bpf_ct_set_timeout() argument 422 __nf_ct_set_timeout((struct nf_conn *)nfct, msecs_to_jiffies(timeout)); in bpf_ct_set_timeout() 425 /* bpf_ct_change_timeout - Change timeout of inserted nf_conn 427 * Change timeout associate 102 __bpf_nf_ct_alloc_entry(struct net *net, struct bpf_sock_tuple *bpf_tuple, u32 tuple_len, struct bpf_ct_opts *opts, u32 opts_len, u32 timeout) __bpf_nf_ct_alloc_entry() argument 435 bpf_ct_change_timeout(struct nf_conn *nfct, u32 timeout) bpf_ct_change_timeout() argument [all...] |
/test/testfwk/arkxtest/uitest/connection/ |
H A D | ipc_transactor.cpp | 217 } while (tries < PUBLISH_MAX_RETIES && condition.wait_for(lock, period) == cv_status::timeout); in PublishCallerAndWaitForBackcaller() 247 const auto timeout = chrono::milliseconds(WAIT_CONN_TIMEOUT_MS); in WaitForPublishedCaller() local 248 auto ret = condition.wait_for(lock, timeout); in WaitForPublishedCaller() 251 if (ret == cv_status::timeout) { in WaitForPublishedCaller() 252 LOG_E("Wait for ApiCaller publish by server timeout"); in WaitForPublishedCaller() 397 const auto timeout = chrono::milliseconds(WAIT_DUMP_TIMEOUT_MS); in SendBroadcastCommand() local 398 if (condition.wait_for(lock, timeout) == cv_status::timeout) { in SendBroadcastCommand() 399 err = ApiCallErr(INTERNAL_ERROR, "Wait for subscribe uitest.broadcast.command.reply timeout"); in SendBroadcastCommand()
|
/third_party/backends/backend/pixma/ |
H A D | pixma_io_sanei.c | 517 pixma_wait_interrupt (pixma_io_t * io, void *buf, unsigned size, int timeout) in pixma_wait_interrupt() argument 522 /* FIXME: What is the meaning of "timeout" in sanei_usb? */ in pixma_wait_interrupt() 523 if (timeout < 0) in pixma_wait_interrupt() 524 timeout = INT_MAX; in pixma_wait_interrupt() 525 else if (timeout < 100) in pixma_wait_interrupt() 526 timeout = 100; in pixma_wait_interrupt() 529 sanei_bjnp_set_timeout (io->dev, timeout); in pixma_wait_interrupt() 535 sanei_usb_set_timeout (timeout); in pixma_wait_interrupt() 540 (io->interface == INT_BJNP && error == PIXMA_EOF)) /* EOF is a bjnp timeout error! */ in pixma_wait_interrupt()
|
/third_party/cmsis/CMSIS/RTOS2/Include/ |
H A D | cmsis_os2.h | 193 #define osWaitForever 0xFFFFFFFFU ///< Wait forever timeout value. 247 osErrorTimeout = -2, ///< Operation not completed within the timeout period. 576 /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. 578 uint32_t osThreadFlagsWait (uint32_t flags, uint32_t options, uint32_t timeout); 664 /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. 666 uint32_t osEventFlagsWait (osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout); 686 /// Acquire a Mutex or timeout if it is locked. 688 /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. 690 osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout); 722 /// Acquire a Semaphore token or timeout i [all...] |
/third_party/libuv/src/unix/ |
H A D | thread.c | 820 int uv_cond_timedwait(uv_cond_t* cond, uv_mutex_t* mutex, uint64_t timeout) { in uv_cond_timedwait() argument 828 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait() 829 ts.tv_nsec = timeout % NANOSEC; in uv_cond_timedwait() 835 timeout += tv.tv_sec * NANOSEC + tv.tv_usec * 1e3; in uv_cond_timedwait() 837 timeout += uv__hrtime(UV_CLOCK_PRECISE); in uv_cond_timedwait() 839 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait() 840 ts.tv_nsec = timeout % NANOSEC; in uv_cond_timedwait()
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_fence.c | 370 rel2abs(uint64_t timeout) in rel2abs() argument 372 if (timeout == 0) in rel2abs() 378 timeout = MIN2(max_timeout, timeout); in rel2abs() 380 return current_time + timeout; in rel2abs() 387 uint64_t timeout) in iris_fence_finish() 434 .timeout_nsec = rel2abs(timeout), in iris_fence_finish() 384 iris_fence_finish(struct pipe_screen *p_screen, struct pipe_context *ctx, struct pipe_fence_handle *fence, uint64_t timeout) iris_fence_finish() argument
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_fence.c | 305 rel2abs(uint64_t timeout) in rel2abs() argument 307 if (timeout == 0) in rel2abs() 313 timeout = MIN2(max_timeout, timeout); in rel2abs() 315 return current_time + timeout; in rel2abs() 320 struct pipe_fence_handle *fence, uint64_t timeout) in crocus_fence_finish() 366 .timeout_nsec = rel2abs(timeout), in crocus_fence_finish() 319 crocus_fence_finish(struct pipe_screen *p_screen, struct pipe_context *ctx, struct pipe_fence_handle *fence, uint64_t timeout) crocus_fence_finish() argument
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
H A D | nameservercheck_client.c | 46 unsigned timeout; member 112 int timeout, attempts, retry_interval, servfail_retry; in res_msend_rc_ext() local 132 timeout = 1000*conf->timeout; in res_msend_rc_ext() 201 retry_interval = timeout / attempts; in res_msend_rc_ext() 206 for (; t2-t0 < timeout; t2=mtime()) { in res_msend_rc_ext() 396 // timeout: 查询超时时间,attempts: 失败重试次数, nns: nameserver数量 in main() 401 .timeout = 5}; in main()
|