/linux-6.6.21/arch/x86/platform/olpc/ |
D | olpc.c | 65 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.6.21/net/sunrpc/ |
D | timer.c | 35 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.6.21/drivers/mtd/nand/raw/ |
D | nand_legacy.c | 174 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.6.21/net/caif/ |
D | caif_socket.c | 304 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.6.21/net/bluetooth/ |
D | af_bluetooth.c | 358 static long bt_sock_data_wait(struct sock *sk, long timeo) in bt_sock_data_wait() argument 372 if (signal_pending(current) || !timeo) in bt_sock_data_wait() 377 timeo = schedule_timeout(timeo); in bt_sock_data_wait() 384 return timeo; in bt_sock_data_wait() 393 long timeo; in bt_sock_stream_recvmsg() local 403 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in bt_sock_stream_recvmsg() 421 if (!timeo) in bt_sock_stream_recvmsg() 424 timeo = bt_sock_data_wait(sk, timeo); in bt_sock_stream_recvmsg() 427 err = sock_intr_errno(timeo); in bt_sock_stream_recvmsg() 590 int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo) in bt_sock_wait_state() argument [all …]
|
/linux-6.6.21/net/rxrpc/ |
D | sendmsg.c | 45 static int rxrpc_wait_to_be_connected(struct rxrpc_call *call, long *timeo) in rxrpc_wait_to_be_connected() argument 74 ret = sock_intr_errno(*timeo); in rxrpc_wait_to_be_connected() 77 *timeo = schedule_timeout(*timeo); in rxrpc_wait_to_be_connected() 106 long *timeo) in rxrpc_wait_for_tx_window_intr() argument 117 return sock_intr_errno(*timeo); in rxrpc_wait_for_tx_window_intr() 120 *timeo = schedule_timeout(*timeo); in rxrpc_wait_for_tx_window_intr() 170 long *timeo) in rxrpc_wait_for_tx_window_nonintr() argument 181 *timeo = schedule_timeout(*timeo); in rxrpc_wait_for_tx_window_nonintr() 191 long *timeo, in rxrpc_wait_for_tx_window() argument 207 ret = rxrpc_wait_for_tx_window_intr(rx, call, timeo); in rxrpc_wait_for_tx_window() [all …]
|
D | recvmsg.c | 286 long timeo; in rxrpc_recvmsg() local 296 timeo = sock_rcvtimeo(&rx->sk, flags & MSG_DONTWAIT); in rxrpc_recvmsg() 311 if (timeo == 0) { in rxrpc_recvmsg() 329 timeo = schedule_timeout(timeo); in rxrpc_recvmsg() 462 ret = sock_intr_errno(timeo); in rxrpc_recvmsg()
|
/linux-6.6.21/include/net/ |
D | inet_timewait_sock.h | 102 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.6.21/drivers/mtd/chips/ |
D | cfi_cmdset_0020.c | 252 unsigned long timeo; in do_read_onechip() local 266 timeo = jiffies + HZ; in do_read_onechip() 293 if (time_after(jiffies, timeo)) { in do_read_onechip() 338 if (time_after(jiffies, timeo)) { in do_read_onechip() 358 timeo = jiffies + HZ; in do_read_onechip() 426 unsigned long cmd_adr, timeo; in do_write_buffer() local 441 timeo = jiffies + HZ; in do_write_buffer() 471 if (time_after(jiffies, timeo)) { in do_write_buffer() 491 timeo = jiffies + HZ; in do_write_buffer() 538 timeo = jiffies + (HZ/2); in do_write_buffer() [all …]
|
/linux-6.6.21/net/ipv4/ |
D | udp_bpf.c | 39 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() 86 long timeo; in udp_bpf_recvmsg() local 89 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in udp_bpf_recvmsg() 90 data = udp_msg_wait_data(sk, psock, timeo); in udp_bpf_recvmsg()
|
D | tcp_bpf.c | 179 long timeo) in tcp_msg_wait_data() argument 187 if (!timeo) in tcp_msg_wait_data() 192 ret = sk_wait_event(sk, &timeo, in tcp_msg_wait_data() 279 long timeo; in tcp_bpf_recvmsg_parser() local 298 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in tcp_bpf_recvmsg_parser() 299 if (!timeo) { in tcp_bpf_recvmsg_parser() 305 copied = sock_intr_errno(timeo); in tcp_bpf_recvmsg_parser() 309 data = tcp_msg_wait_data(sk, psock, timeo); in tcp_bpf_recvmsg_parser() 355 long timeo; in tcp_bpf_recvmsg() local 358 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in tcp_bpf_recvmsg() [all …]
|
D | inet_timewait_sock.c | 241 void __inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo, bool rearm) in __inet_twsk_schedule() argument 269 bool kill = timeo <= 4*HZ; in __inet_twsk_schedule() 273 BUG_ON(mod_timer(&tw->tw_timer, jiffies + timeo)); in __inet_twsk_schedule() 276 mod_timer_pending(&tw->tw_timer, jiffies + timeo); in __inet_twsk_schedule()
|
/linux-6.6.21/net/unix/ |
D | unix_bpf.c | 16 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() 75 long timeo; in unix_bpf_recvmsg() local 78 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in unix_bpf_recvmsg() 79 data = unix_msg_wait_data(sk, psock, timeo); in unix_bpf_recvmsg()
|
/linux-6.6.21/net/vmw_vsock/ |
D | vsock_bpf.c | 37 static bool vsock_msg_wait_data(struct sock *sk, struct sk_psock *psock, long timeo) in vsock_msg_wait_data() argument 46 if (!timeo) in vsock_msg_wait_data() 53 wait_woken(&wait, TASK_INTERRUPTIBLE, timeo); in vsock_msg_wait_data() 95 long timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in vsock_bpf_recvmsg() local 97 if (!vsock_msg_wait_data(sk, psock, timeo)) { in vsock_bpf_recvmsg()
|
/linux-6.6.21/net/strparser/ |
D | strparser.c | 57 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.6.21/net/dccp/ |
D | minisocks.c | 32 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.6.21/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_io.c | 1019 long timeo; in chtls_sendmsg() local 1023 timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); in chtls_sendmsg() 1026 err = sk_stream_wait_connect(sk, &timeo); in chtls_sendmsg() 1216 err = csk_wait_memory(cdev, sk, &timeo); in chtls_sendmsg() 1353 long timeo; in chtls_pt_recvmsg() local 1358 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in chtls_pt_recvmsg() 1373 copied = timeo ? sock_intr_errno(timeo) : in chtls_pt_recvmsg() 1396 if (!timeo) in chtls_pt_recvmsg() 1411 if (!timeo) { in chtls_pt_recvmsg() 1416 copied = sock_intr_errno(timeo); in chtls_pt_recvmsg() [all …]
|
/linux-6.6.21/net/smc/ |
D | smc_rx.c | 255 int smc_rx_wait(struct smc_sock *smc, long *timeo, in smc_rx_wait() argument 269 rc = sk_wait_event(sk, timeo, in smc_rx_wait() 356 long timeo; in smc_rx_recvmsg() local 368 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in smc_rx_recvmsg() 402 !timeo || in smc_rx_recvmsg() 420 if (!timeo) in smc_rx_recvmsg() 423 read_done = sock_intr_errno(timeo); in smc_rx_recvmsg() 429 smc_rx_wait(smc, &timeo, smc_rx_data_available); in smc_rx_recvmsg() 443 smc_rx_wait(smc, &timeo, func); in smc_rx_recvmsg()
|
/linux-6.6.21/include/linux/sunrpc/ |
D | timer.h | 16 unsigned long timeo; /* default timeout value */ member 23 extern void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo);
|
/linux-6.6.21/net/llc/ |
D | af_llc.c | 521 const long timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); in llc_ui_connect() local 523 if (!timeo || !llc_ui_wait_for_conn(sk, timeo)) in llc_ui_connect() 526 rc = sock_intr_errno(timeo); in llc_ui_connect() 645 static int llc_wait_data(struct sock *sk, long timeo) in llc_wait_data() argument 660 if (!timeo) in llc_wait_data() 662 rc = sock_intr_errno(timeo); in llc_wait_data() 666 if (sk_wait_data(sk, &timeo, NULL)) in llc_wait_data() 773 long timeo; in llc_ui_recvmsg() local 780 timeo = sock_rcvtimeo(sk, nonblock); in llc_ui_recvmsg() 802 copied = timeo ? sock_intr_errno(timeo) : -EAGAIN; in llc_ui_recvmsg() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | signal_pending.c | 13 struct itimerval timeo = { in test_signal_pending_by_type() local 36 err = setitimer(ITIMER_REAL, &timeo, NULL); in test_signal_pending_by_type()
|
D | lwt_redirect.c | 163 struct timeval timeo = { in send_and_capture_test_packets() local 173 ret = wait_for_packet(tap_fd, filter, &timeo); in send_and_capture_test_packets() 182 ret = wait_for_packet(psock, filter, &timeo); in send_and_capture_test_packets()
|
/linux-6.6.21/drivers/mtd/lpddr/ |
D | lpddr_cmds.c | 128 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.6.21/net/rds/ |
D | recv.c | 639 long timeo; in rds_recvmsg() local 646 timeo = sock_rcvtimeo(sk, nonblock); in rds_recvmsg() 648 rdsdebug("size %zu flags 0x%x timeo %ld\n", size, msg_flags, timeo); in rds_recvmsg() 675 timeo = wait_event_interruptible_timeout(*sk_sleep(sk), in rds_recvmsg() 678 rds_next_incoming(rs, &inc)), timeo); in rds_recvmsg() 680 timeo); in rds_recvmsg() 681 if (timeo > 0 || timeo == MAX_SCHEDULE_TIMEOUT) in rds_recvmsg() 684 ret = timeo; in rds_recvmsg()
|
/linux-6.6.21/net/nfc/ |
D | llcp_sock.c | 17 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()
|