Lines Matching defs:p_clreg
59 static void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB *p_clreg);
273 void bta_gattc_deregister(tBTA_GATTC_CB *p_cb, tBTA_GATTC_RCB *p_clreg)
278 if (p_clreg != NULL)
285 if (p_cb->bg_track[i].cif_mask & (1 <<(p_clreg->client_if - 1)))
287 bta_gattc_mark_bg_conn(p_clreg->client_if, p_cb->bg_track[i].remote_bda, FALSE, FALSE);
288 GATT_CancelConnect(p_clreg->client_if, p_cb->bg_track[i].remote_bda, FALSE);
290 if (p_cb->bg_track[i].cif_adv_mask & (1 <<(p_clreg->client_if - 1)))
292 bta_gattc_mark_bg_conn(p_clreg->client_if, p_cb->bg_track[i].remote_bda, FALSE, TRUE);
297 if (p_clreg->num_clcb > 0)
302 if (p_cb->clcb[i].in_use && (p_cb->clcb[i].p_rcb == p_clreg))
304 p_clreg->dereg_pending = TRUE;
313 bta_gattc_deregister_cmpl(p_clreg);
333 tBTA_GATTC_RCB *p_clreg = bta_gattc_cl_get_regcb(p_msg->api_conn.client_if);
336 if (p_clreg != NULL)
350 bta_gattc_send_open_cback(p_clreg,
359 bta_gattc_init_bk_conn(&p_msg->api_conn, p_clreg);
381 tBTA_GATTC_RCB *p_clreg;
397 p_clreg = bta_gattc_cl_get_regcb(p_msg->api_cancel_conn.client_if);
399 if (p_clreg && p_clreg->p_cback)
402 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data);
424 tBTA_GATTC_RCB *p_clreg;
428 p_clreg = bta_gattc_cl_get_regcb(p_msg->enc_cmpl.client_if);
430 if (p_clreg && p_clreg->p_cback)
437 (*p_clreg->p_cback)(BTA_GATTC_ENC_CMPL_CB_EVT, &cb_data);
551 void bta_gattc_init_bk_conn(tBTA_GATTC_API_OPEN *p_data, tBTA_GATTC_RCB *p_clreg)
595 bta_gattc_send_open_cback(p_clreg, status, p_data->remote_bda,
610 tBTA_GATTC_RCB *p_clreg;
626 p_clreg = bta_gattc_cl_get_regcb(p_data->client_if);
628 if (p_clreg && p_clreg->p_cback)
630 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data);
792 tBTA_GATTC_RCB *p_clreg = p_clcb->p_rcb;
821 if (p_clreg->num_clcb == 0 && p_clreg->dereg_pending)
823 bta_gattc_deregister_cmpl(p_clreg);
1513 static void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB *p_clreg)
1516 tBTA_GATTC_IF client_if = p_clreg->client_if;
1518 tBTA_GATTC_CBACK *p_cback = p_clreg->p_cback;
1522 GATT_Deregister(p_clreg->client_if);
1523 memset(p_clreg, 0, sizeof(tBTA_GATTC_RCB));
2024 tBTA_GATTC_RCB *p_clreg = bta_gattc_cl_get_regcb(p_msg->api_listen.client_if);
2031 if (p_clreg == NULL)
2048 (*p_clreg->p_cback)(BTA_GATTC_LISTEN_EVT, &cb_data);
2054 (*p_clreg->p_cback)(BTA_GATTC_LISTEN_EVT, &cb_data);
2097 tBTA_GATTC_RCB *p_clreg = bta_gattc_cl_get_regcb(p_msg->api_listen.client_if);
2104 if (p_clreg && p_clreg->p_cback)
2105 (*p_clreg->p_cback)(BTA_GATTC_LISTEN_EVT, &cb_data);