Lines Matching refs:p_clreg
63 static void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB* p_clreg);
204 void bta_gattc_deregister(tBTA_GATTC_RCB* p_clreg) { in bta_gattc_deregister() argument
205 if (!p_clreg) { in bta_gattc_deregister()
220 if (bta_gattc_cb.bg_track[i].cif_mask & (1 << (p_clreg->client_if - 1))) { in bta_gattc_deregister()
221 bta_gattc_mark_bg_conn(p_clreg->client_if, in bta_gattc_deregister()
223 GATT_CancelConnect(p_clreg->client_if, in bta_gattc_deregister()
228 if (p_clreg->num_clcb == 0) { in bta_gattc_deregister()
229 bta_gattc_deregister_cmpl(p_clreg); in bta_gattc_deregister()
235 if (!bta_gattc_cb.clcb[i].in_use || (bta_gattc_cb.clcb[i].p_rcb != p_clreg)) in bta_gattc_deregister()
238 p_clreg->dereg_pending = true; in bta_gattc_deregister()
251 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(p_msg->api_conn.client_if); in bta_gattc_process_api_open() local
252 if (!p_clreg) { in bta_gattc_process_api_open()
259 bta_gattc_init_bk_conn(&p_msg->api_conn, p_clreg); in bta_gattc_process_api_open()
271 bta_gattc_send_open_cback(p_clreg, GATT_NO_RESOURCES, in bta_gattc_process_api_open()
300 tBTA_GATTC_RCB* p_clreg = in bta_gattc_process_api_open_cancel() local
303 if (p_clreg && p_clreg->p_cback) { in bta_gattc_process_api_open_cancel()
306 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_process_api_open_cancel()
312 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(client_if); in bta_gattc_process_enc_cmpl() local
314 if (!p_clreg || !p_clreg->p_cback) return; in bta_gattc_process_enc_cmpl()
322 (*p_clreg->p_cback)(BTA_GATTC_ENC_CMPL_CB_EVT, &cb_data); in bta_gattc_process_enc_cmpl()
382 tBTA_GATTC_RCB* p_clreg) { in bta_gattc_init_bk_conn() argument
384 bta_gattc_send_open_cback(p_clreg, GATT_NO_RESOURCES, p_data->remote_bda, in bta_gattc_init_bk_conn()
394 bta_gattc_send_open_cback(p_clreg, GATT_ERROR, p_data->remote_bda, in bta_gattc_init_bk_conn()
420 tBTA_GATTC_RCB* p_clreg; in bta_gattc_cancel_bk_conn() local
432 p_clreg = bta_gattc_cl_get_regcb(p_data->client_if); in bta_gattc_cancel_bk_conn()
434 if (p_clreg && p_clreg->p_cback) { in bta_gattc_cancel_bk_conn()
435 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_bk_conn()
548 tBTA_GATTC_RCB* p_clreg = p_clcb->p_rcb; in bta_gattc_close() local
583 if (p_clreg->num_clcb == 0 && p_clreg->dereg_pending) { in bta_gattc_close()
584 bta_gattc_deregister_cmpl(p_clreg); in bta_gattc_close()
1080 static void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB* p_clreg) { in bta_gattc_deregister_cmpl() argument
1081 tGATT_IF client_if = p_clreg->client_if; in bta_gattc_deregister_cmpl()
1083 tBTA_GATTC_CBACK* p_cback = p_clreg->p_cback; in bta_gattc_deregister_cmpl()
1087 GATT_Deregister(p_clreg->client_if); in bta_gattc_deregister_cmpl()
1088 memset(p_clreg, 0, sizeof(tBTA_GATTC_RCB)); in bta_gattc_deregister_cmpl()
1417 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(gatt_if); in bta_gattc_phy_update_cback() local
1419 if (!p_clreg || !p_clreg->p_cback) { in bta_gattc_phy_update_cback()
1430 (*p_clreg->p_cback)(BTA_GATTC_PHY_UPDATE_EVT, &cb_data); in bta_gattc_phy_update_cback()
1436 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(gatt_if); in bta_gattc_conn_update_cback() local
1438 if (!p_clreg || !p_clreg->p_cback) { in bta_gattc_conn_update_cback()
1449 (*p_clreg->p_cback)(BTA_GATTC_CONN_UPDATE_EVT, &cb_data); in bta_gattc_conn_update_cback()