Home
last modified time | relevance | path

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

/linux-6.1.9/net/bluetooth/
Dl2cap_sock.c279 err = bt_sock_wait_state(sk, BT_CONNECTED, in l2cap_sock_connect()
411 if (peer && sk->sk_state != BT_CONNECTED && in l2cap_sock_getname()
545 if (sk->sk_state != BT_CONNECTED && in l2cap_sock_getsockopt_old()
607 if (sk->sk_state == BT_CONNECTED) in l2cap_sock_getsockopt()
664 if (sk->sk_state != BT_CONNECTED) { in l2cap_sock_getsockopt()
684 if (sk->sk_state != BT_CONNECTED) { in l2cap_sock_getsockopt()
761 if (sk->sk_state == BT_CONNECTED) { in l2cap_sock_setsockopt_old()
964 sk->sk_state == BT_CONNECTED) { in l2cap_sock_setsockopt()
1061 if (sk->sk_state == BT_CONNECTED && in l2cap_sock_setsockopt()
1086 sk->sk_state == BT_CONNECTED) { in l2cap_sock_setsockopt()
[all …]
Dsco.c273 if (hcon->state == BT_CONNECTED) { in sco_connect()
275 sk->sk_state = BT_CONNECTED; in sco_connect()
313 if (sk->sk_state != BT_CONNECTED) in sco_recv_frame()
415 case BT_CONNECTED: in __sco_sock_close()
604 err = bt_sock_wait_state(sk, BT_CONNECTED, in sco_sock_connect()
747 if (sk->sk_state == BT_CONNECTED) in sco_sock_sendmsg()
988 if (sk->sk_state != BT_CONNECTED && in sco_sock_getsockopt_old()
1006 if (sk->sk_state != BT_CONNECTED && in sco_sock_getsockopt_old()
1081 if (sk->sk_state != BT_CONNECTED) { in sco_sock_getsockopt()
1101 if (sk->sk_state != BT_CONNECTED) { in sco_sock_getsockopt()
[all …]
Diso.c300 if (hcon->state == BT_CONNECTED) { in iso_connect_bis()
302 sk->sk_state = BT_CONNECTED; in iso_connect_bis()
382 if (hcon->state == BT_CONNECTED) { in iso_connect_cis()
384 sk->sk_state = BT_CONNECTED; in iso_connect_cis()
404 if (sk->sk_state == BT_CONNECTED || sk->sk_state == BT_CONNECT2) in iso_sock_get_qos()
430 if (sk->sk_state == BT_CONNECTED) in iso_send_frame()
451 if (sk->sk_state != BT_CONNECTED) in iso_recv_frame()
603 case BT_CONNECTED: in __iso_sock_close()
863 err = bt_sock_wait_state(sk, BT_CONNECTED, in iso_sock_connect()
1052 if (sk->sk_state != BT_CONNECTED) in iso_sock_sendmsg()
[all …]
Dhci_conn.c280 (conn->state == BT_CONNECTED || conn->state == BT_CONFIG)) { in hci_disconnect()
808 hci_conn_hash_list_state(hdev, find_bis, ISO_LINK, BT_CONNECTED, d); in terminate_big_sync()
854 hci_conn_hash_list_state(hdev, find_bis, ISO_LINK, BT_CONNECTED, d); in big_terminate_sync()
950 hci_conn_hash_list_state(hdev, find_cis, ISO_LINK, BT_CONNECTED, &d); in cis_cleanup()
1350 if (conn->state != BT_CONNECTED) in is_connected()
1615 if (acl->state == BT_CONNECTED && in hci_connect_sco()
1710 BT_CONNECTED, &data); in hci_le_set_cig_params()
1788 if (cis->state == BT_CONNECTED) in hci_bind_cis()
1890 conn->state == BT_CONNECTED || conn->iso_qos.cig != cig) in hci_create_cis_sync()
1894 if (!conn->link || conn->link->state != BT_CONNECTED || in hci_create_cis_sync()
[all …]
Dl2cap_core.c444 if (chan->state == BT_CONNECTED || chan->state == BT_CONFIG) in l2cap_chan_timeout()
829 case BT_CONNECTED: in l2cap_chan_close()
1368 if (chan->state == BT_CONNECTED) in l2cap_chan_ready()
1383 chan->state = BT_CONNECTED; in l2cap_chan_ready()
1611 if (chan->mode == L2CAP_MODE_ERTM && chan->state == BT_CONNECTED) { in l2cap_send_disconn_req()
2113 if (chan->state != BT_CONNECTED) in l2cap_ertm_send()
2689 if (chan->state != BT_CONNECTED) { in l2cap_chan_send()
2709 if (chan->state != BT_CONNECTED) { in l2cap_chan_send()
2741 if (chan->state != BT_CONNECTED) { in l2cap_chan_send()
2769 if (chan->state != BT_CONNECTED) { in l2cap_chan_send()
[all …]
Daf_bluetooth.c236 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue()
445 if (sk->sk_state == BT_CONNECTED || in bt_accept_poll()
Dhci_event.c2498 (conn->state == BT_CONFIG || conn->state == BT_CONNECTED) && in hci_check_pending_name()
2988 if (conn->state != BT_CONNECTED) in hci_cs_le_start_enc()
3207 conn->state = BT_CONNECTED; in hci_conn_complete_evt()
3511 conn->state = BT_CONNECTED; in hci_auth_complete_evt()
3631 if (ev->status && conn->state == BT_CONNECTED) { in hci_encrypt_change_evt()
3757 conn->state = BT_CONNECTED; in hci_remote_features_evt()
3832 conn->state == BT_CONNECTED) in hci_cc_le_set_cig_params()
3841 if (conn->link && conn->link->state == BT_CONNECTED) { in hci_cc_le_set_cig_params()
4558 if (conn->state == BT_CONNECTED) { in hci_pin_code_request_evt()
4936 conn->state = BT_CONNECTED; in hci_remote_ext_features_evt()
[all …]
Damp.c577 if (hcon->state != BT_CONNECTED) { in amp_disconnect_logical_link()
Da2mp.c813 chan->state = BT_CONNECTED; in a2mp_chan_open()
Dhci_core.c3334 if (c->state != BT_CONNECTED && c->state != BT_CONFIG) in hci_low_sent()
3396 if (conn->state != BT_CONNECTED && conn->state != BT_CONFIG) in hci_chan_sent()
3456 if (conn->state != BT_CONNECTED && conn->state != BT_CONFIG) in hci_prio_recalculate()
Dmgmt.c3550 if ((conn->state == BT_CONNECTED || conn->state == BT_CONFIG) && in pair_device()
7308 if (!conn || conn->state != BT_CONNECTED) in get_conn_info_sync()
7366 if (!conn || conn->state != BT_CONNECTED) { in get_conn_info()
7466 if (!conn || conn->state != BT_CONNECTED) in get_clock_info_sync()
7508 if (!conn || conn->state != BT_CONNECTED) { in get_clock_info()
7551 if (conn->state != BT_CONNECTED) in is_connected()
Dhci_sync.c2989 if (conn->state != BT_CONNECTED && conn->state != BT_CONFIG) in disconnected_accept_list_entries()
5124 case BT_CONNECTED: in hci_abort_conn_sync()
/linux-6.1.9/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-6.1.9/net/bluetooth/rfcomm/
Dcore.c409 if (s->state == BT_CONNECTED) { in __rfcomm_dlc_open()
470 case BT_CONNECTED: in __rfcomm_dlc_close()
573 if (d->state != BT_CONNECTED) in rfcomm_dlc_send()
617 if (d->state == BT_CONNECTED && in rfcomm_dlc_send_noerror()
1217 d->state = BT_CONNECTED; in rfcomm_recv_ua()
1240 s->state = BT_CONNECTED; in rfcomm_recv_ua()
1328 d->state = BT_CONNECTED; in rfcomm_dlc_accept()
1368 s->state = BT_CONNECTED; in rfcomm_recv_sabm()
1721 if (skb->len && d->state == BT_CONNECTED) { in rfcomm_recv_data()
1923 if ((d->state == BT_CONNECTED || d->state == BT_DISCONN) && in rfcomm_process_dlcs()
[all …]
Dsock.c88 if (d->state == BT_CONNECTED) in rfcomm_sk_state_change()
219 case BT_CONNECTED: in __rfcomm_sock_close()
420 err = bt_sock_wait_state(sk, BT_CONNECTED, in rfcomm_sock_connect()
546 if (peer && sk->sk_state != BT_CONNECTED && in rfcomm_sock_getname()
784 if (sk->sk_state != BT_CONNECTED && in rfcomm_sock_getsockopt_old()
Dtty.c126 return (dev->dlc->state == BT_CONNECTED); in rfcomm_dev_carrier_raised()
407 if (sk->sk_state != BT_CONNECTED) in __rfcomm_create_dev()
634 if (dlc->state == BT_CONNECTED) { in rfcomm_dev_state_change()
/linux-6.1.9/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.c77 if (nsock->sk->sk_state != BT_CONNECTED) { in do_bnep_sock_ioctl()
/linux-6.1.9/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()
/linux-6.1.9/include/net/bluetooth/
Dbluetooth.h270 BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */ enumerator
285 case BT_CONNECTED: in state_to_string()
Dhci_core.h1397 if (conn->state == BT_CONNECTED) { in hci_conn_drop()
1828 conn->state = BT_CONNECTED; in hci_encrypt_cfm()