Lines Matching refs:p_clreg
637 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()
666 p_clreg->notif_reg[i].handle = handle; in BTA_GATTC_RegisterForNotifications()
705 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(client_if); in BTA_GATTC_DeregisterForNotifications() local
706 if (p_clreg == NULL) { in BTA_GATTC_DeregisterForNotifications()
713 if (p_clreg->notif_reg[i].in_use && in BTA_GATTC_DeregisterForNotifications()
714 p_clreg->notif_reg[i].remote_bda == bda && in BTA_GATTC_DeregisterForNotifications()
715 p_clreg->notif_reg[i].handle == handle) { in BTA_GATTC_DeregisterForNotifications()
717 memset(&p_clreg->notif_reg[i], 0, sizeof(tBTA_GATTC_NOTIF_REG)); in BTA_GATTC_DeregisterForNotifications()