Lines Matching refs:p_clreg
644 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()
673 p_clreg->notif_reg[i].handle = handle; in BTA_GATTC_RegisterForNotifications()
712 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(client_if); in BTA_GATTC_DeregisterForNotifications() local
713 if (p_clreg == NULL) { in BTA_GATTC_DeregisterForNotifications()
720 if (p_clreg->notif_reg[i].in_use && in BTA_GATTC_DeregisterForNotifications()
721 p_clreg->notif_reg[i].remote_bda == bda && in BTA_GATTC_DeregisterForNotifications()
722 p_clreg->notif_reg[i].handle == handle) { in BTA_GATTC_DeregisterForNotifications()
724 memset(&p_clreg->notif_reg[i], 0, sizeof(tBTA_GATTC_NOTIF_REG)); in BTA_GATTC_DeregisterForNotifications()