Home
last modified time | relevance | path

Searched refs:p_clcb (Results 1 – 15 of 15) sorted by relevance

/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/
Dgatt_cl.c48 void gatt_send_prepare_write(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb);
81 void gatt_act_discovery(tGATT_CLCB *p_clcb) in gatt_act_discovery() argument
83 UINT8 op_code = disc_type_to_att_opcode[p_clcb->op_subtype]; in gatt_act_discovery()
87 if (p_clcb->s_handle <= p_clcb->e_handle && p_clcb->s_handle != 0) { in gatt_act_discovery()
90 cl_req.browse.s_handle = p_clcb->s_handle; in gatt_act_discovery()
91 cl_req.browse.e_handle = p_clcb->e_handle; in gatt_act_discovery()
93 if (disc_type_to_uuid[p_clcb->op_subtype] != 0) { in gatt_act_discovery()
95 cl_req.browse.uuid.uu.uuid16 = disc_type_to_uuid[p_clcb->op_subtype]; in gatt_act_discovery()
98 … if (p_clcb->op_subtype == GATT_DISC_SRVC_BY_UUID) { /* fill in the FindByTypeValue request info*/ in gatt_act_discovery()
100 cl_req.find_type_value.uuid.uu.uuid16 = disc_type_to_uuid[p_clcb->op_subtype]; in gatt_act_discovery()
[all …]
Dgatt_attr.c65 static void gatt_cl_start_config_ccc(tGATT_PROFILE_CLCB *p_clcb);
107 tGATT_PROFILE_CLCB *p_clcb = NULL; in gatt_profile_find_clcb_by_conn_id() local
109 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) { in gatt_profile_find_clcb_by_conn_id()
110 if (p_clcb->in_use && p_clcb->conn_id == conn_id) { in gatt_profile_find_clcb_by_conn_id()
111 return p_clcb; in gatt_profile_find_clcb_by_conn_id()
130 tGATT_PROFILE_CLCB *p_clcb = NULL; in gatt_profile_find_clcb_by_bd_addr() local
132 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) { in gatt_profile_find_clcb_by_bd_addr()
133 if (p_clcb->in_use && p_clcb->transport == transport && in gatt_profile_find_clcb_by_bd_addr()
134 p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) { in gatt_profile_find_clcb_by_bd_addr()
135 return p_clcb; in gatt_profile_find_clcb_by_bd_addr()
[all …]
Dgatt_auth.c44 static BOOLEAN gatt_sign_data (tGATT_CLCB *p_clcb) in gatt_sign_data() argument
46 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; in gatt_sign_data()
48 UINT16 payload_size = p_clcb->p_tcb->payload_size; in gatt_sign_data()
53 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_OK); in gatt_sign_data()
69 if (BTM_BleDataSignature(p_clcb->p_tcb->peer_bda, in gatt_sign_data()
74 gatt_set_ch_state(p_clcb->p_tcb, GATT_CH_OPEN); in gatt_sign_data()
76 gatt_act_write(p_clcb, GATT_SEC_SIGN_DATA); in gatt_sign_data()
79 gatt_end_operation(p_clcb, GATT_INTERNAL_ERROR, NULL); in gatt_sign_data()
141 void gatt_sec_check_complete(BOOLEAN sec_check_ok, tGATT_CLCB *p_clcb, UINT8 sec_act) in gatt_sec_check_complete() argument
143 if (p_clcb && p_clcb->p_tcb) { in gatt_sec_check_complete()
[all …]
Dgatt_api.c872 tGATT_CLCB *p_clcb; in GATTC_ConfigureMTU() local
896 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL) { in GATTC_ConfigureMTU()
897 p_clcb->p_tcb->payload_size = mtu; in GATTC_ConfigureMTU()
898 p_clcb->operation = GATTC_OPTYPE_CONFIG; in GATTC_ConfigureMTU()
900 … ret = attp_send_cl_msg (p_clcb->p_tcb, p_clcb->clcb_idx, GATT_REQ_MTU, (tGATT_CL_MSG *)&mtu); in GATTC_ConfigureMTU()
923 tGATT_CLCB *p_clcb; in GATTC_Discover() local
949 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL ) { in GATTC_Discover()
955 gatt_clcb_dealloc(p_clcb); in GATTC_Discover()
959 p_clcb->operation = GATTC_OPTYPE_DISCOVERY; in GATTC_Discover()
960 p_clcb->op_subtype = disc_type; in GATTC_Discover()
[all …]
Dgatt_utils.c1298 tGATT_CLCB *p_clcb = gatt_clcb_find_by_idx(clcb_idx); in gatt_start_rsp_timer() local
1300 p_clcb->rsp_timer_ent.param = (TIMER_PARAM_TYPE)p_clcb; in gatt_start_rsp_timer()
1301 if (p_clcb->operation == GATTC_OPTYPE_DISCOVERY && in gatt_start_rsp_timer()
1302 p_clcb->op_subtype == GATT_DISC_SRVC_ALL) { in gatt_start_rsp_timer()
1305 btu_start_timer (&p_clcb->rsp_timer_ent, BTU_TTYPE_ATT_WAIT_FOR_RSP, in gatt_start_rsp_timer()
1351 tGATT_CLCB *p_clcb = (tGATT_CLCB *)p_tle->param; in gatt_rsp_timeout() local
1352 if (p_clcb == NULL || p_clcb->p_tcb == NULL) { in gatt_rsp_timeout()
1356 if (p_clcb->operation == GATTC_OPTYPE_DISCOVERY && in gatt_rsp_timeout()
1357 p_clcb->op_subtype == GATT_DISC_SRVC_ALL && in gatt_rsp_timeout()
1358 p_clcb->retry_count < GATT_REQ_RETRY_LIMIT) { in gatt_rsp_timeout()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/
Dbta_gattc_act.c65 static void bta_gattc_pop_command_to_send(tBTA_GATTC_CLCB *p_clcb);
336 tBTA_GATTC_CLCB *p_clcb = NULL; in bta_gattc_process_api_open() local
346 if ((p_clcb = bta_gattc_find_alloc_clcb(p_msg->api_conn.client_if, in bta_gattc_process_api_open()
349 bta_gattc_sm_execute(p_clcb, event, p_msg); in bta_gattc_process_api_open()
379 tBTA_GATTC_CLCB *p_clcb = NULL; in bta_gattc_process_api_open_cancel() local
385 if ((p_clcb = bta_gattc_find_clcb_by_cif(p_msg->api_cancel_conn.client_if, in bta_gattc_process_api_open_cancel()
388 bta_gattc_sm_execute(p_clcb, event, p_msg); in bta_gattc_process_api_open_cancel()
441 void bta_gattc_cancel_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_cancel_open_error() argument
448 if ( p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback ) { in bta_gattc_cancel_open_error()
449 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_error()
[all …]
Dbta_gattc_utils.c171 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; in bta_gattc_find_clcb_by_cif() local
174 for (i = 0; i < BTA_GATTC_CLCB_MAX; i ++, p_clcb ++) { in bta_gattc_find_clcb_by_cif()
175 if (p_clcb->in_use && in bta_gattc_find_clcb_by_cif()
176 p_clcb->p_rcb->client_if == client_if && in bta_gattc_find_clcb_by_cif()
177 p_clcb->transport == transport && in bta_gattc_find_clcb_by_cif()
178 bdcmp(p_clcb->bda, remote_bda) == 0) { in bta_gattc_find_clcb_by_cif()
179 return p_clcb; in bta_gattc_find_clcb_by_cif()
195 tBTA_GATTC_CLCB *p_clcb = &bta_gattc_cb.clcb[0]; in bta_gattc_find_clcb_by_conn_id() local
198 for (i = 0; i < BTA_GATTC_CLCB_MAX; i ++, p_clcb ++) { in bta_gattc_find_clcb_by_conn_id()
199 if (p_clcb->in_use && in bta_gattc_find_clcb_by_conn_id()
[all …]
Dbta_gattc_main.c74 typedef void (*tBTA_GATTC_ACTION)(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
277 BOOLEAN bta_gattc_sm_execute(tBTA_GATTC_CLCB *p_clcb, UINT16 event, tBTA_GATTC_DATA *p_data) in bta_gattc_sm_execute() argument
284 tBTA_GATTC_STATE in_state = p_clcb->state; in bta_gattc_sm_execute()
294 state_table = bta_gattc_st_tbl[p_clcb->state]; in bta_gattc_sm_execute()
299 p_clcb->state = state_table[event][BTA_GATTC_NEXT_STATE]; in bta_gattc_sm_execute()
304 (*bta_gattc_action[action])(p_clcb, p_data); in bta_gattc_sm_execute()
305 if (p_clcb->p_q_cmd == p_data) { in bta_gattc_sm_execute()
317 if (in_state != p_clcb->state) { in bta_gattc_sm_execute()
320 gattc_state_code(p_clcb->state), in bta_gattc_sm_execute()
340 tBTA_GATTC_CLCB *p_clcb = NULL; in bta_gattc_hdl_event() local
[all …]
Dbta_gattc_cache.c457 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_discover_pri_service() local
460 if (p_clcb) { in bta_gattc_discover_pri_service()
461 if (p_clcb->transport == BTA_TRANSPORT_LE) { in bta_gattc_discover_pri_service()
587 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_explore_srvc() local
593 if (p_clcb == NULL) { in bta_gattc_explore_srvc()
625 if (p_clcb->transport == BTA_TRANSPORT_LE) { in bta_gattc_explore_srvc()
626 L2CA_EnableUpdateBleConnParams(p_clcb->p_srcb->server_bda, TRUE); in bta_gattc_explore_srvc()
631 cb_data.dis_cmpl.status = p_clcb->status; in bta_gattc_explore_srvc()
633 ( *p_clcb->p_rcb->p_cback)(BTA_GATTC_DIS_SRVC_CMPL_EVT, &cb_data); in bta_gattc_explore_srvc()
637 p_clcb->p_srcb->state = BTA_GATTC_SERV_SAVE; in bta_gattc_explore_srvc()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/gap/
Dgap_ble.c76 tGAP_CLCB *p_clcb = NULL; in gap_find_clcb_by_bd_addr() local
78 for (i_clcb = 0, p_clcb = gap_cb.clcb; i_clcb < GAP_MAX_CL; i_clcb++, p_clcb++) { in gap_find_clcb_by_bd_addr()
79 if (p_clcb->in_use && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) { in gap_find_clcb_by_bd_addr()
80 return p_clcb; in gap_find_clcb_by_bd_addr()
99 tGAP_CLCB *p_clcb = NULL; in gap_ble_find_clcb_by_conn_id() local
101 for (i_clcb = 0, p_clcb = gap_cb.clcb; i_clcb < GAP_MAX_CL; i_clcb++, p_clcb++) { in gap_ble_find_clcb_by_conn_id()
102 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) { in gap_ble_find_clcb_by_conn_id()
103 return p_clcb; in gap_ble_find_clcb_by_conn_id()
107 return p_clcb; in gap_ble_find_clcb_by_conn_id()
122 tGAP_CLCB *p_clcb = NULL; in gap_clcb_alloc() local
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/esp/ble_button/
Dbutton_pro.c217 but_clcb_t *p_clcb = NULL; in button_env_clcb_alloc() local
218 p_clcb = &button_cb_env.clcb; in button_env_clcb_alloc()
220 if (!p_clcb->in_use) { in button_env_clcb_alloc()
221 p_clcb->in_use = TRUE; in button_env_clcb_alloc()
222 p_clcb->conn_id = conn_id; in button_env_clcb_alloc()
224 p_clcb->connected = TRUE; in button_env_clcb_alloc()
225 memcpy(p_clcb->remote_bda, remote_bda, BD_ADDR_LEN); in button_env_clcb_alloc()
228 return p_clcb; in button_env_clcb_alloc()
243 but_clcb_t *p_clcb = NULL; in button_env_find_conn_id_by_bd_adddr() local
245 for (i_clcb = 0, p_clcb = &button_cb_env.clcb; i_clcb < BUTT_MAX_APPS; i_clcb++, p_clcb++) { in button_env_find_conn_id_by_bd_adddr()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/esp/wechat_AirSync/
Dwx_airsync_prf.c192 tAirSync_CLCB *p_clcb = NULL; in airsync_env_clcb_alloc() local
193 p_clcb = &airsync_cb_env.clcb; in airsync_env_clcb_alloc()
195 if (!p_clcb->in_use) { in airsync_env_clcb_alloc()
196 p_clcb->in_use = TRUE; in airsync_env_clcb_alloc()
197 p_clcb->conn_id = conn_id; in airsync_env_clcb_alloc()
199 p_clcb->connected = TRUE; in airsync_env_clcb_alloc()
200 memcpy(p_clcb->remote_bda, remote_bda, BD_ADDR_LEN); in airsync_env_clcb_alloc()
203 return p_clcb; in airsync_env_clcb_alloc()
218 tAirSync_CLCB *p_clcb = NULL; in airsync_env_find_conn_id_by_bd_adddr() local
220 for (i_clcb = 0, p_clcb = &airsync_cb_env.clcb; i_clcb < 1; i_clcb++, p_clcb++) { in airsync_env_find_conn_id_by_bd_adddr()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/include/
Dbta_gattc_int.h452 extern BOOLEAN bta_gattc_sm_execute(tBTA_GATTC_CLCB *p_clcb, UINT16 event, tBTA_GATTC_DATA *p_data);
464 extern void bta_gattc_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
465 extern void bta_gattc_open_fail(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
466 extern void bta_gattc_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
468 extern void bta_gattc_cancel_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
469 extern void bta_gattc_cancel_open_ok(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
470 extern void bta_gattc_cancel_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
472 extern void bta_gattc_conn(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
475 extern void bta_gattc_close(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
476 extern void bta_gattc_close_fail(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data);
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/include/
Dgatt_int.h452 tGATT_CLCB *p_clcb; member
461 tGATT_CLCB *p_clcb; member
639 …n tGATT_PENDING_ENC_CLCB *gatt_add_pending_enc_channel_clcb(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb );
697 extern void gatt_clcb_dealloc (tGATT_CLCB *p_clcb);
725 extern void gatt_end_operation(tGATT_CLCB *p_clcb, tGATT_STATUS status, void *p_data);
727 extern void gatt_act_discovery(tGATT_CLCB *p_clcb);
728 extern void gatt_act_read(tGATT_CLCB *p_clcb, UINT16 offset);
729 extern void gatt_act_write(tGATT_CLCB *p_clcb, UINT8 sec_act);
736 extern void gatt_send_queue_write_cancel (tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, tGATT_EXEC_FLAG fla…
739 extern BOOLEAN gatt_security_check_start(tGATT_CLCB *p_clcb);
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/dis/include/
Dsrvc_dis_int.h75 extern void dis_c_cmpl_cback (tSRVC_CLCB *p_clcb, tGATTC_OPTYPE op,