Lines Matching refs:p_clreg
65 static void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB* p_clreg);
208 void bta_gattc_deregister(tBTA_GATTC_RCB* p_clreg) { in bta_gattc_deregister() argument
209 if (!p_clreg) { in bta_gattc_deregister()
219 if (bta_gattc_cb.bg_track[i].cif_mask & (1 << (p_clreg->client_if - 1))) { in bta_gattc_deregister()
220 bta_gattc_mark_bg_conn(p_clreg->client_if, in bta_gattc_deregister()
222 GATT_CancelConnect(p_clreg->client_if, in bta_gattc_deregister()
227 if (p_clreg->num_clcb == 0) { in bta_gattc_deregister()
228 bta_gattc_deregister_cmpl(p_clreg); in bta_gattc_deregister()
234 if (!bta_gattc_cb.clcb[i].in_use || (bta_gattc_cb.clcb[i].p_rcb != p_clreg)) in bta_gattc_deregister()
237 p_clreg->dereg_pending = true; in bta_gattc_deregister()
250 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(p_msg->api_conn.client_if); in bta_gattc_process_api_open() local
251 if (!p_clreg) { in bta_gattc_process_api_open()
258 bta_gattc_init_bk_conn(&p_msg->api_conn, p_clreg); in bta_gattc_process_api_open()
270 bta_gattc_send_open_cback(p_clreg, GATT_NO_RESOURCES, in bta_gattc_process_api_open()
295 tBTA_GATTC_RCB* p_clreg = in bta_gattc_process_api_open_cancel() local
298 if (p_clreg && p_clreg->p_cback) { in bta_gattc_process_api_open_cancel()
301 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_process_api_open_cancel()
307 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(client_if); in bta_gattc_process_enc_cmpl() local
309 if (!p_clreg || !p_clreg->p_cback) return; in bta_gattc_process_enc_cmpl()
317 (*p_clreg->p_cback)(BTA_GATTC_ENC_CMPL_CB_EVT, &cb_data); in bta_gattc_process_enc_cmpl()
377 tBTA_GATTC_RCB* p_clreg) { in bta_gattc_init_bk_conn() argument
379 bta_gattc_send_open_cback(p_clreg, GATT_NO_RESOURCES, p_data->remote_bda, in bta_gattc_init_bk_conn()
389 bta_gattc_send_open_cback(p_clreg, GATT_ERROR, p_data->remote_bda, in bta_gattc_init_bk_conn()
414 tBTA_GATTC_RCB* p_clreg; in bta_gattc_cancel_bk_conn() local
426 p_clreg = bta_gattc_cl_get_regcb(p_data->client_if); in bta_gattc_cancel_bk_conn()
428 if (p_clreg && p_clreg->p_cback) { in bta_gattc_cancel_bk_conn()
429 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_bk_conn()
535 tBTA_GATTC_RCB* p_clreg = p_clcb->p_rcb; in bta_gattc_close() local
560 if (p_clreg->num_clcb == 0 && p_clreg->dereg_pending) { in bta_gattc_close()
561 bta_gattc_deregister_cmpl(p_clreg); in bta_gattc_close()
1016 static void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB* p_clreg) { in bta_gattc_deregister_cmpl() argument
1017 tGATT_IF client_if = p_clreg->client_if; in bta_gattc_deregister_cmpl()
1019 tBTA_GATTC_CBACK* p_cback = p_clreg->p_cback; in bta_gattc_deregister_cmpl()
1023 GATT_Deregister(p_clreg->client_if); in bta_gattc_deregister_cmpl()
1024 memset(p_clreg, 0, sizeof(tBTA_GATTC_RCB)); in bta_gattc_deregister_cmpl()
1346 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(gatt_if); in bta_gattc_phy_update_cback() local
1348 if (!p_clreg || !p_clreg->p_cback) { in bta_gattc_phy_update_cback()
1359 (*p_clreg->p_cback)(BTA_GATTC_PHY_UPDATE_EVT, &cb_data); in bta_gattc_phy_update_cback()
1365 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(gatt_if); in bta_gattc_conn_update_cback() local
1367 if (!p_clreg || !p_clreg->p_cback) { in bta_gattc_conn_update_cback()
1378 (*p_clreg->p_cback)(BTA_GATTC_CONN_UPDATE_EVT, &cb_data); in bta_gattc_conn_update_cback()