Home
last modified time | relevance | path

Searched refs:timeo (Results 1 – 25 of 111) sorted by relevance

12345

/linux-6.1.9/arch/x86/platform/olpc/
Dolpc.c65 unsigned int timeo; in __wait_on_ibf() local
68 for (timeo = ec_timeout; state != desired && timeo; timeo--) { in __wait_on_ibf()
74 timeo < (ec_timeout - EC_BASE_TIMEOUT)) { in __wait_on_ibf()
76 line, ec_timeout - timeo); in __wait_on_ibf()
85 unsigned int timeo; in __wait_on_obf() local
88 for (timeo = ec_timeout; state != desired && timeo; timeo--) { in __wait_on_obf()
94 timeo < (ec_timeout - EC_BASE_TIMEOUT)) { in __wait_on_obf()
96 line, ec_timeout - timeo); in __wait_on_obf()
/linux-6.1.9/net/sunrpc/
Dtimer.c35 void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo) in rpc_init_rtt() argument
40 rt->timeo = timeo; in rpc_init_rtt()
42 if (timeo > RPC_RTO_INIT) in rpc_init_rtt()
43 init = (timeo - RPC_RTO_INIT) << 3; in rpc_init_rtt()
115 return rt->timeo; in rpc_calc_rto()
/linux-6.1.9/drivers/mtd/nand/raw/
Dnand_legacy.c174 static void panic_nand_wait_ready(struct nand_chip *chip, unsigned long timeo) in panic_nand_wait_ready() argument
179 for (i = 0; i < timeo; i++) { in panic_nand_wait_ready()
196 unsigned long timeo = 400; in nand_wait_ready() local
199 return panic_nand_wait_ready(chip, timeo); in nand_wait_ready()
202 timeo = jiffies + msecs_to_jiffies(timeo); in nand_wait_ready()
207 } while (time_before(jiffies, timeo)); in nand_wait_ready()
221 static void nand_wait_status_ready(struct nand_chip *chip, unsigned long timeo) in nand_wait_status_ready() argument
225 timeo = jiffies + msecs_to_jiffies(timeo); in nand_wait_status_ready()
237 } while (time_before(jiffies, timeo)); in nand_wait_status_ready()
536 unsigned long timeo = 400; in nand_wait() local
[all …]
/linux-6.1.9/net/bluetooth/
Daf_bluetooth.c304 static long bt_sock_data_wait(struct sock *sk, long timeo) in bt_sock_data_wait() argument
318 if (signal_pending(current) || !timeo) in bt_sock_data_wait()
323 timeo = schedule_timeout(timeo); in bt_sock_data_wait()
330 return timeo; in bt_sock_data_wait()
339 long timeo; in bt_sock_stream_recvmsg() local
349 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in bt_sock_stream_recvmsg()
367 if (!timeo) in bt_sock_stream_recvmsg()
370 timeo = bt_sock_data_wait(sk, timeo); in bt_sock_stream_recvmsg()
373 err = sock_intr_errno(timeo); in bt_sock_stream_recvmsg()
536 int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo) in bt_sock_wait_state() argument
[all …]
/linux-6.1.9/net/caif/
Dcaif_socket.c304 static long caif_stream_data_wait(struct sock *sk, long timeo) in caif_stream_data_wait() argument
318 !timeo) in caif_stream_data_wait()
323 timeo = schedule_timeout(timeo); in caif_stream_data_wait()
334 return timeo; in caif_stream_data_wait()
349 long timeo; in caif_stream_recvmsg() local
365 timeo = sock_rcvtimeo(sk, flags&MSG_DONTWAIT); in caif_stream_recvmsg()
401 if (!timeo) in caif_stream_recvmsg()
406 timeo = caif_stream_data_wait(sk, timeo); in caif_stream_recvmsg()
409 err = sock_intr_errno(timeo); in caif_stream_recvmsg()
460 int wait_writeable, long timeo, int *err) in caif_wait_for_flow_on() argument
[all …]
/linux-6.1.9/include/net/
Dinet_timewait_sock.h102 void __inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo,
105 static inline void inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo) in inet_twsk_schedule() argument
107 __inet_twsk_schedule(tw, timeo, false); in inet_twsk_schedule()
110 static inline void inet_twsk_reschedule(struct inet_timewait_sock *tw, int timeo) in inet_twsk_reschedule() argument
112 __inet_twsk_schedule(tw, timeo, true); in inet_twsk_reschedule()
/linux-6.1.9/drivers/mtd/chips/
Dcfi_cmdset_0020.c251 unsigned long timeo; in do_read_onechip() local
265 timeo = jiffies + HZ; in do_read_onechip()
292 if (time_after(jiffies, timeo)) { in do_read_onechip()
337 if (time_after(jiffies, timeo)) { in do_read_onechip()
357 timeo = jiffies + HZ; in do_read_onechip()
425 unsigned long cmd_adr, timeo; in do_write_buffer() local
440 timeo = jiffies + HZ; in do_write_buffer()
470 if (time_after(jiffies, timeo)) { in do_write_buffer()
490 timeo = jiffies + HZ; in do_write_buffer()
537 timeo = jiffies + (HZ/2); in do_write_buffer()
[all …]
Dcfi_cmdset_0002.c880 unsigned long timeo; in get_chip() local
884 timeo = jiffies + HZ; in get_chip()
893 if (time_after(jiffies, timeo)) { in get_chip()
932 if (time_after(jiffies, timeo)) { in get_chip()
1423 unsigned long timeo; in do_otp_lock() local
1458 timeo = jiffies + msecs_to_jiffies(2); in do_otp_lock()
1463 if (time_after(jiffies, timeo)) { in do_otp_lock()
1651 unsigned long timeo; in do_write_oneword_once() local
1675 timeo = jiffies + uWriteTimeout; in do_write_oneword_once()
1686 timeo = jiffies + (HZ / 2); /* FIXME */ in do_write_oneword_once()
[all …]
/linux-6.1.9/net/ipv4/
Dudp_bpf.c39 long timeo) in udp_msg_wait_data() argument
47 if (!timeo) in udp_msg_wait_data()
54 wait_woken(&wait, TASK_INTERRUPTIBLE, timeo); in udp_msg_wait_data()
83 long timeo; in udp_bpf_recvmsg() local
86 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in udp_bpf_recvmsg()
87 data = udp_msg_wait_data(sk, psock, timeo); in udp_bpf_recvmsg()
Dtcp_bpf.c155 long timeo) in tcp_msg_wait_data() argument
163 if (!timeo) in tcp_msg_wait_data()
168 ret = sk_wait_event(sk, &timeo, in tcp_msg_wait_data()
196 long timeo; in tcp_bpf_recvmsg_parser() local
215 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in tcp_bpf_recvmsg_parser()
216 if (!timeo) { in tcp_bpf_recvmsg_parser()
222 copied = sock_intr_errno(timeo); in tcp_bpf_recvmsg_parser()
226 data = tcp_msg_wait_data(sk, psock, timeo); in tcp_bpf_recvmsg_parser()
258 long timeo; in tcp_bpf_recvmsg() local
261 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in tcp_bpf_recvmsg()
[all …]
Dinet_timewait_sock.c244 void __inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo, bool rearm) in __inet_twsk_schedule() argument
272 bool kill = timeo <= 4*HZ; in __inet_twsk_schedule()
276 BUG_ON(mod_timer(&tw->tw_timer, jiffies + timeo)); in __inet_twsk_schedule()
279 mod_timer_pending(&tw->tw_timer, jiffies + timeo); in __inet_twsk_schedule()
/linux-6.1.9/net/unix/
Dunix_bpf.c16 long timeo) in unix_msg_wait_data() argument
25 if (!timeo) in unix_msg_wait_data()
32 wait_woken(&wait, TASK_INTERRUPTIBLE, timeo); in unix_msg_wait_data()
72 long timeo; in unix_bpf_recvmsg() local
75 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in unix_bpf_recvmsg()
76 data = unix_msg_wait_data(sk, psock, timeo); in unix_bpf_recvmsg()
Daf_unix.c1433 static long unix_wait_for_peer(struct sock *other, long timeo) in unix_wait_for_peer() argument
1449 timeo = schedule_timeout(timeo); in unix_wait_for_peer()
1452 return timeo; in unix_wait_for_peer()
1463 long timeo; in unix_stream_connect() local
1477 timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); in unix_stream_connect()
1526 if (!timeo) in unix_stream_connect()
1529 timeo = unix_wait_for_peer(other, timeo); in unix_stream_connect()
1531 err = sock_intr_errno(timeo); in unix_stream_connect()
1900 long timeo; in unix_dgram_sendmsg() local
1960 timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in unix_dgram_sendmsg()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_io.c1016 long timeo; in chtls_sendmsg() local
1020 timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); in chtls_sendmsg()
1023 err = sk_stream_wait_connect(sk, &timeo); in chtls_sendmsg()
1203 err = csk_wait_memory(cdev, sk, &timeo); in chtls_sendmsg()
1237 long timeo; in chtls_sendpage() local
1244 timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); in chtls_sendpage()
1246 err = sk_stream_wait_connect(sk, &timeo); in chtls_sendpage()
1316 err = csk_wait_memory(cdev, sk, &timeo); in chtls_sendpage()
1440 long timeo; in chtls_pt_recvmsg() local
1444 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in chtls_pt_recvmsg()
[all …]
/linux-6.1.9/net/strparser/
Dstrparser.c57 static void strp_start_timer(struct strparser *strp, long timeo) in strp_start_timer() argument
59 if (timeo && timeo != LONG_MAX) in strp_start_timer()
60 mod_delayed_work(strp_wq, &strp->msg_timer_work, timeo); in strp_start_timer()
91 size_t max_msg_size, long timeo) in __strp_recv() argument
219 strp_start_timer(strp, timeo); in __strp_recv()
269 strp_start_timer(strp, timeo); in __strp_recv()
319 size_t max_msg_size, long timeo) in strp_process() argument
326 max_msg_size, timeo); in strp_process()
/linux-6.1.9/net/rxrpc/
Dsendmsg.c40 long *timeo) in rxrpc_wait_for_tx_window_intr() argument
51 return sock_intr_errno(*timeo); in rxrpc_wait_for_tx_window_intr()
54 *timeo = schedule_timeout(*timeo); in rxrpc_wait_for_tx_window_intr()
105 long *timeo) in rxrpc_wait_for_tx_window_nonintr() argument
116 *timeo = schedule_timeout(*timeo); in rxrpc_wait_for_tx_window_nonintr()
126 long *timeo, in rxrpc_wait_for_tx_window() argument
142 ret = rxrpc_wait_for_tx_window_intr(rx, call, timeo); in rxrpc_wait_for_tx_window()
147 ret = rxrpc_wait_for_tx_window_nonintr(rx, call, timeo); in rxrpc_wait_for_tx_window()
297 long timeo; in rxrpc_send_data() local
301 timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in rxrpc_send_data()
[all …]
/linux-6.1.9/net/dccp/
Dminisocks.c32 void dccp_time_wait(struct sock *sk, int state, int timeo) in dccp_time_wait() argument
50 if (timeo < rto) in dccp_time_wait()
51 timeo = rto; in dccp_time_wait()
54 timeo = DCCP_TIMEWAIT_LEN; in dccp_time_wait()
61 inet_twsk_schedule(tw, timeo); in dccp_time_wait()
/linux-6.1.9/net/smc/
Dsmc_rx.c251 int smc_rx_wait(struct smc_sock *smc, long *timeo, in smc_rx_wait() argument
265 rc = sk_wait_event(sk, timeo, in smc_rx_wait()
352 long timeo; in smc_rx_recvmsg() local
364 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in smc_rx_recvmsg()
398 !timeo || in smc_rx_recvmsg()
416 if (!timeo) in smc_rx_recvmsg()
419 read_done = sock_intr_errno(timeo); in smc_rx_recvmsg()
425 smc_rx_wait(smc, &timeo, smc_rx_data_available); in smc_rx_recvmsg()
439 smc_rx_wait(smc, &timeo, func); in smc_rx_recvmsg()
/linux-6.1.9/include/linux/sunrpc/
Dtimer.h16 unsigned long timeo; /* default timeout value */ member
23 extern void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo);
/linux-6.1.9/net/llc/
Daf_llc.c519 const long timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); in llc_ui_connect() local
521 if (!timeo || !llc_ui_wait_for_conn(sk, timeo)) in llc_ui_connect()
524 rc = sock_intr_errno(timeo); in llc_ui_connect()
641 static int llc_wait_data(struct sock *sk, long timeo) in llc_wait_data() argument
656 if (!timeo) in llc_wait_data()
658 rc = sock_intr_errno(timeo); in llc_wait_data()
662 if (sk_wait_data(sk, &timeo, NULL)) in llc_wait_data()
769 long timeo; in llc_ui_recvmsg() local
776 timeo = sock_rcvtimeo(sk, nonblock); in llc_ui_recvmsg()
798 copied = timeo ? sock_intr_errno(timeo) : -EAGAIN; in llc_ui_recvmsg()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dsignal_pending.c13 struct itimerval timeo = { in test_signal_pending_by_type() local
36 err = setitimer(ITIMER_REAL, &timeo, NULL); in test_signal_pending_by_type()
/linux-6.1.9/drivers/mtd/lpddr/
Dlpddr_cmds.c128 unsigned int timeo, reset_timeo, sleep_time; in wait_for_ready() local
134 timeo = chip_op_time * 8; in wait_for_ready()
135 if (!timeo) in wait_for_ready()
136 timeo = 500000; in wait_for_ready()
137 reset_timeo = timeo; in wait_for_ready()
144 if (!timeo) { in wait_for_ready()
160 timeo -= sleep_time; in wait_for_ready()
165 timeo--; in wait_for_ready()
181 timeo = reset_timeo; in wait_for_ready()
/linux-6.1.9/net/rds/
Drecv.c638 long timeo; in rds_recvmsg() local
645 timeo = sock_rcvtimeo(sk, nonblock); in rds_recvmsg()
647 rdsdebug("size %zu flags 0x%x timeo %ld\n", size, msg_flags, timeo); in rds_recvmsg()
674 timeo = wait_event_interruptible_timeout(*sk_sleep(sk), in rds_recvmsg()
677 rds_next_incoming(rs, &inc)), timeo); in rds_recvmsg()
679 timeo); in rds_recvmsg()
680 if (timeo > 0 || timeo == MAX_SCHEDULE_TIMEOUT) in rds_recvmsg()
683 ret = timeo; in rds_recvmsg()
/linux-6.1.9/net/nfc/
Dllcp_sock.c17 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) in sock_wait_state() argument
28 if (!timeo) { in sock_wait_state()
34 err = sock_intr_errno(timeo); in sock_wait_state()
39 timeo = schedule_timeout(timeo); in sock_wait_state()
454 long timeo; in llcp_sock_accept() local
466 timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); in llcp_sock_accept()
473 if (!timeo) { in llcp_sock_accept()
479 ret = sock_intr_errno(timeo); in llcp_sock_accept()
484 timeo = schedule_timeout(timeo); in llcp_sock_accept()
/linux-6.1.9/arch/mips/pci/
Dfixup-cobalt.c127 signed int timeo; in qube_raq_galileo_fixup() local
129 timeo = GT_READ(GT_PCI0_TOR_OFS); in qube_raq_galileo_fixup()

12345