Lines Matching defs:p_clreg
178 void bta_gattc_int_deregister_cmpl(tBTA_GATTC_RCB *p_clreg, tBTA_GATTC_IF client_if)
180 tBTA_GATTC_CBACK *p_cback = p_clreg->p_cback;
186 GATT_Deregister(p_clreg->client_if);
187 memset(p_clreg, 0, sizeof(tBTA_GATTC_RCB));
207 void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB *p_clreg, tBTA_GATTC_IF client_if)
240 tBTA_GATTC_RCB *p_clreg;
245 if ((p_clreg = bta_gattc_cl_get_regcb(client_if)) != NULL)
247 p_cback = p_clreg->p_cback;
249 memset(p_clreg, 0, sizeof(tBTA_GATTC_RCB));
273 tBTA_GATTC_RCB *p_clreg;
277 if ((p_clreg = bta_gattc_cl_get_regcb(p_data->api_dereg.client_if)) != NULL)
279 if (p_clreg->num_clcb > 0)
284 if (p_cb->clcb[i].in_use && (p_cb->clcb[i].p_rcb == p_clreg))
286 p_clreg->dereg_pending = TRUE;
295 bta_gattc_deregister_cmpl(p_clreg, p_clreg->client_if);
315 tBTA_GATTC_RCB *p_clreg = bta_gattc_cl_get_regcb(p_msg->api_conn.client_if);
317 if (p_clreg != NULL)
330 bta_gattc_send_open_cback(p_clreg,
338 bta_gattc_init_bk_conn(&p_msg->api_conn, p_clreg);
360 tBTA_GATTC_RCB *p_clreg;
374 p_clreg = bta_gattc_cl_get_regcb(p_msg->api_cancel_conn.client_if);
376 if (p_clreg && p_clreg->p_cback)
379 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data);
484 void bta_gattc_init_bk_conn(tBTA_GATTC_API_OPEN *p_data, tBTA_GATTC_RCB *p_clreg)
523 bta_gattc_send_open_cback(p_clreg, status, p_data->remote_bda, BTA_GATT_INVALID_CONN_ID);
537 tBTA_GATTC_RCB *p_clreg;
553 p_clreg = bta_gattc_cl_get_regcb(p_data->client_if);
555 if (p_clreg && p_clreg->p_cback)
557 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data);
701 tBTA_GATTC_RCB *p_clreg = p_clcb->p_rcb;
719 if (p_clreg->num_clcb == 0 && p_clreg->dereg_pending)
721 bta_gattc_deregister_cmpl(p_clreg, p_clreg->client_if);