/external/bluetooth/bluedroid/stack/gatt/ |
gatt_cl.c | 47 void gatt_send_prepare_write(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb); 79 void gatt_act_discovery(tGATT_CLCB *p_clcb) 81 UINT8 op_code = disc_type_to_att_opcode[p_clcb->op_subtype]; 85 if (p_clcb->s_handle <= p_clcb->e_handle && p_clcb->s_handle != 0) 89 cl_req.browse.s_handle = p_clcb->s_handle; 90 cl_req.browse.e_handle = p_clcb->e_handle; 92 if (disc_type_to_uuid[p_clcb->op_subtype] != 0) 95 cl_req.browse.uuid.uu.uuid16 = disc_type_to_uuid[p_clcb->op_subtype] 1083 tGATT_CLCB *p_clcb = NULL; local 1139 tGATT_CLCB *p_clcb = NULL; local [all...] |
gatt_attr.c | 67 tGATT_PROFILE_CLCB *p_clcb = NULL; local 69 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) 71 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) 73 return p_clcb->conn_id; 92 tGATT_PROFILE_CLCB *p_clcb = NULL; local 94 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++ 117 tGATT_PROFILE_CLCB *p_clcb = NULL; local 144 tGATT_PROFILE_CLCB *p_clcb = NULL; local [all...] |
gatt_auth.c | 43 static BOOLEAN gatt_sign_data (tGATT_CLCB *p_clcb) 45 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; 47 UINT16 payload_size = p_clcb->p_tcb->payload_size; 52 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_OK); 68 if (BTM_BleDataSignature(p_clcb->p_tcb->peer_bda, 74 gatt_set_ch_state(p_clcb->p_tcb, GATT_CH_OPEN); 75 gatt_act_write(p_clcb, GATT_SEC_SIGN_DATA); 79 gatt_end_operation(p_clcb, GATT_INTERNAL_ERROR, NULL); 132 void gatt_sec_check_complete(BOOLEAN sec_check_ok, tGATT_CLCB *p_clcb, UINT8 sec_act) 134 if (GKI_queue_is_empty(&p_clcb->p_tcb->pending_enc_clcb) [all...] |
gatt_api.c | 774 tGATT_CLCB *p_clcb; local 792 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL) 794 p_clcb->p_tcb->payload_size = mtu; 795 p_clcb->operation = GATTC_OPTYPE_CONFIG; 797 ret = attp_send_cl_msg (p_clcb->p_tcb, p_clcb->clcb_idx, GATT_REQ_MTU, (tGATT_CL_MSG *)&mtu); 820 tGATT_CLCB *p_clcb; local 844 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL ) 852 gatt_clcb_dealloc(p_clcb); 856 p_clcb->operation = GATTC_OPTYPE_DISCOVERY 888 tGATT_CLCB *p_clcb; local 976 tGATT_CLCB *p_clcb; local 1050 tGATT_CLCB *p_clcb; local 1238 tGATT_CLCB *p_clcb; local [all...] |
gatt_utils.c | 1524 tGATT_CLCB *p_clcb = NULL; local 1946 tGATT_CLCB *p_clcb = NULL; local 2101 tGATT_CLCB *p_clcb; local 2640 tGATT_CLCB *p_clcb; local [all...] |
gatt_int.h | 404 tGATT_CLCB *p_clcb; member in struct:__anon858 414 tGATT_CLCB *p_clcb; member in struct:__anon859 566 extern tGATT_PENDING_ENC_CLCB* gatt_add_pending_enc_channel_clcb(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb ); 621 extern void gatt_clcb_dealloc (tGATT_CLCB *p_clcb); 645 extern void gatt_end_operation(tGATT_CLCB *p_clcb, tGATT_STATUS status, void *p_data); 647 extern void gatt_act_discovery(tGATT_CLCB *p_clcb); 648 extern void gatt_act_read(tGATT_CLCB *p_clcb, UINT16 offset); 649 extern void gatt_act_write(tGATT_CLCB *p_clcb, UINT8 sec_act); 656 extern void gatt_send_queue_write_cancel (tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, tGATT_EXEC_FLAG flag); 659 extern BOOLEAN gatt_security_check_start(tGATT_CLCB *p_clcb); [all...] |
/external/bluetooth/bluedroid/stack/gap/ |
gap_ble.c | 86 tGAP_CLCB *p_clcb = NULL; local 88 for (i_clcb = 0, p_clcb= gap_cb.clcb; i_clcb < GAP_MAX_CL; i_clcb++, p_clcb++) 90 if (p_clcb->in_use && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) 92 return p_clcb; 111 tGAP_CLCB *p_clcb = NULL; local 113 for (i_clcb = 0, p_clcb= gap_cb.clcb; i_clcb < GAP_MAX_CL; i_clcb++, p_clcb++) 115 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id 136 tGAP_CLCB *p_clcb = NULL; local 164 tGAP_CLCB *p_clcb = NULL; local 195 tGAP_CLCB *p_clcb; local 614 tGAP_CLCB *p_clcb = gap_find_clcb_by_bd_addr (bda); local 681 tGAP_CLCB *p_clcb = gap_ble_find_clcb_by_conn_id(conn_id); local 784 tGAP_CLCB *p_clcb = gap_find_clcb_by_bd_addr (peer_bda); local 830 tGAP_CLCB *p_clcb = NULL; local 880 tGAP_CLCB *p_clcb = gap_find_clcb_by_bd_addr (peer_bda); local 919 tGAP_CLCB *p_clcb; local [all...] |
/external/bluetooth/bluedroid/stack/srvc/ |
srvc_eng.c | 46 typedef void (*tSRVC_ENG_C_CMPL_ACTION)(tSRVC_CLCB *p_clcb, tGATTC_OPTYPE op, 68 tSRVC_CLCB *p_clcb = NULL; local 70 for (i_clcb = 0, p_clcb= srvc_eng_cb.clcb; i_clcb < SRVC_MAX_APPS; i_clcb++, p_clcb++) 72 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) 74 return p_clcb->conn_id; 93 tSRVC_CLCB *p_clcb = NULL; local 95 for (i_clcb = 0, p_clcb= srvc_eng_cb.clcb; i_clcb < SRVC_MAX_APPS; i_clcb++, p_clcb++ 117 tSRVC_CLCB *p_clcb = NULL; local 141 tSRVC_CLCB *p_clcb = NULL; local 165 tSRVC_CLCB *p_clcb = NULL; local 192 tSRVC_CLCB *p_clcb = NULL; local 317 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); local 375 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_bd_addr(remote_bda); local 398 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); local [all...] |
srvc_dis.c | 173 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); local 179 if (dis_cb.p_read_dis_cback && p_clcb) 181 GATT_TRACE_ERROR1("dis_gatt_c_read_dis_value_cmpl: attr_mask = 0x%04x", p_clcb->dis_value.attr_mask); 184 (*dis_cb.p_read_dis_cback)(p_clcb->bda, &p_clcb->dis_value); 239 void dis_c_cmpl_cback (tSRVC_CLCB *p_clcb, tGATTC_OPTYPE op, 244 UINT16 conn_id = p_clcb->conn_id; 262 p_clcb->dis_value.attr_mask |= DIS_ATTR_SYS_ID_BIT; 264 STREAM_TO_UINT64 (p_clcb->dis_value.system_id, pp); 271 p_clcb->dis_value.attr_mask |= DIS_ATTR_PNP_ID_BIT [all...] |
srvc_dis_int.h | 75 extern void dis_c_cmpl_cback (tSRVC_CLCB *p_clcb, tGATTC_OPTYPE op,
|
srvc_battery.c | 179 void battery_c_cmpl_cback (tSRVC_CLCB *p_clcb, tGATTC_OPTYPE op,
|
/external/bluetooth/bluedroid/bta/gatt/ |
bta_gattc_act.c | 330 tBTA_GATTC_CLCB *p_clcb = NULL; local 337 if ((p_clcb = bta_gattc_find_alloc_clcb(p_msg->api_conn.client_if, 340 bta_gattc_sm_execute(p_clcb, event, p_msg); 375 tBTA_GATTC_CLCB *p_clcb = NULL; local 381 if ((p_clcb = bta_gattc_find_clcb_by_cif(p_msg->api_cancel_conn.client_if, 384 bta_gattc_sm_execute(p_clcb, event, p_msg); 442 void bta_gattc_cancel_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) 447 if ( p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback 536 tBTA_GATTC_CLCB *p_clcb; local 1679 tBTA_GATTC_CLCB *p_clcb = NULL; local 1724 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; local 1870 tBTA_GATTC_CLCB *p_clcb ; local 1951 tBTA_GATTC_CLCB *p_clcb ; local 2010 tBTA_GATTC_CLCB *p_clcb = NULL; local [all...] |
bta_gattc_int.h | 437 extern void bta_gattc_sm_execute(tBTA_GATTC_CLCB *p_clcb, UINT16 event, tBTA_GATTC_DATA *p_data); 449 extern void bta_gattc_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data); 450 extern void bta_gattc_open_fail(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data); 451 extern void bta_gattc_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data); 453 extern void bta_gattc_cancel_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data); 454 extern void bta_gattc_cancel_open_ok(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data); 455 extern void bta_gattc_cancel_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data); 457 extern void bta_gattc_conn(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data); 459 extern void bta_gattc_close(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data); 460 extern void bta_gattc_close_fail(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) [all...] |
bta_gattc_utils.c | 168 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; local 171 for (i = 0; i < BTA_GATTC_CLCB_MAX; i ++, p_clcb ++) 173 if (p_clcb->in_use && 174 p_clcb->p_rcb->client_if == client_if && 175 bdcmp(p_clcb->bda, remote_bda) == 0) 176 return p_clcb; 191 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; local 194 for (i = 0; i < BTA_GATTC_CLCB_MAX; i ++, p_clcb ++) 196 if (p_clcb->in_use && 197 p_clcb->bta_conn_id == conn_id 215 tBTA_GATTC_CLCB *p_clcb = NULL; local 261 tBTA_GATTC_CLCB *p_clcb ; local 363 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local 1035 tBTA_GATTC_CLCB *p_clcb = NULL; local 1068 tBTA_GATTC_CLCB *p_clcb = NULL; local [all...] |
bta_gattc_main.c | 76 typedef void (*tBTA_GATTC_ACTION)(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data); 288 void bta_gattc_sm_execute(tBTA_GATTC_CLCB *p_clcb, UINT16 event, tBTA_GATTC_DATA *p_data) 294 tBTA_GATTC_STATE in_state = p_clcb->state; 304 state_table = bta_gattc_st_tbl[p_clcb->state]; 309 p_clcb->state = state_table[event][BTA_GATTC_NEXT_STATE]; 316 (*bta_gattc_action[action])(p_clcb, p_data); 325 if (in_state != p_clcb->state) 329 gattc_state_code(p_clcb->state), 348 tBTA_GATTC_CLCB *p_clcb = NULL; local 399 p_clcb = bta_gattc_find_int_conn_clcb((tBTA_GATTC_DATA *) p_msg) [all...] |
bta_gattc_cache.c | 562 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local 568 if (p_clcb == NULL) 596 p_clcb->p_srcb->state = BTA_GATTC_SERV_SAVE; 934 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local 938 if (p_srvc_cb != NULL && p_clcb != NULL && p_clcb->state == BTA_GATTC_DISCOVER_ST) 999 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local 1421 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local [all...] |