/packages/modules/Bluetooth/system/stack/gatt/ |
D | gatt_main.cc | 79 static void gatt_send_conn_cback(tGATT_TCB* p_tcb); 219 tGATT_TCB* p_tcb, tBT_TRANSPORT transport, in gatt_connect() argument 221 if (gatt_get_ch_state(p_tcb) != GATT_CH_OPEN) in gatt_connect() 222 gatt_set_ch_state(p_tcb, GATT_CH_CONN); in gatt_connect() 225 p_tcb->att_lcid = in gatt_connect() 227 return p_tcb->att_lcid != 0; in gatt_connect() 231 if (gatt_get_ch_state(p_tcb) == GATT_CH_OPEN) { in gatt_connect() 232 gatt_update_app_use_link_flag(gatt_if, p_tcb, true, true); in gatt_connect() 236 p_tcb->att_lcid = L2CAP_ATT_CID; in gatt_connect() 240 bool gatt_connect(const RawAddress& rem_bda, tGATT_TCB* p_tcb, in gatt_connect() argument [all …]
|
D | gatt_auth.cc | 54 uint16_t payload_size = p_clcb->p_tcb->payload_size; in gatt_sign_data() 59 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_OK); in gatt_sign_data() 76 p_clcb->p_tcb->peer_bda, p_data, in gatt_sign_data() 80 gatt_set_ch_state(p_clcb->p_tcb, GATT_CH_OPEN); in gatt_sign_data() 137 if (p_clcb && p_clcb->p_tcb && p_clcb->p_tcb->pending_enc_clcb.empty()) { in gatt_sec_check_complete() 138 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_NONE); in gatt_sec_check_complete() 161 tGATT_TCB* p_tcb = gatt_find_tcb_by_addr(bd_addr, transport); in gatt_enc_cmpl_cback() local 162 if (!p_tcb) { in gatt_enc_cmpl_cback() 167 if (gatt_get_sec_act(p_tcb) == GATT_SEC_ENC_PENDING) return; in gatt_enc_cmpl_cback() 169 if (p_tcb->pending_enc_clcb.empty()) { in gatt_enc_cmpl_cback() [all …]
|
D | gatt_utils.cc | 127 void gatt_free_pending_ind(tGATT_TCB* p_tcb) { in gatt_free_pending_ind() argument 130 if (p_tcb->pending_ind_q == NULL) return; in gatt_free_pending_ind() 133 while (!fixed_queue_is_empty(p_tcb->pending_ind_q)) in gatt_free_pending_ind() 134 osi_free(fixed_queue_try_dequeue(p_tcb->pending_ind_q)); in gatt_free_pending_ind() 135 fixed_queue_free(p_tcb->pending_ind_q, NULL); in gatt_free_pending_ind() 136 p_tcb->pending_ind_q = NULL; in gatt_free_pending_ind() 197 void gatt_add_pending_ind(tGATT_TCB* p_tcb, tGATT_VALUE* p_ind) { in gatt_add_pending_ind() argument 202 fixed_queue_enqueue(p_tcb->pending_ind_q, p_buf); in gatt_add_pending_ind() 316 bool gatt_is_srv_chg_ind_pending(tGATT_TCB* p_tcb) { in gatt_is_srv_chg_ind_pending() argument 317 log::verbose("is_queue_empty={}", fixed_queue_is_empty(p_tcb->pending_ind_q)); in gatt_is_srv_chg_ind_pending() [all …]
|
D | gatt_api.cc | 451 tGATT_TCB* p_tcb = gatt_get_tcb_by_idx(tcb_idx); in GATTS_HandleValueIndication() local 454 if ((p_reg == NULL) || (p_tcb == NULL)) { in GATTS_HandleValueIndication() 471 if (!gatt_tcb_get_cid_available_for_indication(p_tcb, p_reg->eatt_support, in GATTS_HandleValueIndication() 474 gatt_add_pending_ind(p_tcb, &indication); in GATTS_HandleValueIndication() 481 uint16_t payload_size = gatt_tcb_get_payload_size(*p_tcb, cid); in GATTS_HandleValueIndication() 482 BT_HDR* p_msg = attp_build_sr_msg(*p_tcb, GATT_HANDLE_VALUE_IND, &gatt_sr_msg, in GATTS_HandleValueIndication() 486 tGATT_STATUS cmd_status = attp_send_sr_msg(*p_tcb, cid, p_msg); in GATTS_HandleValueIndication() 489 gatt_start_conf_timer(p_tcb, cid); in GATTS_HandleValueIndication() 496 tGATT_TCB* p_tcb, std::vector<tGATT_VALUE> gatt_notif_vector) { in GATTS_HandleMultipleValueNotification() argument 499 uint16_t cid = gatt_tcb_get_att_cid(*p_tcb, true /* eatt support */); in GATTS_HandleMultipleValueNotification() [all …]
|
D | gatt_int.h | 356 tGATT_TCB* p_tcb; /* associated TCB of this CLCB */ member 467 bool gatt_disconnect(tGATT_TCB* p_tcb); 473 bool gatt_connect(const RawAddress& rem_bda, tGATT_TCB* p_tcb, 476 bool gatt_connect(const RawAddress& rem_bda, tGATT_TCB* p_tcb, 479 void gatt_data_process(tGATT_TCB& p_tcb, uint16_t cid, BT_HDR* p_buf); 480 void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb, 484 void gatt_set_ch_state(tGATT_TCB* p_tcb, tGATT_CH_STATE ch_state); 485 tGATT_CH_STATE gatt_get_ch_state(tGATT_TCB* p_tcb); 534 void gatt_start_conf_timer(tGATT_TCB* p_tcb, uint16_t cid); 540 void gatt_stop_ind_ack_timer(tGATT_TCB* p_tcb, uint16_t cid); [all …]
|
D | gatt_cl.cc | 135 tGATT_STATUS st = attp_send_cl_msg(*p_clcb->p_tcb, p_clcb, op_code, &cl_req); in gatt_act_discovery() 152 tGATT_TCB& tcb = *p_clcb->p_tcb; in gatt_act_read() 228 tGATT_TCB& tcb = *p_clcb->p_tcb; in gatt_act_write()
|
/packages/modules/Bluetooth/system/bta/gatt/ |
D | bta_gattc_utils.cc | 331 tBTA_GATTC_SERV *p_tcb = &bta_gattc_cb.known_server[0], *p_recycle = NULL; in bta_gattc_srcb_alloc() local 335 for (i = 0; i < ble_acceptlist_size(); i++, p_tcb++) { in bta_gattc_srcb_alloc() 336 if (!p_tcb->in_use) { in bta_gattc_srcb_alloc() 339 } else if (!p_tcb->connected) { in bta_gattc_srcb_alloc() 340 p_recycle = p_tcb; in bta_gattc_srcb_alloc() 346 p_tcb = NULL; in bta_gattc_srcb_alloc() 348 p_tcb = p_recycle; in bta_gattc_srcb_alloc() 350 if (p_tcb != NULL) { in bta_gattc_srcb_alloc() 352 p_tcb->gatt_database.Clear(); in bta_gattc_srcb_alloc() 353 p_tcb->pending_discovery.Clear(); in bta_gattc_srcb_alloc() [all …]
|
/packages/modules/Bluetooth/system/stack/test/gatt/ |
D | mock_gatt_utils_ref.cc | 56 void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb, in gatt_update_app_use_link_flag() argument 59 bool gatt_disconnect(tGATT_TCB* p_tcb) { return false; } in gatt_disconnect() argument 60 tGATT_CH_STATE gatt_get_ch_state(tGATT_TCB* p_tcb) { return GATT_CH_CLOSE; } in gatt_get_ch_state() argument 61 void gatt_set_ch_state(tGATT_TCB* p_tcb, tGATT_CH_STATE ch_state) {} in gatt_set_ch_state() argument
|
D | gatt_sr_test.cc | 82 bool gatt_disconnect(tGATT_TCB* p_tcb) { return false; } in gatt_disconnect() argument 83 tGATT_CH_STATE gatt_get_ch_state(tGATT_TCB* p_tcb) { return GATT_CH_CLOSE; } in gatt_get_ch_state() argument 91 void gatt_set_ch_state(tGATT_TCB* p_tcb, tGATT_CH_STATE ch_state) {} in gatt_set_ch_state() argument 118 void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb, in gatt_update_app_use_link_flag() argument 135 void gatt_sr_init_cl_status(tGATT_TCB& p_tcb) {} in gatt_sr_init_cl_status() argument 136 void gatt_sr_update_cl_status(tGATT_TCB& p_tcb, bool chg_aware) { in gatt_sr_update_cl_status() argument 137 p_tcb.is_robust_cache_change_aware = chg_aware; in gatt_sr_update_cl_status()
|
/packages/modules/Bluetooth/system/stack/arbiter/ |
D | acl_arbiter.cc | 108 tGATT_TCB* p_tcb = gatt_get_tcb_by_idx(tcb_idx); in SendPacketToPeer() local 109 if (p_tcb != nullptr) { in SendPacketToPeer() 119 if (L2CA_SendFixedChnlData(L2CAP_ATT_CID, p_tcb->peer_bda, p_buf) != in SendPacketToPeer() 122 p_tcb->peer_bda, L2CAP_ATT_CID, p_buf->len); in SendPacketToPeer()
|
/packages/modules/Bluetooth/system/stack/eatt/ |
D | eatt_impl.h | 739 tGATT_TCB* p_tcb = gatt_find_tcb_by_addr(channel->bda_, BT_TRANSPORT_LE); in eatt_ind_ack_timeout() local 742 attp_send_cl_confirmation_msg(*p_tcb, channel->cid_); in eatt_ind_ack_timeout() 747 tGATT_TCB* p_tcb = gatt_find_tcb_by_addr(channel->bda_, BT_TRANSPORT_LE); in eatt_ind_confirmation_timeout() local 750 gatt_disconnect(p_tcb); in eatt_ind_confirmation_timeout()
|