Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
195 unsigned long timeo = 400; in nand_wait_ready() local
198 return panic_nand_wait_ready(chip, timeo); in nand_wait_ready()
201 timeo = jiffies + msecs_to_jiffies(timeo); in nand_wait_ready()
206 } while (time_before(jiffies, timeo)); in nand_wait_ready()
220 static void nand_wait_status_ready(struct nand_chip *chip, unsigned long timeo) in nand_wait_status_ready() argument
224 timeo = jiffies + msecs_to_jiffies(timeo); in nand_wait_status_ready()
236 } while (time_before(jiffies, timeo)); in nand_wait_status_ready()
535 unsigned long timeo = 400; in nand_wait() local
[all …]
/kernel/linux/linux-5.10/net/bluetooth/
Daf_bluetooth.c308 static long bt_sock_data_wait(struct sock *sk, long timeo) in bt_sock_data_wait() argument
322 if (signal_pending(current) || !timeo) in bt_sock_data_wait()
327 timeo = schedule_timeout(timeo); in bt_sock_data_wait()
334 return timeo; in bt_sock_data_wait()
343 long timeo; in bt_sock_stream_recvmsg() local
353 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in bt_sock_stream_recvmsg()
371 if (!timeo) in bt_sock_stream_recvmsg()
374 timeo = bt_sock_data_wait(sk, timeo); in bt_sock_stream_recvmsg()
377 err = sock_intr_errno(timeo); in bt_sock_stream_recvmsg()
540 int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo) in bt_sock_wait_state() argument
[all …]
/kernel/linux/linux-5.10/net/caif/
Dcaif_socket.c309 static long caif_stream_data_wait(struct sock *sk, long timeo) in caif_stream_data_wait() argument
323 !timeo) in caif_stream_data_wait()
328 timeo = schedule_timeout(timeo); in caif_stream_data_wait()
339 return timeo; in caif_stream_data_wait()
354 long timeo; in caif_stream_recvmsg() local
370 timeo = sock_rcvtimeo(sk, flags&MSG_DONTWAIT); in caif_stream_recvmsg()
406 if (!timeo) in caif_stream_recvmsg()
411 timeo = caif_stream_data_wait(sk, timeo); in caif_stream_recvmsg()
414 err = sock_intr_errno(timeo); in caif_stream_recvmsg()
465 int wait_writeable, long timeo, int *err) in caif_wait_for_flow_on() argument
[all …]
/kernel/linux/linux-5.10/include/net/
Dinet_timewait_sock.h98 void __inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo,
101 static inline void inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo) in inet_twsk_schedule() argument
103 __inet_twsk_schedule(tw, timeo, false); in inet_twsk_schedule()
106 static inline void inet_twsk_reschedule(struct inet_timewait_sock *tw, int timeo) in inet_twsk_reschedule() argument
108 __inet_twsk_schedule(tw, timeo, true); in inet_twsk_reschedule()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/net/decnet/
Daf_decnet.c816 static int dn_confirm_accept(struct sock *sk, long *timeo, gfp_t allocation) in dn_confirm_accept() argument
833 *timeo = wait_woken(&wait, TASK_INTERRUPTIBLE, *timeo); in dn_confirm_accept()
841 err = sock_intr_errno(*timeo); in dn_confirm_accept()
845 if (!*timeo) in dn_confirm_accept()
857 static int dn_wait_run(struct sock *sk, long *timeo) in dn_wait_run() argument
866 if (!*timeo) in dn_wait_run()
873 *timeo = wait_woken(&wait, TASK_INTERRUPTIBLE, *timeo); in dn_wait_run()
881 err = sock_intr_errno(*timeo); in dn_wait_run()
885 if (!*timeo) in dn_wait_run()
898 static int __dn_connect(struct sock *sk, struct sockaddr_dn *addr, int addrlen, long *timeo, int fl… in __dn_connect() argument
[all …]
/kernel/linux/linux-5.10/net/smc/
Dsmc_rx.c191 int smc_rx_wait(struct smc_sock *smc, long *timeo, in smc_rx_wait() argument
205 rc = sk_wait_event(sk, timeo, in smc_rx_wait()
291 long timeo; in smc_rx_recvmsg() local
303 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in smc_rx_recvmsg()
331 !timeo || in smc_rx_recvmsg()
349 if (!timeo) in smc_rx_recvmsg()
352 read_done = sock_intr_errno(timeo); in smc_rx_recvmsg()
358 smc_rx_wait(smc, &timeo, smc_rx_data_available); in smc_rx_recvmsg()
372 smc_rx_wait(smc, &timeo, func); in smc_rx_recvmsg()
/kernel/linux/linux-5.10/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, nonblock); in chtls_pt_recvmsg()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dninet_connection_sock.c49 unsigned long timeo; in ninet_reqsk_timer_handler() local
58 timeo = min(TCP_TIMEOUT_INIT, TCP_RTO_MAX); in ninet_reqsk_timer_handler()
59 mod_timer(&req->rsk_timer, jiffies + timeo); in ninet_reqsk_timer_handler()
Daf_ninet.c336 static long ninet_wait_for_connect(struct sock *sk, long timeo, int writebias) in ninet_wait_for_connect() argument
350 timeo = wait_woken(&wait, TASK_INTERRUPTIBLE, timeo); in ninet_wait_for_connect()
352 if (signal_pending(current) || !timeo) in ninet_wait_for_connect()
357 return timeo; in ninet_wait_for_connect()
371 long timeo; in __ninet_stream_connect() local
403 timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); in __ninet_stream_connect()
407 if (!timeo || !ninet_wait_for_connect(sk, timeo, writebias)) in __ninet_stream_connect()
410 err = sock_intr_errno(timeo); in __ninet_stream_connect()
/kernel/linux/linux-5.10/net/dccp/
Dminisocks.c31 void dccp_time_wait(struct sock *sk, int state, int timeo) in dccp_time_wait() argument
49 if (timeo < rto) in dccp_time_wait()
50 timeo = rto; in dccp_time_wait()
53 timeo = DCCP_TIMEWAIT_LEN; in dccp_time_wait()
60 inet_twsk_schedule(tw, timeo); in dccp_time_wait()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/net/unix/
Daf_unix.c1228 static long unix_wait_for_peer(struct sock *other, long timeo) in unix_wait_for_peer() argument
1244 timeo = schedule_timeout(timeo); in unix_wait_for_peer()
1247 return timeo; in unix_wait_for_peer()
1263 long timeo; in unix_stream_connect() local
1274 timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); in unix_stream_connect()
1317 if (!timeo) in unix_stream_connect()
1320 timeo = unix_wait_for_peer(other, timeo); in unix_stream_connect()
1322 err = sock_intr_errno(timeo); in unix_stream_connect()
1696 long timeo; in unix_dgram_sendmsg() local
1757 timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in unix_dgram_sendmsg()
[all …]
/kernel/linux/linux-5.10/net/llc/
Daf_llc.c518 const long timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); in llc_ui_connect() local
520 if (!timeo || !llc_ui_wait_for_conn(sk, timeo)) in llc_ui_connect()
523 rc = sock_intr_errno(timeo); in llc_ui_connect()
640 static int llc_wait_data(struct sock *sk, long timeo) in llc_wait_data() argument
655 if (!timeo) in llc_wait_data()
657 rc = sock_intr_errno(timeo); in llc_wait_data()
661 if (sk_wait_data(sk, &timeo, NULL)) in llc_wait_data()
768 long timeo; in llc_ui_recvmsg() local
775 timeo = sock_rcvtimeo(sk, nonblock); in llc_ui_recvmsg()
797 copied = timeo ? sock_intr_errno(timeo) : -EAGAIN; in llc_ui_recvmsg()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dsignal_pending.c13 struct itimerval timeo = { in test_signal_pending_by_type() local
32 err = setitimer(ITIMER_REAL, &timeo, NULL); in test_signal_pending_by_type()
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_bpf.c249 int flags, long timeo, int *err) in tcp_bpf_wait_data() argument
257 if (!timeo) in tcp_bpf_wait_data()
262 ret = sk_wait_event(sk, &timeo, in tcp_bpf_wait_data()
292 long timeo; in tcp_bpf_recvmsg() local
294 timeo = sock_rcvtimeo(sk, nonblock); in tcp_bpf_recvmsg()
295 data = tcp_bpf_wait_data(sk, psock, flags, timeo, &err); in tcp_bpf_recvmsg()
433 long timeo; in tcp_bpf_sendmsg() local
445 timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in tcp_bpf_sendmsg()
501 err = sk_stream_wait_memory(sk, &timeo); in tcp_bpf_sendmsg()
Dinet_timewait_sock.c220 void __inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo, bool rearm) in __inet_twsk_schedule() argument
247 tw->tw_kill = timeo <= 4*HZ; in __inet_twsk_schedule()
249 BUG_ON(mod_timer(&tw->tw_timer, jiffies + timeo)); in __inet_twsk_schedule()
252 mod_timer_pending(&tw->tw_timer, jiffies + timeo); in __inet_twsk_schedule()
Dinet_connection_sock.c420 static int inet_csk_wait_for_connect(struct sock *sk, long timeo) in inet_csk_wait_for_connect() argument
445 timeo = schedule_timeout(timeo); in inet_csk_wait_for_connect()
454 err = sock_intr_errno(timeo); in inet_csk_wait_for_connect()
458 if (!timeo) in inet_csk_wait_for_connect()
487 long timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); in inet_csk_accept() local
491 if (!timeo) in inet_csk_accept()
494 error = inet_csk_wait_for_connect(sk, timeo); in inet_csk_accept()
784 unsigned long timeo; in reqsk_timer_handler() local
788 timeo = min(TCP_TIMEOUT_INIT << req->num_timeout, TCP_RTO_MAX); in reqsk_timer_handler()
789 mod_timer(&req->rsk_timer, jiffies + timeo); in reqsk_timer_handler()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
449 long timeo; in llcp_sock_accept() local
461 timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); in llcp_sock_accept()
468 if (!timeo) { in llcp_sock_accept()
474 ret = sock_intr_errno(timeo); in llcp_sock_accept()
479 timeo = schedule_timeout(timeo); in llcp_sock_accept()

12345