Lines Matching refs:gatt_cb

117     if (gatt_cb.cb_info.p_srv_chg_callback) {  in gatt_delete_dev_from_srv_chg_clt_list()
121 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_REMOVE_CLIENT, in gatt_delete_dev_from_srv_chg_clt_list()
124 osi_free(fixed_queue_try_remove_from_queue(gatt_cb.srv_chg_clt_q, p_buf)); in gatt_delete_dev_from_srv_chg_clt_list()
140 if (fixed_queue_is_empty(gatt_cb.srv_chg_clt_q)) return; in gatt_set_srv_chg()
142 list_t* list = fixed_queue_get_list(gatt_cb.srv_chg_clt_q); in gatt_set_srv_chg()
153 if (gatt_cb.cb_info.p_srv_chg_callback) in gatt_set_srv_chg()
154 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_UPDATE_CLIENT, in gatt_set_srv_chg()
184 fixed_queue_enqueue(gatt_cb.srv_chg_clt_q, p_buf); in gatt_add_srv_chg_clt()
195 for (auto& elem : *gatt_cb.hdl_list_info) { in gatt_find_hdl_buffer_by_handle()
211 auto end_it = gatt_cb.hdl_list_info->end(); in gatt_find_hdl_buffer_by_app_id()
212 auto it = gatt_cb.hdl_list_info->begin(); in gatt_find_hdl_buffer_by_app_id()
229 auto it = gatt_cb.hdl_list_info->begin(); in gatt_free_srvc_db_buffer_app_id()
230 auto end = gatt_cb.hdl_list_info->end(); in gatt_free_srvc_db_buffer_app_id()
233 it = gatt_cb.hdl_list_info->erase(it); in gatt_free_srvc_db_buffer_app_id()
257 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].ch_state == GATT_CH_OPEN) { in gatt_find_the_connected_bda()
258 bda = gatt_cb.tcb[i].peer_bda; in gatt_find_the_connected_bda()
260 *p_transport = gatt_cb.tcb[i].transport; in gatt_find_the_connected_bda()
284 if (p_tcb->indicate_handle == gatt_cb.handle_of_h_r) return true; in gatt_is_srv_chg_ind_pending()
292 if (p_buf->handle == gatt_cb.handle_of_h_r) { in gatt_is_srv_chg_ind_pending()
314 if (fixed_queue_is_empty(gatt_cb.srv_chg_clt_q)) return NULL; in gatt_is_bda_in_the_srv_chg_clt_list()
316 list_t* list = fixed_queue_get_list(gatt_cb.srv_chg_clt_q); in gatt_is_bda_in_the_srv_chg_clt_list()
343 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].peer_bda == bda) { in gatt_is_bda_connected()
365 if (gatt_cb.tcb[i].peer_bda == bda && in gatt_find_i_tcb_by_addr()
366 gatt_cb.tcb[i].transport == transport) { in gatt_find_i_tcb_by_addr()
385 if ((tcb_idx < GATT_MAX_PHY_CHANNEL) && gatt_cb.tcb[tcb_idx].in_use) in gatt_get_tcb_by_idx()
386 p_tcb = &gatt_cb.tcb[tcb_idx]; in gatt_get_tcb_by_idx()
406 if (i != GATT_INDEX_INVALID) p_tcb = &gatt_cb.tcb[i]; in gatt_find_tcb_by_addr()
424 if (j != GATT_INDEX_INVALID) return &gatt_cb.tcb[j]; in gatt_allocate_tcb_by_bdaddr()
428 tGATT_TCB* p_tcb = &gatt_cb.tcb[i]; in gatt_allocate_tcb_by_bdaddr()
614 if (p_tcb->indicate_handle == gatt_cb.handle_of_h_r) { in gatt_indication_confirmation_timeout()
665 auto it = gatt_cb.srv_list_info->begin(); in gatt_sr_find_i_rcb_by_handle()
667 for (; it != gatt_cb.srv_list_info->end(); it++) { in gatt_sr_find_i_rcb_by_handle()
832 gatt_cb.enable_err_rsp = enable; in gatt_set_err_rsp()
833 gatt_cb.req_op_code = req_op_code; in gatt_set_err_rsp()
834 gatt_cb.err_status = err_status; in gatt_set_err_rsp()
857 p_reg = &gatt_cb.cl_rcb[ii - 1]; in gatt_get_regcb()
882 if (gatt_cb.clcb[i].in_use && (gatt_cb.clcb[i].conn_id == conn_id)) { in gatt_is_clcb_allocated()
910 if (!gatt_cb.clcb[i].in_use) { in gatt_clcb_alloc()
911 p_clcb = &gatt_cb.clcb[i]; in gatt_clcb_alloc()
956 if (gatt_cb.tcb[xx].in_use && gatt_cb.tcb[xx].att_lcid == lcid) { in gatt_find_tcb_by_cid()
957 p_tcb = &gatt_cb.tcb[xx]; in gatt_find_tcb_by_cid()
977 if (gatt_cb.clcb[i].in_use && gatt_cb.clcb[i].p_tcb->peer_bda == bda) num++; in gatt_num_clcb_by_bd_addr()
1254 tGATT_CLCB* p_clcb = &gatt_cb.clcb[i]; in gatt_cleanup_upon_disc()
1276 tGATT_REG* p_reg = &gatt_cb.cl_rcb[i]; in gatt_cleanup_upon_disc()