/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...] |
/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()
|
/third_party/node/deps/uv/src/unix/ |
H A D | thread.c | 805 int uv_cond_timedwait(uv_cond_t* cond, uv_mutex_t* mutex, uint64_t timeout) { in uv_cond_timedwait() argument 813 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait() 814 ts.tv_nsec = timeout % NANOSEC; in uv_cond_timedwait() 820 timeout += tv.tv_sec * NANOSEC + tv.tv_usec * 1e3; in uv_cond_timedwait() 822 timeout += uv__hrtime(UV_CLOCK_PRECISE); in uv_cond_timedwait() 824 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait() 825 ts.tv_nsec = timeout % NANOSEC; in uv_cond_timedwait()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/ |
H A D | de4x5.c | 279 0.40 5-Mar-96 Fix setup frame timeout <maartenb@hpkuipc.cern.ch>. 343 Fix initialisation problem with lp->timeout in 624 #define QUEUE_PKT_TIMEOUT (3*HZ) /* 3 second timeout */ 822 int timeout; /* Scheduling counter */ member 927 static int de4x5_suspect_state(struct net_device *dev, int timeout, int prev_state, int (*fn)(struct net_device *, int), int (*asfn)(struct net_device *)); 928 static int dc21040_state(struct net_device *dev, int csr13, int csr14, int csr15, int timeout, int next_state, int suspect_state, int (*fn)(struct net_device *, int)); 1147 lp->timeout = -1; in de4x5_hw_init() 1336 netif_trans_update(dev); /* prevent tx timeout */ in de4x5_open() 1936 netif_trans_update(dev); /* prevent tx timeout */ in set_multicast_list() 2400 lp->timeout in dc21040_autoconf() 2460 dc21040_state(struct net_device *dev, int csr13, int csr14, int csr15, int timeout, int next_state, int suspect_state, int (*fn)(struct net_device *, int)) dc21040_state() argument 2499 de4x5_suspect_state(struct net_device *dev, int timeout, int prev_state, int (*fn)(struct net_device *, int), int (*asfn)(struct net_device *)) de4x5_suspect_state() argument [all...] |
/kernel/linux/linux-5.10/net/tipc/ |
H A D | socket.c | 53 #define CONN_TIMEOUT_DEFAULT 8000 /* default connect timeout = 8s */ 390 static int tipc_sk_sock_err(struct socket *sock, long *timeout) in tipc_sk_sock_err() argument 404 if (!*timeout) in tipc_sk_sock_err() 407 return sock_intr_errno(*timeout); in tipc_sk_sock_err() 542 long timeout = msecs_to_jiffies(CONN_TIMEOUT_DEFAULT); in __tipc_shutdown() local 547 tipc_wait_for_cond(sock, &timeout, (!tsk->cong_link_cnt && in __tipc_shutdown() 815 * @timeout: timeout to wait for wakeup 821 struct msghdr *msg, size_t dlen, long timeout) in tipc_sendmcast() 837 rc = tipc_wait_for_cond(sock, &timeout, !ts in tipc_sendmcast() 820 tipc_sendmcast(struct socket *sock, struct tipc_name_seq *seq, struct msghdr *msg, size_t dlen, long timeout) tipc_sendmcast() argument 935 tipc_send_group_unicast(struct socket *sock, struct msghdr *m, int dlen, long timeout) tipc_send_group_unicast() argument 979 tipc_send_group_anycast(struct socket *sock, struct msghdr *m, int dlen, long timeout) tipc_send_group_anycast() argument 1064 tipc_send_group_bcast(struct socket *sock, struct msghdr *m, int dlen, long timeout) tipc_send_group_bcast() argument 1138 tipc_send_group_mcast(struct socket *sock, struct msghdr *m, int dlen, long timeout) tipc_send_group_mcast() argument 1403 long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT); __tipc_sendmsg() local 1551 long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT); __tipc_sendstream() local 1896 long timeout; tipc_recvmsg() local 2023 long timeout; tipc_recvstream() local 2573 long timeout = (flags & O_NONBLOCK) ? 0 : tsk->conn_timeout; tipc_connect() local [all...] |
/kernel/linux/linux-6.6/net/tipc/ |
H A D | socket.c | 55 #define CONN_TIMEOUT_DEFAULT 8000 /* default connect timeout = 8s */ 404 static int tipc_sk_sock_err(struct socket *sock, long *timeout) in tipc_sk_sock_err() argument 418 if (!*timeout) in tipc_sk_sock_err() 421 return sock_intr_errno(*timeout); in tipc_sk_sock_err() 556 long timeout = msecs_to_jiffies(CONN_TIMEOUT_DEFAULT); in __tipc_shutdown() local 561 tipc_wait_for_cond(sock, &timeout, (!tsk->cong_link_cnt && in __tipc_shutdown() 839 * @timeout: timeout to wait for wakeup 845 struct msghdr *msg, size_t dlen, long timeout) in tipc_sendmcast() 860 rc = tipc_wait_for_cond(sock, &timeout, !ts in tipc_sendmcast() 844 tipc_sendmcast(struct socket *sock, struct tipc_uaddr *ua, struct msghdr *msg, size_t dlen, long timeout) tipc_sendmcast() argument 958 tipc_send_group_unicast(struct socket *sock, struct msghdr *m, int dlen, long timeout) tipc_send_group_unicast() argument 1002 tipc_send_group_anycast(struct socket *sock, struct msghdr *m, int dlen, long timeout) tipc_send_group_anycast() argument 1084 tipc_send_group_bcast(struct socket *sock, struct msghdr *m, int dlen, long timeout) tipc_send_group_bcast() argument 1158 tipc_send_group_mcast(struct socket *sock, struct msghdr *m, int dlen, long timeout) tipc_send_group_mcast() argument 1416 long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT); __tipc_sendmsg() local 1561 long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT); __tipc_sendstream() local 1898 long timeout; tipc_recvmsg() local 2026 long timeout; tipc_recvstream() local 2580 long timeout = (flags & O_NONBLOCK) ? 0 : tsk->conn_timeout; tipc_connect() local [all...] |
/kernel/linux/linux-5.10/drivers/fsi/ |
H A D | fsi-sbefifo.c | 104 /* Reset request timeout in ms */ 436 u32 *status, unsigned long timeout) in sbefifo_wait() 448 end_time = jiffies + timeout; in sbefifo_wait() 480 unsigned long timeout; in sbefifo_send_command() local 488 timeout = msecs_to_jiffies(SBEFIFO_TIMEOUT_START_CMD); in sbefifo_send_command() 491 rc = sbefifo_wait(sbefifo, true, &status, timeout); in sbefifo_send_command() 494 timeout = msecs_to_jiffies(SBEFIFO_TIMEOUT_IN_CMD); in sbefifo_send_command() 516 rc = sbefifo_wait(sbefifo, true, &status, timeout); in sbefifo_send_command() 532 unsigned long timeout; in sbefifo_read_response() local 540 timeout in sbefifo_read_response() 435 sbefifo_wait(struct sbefifo *sbefifo, bool up, u32 *status, unsigned long timeout) sbefifo_wait() argument [all...] |
/kernel/linux/linux-5.10/drivers/mtd/nand/onenand/ |
H A D | onenand_samsung.c | 198 unsigned long timeout = 0x10000; in s3c_onenand_reset() local 202 while (1 && timeout--) { in s3c_onenand_reset() 315 unsigned long timeout; in s3c_onenand_wait() local 335 timeout = jiffies + msecs_to_jiffies(20); in s3c_onenand_wait() 336 while (time_before(jiffies, timeout)) { in s3c_onenand_wait() 344 /* To get correct interrupt status in timeout case */ in s3c_onenand_wait() 521 unsigned long timeout; in s5pc110_dma_poll() local 540 * There's no exact timeout values at Spec. in s5pc110_dma_poll() 544 timeout = jiffies + msecs_to_jiffies(20); in s5pc110_dma_poll() 554 time_before(jiffies, timeout)); in s5pc110_dma_poll() 697 unsigned long timeout; s3c_onenand_bbt_wait() local [all...] |
/kernel/linux/linux-5.10/drivers/misc/cardreader/ |
H A D | rtsx_usb.c | 42 unsigned int length, unsigned int *act_len, int timeout) in rtsx_usb_bulk_transfer_sglist() 53 ucr->sg_timer.expires = jiffies + msecs_to_jiffies(timeout); in rtsx_usb_bulk_transfer_sglist() 69 unsigned int *act_len, int timeout) in rtsx_usb_transfer_data() 71 if (timeout < 600) in rtsx_usb_transfer_data() 72 timeout = 600; in rtsx_usb_transfer_data() 77 timeout); in rtsx_usb_transfer_data() 80 timeout); in rtsx_usb_transfer_data() 231 int rtsx_usb_send_cmd(struct rtsx_ucr *ucr, u8 flag, int timeout) in rtsx_usb_send_cmd() argument 242 0, NULL, timeout); in rtsx_usb_send_cmd() 252 int rtsx_usb_get_rsp(struct rtsx_ucr *ucr, int rsp_len, int timeout) in rtsx_usb_get_rsp() argument 40 rtsx_usb_bulk_transfer_sglist(struct rtsx_ucr *ucr, unsigned int pipe, struct scatterlist *sg, int num_sg, unsigned int length, unsigned int *act_len, int timeout) rtsx_usb_bulk_transfer_sglist() argument 67 rtsx_usb_transfer_data(struct rtsx_ucr *ucr, unsigned int pipe, void *buf, unsigned int len, int num_sg, unsigned int *act_len, int timeout) rtsx_usb_transfer_data() argument [all...] |