Lines Matching refs:sk_state
185 BT_DBG("sk %p state %d", sk, sk->sk_state); in bt_accept_unlink()
228 if (sk->sk_state == BT_CLOSED) { in bt_accept_dequeue()
234 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue()
449 if (sk->sk_state == BT_CONNECTED || in bt_accept_poll()
451 sk->sk_state == BT_CONNECT2)) in bt_accept_poll()
466 if (sk->sk_state == BT_LISTEN) in bt_sock_poll()
482 if (sk->sk_state == BT_CLOSED) in bt_sock_poll()
485 if (sk->sk_state == BT_CONNECT || in bt_sock_poll()
486 sk->sk_state == BT_CONNECT2 || in bt_sock_poll()
487 sk->sk_state == BT_CONFIG) in bt_sock_poll()
510 if (sk->sk_state == BT_LISTEN) in bt_sock_ioctl()
520 if (sk->sk_state == BT_LISTEN) in bt_sock_ioctl()
549 while (sk->sk_state != state) { in bt_sock_wait_state()