Lines Matching refs:gatt_cb
87 tGATT_CB gatt_cb; variable
104 gatt_cb = tGATT_CB(); in gatt_init()
108 gatt_cb.def_mtu_size = GATT_DEF_BLE_MTU_SIZE; in gatt_init()
109 gatt_cb.sign_op_queue = fixed_queue_new(SIZE_MAX); in gatt_init()
110 gatt_cb.srv_chg_clt_q = fixed_queue_new(SIZE_MAX); in gatt_init()
137 gatt_cb.hdl_cfg.gatt_start_hdl = GATT_GATT_START_HANDLE; in gatt_init()
138 gatt_cb.hdl_cfg.gap_start_hdl = GATT_GAP_START_HANDLE; in gatt_init()
139 gatt_cb.hdl_cfg.app_start_hdl = GATT_APP_START_HANDLE; in gatt_init()
141 gatt_cb.hdl_list_info = new std::list<tGATT_HDL_LIST_ELEM>(); in gatt_init()
142 gatt_cb.srv_list_info = new std::list<tGATT_SRV_LIST_ELEM>(); in gatt_init()
159 fixed_queue_free(gatt_cb.sign_op_queue, NULL); in gatt_free()
160 gatt_cb.sign_op_queue = NULL; in gatt_free()
161 fixed_queue_free(gatt_cb.srv_chg_clt_q, NULL); in gatt_free()
162 gatt_cb.srv_chg_clt_q = NULL; in gatt_free()
164 gatt_cb.tcb[i].pending_enc_clcb = std::queue<tGATT_CLCB*>(); in gatt_free()
166 fixed_queue_free(gatt_cb.tcb[i].pending_ind_q, NULL); in gatt_free()
167 gatt_cb.tcb[i].pending_ind_q = NULL; in gatt_free()
169 alarm_free(gatt_cb.tcb[i].conf_timer); in gatt_free()
170 gatt_cb.tcb[i].conf_timer = NULL; in gatt_free()
172 alarm_free(gatt_cb.tcb[i].ind_ack_timer); in gatt_free()
173 gatt_cb.tcb[i].ind_ack_timer = NULL; in gatt_free()
175 fixed_queue_free(gatt_cb.tcb[i].sr_cmd.multi_rsp_q, NULL); in gatt_free()
176 gatt_cb.tcb[i].sr_cmd.multi_rsp_q = NULL; in gatt_free()
179 gatt_cb.hdl_list_info->clear(); in gatt_free()
180 gatt_cb.hdl_list_info = nullptr; in gatt_free()
181 gatt_cb.srv_list_info->clear(); in gatt_free()
182 gatt_cb.srv_list_info = nullptr; in gatt_free()
470 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_channel_congestion()
493 tGATT_REG* p_reg = &gatt_cb.cl_rcb[i]; in gatt_notify_phy_updated()
513 tGATT_REG* p_reg = &gatt_cb.cl_rcb[i]; in gatt_notify_conn_update()
813 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_send_conn_cback()
896 if (gatt_cb.cb_info.p_srv_chg_callback) in gatt_add_a_bonded_dev_for_srv_chg()
897 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_ADD_CLIENT, &req, in gatt_add_a_bonded_dev_for_srv_chg()
906 if (!gatt_cb.handle_of_h_r) return; in gatt_send_srv_chg_ind()
918 GATTS_HandleValueIndication(conn_id, gatt_cb.handle_of_h_r, in gatt_send_srv_chg_ind()
939 if (!gatt_cb.cb_info.p_srv_chg_callback) { in gatt_init_srv_chg()
944 bool status = (*gatt_cb.cb_info.p_srv_chg_callback)( in gatt_init_srv_chg()
954 status = (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_READ_CLENT, in gatt_init_srv_chg()
975 if (!gatt_cb.cb_info.p_srv_chg_callback || !gatt_cb.handle_of_h_r) return; in gatt_proc_srv_chg()
980 tGATT_TCB* p_tcb = &gatt_cb.tcb[found_idx]; in gatt_proc_srv_chg()