Home
last modified time | relevance | path

Searched refs:BT_CONNECTED (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.4/net/bluetooth/
Dl2cap_sock.c245 err = bt_sock_wait_state(sk, BT_CONNECTED, in l2cap_sock_connect()
369 if (peer && sk->sk_state != BT_CONNECTED && in l2cap_sock_getname()
469 if (sk->sk_state != BT_CONNECTED && in l2cap_sock_getsockopt_old()
530 if (sk->sk_state == BT_CONNECTED) in l2cap_sock_getsockopt()
587 if (sk->sk_state != BT_CONNECTED) { in l2cap_sock_getsockopt()
651 if (sk->sk_state == BT_CONNECTED) { in l2cap_sock_setsockopt_old()
808 sk->sk_state == BT_CONNECTED) { in l2cap_sock_setsockopt()
905 if (sk->sk_state == BT_CONNECTED && in l2cap_sock_setsockopt()
929 if (sk->sk_state == BT_CONNECTED) { in l2cap_sock_setsockopt()
967 if (sk->sk_state != BT_CONNECTED) in l2cap_sock_sendmsg()
[all …]
Dsco.c261 if (hcon->state == BT_CONNECTED) { in sco_connect()
263 sk->sk_state = BT_CONNECTED; in sco_connect()
314 if (sk->sk_state != BT_CONNECTED) in sco_recv_frame()
417 case BT_CONNECTED: in __sco_sock_close()
580 err = bt_sock_wait_state(sk, BT_CONNECTED, in sco_sock_connect()
718 if (sk->sk_state == BT_CONNECTED) in sco_sock_sendmsg()
875 if (sk->sk_state != BT_CONNECTED && in sco_sock_getsockopt_old()
893 if (sk->sk_state != BT_CONNECTED && in sco_sock_getsockopt_old()
1032 sk->sk_state = BT_CONNECTED; in sco_conn_ready()
1070 sk->sk_state = BT_CONNECTED; in sco_conn_ready()
Dhci_event.c1967 (conn->state == BT_CONFIG || conn->state == BT_CONNECTED) && in hci_check_pending_name()
2344 if (conn->state != BT_CONNECTED) in hci_cs_le_start_enc()
2508 conn->state = BT_CONNECTED; in hci_conn_complete_evt()
2804 conn->state = BT_CONNECTED; in hci_auth_complete_evt()
2911 conn->state = BT_CONNECTED; in read_enc_key_size_complete()
2974 if (ev->status && conn->state == BT_CONNECTED) { in hci_encrypt_change_evt()
3045 conn->state = BT_CONNECTED; in hci_encrypt_change_evt()
3119 conn->state = BT_CONNECTED; in hci_remote_features_evt()
3813 if (conn->state == BT_CONNECTED) { in hci_pin_code_request_evt()
4166 conn->state = BT_CONNECTED; in hci_remote_ext_features_evt()
[all …]
Dl2cap_core.c424 if (chan->state == BT_CONNECTED || chan->state == BT_CONFIG) in l2cap_chan_timeout()
739 case BT_CONNECTED: in l2cap_chan_close()
1269 if (chan->state == BT_CONNECTED) in l2cap_chan_ready()
1279 chan->state = BT_CONNECTED; in l2cap_chan_ready()
1418 if (chan->mode == L2CAP_MODE_ERTM && chan->state == BT_CONNECTED) { in l2cap_send_disconn_req()
1918 if (chan->state != BT_CONNECTED) in l2cap_ertm_send()
2494 if (chan->state != BT_CONNECTED) { in l2cap_chan_send()
2513 if (chan->state != BT_CONNECTED) { in l2cap_chan_send()
2545 if (chan->state != BT_CONNECTED) { in l2cap_chan_send()
2573 if (chan->state != BT_CONNECTED) { in l2cap_chan_send()
[all …]
Daf_bluetooth.c234 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue()
441 if (sk->sk_state == BT_CONNECTED || in bt_accept_poll()
Dhci_conn.c241 (conn->state == BT_CONNECTED || conn->state == BT_CONFIG)) { in hci_disconnect()
1090 if (conn->state != BT_CONNECTED) in is_connected()
1245 if (acl->state == BT_CONNECTED && in hci_connect_sco()
1650 chan->state = BT_CONNECTED; in hci_chan_create()
Damp.c574 if (hcon->state != BT_CONNECTED) { in amp_disconnect_logical_link()
Da2mp.c798 chan->state = BT_CONNECTED; in a2mp_chan_open()
Dhci_request.c1988 if (conn->state != BT_CONNECTED && conn->state != BT_CONFIG) in disconnected_whitelist_entries()
2198 case BT_CONNECTED: in __hci_abort_conn()
Dhci_core.c3811 if (c->state != BT_CONNECTED && c->state != BT_CONFIG) in hci_low_sent()
3895 if (conn->state != BT_CONNECTED && conn->state != BT_CONFIG) in hci_chan_sent()
3974 if (conn->state != BT_CONNECTED && conn->state != BT_CONFIG) in hci_prio_recalculate()
Dmgmt.c2959 if ((conn->state == BT_CONNECTED || conn->state == BT_CONFIG) && in pair_device()
5291 if (!conn || conn->state != BT_CONNECTED) { in get_conn_info()
5479 if (!conn || conn->state != BT_CONNECTED) { in get_clock_info()
5532 if (conn->state != BT_CONNECTED) in is_connected()
/Linux-v5.4/net/bluetooth/cmtp/
Dcapi.c207 application->state = BT_CONNECTED; in cmtp_recv_interopmsg()
244 session->state = BT_CONNECTED; in cmtp_recv_interopmsg()
429 if (application->state == BT_CONNECTED) in cmtp_register_appl()
485 if ((!application) || (application->state != BT_CONNECTED)) { in cmtp_send_message()
Dcore.c293 if (sk->sk_state != BT_CONNECTED) in cmtp_session()
351 if (s && s->state == BT_CONNECTED) { in cmtp_add_connection()
Dsock.c89 if (nsock->sk->sk_state != BT_CONNECTED) { in do_cmtp_sock_ioctl()
/Linux-v5.4/net/bluetooth/rfcomm/
Dcore.c413 if (s->state == BT_CONNECTED) { in __rfcomm_dlc_open()
474 case BT_CONNECTED: in __rfcomm_dlc_close()
560 if (d->state != BT_CONNECTED) in rfcomm_dlc_send()
585 if (d->state == BT_CONNECTED && in rfcomm_dlc_send_noerror()
1184 d->state = BT_CONNECTED; in rfcomm_recv_ua()
1207 s->state = BT_CONNECTED; in rfcomm_recv_ua()
1295 d->state = BT_CONNECTED; in rfcomm_dlc_accept()
1335 s->state = BT_CONNECTED; in rfcomm_recv_sabm()
1688 if (skb->len && d->state == BT_CONNECTED) { in rfcomm_recv_data()
1890 if ((d->state == BT_CONNECTED || d->state == BT_DISCONN) && in rfcomm_process_dlcs()
[all …]
Dsock.c90 if (d->state == BT_CONNECTED) in rfcomm_sk_state_change()
222 case BT_CONNECTED: in __rfcomm_sock_close()
419 err = bt_sock_wait_state(sk, BT_CONNECTED, in rfcomm_sock_connect()
544 if (peer && sk->sk_state != BT_CONNECTED && in rfcomm_sock_getname()
806 if (sk->sk_state != BT_CONNECTED && in rfcomm_sock_getsockopt_old()
Dtty.c127 return (dev->dlc->state == BT_CONNECTED); in rfcomm_dev_carrier_raised()
406 if (sk->sk_state != BT_CONNECTED) in __rfcomm_create_dev()
635 if (dlc->state == BT_CONNECTED) { in rfcomm_dev_state_change()
/Linux-v5.4/include/net/bluetooth/
Dbluetooth.h155 BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */ enumerator
170 case BT_CONNECTED: in state_to_string()
Dhci_core.h993 if (conn->state == BT_CONNECTED) { in hci_conn_drop()
/Linux-v5.4/net/bluetooth/bnep/
Dcore.c503 if (sk->sk_state != BT_CONNECTED) in bnep_session()
586 if (ss && ss->state == BT_CONNECTED) { in bnep_add_connection()
602 s->state = BT_CONNECTED; in bnep_add_connection()
Dsock.c76 if (nsock->sk->sk_state != BT_CONNECTED) { in do_bnep_sock_ioctl()
/Linux-v5.4/net/bluetooth/hidp/
Dcore.c79 ci->state = BT_CONNECTED; in hidp_copy_session()
1208 if (ctrl_sk->sk_state != BT_CONNECTED || in hidp_session_run()
1209 intr_sk->sk_state != BT_CONNECTED) in hidp_session_run()
1332 if (ctrl->sk.sk_state != BT_CONNECTED || in hidp_verify_sockets()
1333 intr->sk.sk_state != BT_CONNECTED) in hidp_verify_sockets()