• Home
  • Raw
  • Download

Lines Matching refs:sk_state

78 	sk->sk_state = d->state;  in rfcomm_sk_state_change()
117 if (sk->sk_state == BT_BOUND || sk->sk_state == BT_LISTEN) in __rfcomm_get_listen_sock_by_addr()
134 if (state && sk->sk_state != state) in rfcomm_get_sock_by_channel()
185 parent->sk_state = BT_CLOSED; in rfcomm_sock_cleanup_listen()
197 BT_DBG("sk %p state %d refcnt %d", sk, sk->sk_state, refcount_read(&sk->sk_refcnt)); in rfcomm_sock_kill()
209 BT_DBG("sk %p state %d socket %p", sk, sk->sk_state, sk->sk_socket); in __rfcomm_sock_close()
211 switch (sk->sk_state) { in __rfcomm_sock_close()
304 sk->sk_state = BT_OPEN; in rfcomm_sock_alloc()
352 if (sk->sk_state != BT_OPEN) { in rfcomm_sock_bind()
371 sk->sk_state = BT_BOUND; in rfcomm_sock_bind()
396 if (sk->sk_state != BT_OPEN && sk->sk_state != BT_BOUND) { in rfcomm_sock_connect()
406 sk->sk_state = BT_CONNECT; in rfcomm_sock_connect()
433 if (sk->sk_state != BT_BOUND) { in rfcomm_sock_listen()
466 sk->sk_state = BT_LISTEN; in rfcomm_sock_listen()
495 if (sk->sk_state != BT_LISTEN) { in rfcomm_sock_accept()
541 if (peer && sk->sk_state != BT_CONNECTED && in rfcomm_sock_getname()
542 sk->sk_state != BT_CONNECT && sk->sk_state != BT_CONNECT2) in rfcomm_sock_getname()
706 if (sk->sk_state != BT_BOUND && sk->sk_state != BT_LISTEN) { in rfcomm_sock_setsockopt()
779 if (sk->sk_state != BT_CONNECTED && in rfcomm_sock_getsockopt_old()
843 if (sk->sk_state != BT_BOUND && sk->sk_state != BT_LISTEN) { in rfcomm_sock_getsockopt()
970 sk->sk_state = BT_CONFIG; in rfcomm_connect_ind()
995 sk->sk_state, rfcomm_pi(sk)->channel); in rfcomm_sock_debugfs_show()