Lines Matching refs:sk_state
158 sk->sk_state = BT_OPEN; in bt_sock_alloc()
254 BT_DBG("sk %p state %d", sk, sk->sk_state); in bt_accept_unlink()
297 if (sk->sk_state == BT_CLOSED) { in bt_accept_dequeue()
303 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue()
516 if (sk->sk_state == BT_CONNECTED || in bt_accept_poll()
518 sk->sk_state == BT_CONNECT2)) in bt_accept_poll()
533 if (sk->sk_state == BT_LISTEN) in bt_sock_poll()
549 if (sk->sk_state == BT_CLOSED) in bt_sock_poll()
552 if (sk->sk_state == BT_CONNECT || in bt_sock_poll()
553 sk->sk_state == BT_CONNECT2 || in bt_sock_poll()
554 sk->sk_state == BT_CONFIG) in bt_sock_poll()
577 if (sk->sk_state == BT_LISTEN) in bt_sock_ioctl()
587 if (sk->sk_state == BT_LISTEN) in bt_sock_ioctl()
617 while (sk->sk_state != state) { in bt_sock_wait_state()