Home
last modified time | relevance | path

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

/external/bluetooth/bluedroid/bta/gatt/
Dbta_gattc_act.c54 static void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB *p_clreg);
276 void bta_gattc_deregister(tBTA_GATTC_CB *p_cb, tBTA_GATTC_RCB *p_clreg) in bta_gattc_deregister() argument
281 if (p_clreg != NULL) in bta_gattc_deregister()
288 if (p_cb->bg_track[i].cif_mask & (1 <<(p_clreg->client_if - 1))) in bta_gattc_deregister()
290 … bta_gattc_mark_bg_conn(p_clreg->client_if, p_cb->bg_track[i].remote_bda, FALSE, FALSE); in bta_gattc_deregister()
291 GATT_CancelConnect(p_clreg->client_if, p_cb->bg_track[i].remote_bda, FALSE); in bta_gattc_deregister()
293 if (p_cb->bg_track[i].cif_adv_mask & (1 <<(p_clreg->client_if - 1))) in bta_gattc_deregister()
295 … bta_gattc_mark_bg_conn(p_clreg->client_if, p_cb->bg_track[i].remote_bda, FALSE, TRUE); in bta_gattc_deregister()
300 if (p_clreg->num_clcb > 0) in bta_gattc_deregister()
305 if (p_cb->clcb[i].in_use && (p_cb->clcb[i].p_rcb == p_clreg)) in bta_gattc_deregister()
[all …]
Dbta_gattc_api.c899 tBTA_GATTC_RCB *p_clreg; in BTA_GATTC_RegisterForNotifications() local
909 if ((p_clreg = bta_gattc_cl_get_regcb(client_if)) != NULL) in BTA_GATTC_RegisterForNotifications()
913 if ( p_clreg->notif_reg[i].in_use && in BTA_GATTC_RegisterForNotifications()
914 !memcmp(p_clreg->notif_reg[i].remote_bda, bda, BD_ADDR_LEN) && in BTA_GATTC_RegisterForNotifications()
915 bta_gattc_charid_compare(&p_clreg->notif_reg[i].char_id, p_char_id)) in BTA_GATTC_RegisterForNotifications()
926 if (!p_clreg->notif_reg[i].in_use) in BTA_GATTC_RegisterForNotifications()
928 memset((void *)&p_clreg->notif_reg[i], 0, sizeof(tBTA_GATTC_NOTIF_REG)); in BTA_GATTC_RegisterForNotifications()
930 p_clreg->notif_reg[i].in_use = TRUE; in BTA_GATTC_RegisterForNotifications()
931 memcpy(p_clreg->notif_reg[i].remote_bda, bda, BD_ADDR_LEN); in BTA_GATTC_RegisterForNotifications()
933p_clreg->notif_reg[i].char_id.srvc_id.is_primary = p_char_id->srvc_id.is_primary; in BTA_GATTC_RegisterForNotifications()
[all …]
Dbta_gattc_utils.c565 BOOLEAN bta_gattc_check_notif_registry(tBTA_GATTC_RCB *p_clreg, tBTA_GATTC_SERV *p_srcb, in bta_gattc_check_notif_registry() argument
572 if (p_clreg->notif_reg[i].in_use && in bta_gattc_check_notif_registry()
573 bdcmp(p_clreg->notif_reg[i].remote_bda, p_srcb->server_bda) == 0 && in bta_gattc_check_notif_registry()
574 bta_gattc_charid_compare (&p_clreg->notif_reg[i].char_id, &p_notify->char_id)) in bta_gattc_check_notif_registry()
780 void bta_gattc_send_open_cback( tBTA_GATTC_RCB *p_clreg, tBTA_GATT_STATUS status, in bta_gattc_send_open_cback() argument
786 if (p_clreg->p_cback) in bta_gattc_send_open_cback()
791 cb_data.open.client_if = p_clreg->client_if; in bta_gattc_send_open_cback()
797 (*p_clreg->p_cback)(BTA_GATTC_OPEN_EVT, &cb_data); in bta_gattc_send_open_cback()
Dbta_gattc_main.c364 tBTA_GATTC_RCB *p_clreg; in bta_gattc_hdl_event() local
384 p_clreg = bta_gattc_cl_get_regcb(((tBTA_GATTC_DATA *)p_msg)->api_dereg.client_if); in bta_gattc_hdl_event()
385 bta_gattc_deregister(p_cb, p_clreg); in bta_gattc_hdl_event()
Dbta_gattc_int.h459 extern void bta_gattc_deregister(tBTA_GATTC_CB *p_cb, tBTA_GATTC_RCB *p_clreg);
495 extern void bta_gattc_init_bk_conn(tBTA_GATTC_API_OPEN *p_data, tBTA_GATTC_RCB *p_clreg);
497 extern void bta_gattc_send_open_cback( tBTA_GATTC_RCB *p_clreg, tBTA_GATT_STATUS status,
524 extern BOOLEAN bta_gattc_check_notif_registry(tBTA_GATTC_RCB *p_clreg, tBTA_GATTC_SERV *p_srcb, tB…