Lines Matching refs:timeo
1297 static long unix_wait_for_peer(struct sock *other, long timeo) in unix_wait_for_peer() argument
1313 timeo = schedule_timeout(timeo); in unix_wait_for_peer()
1316 return timeo; in unix_wait_for_peer()
1332 long timeo; in unix_stream_connect() local
1343 timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); in unix_stream_connect()
1389 if (!timeo) in unix_stream_connect()
1392 timeo = unix_wait_for_peer(other, timeo); in unix_stream_connect()
1394 err = sock_intr_errno(timeo); in unix_stream_connect()
1766 long timeo; in unix_dgram_sendmsg() local
1827 timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in unix_dgram_sendmsg()
1910 if (timeo) { in unix_dgram_sendmsg()
1911 timeo = unix_wait_for_peer(other, timeo); in unix_dgram_sendmsg()
1913 err = sock_intr_errno(timeo); in unix_dgram_sendmsg()
2300 long timeo; in __unix_dgram_recvmsg() local
2308 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in __unix_dgram_recvmsg()
2326 } while (timeo && in __unix_dgram_recvmsg()
2328 &err, &timeo, last)); in __unix_dgram_recvmsg()
2452 static long unix_stream_data_wait(struct sock *sk, long timeo, in unix_stream_data_wait() argument
2470 !timeo) in unix_stream_data_wait()
2476 timeo = freezable_schedule_timeout(timeo); in unix_stream_data_wait()
2478 timeo = schedule_timeout(timeo); in unix_stream_data_wait()
2489 return timeo; in unix_stream_data_wait()
2601 long timeo; in unix_stream_read_generic() local
2620 timeo = sock_rcvtimeo(sk, noblock); in unix_stream_read_generic()
2672 if (!timeo) { in unix_stream_read_generic()
2679 timeo = unix_stream_data_wait(sk, timeo, last, in unix_stream_read_generic()
2683 err = sock_intr_errno(timeo); in unix_stream_read_generic()