Lines Matching defs:timeo
818 static int dn_confirm_accept(struct sock *sk, long *timeo, gfp_t allocation)
835 *timeo = schedule_timeout(*timeo);
843 err = sock_intr_errno(*timeo);
847 if (!*timeo)
860 static int dn_wait_run(struct sock *sk, long *timeo)
869 if (!*timeo)
876 *timeo = schedule_timeout(*timeo);
884 err = sock_intr_errno(*timeo);
888 if (!*timeo)
902 static int __dn_connect(struct sock *sk, struct sockaddr_dn *addr, int addrlen, long *timeo, int flags)
923 return dn_wait_run(sk, timeo);
961 if (*timeo) {
962 err = dn_wait_run(sk, timeo);
973 long timeo = sock_sndtimeo(sk, flags & O_NONBLOCK);
976 err = __dn_connect(sk, addr, addrlen, &timeo, 0);
982 static inline int dn_check_state(struct sock *sk, struct sockaddr_dn *addr, int addrlen, long *timeo, int flags)
990 return dn_confirm_accept(sk, timeo, sk->sk_allocation);
993 return dn_wait_run(sk, timeo);
995 return __dn_connect(sk, addr, addrlen, timeo, flags);
1033 static struct sk_buff *dn_wait_for_connect(struct sock *sk, long *timeo)
1044 *timeo = schedule_timeout(*timeo);
1053 err = sock_intr_errno(*timeo);
1057 if (!*timeo)
1074 long timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK);
1086 skb = dn_wait_for_connect(sk, &timeo);
1167 err = dn_confirm_accept(newsk, &timeo,
1341 long timeo;
1427 timeo = sock_rcvtimeo(sk, 0);
1428 err = dn_confirm_accept(sk, &timeo, sk->sk_allocation);
1682 long timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT);
1696 rv = dn_check_state(sk, NULL, 0, &timeo, flags);
1735 rv = sock_intr_errno(timeo);
1749 sk_wait_event(sk, &timeo, dn_data_ready(sk, queue, flags, target));
1921 long timeo;
1930 timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT);
1945 err = dn_check_state(sk, addr, addr_len, &timeo, flags);
1980 err = sock_intr_errno(timeo);
2006 sk_wait_event(sk, &timeo,