Home
last modified time | relevance | path

Searched refs:p_clreg (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/
Dbta_gattc_utils.c325 extern void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB *p_clreg);
331 tBTA_GATTC_RCB *p_clreg = p_clcb->p_rcb; in bta_gattc_clcb_dealloc_by_conn_id() local
334 if (p_clreg && p_clreg->num_clcb == 0 && p_clreg->dereg_pending) { in bta_gattc_clcb_dealloc_by_conn_id()
335 bta_gattc_deregister_cmpl(p_clreg); in bta_gattc_clcb_dealloc_by_conn_id()
556 BOOLEAN bta_gattc_check_notif_registry(tBTA_GATTC_RCB *p_clreg, tBTA_GATTC_SERV *p_srcb, in bta_gattc_check_notif_registry() argument
563 if (p_clreg->notif_reg[i].in_use && in bta_gattc_check_notif_registry()
564 bdcmp(p_clreg->notif_reg[i].remote_bda, p_srcb->server_bda) == 0 && in bta_gattc_check_notif_registry()
565 p_clreg->notif_reg[i].handle == p_notify->handle) in bta_gattc_check_notif_registry()
754 void bta_gattc_send_open_cback( tBTA_GATTC_RCB *p_clreg, tBTA_GATT_STATUS status, in bta_gattc_send_open_cback() argument
761 if (p_clreg->p_cback) { in bta_gattc_send_open_cback()
[all …]
Dbta_gattc_main.c341 tBTA_GATTC_RCB *p_clreg; in bta_gattc_hdl_event() local
360 p_clreg = bta_gattc_cl_get_regcb(((tBTA_GATTC_DATA *)p_msg)->api_dereg.client_if); in bta_gattc_hdl_event()
361 bta_gattc_deregister(p_cb, p_clreg); in bta_gattc_hdl_event()
400 p_clreg = bta_gattc_cl_get_regcb(((tBTA_GATTC_DATA *)p_msg)->int_conn.client_if); in bta_gattc_hdl_event()
401 if (p_clreg != NULL){ in bta_gattc_hdl_event()
402 bta_gattc_conncback(p_clreg, (tBTA_GATTC_DATA *) p_msg); in bta_gattc_hdl_event()
406 p_clreg = bta_gattc_cl_get_regcb(((tBTA_GATTC_DATA *)p_msg)->int_conn.client_if); in bta_gattc_hdl_event()
407 if (p_clreg != NULL){ in bta_gattc_hdl_event()
408 bta_gattc_disconncback(p_clreg, (tBTA_GATTC_DATA *) p_msg); in bta_gattc_hdl_event()
Dbta_gattc_act.c67 void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB *p_clreg);
284 void bta_gattc_deregister(tBTA_GATTC_CB *p_cb, tBTA_GATTC_RCB *p_clreg) in bta_gattc_deregister() argument
289 if (p_clreg != NULL) { in bta_gattc_deregister()
293 if (p_cb->bg_track[i].cif_mask & (1 << (p_clreg->client_if - 1))) { in bta_gattc_deregister()
294 … bta_gattc_mark_bg_conn(p_clreg->client_if, p_cb->bg_track[i].remote_bda, FALSE, FALSE); in bta_gattc_deregister()
295 GATT_CancelConnect(p_clreg->client_if, p_cb->bg_track[i].remote_bda, FALSE); in bta_gattc_deregister()
297 if (p_cb->bg_track[i].cif_adv_mask & (1 << (p_clreg->client_if - 1))) { in bta_gattc_deregister()
298 … bta_gattc_mark_bg_conn(p_clreg->client_if, p_cb->bg_track[i].remote_bda, FALSE, TRUE); in bta_gattc_deregister()
303 if (p_clreg->num_clcb > 0) { in bta_gattc_deregister()
306 if (p_cb->clcb[i].in_use && (p_cb->clcb[i].p_rcb == p_clreg)) { in bta_gattc_deregister()
[all …]
Dbta_gattc_api.c912 tBTA_GATTC_RCB *p_clreg; in BTA_GATTC_RegisterForNotifications() local
922 if ((p_clreg = bta_gattc_cl_get_regcb(client_if)) != NULL) { in BTA_GATTC_RegisterForNotifications()
924 if ( p_clreg->notif_reg[i].in_use && in BTA_GATTC_RegisterForNotifications()
925 !memcmp(p_clreg->notif_reg[i].remote_bda, bda, BD_ADDR_LEN) && in BTA_GATTC_RegisterForNotifications()
926 p_clreg->notif_reg[i].handle == handle) { in BTA_GATTC_RegisterForNotifications()
934 if (!p_clreg->notif_reg[i].in_use) { in BTA_GATTC_RegisterForNotifications()
935 memset((void *)&p_clreg->notif_reg[i], 0, sizeof(tBTA_GATTC_NOTIF_REG)); in BTA_GATTC_RegisterForNotifications()
937 p_clreg->notif_reg[i].in_use = TRUE; in BTA_GATTC_RegisterForNotifications()
938 memcpy(p_clreg->notif_reg[i].remote_bda, bda, BD_ADDR_LEN); in BTA_GATTC_RegisterForNotifications()
940 p_clreg->notif_reg[i].handle = handle; in BTA_GATTC_RegisterForNotifications()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/include/
Dbta_gattc_int.h460 extern void bta_gattc_deregister(tBTA_GATTC_CB *p_cb, tBTA_GATTC_RCB *p_clreg);
497 extern void bta_gattc_init_bk_conn(tBTA_GATTC_API_OPEN *p_data, tBTA_GATTC_RCB *p_clreg);
499 extern void bta_gattc_send_open_cback( tBTA_GATTC_RCB *p_clreg, tBTA_GATT_STATUS status,
501 extern void bta_gattc_send_connect_cback( tBTA_GATTC_RCB *p_clreg, BD_ADDR remote_bda, UINT16 conn_…
503 extern void bta_gattc_send_disconnect_cback( tBTA_GATTC_RCB *p_clreg, tGATT_DISCONN_REASON reason,
530 extern BOOLEAN bta_gattc_check_notif_registry(tBTA_GATTC_RCB *p_clreg, tBTA_GATTC_SERV *p_srcb, tB…