/net/sunrpc/ |
H A D | timer.c | 31 * @timeo: initial timeout value, in jiffies 34 void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo) argument 39 rt->timeo = timeo; 41 if (timeo > RPC_RTO_INIT) 42 init = (timeo - RPC_RTO_INIT) << 3; 107 * other - timeo 114 return rt->timeo;
|
/net/bluetooth/ |
H A D | af_bluetooth.c | 284 static long bt_sock_data_wait(struct sock *sk, long timeo) argument 298 if (signal_pending(current) || !timeo) 303 timeo = schedule_timeout(timeo); 310 return timeo; 319 long timeo; local 329 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); 347 if (!timeo) 350 timeo = bt_sock_data_wait(sk, timeo); 526 bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo) argument 565 unsigned long timeo; local [all...] |
H A D | l2cap_sock.c | 301 long timeo; local 306 timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); 308 BT_DBG("sk %p timeo %ld", sk, timeo); 324 if (!timeo) { 330 err = sock_intr_errno(timeo); 335 timeo = schedule_timeout(timeo); 1057 int timeo = HZ/5; local 1062 if (!timeo) [all...] |
H A D | sco.c | 623 long timeo; local 628 timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); 630 BT_DBG("sk %p timeo %ld", sk, timeo); 646 if (!timeo) { 652 err = sock_intr_errno(timeo); 657 timeo = schedule_timeout(timeo);
|
/net/caif/ |
H A D | caif_socket.c | 312 static long caif_stream_data_wait(struct sock *sk, long timeo) argument 326 !timeo) 331 timeo = schedule_timeout(timeo); 342 return timeo; 358 long timeo; local 374 timeo = sock_rcvtimeo(sk, flags&MSG_DONTWAIT); 410 if (!timeo) 415 timeo = caif_stream_data_wait(sk, timeo); 468 caif_wait_for_flow_on(struct caifsock *cf_sk, int wait_writeable, long timeo, int *err) argument 504 transmit_skb(struct sk_buff *skb, struct caifsock *cf_sk, int noblock, long timeo) argument 531 long timeo; local 605 long timeo; local 753 long timeo; local [all...] |
/net/rds/ |
H A D | recv.c | 403 long timeo; local 409 timeo = sock_rcvtimeo(sk, nonblock); 411 rdsdebug("size %zu flags 0x%x timeo %ld\n", size, msg_flags, timeo); 434 timeo = wait_event_interruptible_timeout(*sk_sleep(sk), 437 rds_next_incoming(rs, &inc)), timeo); 438 rdsdebug("recvmsg woke inc %p timeo %ld\n", inc, 439 timeo); 440 if (timeo > 0 || timeo [all...] |
H A D | send.c | 936 long timeo = sock_sndtimeo(sk, nonblock); local 1048 timeo = wait_event_interruptible_timeout(*sk_sleep(sk), 1053 timeo); 1054 rdsdebug("sendmsg woke queued %d timeo %ld\n", queued, timeo); 1055 if (timeo > 0 || timeo == MAX_SCHEDULE_TIMEOUT) 1058 ret = timeo;
|
/net/dccp/ |
H A D | minisocks.c | 46 void dccp_time_wait(struct sock *sk, int state, int timeo) argument 67 if (timeo < rto) 68 timeo = rto; 72 timeo = DCCP_TIMEWAIT_LEN; 74 inet_twsk_schedule(tw, &dccp_death_row, timeo,
|
H A D | proto.c | 753 long timeo; local 765 timeo = sock_sndtimeo(sk, noblock); 773 if ((rc = sk_stream_wait_connect(sk, &timeo)) != 0) 814 long timeo; local 823 timeo = sock_rcvtimeo(sk, nonblock); 881 if (!timeo) { 887 len = sock_intr_errno(timeo); 891 sk_wait_data(sk, &timeo);
|
/net/decnet/ |
H A D | af_decnet.c | 820 static int dn_confirm_accept(struct sock *sk, long *timeo, gfp_t allocation) argument 837 *timeo = schedule_timeout(*timeo); 845 err = sock_intr_errno(*timeo); 849 if (!*timeo) 862 static int dn_wait_run(struct sock *sk, long *timeo) argument 871 if (!*timeo) 878 *timeo = schedule_timeout(*timeo); 886 err = sock_intr_errno(*timeo); 904 __dn_connect(struct sock *sk, struct sockaddr_dn *addr, int addrlen, long *timeo, int flags) argument 977 long timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); local 986 dn_check_state(struct sock *sk, struct sockaddr_dn *addr, int addrlen, long *timeo, int flags) argument 1037 dn_wait_for_connect(struct sock *sk, long *timeo) argument 1078 long timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); local 1345 long timeo; local 1684 long timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); local 1924 long timeo; local [all...] |
/net/llc/ |
H A D | af_llc.c | 473 const long timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); local 475 if (!timeo || !llc_ui_wait_for_conn(sk, timeo)) 478 rc = sock_intr_errno(timeo); 595 static int llc_wait_data(struct sock *sk, long timeo) argument 610 if (!timeo) 612 rc = sock_intr_errno(timeo); 616 if (sk_wait_data(sk, &timeo)) 721 long timeo; local 728 timeo [all...] |
/net/rxrpc/ |
H A D | ar-recvmsg.c | 53 long timeo; local 66 timeo = sock_rcvtimeo(&rx->sk, flags & MSG_DONTWAIT); 90 (msg->msg_flags & MSG_PEEK || timeo == 0)) 104 timeo = schedule_timeout(timeo); 343 ret = sock_intr_errno(timeo);
|
H A D | ar-output.c | 404 long *timeo) 411 *timeo); 422 ret = sock_intr_errno(*timeo); 427 *timeo = schedule_timeout(*timeo); 536 long timeo; local 542 timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); 580 &timeo); 402 rxrpc_wait_for_tx_window(struct rxrpc_sock *rx, struct rxrpc_call *call, long *timeo) argument
|
/net/tipc/ |
H A D | socket.c | 697 * @timeo: timeout to wait for wakeup 703 struct iovec *iov, size_t dsz, long timeo) 737 rc = tipc_wait_for_sndmsg(sock, &timeo); 905 long timeo; local 943 timeo = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT); 946 rc = tipc_sendmcast(sock, seq, iov, dsz, timeo); 995 rc = tipc_wait_for_sndmsg(sock, &timeo); 1058 long timeo; local 1083 timeo = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT); 1110 rc = tipc_wait_for_sndpkt(sock, &timeo); 702 tipc_sendmcast(struct socket *sock, struct tipc_name_seq *seq, struct iovec *iov, size_t dsz, long timeo) argument 1277 long timeo = *timeop; local 1325 long timeo; local 1421 long timeo; local 1930 tipc_wait_for_accept(struct socket *sock, long timeo) argument 1980 long timeo; local [all...] |
/net/ipv4/ |
H A D | inet_timewait_sock.c | 341 const int timeo, const int timewait_len) 370 slot = (timeo + (1 << INET_TWDR_RECYCLE_TICK) - 1) >> INET_TWDR_RECYCLE_TICK; 382 if (timeo >= timewait_len) { 385 slot = DIV_ROUND_UP(timeo, twdr->period); 389 tw->tw_ttd = inet_tw_time_stamp() + timeo; 339 inet_twsk_schedule(struct inet_timewait_sock *tw, struct inet_timewait_death_row *twdr, const int timeo, const int timewait_len) argument
|
H A D | inet_connection_sock.c | 245 static int inet_csk_wait_for_connect(struct sock *sk, long timeo) argument 270 timeo = schedule_timeout(timeo); 278 err = sock_intr_errno(timeo); 282 if (!timeo) 311 long timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); local 315 if (!timeo) 318 error = inet_csk_wait_for_connect(sk, timeo); 626 unsigned long timeo; local 630 timeo [all...] |
H A D | tcp.c | 738 long timeo; local 753 timeo = sock_rcvtimeo(sk, sock->file->f_flags & O_NONBLOCK); 778 if (!timeo) { 782 sk_wait_data(sk, &timeo); 784 ret = sock_intr_errno(timeo); 792 if (!timeo) 902 long timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); local 910 if ((err = sk_stream_wait_connect(sk, &timeo)) != 0) 997 if ((err = sk_stream_wait_memory(sk, &timeo)) != 0) 1098 long timeo; local 1605 long timeo; local [all...] |
H A D | tcp_minisocks.c | 266 void tcp_time_wait(struct sock *sk, int state, int timeo) argument 328 if (timeo < rto) 329 timeo = rto; 336 timeo = TCP_TIMEWAIT_LEN; 339 inet_twsk_schedule(tw, &tcp_death_row, timeo,
|
H A D | af_inet.c | 546 static long inet_wait_for_connect(struct sock *sk, long timeo, int writebias) argument 560 timeo = schedule_timeout(timeo); 562 if (signal_pending(current) || !timeo) 568 return timeo; 580 long timeo; local 621 timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); 629 if (!timeo || !inet_wait_for_connect(sk, timeo, writebias)) 632 err = sock_intr_errno(timeo); [all...] |
/net/nfc/ |
H A D | llcp_sock.c | 28 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) argument 39 if (!timeo) { 45 err = sock_intr_errno(timeo); 50 timeo = schedule_timeout(timeo); 447 long timeo; local 459 timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); 466 if (!timeo) { 472 ret = sock_intr_errno(timeo); 477 timeo [all...] |
/net/unix/ |
H A D | af_unix.c | 1041 static long unix_wait_for_peer(struct sock *other, long timeo) argument 1056 timeo = schedule_timeout(timeo); 1059 return timeo; 1075 long timeo; local 1086 timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); 1129 if (!timeo) 1132 timeo = unix_wait_for_peer(other, timeo); 1134 err = sock_intr_errno(timeo); 1458 long timeo; local 1881 unix_stream_data_wait(struct sock *sk, long timeo, struct sk_buff *last) argument 1933 long timeo; local [all...] |
/net/bluetooth/rfcomm/ |
H A D | sock.c | 473 long timeo; local 483 timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); 485 BT_DBG("sk %p timeo %ld", sk, timeo); 501 if (!timeo) { 507 err = sock_intr_errno(timeo); 512 timeo = schedule_timeout(timeo);
|
/net/iucv/ |
H A D | af_iucv.c | 52 #define __iucv_sock_wait(sk, condition, timeo, ret) \ 55 long __timeo = timeo; \ 77 #define iucv_sock_wait(sk, condition, timeo) \ 81 __iucv_sock_wait(sk, condition, timeo, __ret); \ 476 unsigned long timeo; local 498 timeo = sk->sk_lingertime; 500 timeo = IUCV_DISCONN_TIMEOUT; 503 timeo); 932 long timeo; local 942 timeo 1038 long timeo; local [all...] |
/net/bluetooth/cmtp/ |
H A D | capi.c | 392 unsigned long timeo = CMTP_INTEROP_TIMEOUT; local 427 if (!timeo) { 445 timeo = schedule_timeout(timeo);
|
/net/core/ |
H A D | datagram.c | 168 long timeo; local 177 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); 218 if (!timeo) 221 } while (!wait_for_more_packets(sk, err, &timeo, last));
|