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.cc644 tBTA_GATTC_RCB* p_clreg; in BTA_GATTC_RegisterForNotifications() local
653 p_clreg = bta_gattc_cl_get_regcb(client_if); in BTA_GATTC_RegisterForNotifications()
654 if (p_clreg != NULL) { in BTA_GATTC_RegisterForNotifications()
656 if (p_clreg->notif_reg[i].in_use && in BTA_GATTC_RegisterForNotifications()
657 p_clreg->notif_reg[i].remote_bda == bda && in BTA_GATTC_RegisterForNotifications()
658 p_clreg->notif_reg[i].handle == handle) { in BTA_GATTC_RegisterForNotifications()
666 if (!p_clreg->notif_reg[i].in_use) { in BTA_GATTC_RegisterForNotifications()
667 memset((void*)&p_clreg->notif_reg[i], 0, in BTA_GATTC_RegisterForNotifications()
670 p_clreg->notif_reg[i].in_use = true; in BTA_GATTC_RegisterForNotifications()
671 p_clreg->notif_reg[i].remote_bda = bda; in BTA_GATTC_RegisterForNotifications()
[all …]
Dbta_gattc_act.cc63 static void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB* p_clreg);
204 void bta_gattc_deregister(tBTA_GATTC_RCB* p_clreg) { in bta_gattc_deregister() argument
205 if (!p_clreg) { in bta_gattc_deregister()
220 if (bta_gattc_cb.bg_track[i].cif_mask & (1 << (p_clreg->client_if - 1))) { in bta_gattc_deregister()
221 bta_gattc_mark_bg_conn(p_clreg->client_if, in bta_gattc_deregister()
223 GATT_CancelConnect(p_clreg->client_if, in bta_gattc_deregister()
228 if (p_clreg->num_clcb == 0) { in bta_gattc_deregister()
229 bta_gattc_deregister_cmpl(p_clreg); in bta_gattc_deregister()
235 if (!bta_gattc_cb.clcb[i].in_use || (bta_gattc_cb.clcb[i].p_rcb != p_clreg)) in bta_gattc_deregister()
238 p_clreg->dereg_pending = true; in bta_gattc_deregister()
[all …]
Dbta_gattc_utils.cc345 bool bta_gattc_check_notif_registry(tBTA_GATTC_RCB* p_clreg, in bta_gattc_check_notif_registry() argument
351 if (p_clreg->notif_reg[i].in_use && in bta_gattc_check_notif_registry()
352 p_clreg->notif_reg[i].remote_bda == p_srcb->server_bda && in bta_gattc_check_notif_registry()
353 p_clreg->notif_reg[i].handle == p_notify->handle) { in bta_gattc_check_notif_registry()
498 void bta_gattc_send_open_cback(tBTA_GATTC_RCB* p_clreg, tGATT_STATUS status, in bta_gattc_send_open_cback() argument
503 if (p_clreg->p_cback) { in bta_gattc_send_open_cback()
507 cb_data.open.client_if = p_clreg->client_if; in bta_gattc_send_open_cback()
513 (*p_clreg->p_cback)(BTA_GATTC_OPEN_EVT, &cb_data); in bta_gattc_send_open_cback()
Dbta_gattc_int.h333 extern void bta_gattc_deregister(tBTA_GATTC_RCB* p_clreg);
392 tBTA_GATTC_RCB* p_clreg);
394 extern void bta_gattc_send_open_cback(tBTA_GATTC_RCB* p_clreg,
427 extern bool bta_gattc_check_notif_registry(tBTA_GATTC_RCB* p_clreg,