Home
last modified time | relevance | path

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

/system/bt/bta/gatt/
Dbta_gattc_api.cc637 tBTA_GATTC_RCB* p_clreg; in BTA_GATTC_RegisterForNotifications() local
646 p_clreg = bta_gattc_cl_get_regcb(client_if); in BTA_GATTC_RegisterForNotifications()
647 if (p_clreg != NULL) { in BTA_GATTC_RegisterForNotifications()
649 if (p_clreg->notif_reg[i].in_use && in BTA_GATTC_RegisterForNotifications()
650 p_clreg->notif_reg[i].remote_bda == bda && in BTA_GATTC_RegisterForNotifications()
651 p_clreg->notif_reg[i].handle == handle) { in BTA_GATTC_RegisterForNotifications()
659 if (!p_clreg->notif_reg[i].in_use) { in BTA_GATTC_RegisterForNotifications()
660 memset((void*)&p_clreg->notif_reg[i], 0, in BTA_GATTC_RegisterForNotifications()
663 p_clreg->notif_reg[i].in_use = true; in BTA_GATTC_RegisterForNotifications()
664 p_clreg->notif_reg[i].remote_bda = bda; in BTA_GATTC_RegisterForNotifications()
[all …]
Dbta_gattc_act.cc65 static void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB* p_clreg);
208 void bta_gattc_deregister(tBTA_GATTC_RCB* p_clreg) { in bta_gattc_deregister() argument
209 if (!p_clreg) { in bta_gattc_deregister()
219 if (bta_gattc_cb.bg_track[i].cif_mask & (1 << (p_clreg->client_if - 1))) { in bta_gattc_deregister()
220 bta_gattc_mark_bg_conn(p_clreg->client_if, in bta_gattc_deregister()
222 GATT_CancelConnect(p_clreg->client_if, in bta_gattc_deregister()
227 if (p_clreg->num_clcb == 0) { in bta_gattc_deregister()
228 bta_gattc_deregister_cmpl(p_clreg); in bta_gattc_deregister()
234 if (!bta_gattc_cb.clcb[i].in_use || (bta_gattc_cb.clcb[i].p_rcb != p_clreg)) in bta_gattc_deregister()
237 p_clreg->dereg_pending = true; in bta_gattc_deregister()
[all …]
Dbta_gattc_utils.cc337 bool bta_gattc_check_notif_registry(tBTA_GATTC_RCB* p_clreg, in bta_gattc_check_notif_registry() argument
343 if (p_clreg->notif_reg[i].in_use && in bta_gattc_check_notif_registry()
344 p_clreg->notif_reg[i].remote_bda == p_srcb->server_bda && in bta_gattc_check_notif_registry()
345 p_clreg->notif_reg[i].handle == p_notify->handle) { in bta_gattc_check_notif_registry()
490 void bta_gattc_send_open_cback(tBTA_GATTC_RCB* p_clreg, tGATT_STATUS status, in bta_gattc_send_open_cback() argument
495 if (p_clreg->p_cback) { in bta_gattc_send_open_cback()
499 cb_data.open.client_if = p_clreg->client_if; in bta_gattc_send_open_cback()
505 (*p_clreg->p_cback)(BTA_GATTC_OPEN_EVT, &cb_data); in bta_gattc_send_open_cback()
Dbta_gattc_int.h324 extern void bta_gattc_deregister(tBTA_GATTC_RCB* p_clreg);
370 tBTA_GATTC_RCB* p_clreg);
372 extern void bta_gattc_send_open_cback(tBTA_GATTC_RCB* p_clreg,
403 extern bool bta_gattc_check_notif_registry(tBTA_GATTC_RCB* p_clreg,