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()
121 false /* enable_snoop */, nullptr, gatt_cb.def_mtu_size)) { in gatt_init()
130 gatt_cb.hdl_cfg.gatt_start_hdl = GATT_GATT_START_HANDLE; in gatt_init()
131 gatt_cb.hdl_cfg.gap_start_hdl = GATT_GAP_START_HANDLE; in gatt_init()
132 gatt_cb.hdl_cfg.app_start_hdl = GATT_APP_START_HANDLE; in gatt_init()
134 gatt_cb.hdl_list_info = new std::list<tGATT_HDL_LIST_ELEM>(); in gatt_init()
135 gatt_cb.srv_list_info = new std::list<tGATT_SRV_LIST_ELEM>(); in gatt_init()
152 fixed_queue_free(gatt_cb.sign_op_queue, NULL); in gatt_free()
153 gatt_cb.sign_op_queue = NULL; in gatt_free()
154 fixed_queue_free(gatt_cb.srv_chg_clt_q, NULL); in gatt_free()
155 gatt_cb.srv_chg_clt_q = NULL; in gatt_free()
157 gatt_cb.tcb[i].pending_enc_clcb = std::queue<tGATT_CLCB*>(); in gatt_free()
159 fixed_queue_free(gatt_cb.tcb[i].pending_ind_q, NULL); in gatt_free()
160 gatt_cb.tcb[i].pending_ind_q = NULL; in gatt_free()
162 alarm_free(gatt_cb.tcb[i].conf_timer); in gatt_free()
163 gatt_cb.tcb[i].conf_timer = NULL; in gatt_free()
165 alarm_free(gatt_cb.tcb[i].ind_ack_timer); in gatt_free()
166 gatt_cb.tcb[i].ind_ack_timer = NULL; in gatt_free()
168 fixed_queue_free(gatt_cb.tcb[i].sr_cmd.multi_rsp_q, NULL); in gatt_free()
169 gatt_cb.tcb[i].sr_cmd.multi_rsp_q = NULL; in gatt_free()
172 gatt_cb.hdl_list_info->clear(); in gatt_free()
173 gatt_cb.hdl_list_info = nullptr; in gatt_free()
174 gatt_cb.srv_list_info->clear(); in gatt_free()
175 gatt_cb.srv_list_info = nullptr; in gatt_free()
463 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_channel_congestion()
486 tGATT_REG* p_reg = &gatt_cb.cl_rcb[i]; in gatt_notify_phy_updated()
506 tGATT_REG* p_reg = &gatt_cb.cl_rcb[i]; in gatt_notify_conn_update()
806 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_send_conn_cback()
892 if (gatt_cb.cb_info.p_srv_chg_callback) in gatt_add_a_bonded_dev_for_srv_chg()
893 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_ADD_CLIENT, &req, in gatt_add_a_bonded_dev_for_srv_chg()
902 if (!gatt_cb.handle_of_h_r) return; in gatt_send_srv_chg_ind()
914 GATTS_HandleValueIndication(conn_id, gatt_cb.handle_of_h_r, in gatt_send_srv_chg_ind()
935 if (!gatt_cb.cb_info.p_srv_chg_callback) { in gatt_init_srv_chg()
940 bool status = (*gatt_cb.cb_info.p_srv_chg_callback)( in gatt_init_srv_chg()
950 status = (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_READ_CLENT, in gatt_init_srv_chg()
971 if (!gatt_cb.cb_info.p_srv_chg_callback || !gatt_cb.handle_of_h_r) return; in gatt_proc_srv_chg()
976 tGATT_TCB* p_tcb = &gatt_cb.tcb[found_idx]; in gatt_proc_srv_chg()