Lines Matching refs:sk_state
113 if (sk->sk_state != BT_OPEN) { in l2cap_sock_bind()
172 sk->sk_state = BT_BOUND; in l2cap_sock_bind()
296 if (sk->sk_state != BT_BOUND) { in l2cap_sock_listen()
338 sk->sk_state = BT_LISTEN; in l2cap_sock_listen()
362 if (sk->sk_state != BT_LISTEN) { in l2cap_sock_accept()
410 if (peer && sk->sk_state != BT_CONNECTED && in l2cap_sock_getname()
411 sk->sk_state != BT_CONNECT && sk->sk_state != BT_CONNECT2 && in l2cap_sock_getname()
412 sk->sk_state != BT_CONFIG) in l2cap_sock_getname()
544 if (sk->sk_state != BT_CONNECTED && in l2cap_sock_getsockopt_old()
545 !(sk->sk_state == BT_CONNECT2 && in l2cap_sock_getsockopt_old()
606 if (sk->sk_state == BT_CONNECTED) in l2cap_sock_getsockopt()
619 if (sk->sk_state != BT_BOUND && sk->sk_state != BT_LISTEN) { in l2cap_sock_getsockopt()
663 if (sk->sk_state != BT_CONNECTED) { in l2cap_sock_getsockopt()
683 if (sk->sk_state != BT_CONNECTED) { in l2cap_sock_getsockopt()
760 if (sk->sk_state == BT_CONNECTED) { in l2cap_sock_setsockopt_old()
957 sk->sk_state = BT_CONFIG; in l2cap_sock_setsockopt()
961 } else if ((sk->sk_state == BT_CONNECT2 && in l2cap_sock_setsockopt()
963 sk->sk_state == BT_CONNECTED) { in l2cap_sock_setsockopt()
974 if (sk->sk_state != BT_BOUND && sk->sk_state != BT_LISTEN) { in l2cap_sock_setsockopt()
1060 if (sk->sk_state == BT_CONNECTED && in l2cap_sock_setsockopt()
1085 sk->sk_state == BT_CONNECTED) { in l2cap_sock_setsockopt()
1096 sk->sk_state == BT_CONNECTED) in l2cap_sock_setsockopt()
1109 BT_DBG("sk->sk_state %u", sk->sk_state); in l2cap_sock_setsockopt()
1111 if (sk->sk_state != BT_BOUND) { in l2cap_sock_setsockopt()
1161 if (sk->sk_state != BT_CONNECTED) in l2cap_sock_sendmsg()
1186 if (sk->sk_state == BT_CONNECT2 && test_bit(BT_SK_DEFER_SETUP, in l2cap_sock_recvmsg()
1189 sk->sk_state = BT_CONNECTED; in l2cap_sock_recvmsg()
1193 sk->sk_state = BT_CONNECTED; in l2cap_sock_recvmsg()
1197 sk->sk_state = BT_CONFIG; in l2cap_sock_recvmsg()
1250 BT_DBG("sk %p state %s", sk, state_to_string(sk->sk_state)); in l2cap_sock_kill()
1439 state_to_string(parent->sk_state)); in l2cap_sock_cleanup_listen()
1574 sk->sk_state = BT_CLOSED; in l2cap_sock_teardown_cb()
1579 sk->sk_state = BT_CLOSED; in l2cap_sock_teardown_cb()
1605 sk->sk_state = state; in l2cap_sock_state_change_cb()
1644 sk->sk_state = BT_CONNECTED; in l2cap_sock_ready_cb()
1671 sk->sk_state = BT_CONNECTED; in l2cap_sock_resume_cb()
1863 sk->sk_state = BT_OPEN; in l2cap_sock_alloc()