Searched defs:p_clcb (Results 1 - 14 of 14) sorted by relevance

/system/bt/bta/gatt/
H A Dbta_gattc_main.c77 typedef void (*tBTA_GATTC_ACTION)(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
295 BOOLEAN bta_gattc_sm_execute(tBTA_GATTC_CLCB *p_clcb, UINT16 event, tBTA_GATTC_DATA *p_data) argument
302 tBTA_GATTC_STATE in_state = p_clcb->state;
312 state_table = bta_gattc_st_tbl[p_clcb->state];
317 p_clcb->state = state_table[event][BTA_GATTC_NEXT_STATE];
324 (*bta_gattc_action[action])(p_clcb, p_data);
325 if (p_clcb->p_q_cmd == p_data) {
339 if (in_state != p_clcb->state)
343 gattc_state_code(p_clcb->state),
363 tBTA_GATTC_CLCB *p_clcb local
[all...]
H A Dbta_gattc_act.c342 tBTA_GATTC_CLCB *p_clcb = NULL; local
350 if ((p_clcb = bta_gattc_find_alloc_clcb(p_msg->api_conn.client_if,
354 bta_gattc_sm_execute(p_clcb, event, p_msg);
390 tBTA_GATTC_CLCB *p_clcb = NULL; local
397 if ((p_clcb = bta_gattc_find_clcb_by_cif(p_msg->api_cancel_conn.client_if,
401 bta_gattc_sm_execute(p_clcb, event, p_msg);
460 void bta_gattc_cancel_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
467 if ( p_clcb && p_clcb->p_rcb && p_clcb
480 bta_gattc_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
502 bta_gattc_open_fail(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
525 bta_gattc_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
565 tBTA_GATTC_CLCB *p_clcb; local
653 bta_gattc_cancel_open_ok(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
675 bta_gattc_cancel_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
701 bta_gattc_conn(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
767 bta_gattc_close_fail(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
793 bta_gattc_close(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
862 bta_gattc_disc_close(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
920 bta_gattc_restart_discover(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
937 bta_gattc_cfg_mtu(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
965 bta_gattc_start_discover(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1029 bta_gattc_disc_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1090 bta_gattc_read(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1134 bta_gattc_read_multi(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1204 bta_gattc_write(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1251 bta_gattc_execute(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1278 bta_gattc_confirm(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1316 bta_gattc_read_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data) argument
1375 bta_gattc_write_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data) argument
1428 bta_gattc_exec_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data) argument
1453 bta_gattc_cfg_mtu_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data) argument
1481 bta_gattc_op_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1551 bta_gattc_ignore_op_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1569 bta_gattc_search(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1596 bta_gattc_q_cmd(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1609 bta_gattc_cache_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1628 bta_gattc_ci_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1676 bta_gattc_ci_load(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1723 bta_gattc_ci_save(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1746 bta_gattc_fail(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
1846 tBTA_GATTC_CLCB *p_clcb = NULL; local
1891 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; local
1937 bta_gattc_process_srvc_chg_ind(UINT16 conn_id, tBTA_GATTC_RCB *p_clrcb, tBTA_GATTC_SERV *p_srcb, tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_NOTIFY *p_notify, UINT16 handle) argument
2007 bta_gattc_proc_other_indication(tBTA_GATTC_CLCB *p_clcb, UINT8 op, tGATT_CL_COMPLETE *p_data, tBTA_GATTC_NOTIFY *p_notify) argument
2038 tBTA_GATTC_CLCB *p_clcb ; local
2130 tBTA_GATTC_CLCB *p_clcb; local
2202 tBTA_GATTC_CLCB *p_clcb; local
2229 tBTA_GATTC_CLCB *p_clcb = NULL; local
[all...]
H A Dbta_gattc_cache.c469 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local
472 if (p_clcb)
474 if (p_clcb->transport == BTA_TRANSPORT_LE)
576 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local
582 if (p_clcb == NULL)
610 p_clcb->p_srcb->state = BTA_GATTC_SERV_SAVE;
950 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local
954 if (p_srvc_cb != NULL && p_clcb != NULL && p_clcb->state == BTA_GATTC_DISCOVER_ST)
1016 tBTA_GATTC_CLCB *p_clcb local
1248 bta_gattc_search_service(tBTA_GATTC_CLCB *p_clcb, tBT_UUID *p_uuid) argument
1441 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local
[all...]
H A Dbta_gattc_utils.c172 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; local
175 for (i = 0; i < BTA_GATTC_CLCB_MAX; i ++, p_clcb ++)
177 if (p_clcb->in_use &&
178 p_clcb->p_rcb->client_if == client_if &&
179 p_clcb->transport == transport &&
180 bdcmp(p_clcb->bda, remote_bda) == 0)
181 return p_clcb;
196 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; local
199 for (i = 0; i < BTA_GATTC_CLCB_MAX; i ++, p_clcb ++)
201 if (p_clcb
221 tBTA_GATTC_CLCB *p_clcb = NULL; local
269 tBTA_GATTC_CLCB *p_clcb ; local
287 bta_gattc_clcb_dealloc(tBTA_GATTC_CLCB *p_clcb) argument
372 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); local
436 bta_gattc_enqueue(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) argument
918 tBTA_GATTC_CLCB *p_clcb = NULL; local
954 tBTA_GATTC_CLCB *p_clcb = NULL; local
[all...]
/system/bt/stack/gatt/
H A Dgatt_attr.c51 static void gatt_cl_start_config_ccc(tGATT_PROFILE_CLCB *p_clcb);
93 tGATT_PROFILE_CLCB *p_clcb = NULL; local
95 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++)
97 if (p_clcb->in_use && p_clcb->conn_id == conn_id)
98 return p_clcb;
116 tGATT_PROFILE_CLCB *p_clcb = NULL; local
118 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb
140 tGATT_PROFILE_CLCB *p_clcb = NULL; local
169 gatt_profile_clcb_dealloc(tGATT_PROFILE_CLCB *p_clcb) argument
242 tGATT_PROFILE_CLCB *p_clcb = gatt_profile_find_clcb_by_bd_addr(bda, transport); local
311 gatt_config_ccc_complete(tGATT_PROFILE_CLCB *p_clcb) argument
328 tGATT_PROFILE_CLCB *p_clcb = gatt_profile_find_clcb_by_conn_id(conn_id); local
366 tGATT_PROFILE_CLCB *p_clcb = gatt_profile_find_clcb_by_conn_id(conn_id); local
395 tGATT_PROFILE_CLCB *p_clcb = gatt_profile_find_clcb_by_conn_id(conn_id); local
418 gatt_cl_start_config_ccc(tGATT_PROFILE_CLCB *p_clcb) argument
489 tGATT_PROFILE_CLCB *p_clcb = gatt_profile_find_clcb_by_bd_addr (remote_bda, transport); local
[all...]
H A Dgatt_auth.c44 static BOOLEAN gatt_sign_data (tGATT_CLCB *p_clcb) argument
46 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf;
48 UINT16 payload_size = p_clcb->p_tcb->payload_size;
53 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_OK);
69 if (BTM_BleDataSignature(p_clcb->p_tcb->peer_bda,
75 gatt_set_ch_state(p_clcb->p_tcb, GATT_CH_OPEN);
76 gatt_act_write(p_clcb, GATT_SEC_SIGN_DATA);
80 gatt_end_operation(p_clcb, GATT_INTERNAL_ERROR, NULL);
137 void gatt_sec_check_complete(BOOLEAN sec_check_ok, tGATT_CLCB *p_clcb, UINT8 sec_act) argument
139 if (p_clcb
480 gatt_security_check_start(tGATT_CLCB *p_clcb) argument
[all...]
H A Dgatt_cl.c49 void gatt_send_prepare_write(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb);
81 void gatt_act_discovery(tGATT_CLCB *p_clcb) argument
83 UINT8 op_code = disc_type_to_att_opcode[p_clcb->op_subtype];
87 if (p_clcb->s_handle <= p_clcb->e_handle && p_clcb->s_handle != 0)
91 cl_req.browse.s_handle = p_clcb->s_handle;
92 cl_req.browse.e_handle = p_clcb->e_handle;
94 if (disc_type_to_uuid[p_clcb->op_subtype] != 0)
97 cl_req.browse.uuid.uu.uuid16 = disc_type_to_uuid[p_clcb
137 gatt_act_read(tGATT_CLCB *p_clcb, UINT16 offset) argument
225 gatt_act_write(tGATT_CLCB *p_clcb, UINT8 sec_act) argument
298 gatt_send_queue_write_cancel(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, tGATT_EXEC_FLAG flag) argument
320 gatt_check_write_long_terminate(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, tGATT_VALUE *p_rsp_value) argument
363 gatt_send_prepare_write(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb) argument
414 gatt_process_find_type_value_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT16 len, UINT8 *p_data) argument
459 gatt_process_read_info_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
518 gatt_proc_disc_error_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 opcode, UINT16 handle, UINT8 reason) argument
558 gatt_process_error_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
611 gatt_process_prep_write_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
745 gatt_process_read_by_type_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
947 gatt_process_read_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
1037 gatt_process_handle_rsp(tGATT_CLCB *p_clcb) argument
1051 gatt_process_mtu_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT16 len, UINT8 *p_data) argument
1106 tGATT_CLCB *p_clcb = NULL; local
1166 tGATT_CLCB *p_clcb = NULL; local
[all...]
H A Dgatt_api.c781 tGATT_CLCB *p_clcb; local
802 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL)
804 p_clcb->p_tcb->payload_size = mtu;
805 p_clcb->operation = GATTC_OPTYPE_CONFIG;
807 ret = attp_send_cl_msg (p_clcb->p_tcb, p_clcb->clcb_idx, GATT_REQ_MTU, (tGATT_CL_MSG *)&mtu);
830 tGATT_CLCB *p_clcb; local
854 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL )
862 gatt_clcb_dealloc(p_clcb);
866 p_clcb
898 tGATT_CLCB *p_clcb; local
986 tGATT_CLCB *p_clcb; local
1060 tGATT_CLCB *p_clcb; local
1252 tGATT_CLCB *p_clcb; local
[all...]
H A Dgatt_int.h420 tGATT_CLCB *p_clcb; member in struct:__anon878
430 tGATT_CLCB *p_clcb; member in struct:__anon879
593 extern tGATT_PENDING_ENC_CLCB* gatt_add_pending_enc_channel_clcb(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb );
649 extern void gatt_clcb_dealloc (tGATT_CLCB *p_clcb);
673 extern void gatt_end_operation(tGATT_CLCB *p_clcb, tGATT_STATUS status, void *p_data);
675 extern void gatt_act_discovery(tGATT_CLCB *p_clcb);
676 extern void gatt_act_read(tGATT_CLCB *p_clcb, UINT16 offset);
677 extern void gatt_act_write(tGATT_CLCB *p_clcb, UINT8 sec_act);
684 extern void gatt_send_queue_write_cancel (tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, tGATT_EXEC_FLAG flag);
687 extern BOOLEAN gatt_security_check_start(tGATT_CLCB *p_clcb);
[all...]
H A Dgatt_utils.c1174 tGATT_CLCB *p_clcb = &gatt_cb.clcb[clcb_idx]; local
1176 p_clcb->rsp_timer_ent.param = (TIMER_PARAM_TYPE)p_clcb;
1177 if (p_clcb->operation == GATTC_OPTYPE_DISCOVERY &&
1178 p_clcb->op_subtype == GATT_DISC_SRVC_ALL)
1182 btu_start_timer (&p_clcb->rsp_timer_ent, BTU_TTYPE_ATT_WAIT_FOR_RSP,
1228 tGATT_CLCB *p_clcb = (tGATT_CLCB *)p_tle->param; local
1229 if (p_clcb == NULL || p_clcb->p_tcb == NULL)
1234 if (p_clcb
1621 tGATT_CLCB *p_clcb = NULL; local
1653 gatt_clcb_dealloc(tGATT_CLCB *p_clcb) argument
2044 tGATT_CLCB *p_clcb = NULL; local
2117 gatt_end_operation(tGATT_CLCB *p_clcb, tGATT_STATUS status, void *p_data) argument
2201 tGATT_CLCB *p_clcb; local
[all...]
/system/bt/stack/srvc/
H A Dsrvc_battery.c181 void battery_c_cmpl_cback (tSRVC_CLCB *p_clcb, tGATTC_OPTYPE op, argument
184 UNUSED(p_clcb);
H A Dsrvc_dis.c205 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); local
211 if (dis_cb.p_read_dis_cback && p_clcb)
214 p_clcb->dis_value.attr_mask);
216 (*dis_cb.p_read_dis_cback)(p_clcb->bda, &p_clcb->dis_value);
271 void dis_c_cmpl_cback (tSRVC_CLCB *p_clcb, tGATTC_OPTYPE op, argument
276 UINT16 conn_id = p_clcb->conn_id;
294 p_clcb->dis_value.attr_mask |= DIS_ATTR_SYS_ID_BIT;
296 STREAM_TO_UINT64 (p_clcb->dis_value.system_id, pp);
303 p_clcb
[all...]
H A Dsrvc_eng.c50 typedef void (*tSRVC_ENG_C_CMPL_ACTION)(tSRVC_CLCB *p_clcb, tGATTC_OPTYPE op,
72 tSRVC_CLCB *p_clcb = NULL; local
74 for (i_clcb = 0, p_clcb= srvc_eng_cb.clcb; i_clcb < SRVC_MAX_APPS; i_clcb++, p_clcb++)
76 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN))
78 return p_clcb->conn_id;
97 tSRVC_CLCB *p_clcb = NULL; local
99 for (i_clcb = 0, p_clcb
121 tSRVC_CLCB *p_clcb = NULL; local
145 tSRVC_CLCB *p_clcb = NULL; local
169 tSRVC_CLCB *p_clcb = NULL; local
196 tSRVC_CLCB *p_clcb = NULL; local
328 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); local
389 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_bd_addr(remote_bda); local
412 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); local
[all...]
/system/bt/stack/gap/
H A Dgap_ble.c75 tGAP_CLCB *p_clcb = NULL; local
77 for (i_clcb = 0, p_clcb= gap_cb.clcb; i_clcb < GAP_MAX_CL; i_clcb++, p_clcb++)
79 if (p_clcb->in_use && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN))
81 return p_clcb;
100 tGAP_CLCB *p_clcb = NULL; local
102 for (i_clcb = 0, p_clcb= gap_cb.clcb; i_clcb < GAP_MAX_CL; i_clcb++, p_clcb++)
104 if (p_clcb
125 tGAP_CLCB *p_clcb = NULL; local
149 gap_ble_dealloc_clcb(tGAP_CLCB *p_clcb) argument
174 gap_ble_enqueue_request(tGAP_CLCB *p_clcb, UINT16 uuid, tGAP_BLE_CMPL_CBACK *p_cback) argument
197 gap_ble_dequeue_request(tGAP_CLCB *p_clcb, UINT16 * p_uuid, tGAP_BLE_CMPL_CBACK **p_cback) argument
510 gap_ble_send_cl_read_request(tGAP_CLCB *p_clcb) argument
545 gap_ble_cl_op_cmpl(tGAP_CLCB *p_clcb, BOOLEAN status, UINT16 len, UINT8 *p_name) argument
585 tGAP_CLCB *p_clcb = gap_find_clcb_by_bd_addr (bda); local
621 tGAP_CLCB *p_clcb = gap_ble_find_clcb_by_conn_id(conn_id); local
687 tGAP_CLCB *p_clcb; local
778 tGAP_CLCB *p_clcb = gap_find_clcb_by_bd_addr (peer_bda); local
[all...]

Completed in 226 milliseconds