Home
last modified time | relevance | path

Searched refs:link_state (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_link.cc88 link_state_text(p_lcb->link_state)); in l2c_link_hci_conn_comp()
89 p_lcb->link_state = LST_CONNECTING; in l2c_link_hci_conn_comp()
92 if ((p_lcb->link_state == LST_CONNECTED) && in l2c_link_hci_conn_comp()
96 } else if (p_lcb->link_state != LST_CONNECTING) { in l2c_link_hci_conn_comp()
100 link_state_text(p_lcb->link_state), hci_error_code_text(status), in l2c_link_hci_conn_comp()
114 p_lcb->link_state = LST_CONNECTED; in l2c_link_hci_conn_comp()
144 p_lcb->link_state = LST_CONNECT_HOLDING; in l2c_link_hci_conn_comp()
148 p_lcb->link_state = LST_DISCONNECTING; in l2c_link_hci_conn_comp()
171 p_lcb->link_state = LST_CONNECTING; in l2c_link_hci_conn_comp()
329 p_lcb->link_state = LST_DISCONNECTING; in l2c_link_hci_disc_comp()
[all …]
Dl2c_api.cc207 if ((p_ccb == NULL) || (p_lcb->link_state == LST_DISCONNECTING)) { in L2CA_Deregister()
359 if (p_lcb->link_state == LST_CONNECTED) { in L2CA_ConnectReq()
361 } else if (p_lcb->link_state == LST_DISCONNECTING) { in L2CA_ConnectReq()
480 if ((p_ccb == NULL) || (p_lcb->link_state == LST_DISCONNECTING)) continue; in L2CA_DeregisterLECoc()
563 if (p_lcb->link_state == LST_CONNECTED) { in L2CA_ConnectLECocReq()
580 else if (p_lcb->link_state == LST_DISCONNECTING) { in L2CA_ConnectLECocReq()
767 if (p_lcb->link_state != LST_CONNECTED) { in L2CA_ConnectCreditBasedReq()
768 log::warn("incorrect link state: {}", p_lcb->link_state); in L2CA_ConnectCreditBasedReq()
985 if ((p_lcb) && (p_lcb->in_use) && (p_lcb->link_state == LST_CONNECTED)) { in L2CA_SetIdleTimeoutByBdAddr()
996 if ((p_lcb->in_use) && (p_lcb->link_state == LST_CONNECTED)) { in L2CA_SetIdleTimeoutByBdAddr()
[all …]
Dl2c_utils.cc77 p_lcb->link_state = LST_DISCONNECTED; in l2cu_allocate_lcb()
188 if ((p_lcb->link_state == LST_CONNECTED) || in l2cu_release_lcb()
189 (p_lcb->link_state == LST_DISCONNECTING)) in l2cu_release_lcb()
1508 switch (p_lcb->link_state) { in l2cu_start_post_bond_timer()
1519 p_lcb->link_state = LST_DISCONNECTING; in l2cu_start_post_bond_timer()
1530 link_state_text(p_lcb->link_state)); in l2cu_start_post_bond_timer()
1609 if (p_lcb->link_state == LST_CONNECTED) { in l2cu_release_ccb()
1622 } else if (p_lcb->link_state == LST_CONNECTING) { in l2cu_release_ccb()
2100 p_lcb->link_state = LST_CONNECTING_WAIT_SWITCH; in l2cu_create_conn_br_edr()
2112 p_lcb->link_state = LST_CONNECTING; in l2cu_create_conn_br_edr()
[all …]
Dl2c_ble.cc108 p_lcb->link_state != LST_CONNECTED) { in l2cble_notify_le_connection()
113 p_lcb->link_state = LST_CONNECTED; in l2cble_notify_le_connection()
148 p_lcb->link_state = LST_CONNECTING; in l2cble_conn_comp()
149 } else if (role == HCI_ROLE_CENTRAL && p_lcb->link_state != LST_CONNECTING) { in l2cble_conn_comp()
194 p_lcb->link_state = LST_CONNECTED; in l2cble_conn_comp()
919 p_lcb->link_state = LST_CONNECTING; in l2cble_create_conn()
1058 if ((p_lcb->link_state == LST_CONNECTED) && in l2c_ble_link_adjust_allocation()
Dl2c_main.cc112 p_lcb->link_state != LST_DISCONNECTING) { in l2c_rcv_acl_data()
164 if (!p_lcb || p_lcb->link_state == LST_DISCONNECTING || in l2c_rcv_acl_data()
Dl2c_int.h419 tL2C_LINK_STATE link_state; member