Lines Matching refs:timeo
308 static long bt_sock_data_wait(struct sock *sk, long timeo) in bt_sock_data_wait() argument
322 if (signal_pending(current) || !timeo) in bt_sock_data_wait()
327 timeo = schedule_timeout(timeo); in bt_sock_data_wait()
334 return timeo; in bt_sock_data_wait()
343 long timeo; in bt_sock_stream_recvmsg() local
353 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in bt_sock_stream_recvmsg()
371 if (!timeo) in bt_sock_stream_recvmsg()
374 timeo = bt_sock_data_wait(sk, timeo); in bt_sock_stream_recvmsg()
377 err = sock_intr_errno(timeo); in bt_sock_stream_recvmsg()
540 int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo) in bt_sock_wait_state() argument
550 if (!timeo) { in bt_sock_wait_state()
556 err = sock_intr_errno(timeo); in bt_sock_wait_state()
561 timeo = schedule_timeout(timeo); in bt_sock_wait_state()
579 unsigned long timeo; in bt_sock_wait_ready() local
584 timeo = sock_sndtimeo(sk, flags & O_NONBLOCK); in bt_sock_wait_ready()
589 if (!timeo) { in bt_sock_wait_ready()
595 err = sock_intr_errno(timeo); in bt_sock_wait_ready()
600 timeo = schedule_timeout(timeo); in bt_sock_wait_ready()