/system/bt/stack/gatt/ |
gatt_auth.c | 48 UINT16 payload_size = p_clcb->p_tcb->payload_size; 53 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_OK); 67 if (BTM_BleDataSignature(p_clcb->p_tcb->peer_bda, 72 gatt_set_ch_state(p_clcb->p_tcb, GATT_CH_OPEN); 93 void gatt_verify_signature(tGATT_TCB *p_tcb, BT_HDR *p_buf) 109 if (BTM_BleVerifySignature(p_tcb->peer_bda, p_orig, cmd_len, counter, p)) 112 gatt_server_handle_client_req (p_tcb, op_code, (UINT16)(p_buf->len - 1), p_orig); 133 if (p_clcb && p_clcb->p_tcb && 134 fixed_queue_is_empty(p_clcb->p_tcb->pending_enc_clcb)) { 135 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_NONE) 162 tGATT_TCB *p_tcb; local 232 tGATT_TCB *p_tcb; local 318 tGATT_TCB *p_tcb = p_clcb->p_tcb; local 478 tGATT_TCB *p_tcb = p_clcb->p_tcb; local [all...] |
gatt_cl.c | 49 void gatt_send_prepare_write(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb); 117 st = attp_send_cl_msg(p_clcb->p_tcb, p_clcb->clcb_idx, op_code, &cl_req); 139 tGATT_TCB *p_tcb = p_clcb->p_tcb; local 208 rt = attp_send_cl_msg(p_tcb, p_clcb->clcb_idx, op_code, &msg); 227 tGATT_TCB *p_tcb = p_clcb->p_tcb; local 238 rt = gatt_send_write_msg(p_tcb, 248 if (p_attr->len <= (p_tcb->payload_size - GATT_HDR_SIZE)) 252 rt = gatt_send_write_msg(p_tcb, [all...] |
gatt_main.c | 60 static void gatt_send_conn_cback (tGATT_TCB *p_tcb); 196 BOOLEAN gatt_connect (BD_ADDR rem_bda, tGATT_TCB *p_tcb, tBT_TRANSPORT transport) 200 if (gatt_get_ch_state(p_tcb) != GATT_CH_OPEN) 201 gatt_set_ch_state(p_tcb, GATT_CH_CONN); 205 p_tcb->att_lcid = L2CAP_ATT_CID; 210 if ((p_tcb->att_lcid = L2CA_ConnectReq(BT_PSM_ATT, rem_bda)) != 0) 223 ** Parameter p_tcb: pointer to the TCB to disconnect. 229 BOOLEAN gatt_disconnect (tGATT_TCB *p_tcb) 236 if (p_tcb != NULL) 239 if ( (ch_state = gatt_get_ch_state(p_tcb)) != GATT_CH_CLOSING 356 tGATT_TCB *p_tcb; local 423 tGATT_TCB *p_tcb = gatt_find_tcb_by_addr(bd_addr, transport); local 540 tGATT_TCB *p_tcb = gatt_find_tcb_by_addr(remote_bda, BT_TRANSPORT_LE); local 566 tGATT_TCB *p_tcb; local 602 tGATT_TCB *p_tcb = gatt_find_tcb_by_addr(bd_addr, BT_TRANSPORT_BR_EDR); local 654 tGATT_TCB *p_tcb; local 706 tGATT_TCB *p_tcb; local 762 tGATT_TCB *p_tcb; local 818 tGATT_TCB *p_tcb; local 855 tGATT_TCB *p_tcb; local 890 tGATT_TCB *p_tcb; local 914 tGATT_TCB *p_tcb = gatt_find_tcb_by_cid(lcid); local 1171 tGATT_TCB *p_tcb; local [all...] |
gatt_api.c | 605 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local 609 if ( (p_reg == NULL) || (p_tcb == NULL)) 624 if (GATT_HANDLE_IS_VALID(p_tcb->indicate_handle)) 627 if ((p_buf = gatt_add_pending_ind(p_tcb, &indication)) !=NULL) 639 if ( (p_msg = attp_build_sr_msg (p_tcb, GATT_HANDLE_VALUE_IND, (tGATT_SR_MSG *)&indication)) != NULL) 641 cmd_status = attp_send_sr_msg (p_tcb, p_msg); 645 p_tcb->indicate_handle = indication.handle; 646 gatt_start_conf_timer(p_tcb); 676 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local 680 if ( (p_reg == NULL) || (p_tcb == NULL) 725 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local 777 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local 832 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local 900 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local 989 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local 1053 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local 1100 tGATT_TCB *p_tcb=gatt_get_tcb_by_idx(GATT_GET_TCB_IDX(conn_id)); local 1151 tGATT_TCB *p_tcb; local 1242 tGATT_TCB *p_tcb; local 1322 tGATT_TCB *p_tcb; local 1407 tGATT_TCB *p_tcb; local 1486 tGATT_TCB *p_tcb=NULL; local 1524 tGATT_TCB *p_tcb= gatt_get_tcb_by_idx(tcb_idx); local 1559 tGATT_TCB *p_tcb= gatt_find_tcb_by_addr(bd_addr, transport); local [all...] |
gatt_utils.c | 93 void gatt_free_pending_ind(tGATT_TCB *p_tcb) 97 if (p_tcb->pending_ind_q == NULL) 101 while (!fixed_queue_is_empty(p_tcb->pending_ind_q)) 102 osi_free(fixed_queue_try_dequeue(p_tcb->pending_ind_q)); 103 fixed_queue_free(p_tcb->pending_ind_q, NULL); 104 p_tcb->pending_ind_q = NULL; 116 void gatt_free_pending_enc_queue(tGATT_TCB *p_tcb) 120 if (p_tcb->pending_enc_clcb == NULL) 124 while (!fixed_queue_is_empty(p_tcb->pending_enc_clcb)) 125 osi_free(fixed_queue_try_dequeue(p_tcb->pending_enc_clcb)) 891 tGATT_TCB *p_tcb = NULL; local 910 tGATT_TCB *p_tcb = NULL; local 954 tGATT_TCB *p_tcb = NULL; local 1303 tGATT_TCB *p_tcb = (tGATT_TCB *)data; local 1320 tGATT_TCB *p_tcb = (tGATT_TCB *)data; local 1678 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local 1731 tGATT_TCB *p_tcb = NULL; local 2006 tGATT_TCB *p_tcb=NULL; local 2252 tGATT_TCB *p_tcb = NULL; local 2533 tGATT_TCB *p_tcb = gatt_find_tcb_by_addr(bd_addr, BT_TRANSPORT_LE); local 2755 tGATT_TCB *p_tcb = gatt_find_tcb_by_addr(bd_addr, BT_TRANSPORT_LE); local [all...] |
gatt_int.h | 395 tGATT_TCB *p_tcb; /* associated TCB of this CLCB */ member in struct:__anon74039 534 extern BOOLEAN gatt_disconnect (tGATT_TCB *p_tcb); 536 extern BOOLEAN gatt_connect (BD_ADDR rem_bda, tGATT_TCB *p_tcb, tBT_TRANSPORT transport); 537 extern void gatt_data_process (tGATT_TCB *p_tcb, BT_HDR *p_buf); 538 extern void gatt_update_app_use_link_flag ( tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add, BOOLEAN check_acl_link); 541 extern void gatt_set_ch_state(tGATT_TCB *p_tcb, tGATT_CH_STATE ch_state); 542 extern tGATT_CH_STATE gatt_get_ch_state(tGATT_TCB *p_tcb); 554 extern tGATT_STATUS attp_send_cl_msg (tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, tGATT_CL_MSG *p_msg); 555 extern BT_HDR *attp_build_sr_msg(tGATT_TCB *p_tcb, UINT8 op_code, tGATT_SR_MSG *p_msg); 556 extern tGATT_STATUS attp_send_sr_msg (tGATT_TCB *p_tcb, BT_HDR *p_msg) [all...] |
/system/bt/bta/gatt/ |
bta_gattc_utils.c | 386 tBTA_GATTC_SERV *p_tcb = &bta_gattc_cb.known_server[0], local 391 for (i = 0; i < BTA_GATTC_KNOWN_SR_MAX; i ++, p_tcb ++) 393 if (!p_tcb->in_use) 398 else if (!p_tcb->connected) 400 p_recycle = p_tcb; 406 p_tcb = NULL; 408 p_tcb = p_recycle; 410 if (p_tcb != NULL) 412 if (p_tcb->p_srvc_cache != NULL) 413 list_free(p_tcb->p_srvc_cache) [all...] |