/external/bluetooth/bluedroid/stack/gatt/ |
gatt_attr.c | 66 tGATT_PROFILE_CLCB *p_clcb = NULL; local 68 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) 70 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) 72 return p_clcb->conn_id; 91 tGATT_PROFILE_CLCB *p_clcb = NULL; local 93 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++ 116 tGATT_PROFILE_CLCB *p_clcb = NULL; local 143 tGATT_PROFILE_CLCB *p_clcb = NULL; local [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_cl.c | 40 void gatt_send_prepare_write(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb); 72 void gatt_act_discovery(tGATT_CLCB *p_clcb) 74 UINT8 op_code = disc_type_to_att_opcode[p_clcb->op_subtype]; 77 if (p_clcb->s_handle <= p_clcb->e_handle && p_clcb->s_handle != 0) 81 cl_req.browse.s_handle = p_clcb->s_handle; 82 cl_req.browse.e_handle = p_clcb->e_handle; 84 if (disc_type_to_uuid[p_clcb->op_subtype] != 0) 87 cl_req.browse.uuid.uu.uuid16 = disc_type_to_uuid[p_clcb->op_subtype] 1043 tGATT_CLCB *p_clcb = NULL; local 1099 tGATT_CLCB *p_clcb = NULL; 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 2622 tGATT_CLCB *p_clcb; local [all...] |
gatt_int.h | 404 tGATT_CLCB *p_clcb; member in struct:__anon3122 414 tGATT_CLCB *p_clcb; member in struct:__anon3123 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/bta/gatt/ |
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 384 if ((p_clcb = bta_gattc_find_clcb_by_conn_id(p_msg->layer_specific) [all...] |
bta_gattc_utils.c | 165 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; local 168 for (i = 0; i < BTA_GATTC_CLCB_MAX; i ++, p_clcb ++) 170 if (p_clcb->in_use && 171 p_clcb->p_rcb->client_if == client_if && 172 p_clcb->p_srcb && 173 bdcmp(p_clcb->p_srcb->server_bda, remote_bda) == 0) 174 return p_clcb; 189 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; local 192 for (i = 0; i < BTA_GATTC_CLCB_MAX; i ++, p_clcb ++) 194 if (p_clcb->in_use & 213 tBTA_GATTC_CLCB *p_clcb = NULL; local 259 tBTA_GATTC_CLCB *p_clcb ; local 358 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local [all...] |
bta_gattc_cache.c | 536 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local 542 if (p_clcb == NULL) 570 p_clcb->p_srcb->state = BTA_GATTC_SERV_SAVE; 908 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local 912 if (p_srvc_cb != NULL && p_clcb != NULL && p_clcb->state == BTA_GATTC_DISCOVER_ST) 973 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local 1394 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local [all...] |
bta_gattc_act.c | 314 tBTA_GATTC_CLCB *p_clcb = NULL; local 321 if ((p_clcb = bta_gattc_find_alloc_clcb(p_msg->api_conn.client_if, 324 bta_gattc_sm_execute(p_clcb, event, p_msg); 359 tBTA_GATTC_CLCB *p_clcb = NULL; local 365 if ((p_clcb = bta_gattc_find_clcb_by_cif(p_msg->api_cancel_conn.client_if, 368 bta_gattc_sm_execute(p_clcb, event, p_msg); 398 void bta_gattc_cancel_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) 403 if ( p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback 488 tBTA_GATTC_CLCB *p_clcb; local 1553 tBTA_GATTC_CLCB *p_clcb = NULL; local 1636 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; local 1782 tBTA_GATTC_CLCB *p_clcb ; local 1867 tBTA_GATTC_CLCB *p_clcb ; local 1919 tBTA_GATTC_CLCB *p_clcb = NULL; local [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 613 tGAP_CLCB *p_clcb = gap_find_clcb_by_bd_addr (bda); local 680 tGAP_CLCB *p_clcb = gap_ble_find_clcb_by_conn_id(conn_id); local 782 tGAP_CLCB *p_clcb; local 817 tGAP_CLCB *p_clcb = gap_find_clcb_by_bd_addr (peer_bda); local 869 tGAP_CLCB *p_clcb = gap_find_clcb_by_bd_addr (peer_bda); local 908 tGAP_CLCB *p_clcb; local [all...] |