Lines Matching refs:timeout
55 #define CONN_TIMEOUT_DEFAULT 8000 /* default connect timeout = 8s */
404 static int tipc_sk_sock_err(struct socket *sock, long *timeout)
418 if (!*timeout)
421 return sock_intr_errno(*timeout);
556 long timeout = msecs_to_jiffies(CONN_TIMEOUT_DEFAULT);
561 tipc_wait_for_cond(sock, &timeout, (!tsk->cong_link_cnt &&
839 * @timeout: timeout to wait for wakeup
845 struct msghdr *msg, size_t dlen, long timeout)
860 rc = tipc_wait_for_cond(sock, &timeout, !tsk->cong_link_cnt);
953 * @timeout: timeout to wait for wakeup
959 int dlen, long timeout)
976 rc = tipc_wait_for_cond(sock, &timeout,
997 * @timeout: timeout to wait for wakeup
1003 int dlen, long timeout)
1053 rc = tipc_wait_for_cond(sock, &timeout,
1079 * @timeout: timeout to wait for wakeup
1085 int dlen, long timeout)
1101 rc = tipc_wait_for_cond(sock, &timeout,
1153 * @timeout: timeout to wait for wakeup
1159 int dlen, long timeout)
1180 return tipc_send_group_unicast(sock, m, dlen, timeout);
1184 return tipc_send_group_bcast(sock, m, dlen, timeout);
1416 long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT);
1437 return tipc_send_group_bcast(sock, m, dlen, timeout);
1439 return tipc_send_group_anycast(sock, m, dlen, timeout);
1441 return tipc_send_group_unicast(sock, m, dlen, timeout);
1443 return tipc_send_group_mcast(sock, m, dlen, timeout);
1470 return tipc_sendmcast(sock, ua, m, dlen, timeout);
1483 rc = tipc_wait_for_cond(sock, &timeout,
1525 if (dlen && timeout) {
1526 timeout = msecs_to_jiffies(timeout);
1527 tipc_wait_for_connect(sock, &timeout);
1561 long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT);
1587 rc = tipc_wait_for_cond(sock, &timeout,
1898 long timeout;
1909 timeout = sock_rcvtimeo(sk, flags & MSG_DONTWAIT);
1913 rc = tipc_wait_for_rcvmsg(sock, &timeout);
2026 long timeout;
2039 timeout = sock_rcvtimeo(sk, flags & MSG_DONTWAIT);
2043 rc = tipc_wait_for_rcvmsg(sock, &timeout);
2580 long timeout = (flags & O_NONBLOCK) ? 0 : tsk->conn_timeout;
2625 if (!timeout)
2639 if (!timeout) {
2644 timeout = msecs_to_jiffies(timeout);
2645 /* Wait until an 'ACK' or 'RST' arrives, or a timeout occurs */
2646 res = tipc_wait_for_connect(sock, &timeout);