Home
last modified time | relevance | path

Searched refs:timeout (Results 1001 - 1025 of 5869) sorted by relevance

1...<<41424344454647484950>>...235

/kernel/linux/linux-6.6/drivers/pps/
H A Dpps.c58 /* 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 Dda8xx.c193 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 Dsocfpga.c212 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 Dwaitwake.c323 * 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 Dscan.c40 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 Dieee1284.c51 * @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 Dsch56xx-common.c246 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 Dacp6x-pdm-dma.c104 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 Dnetwork_helpers.c56 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 Dfp-stress.c432 { "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 Dwavefront_midi.c119 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 Dacp3x-pdm-dma.c129 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 Demumpu401.c47 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 Dps-pdm-dma.c108 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 Dnf_conntrack_bpf.c104 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...]
/kernel/linux/linux-5.10/net/tipc/
H A Dsocket.c53 #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 Dsocket.c55 #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/bcma/
H A Ddriver_chipcommon_b.c15 u32 value, int timeout) in bcma_wait_reg()
17 unsigned long deadline = jiffies + timeout; in bcma_wait_reg()
14 bcma_wait_reg(struct bcma_bus *bus, void __iomem *addr, u32 mask, u32 value, int timeout) bcma_wait_reg() argument
/kernel/linux/linux-5.10/drivers/dma-buf/
H A Dseqno-fence.c56 signed long timeout) in seqno_wait()
60 return f->ops->wait(fence, intr, timeout); in seqno_wait()
55 seqno_wait(struct dma_fence *fence, bool intr, signed long timeout) seqno_wait() argument
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Dutxfmutex.c87 * timeout - Max time to wait for the lock (millisec)
100 acpi_acquire_mutex(acpi_handle handle, acpi_string pathname, u16 timeout) in acpi_acquire_mutex() argument
114 status = acpi_os_acquire_mutex(mutex_obj->mutex.os_mutex, timeout); in acpi_acquire_mutex()
/kernel/linux/linux-5.10/drivers/block/paride/
H A Dpseudo.h12 int timeout,
16 when either it returns true, or timeout jiffies have passed,
52 int timeout, int nice) in ps_set_intr()
60 ps_timeout = jiffies + timeout; in ps_set_intr()
50 ps_set_intr(void (*continuation)(void), int (*ready)(void), int timeout, int nice) ps_set_intr() argument
/kernel/linux/linux-5.10/arch/mips/boot/compressed/
H A Duart-16550.c58 int timeout = 1000000; in putc() local
60 while (((serial_in(UART_LSR) & UART_LSR_THRE) == 0) && (timeout-- > 0)) in putc()
/kernel/linux/linux-5.10/include/linux/reset/
H A Dbcm63xx_pmb.h44 unsigned int timeout = 1000; in __bpcm_do_op() local
61 } while (timeout-- > 0); in __bpcm_do_op()
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/
H A Dxt_set.h63 __u32 timeout; member
82 __u32 timeout; member
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dutxfmutex.c87 * timeout - Max time to wait for the lock (millisec)
100 acpi_acquire_mutex(acpi_handle handle, acpi_string pathname, u16 timeout) in acpi_acquire_mutex() argument
114 status = acpi_os_acquire_mutex(mutex_obj->mutex.os_mutex, timeout); in acpi_acquire_mutex()

Completed in 19 milliseconds

1...<<41424344454647484950>>...235