Home
last modified time | relevance | path

Searched refs:gatt_cb (Results 1 – 11 of 11) sorted by relevance

/external/bluetooth/bluedroid/stack/gatt/
Dgatt_attr.c72 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) in gatt_profile_find_conn_id_by_bd_addr()
97 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) in gatt_profile_find_clcb_by_bd_addr()
123 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) in gatt_profile_clcb_alloc()
151 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) in gatt_profile_clcb_dealloc()
265 gatt_cb.gatt_if = GATT_Register(&app_uuid, &gatt_profile_cback); in gatt_profile_db_init()
266 GATT_StartIf(gatt_cb.gatt_if); in gatt_profile_db_init()
268 service_handle = GATTS_CreateService (gatt_cb.gatt_if , &uuid, 0, GATTP_MAX_ATTR_NUM, TRUE); in gatt_profile_db_init()
271 uuid.uu.uuid16 = gatt_cb.gattp_attr.uuid = GATT_UUID_GATT_SRV_CHGD; in gatt_profile_db_init()
272 gatt_cb.gattp_attr.service_change = 0; in gatt_profile_db_init()
273 gatt_cb.gattp_attr.handle = in gatt_profile_db_init()
[all …]
Dgatt_utils.c134 if (gatt_cb.cb_info.p_srv_chg_callback) in gatt_delete_dev_from_srv_chg_clt_list()
138 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_REMOVE_CLIENT,&req, NULL); in gatt_delete_dev_from_srv_chg_clt_list()
140 GKI_freebuf (GKI_remove_from_queue (&gatt_cb.srv_chg_clt_q, p_buf)); in gatt_delete_dev_from_srv_chg_clt_list()
156 tGATTS_SRV_CHG *p_buf = (tGATTS_SRV_CHG *)GKI_getfirst(&gatt_cb.srv_chg_clt_q); in gatt_set_srv_chg()
168 if (gatt_cb.cb_info.p_srv_chg_callback) in gatt_set_srv_chg()
169 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_UPDATE_CLIENT,&req, NULL); in gatt_set_srv_chg()
187 …tGATTS_PENDING_NEW_SRV_START *p_buf = (tGATTS_PENDING_NEW_SRV_START *)GKI_getfirst(&gatt_cb.pendin… in gatt_sr_is_new_srv_chg()
247 GKI_enqueue (&gatt_cb.pending_new_srv_start_q, p_buf); in gatt_add_pending_new_srv_start()
270 GKI_enqueue (&gatt_cb.srv_chg_clt_q, p_buf); in gatt_add_srv_chg_clt()
289 tGATT_CB *p_cb = &gatt_cb; in gatt_alloc_hdl_buffer()
[all …]
Dgatt_api.c61 gatt_cb.trace_level = new_level; in GATT_SetTraceLevel()
63 return(gatt_cb.trace_level); in GATT_SetTraceLevel()
92 status = gatt_add_an_item_to_list(&gatt_cb.hdl_list_info, p_buf); in GATTS_AddHandleRange()
116 gatt_cb.cb_info = *p_cb_info; in GATTS_NVRegister()
145 tGATT_HDL_LIST_INFO *p_list_info= &gatt_cb.hdl_list_info; in GATTS_CreateService()
173 s_hdl= gatt_cb.hdl_cfg.gatt_start_hdl; in GATTS_CreateService()
177 s_hdl= gatt_cb.hdl_cfg.gap_start_hdl; in GATTS_CreateService()
188 if (s_hdl < gatt_cb.hdl_cfg.app_start_hdl) in GATTS_CreateService()
191 s_hdl= gatt_cb.hdl_cfg.app_start_hdl; in GATTS_CreateService()
221 if (gatt_cb.cb_info.p_nv_save_callback) in GATTS_CreateService()
[all …]
Dgatt_sr.c342 if (gatt_cb.enable_err_rsp && gatt_cb.req_op_code == op_code) in gatt_process_exec_write_req()
345 gatt_cb.err_status); in gatt_process_exec_write_req()
347 gatt_send_error_rsp (p_tcb, gatt_cb.err_status, gatt_cb.req_op_code, gatt_cb.handle, FALSE); in gatt_process_exec_write_req()
414 if (gatt_cb.enable_err_rsp && gatt_cb.req_op_code == op_code) in gatt_process_read_multi_req()
416 …ACE_DEBUG("Conformance tst: forced err rspvofr ReadMultiple: error status=%d", gatt_cb.err_status); in gatt_process_read_multi_req()
420 gatt_send_error_rsp (p_tcb, gatt_cb.err_status, gatt_cb.req_op_code, handle, FALSE); in gatt_process_read_multi_req()
435 if ((err = gatts_read_attr_perm_check( gatt_cb.sr_reg[i_rcb].p_db, in gatt_process_read_multi_req()
480 gatt_cb.sr_reg[i_rcb].p_db, in gatt_process_read_multi_req()
493 …gatt_sr_process_app_rsp(p_tcb, gatt_cb.sr_reg[i_rcb].gatt_if ,trans_id, op_code, GATT_SUCCESS, p_m… in gatt_process_read_multi_req()
532 tGATT_SRV_LIST_INFO *p_list= &gatt_cb.srv_list_info; in gatt_build_primary_service_rsp()
[all …]
Dgatt_main.c77 tGATT_CB gatt_cb; variable
96 memset (&gatt_cb, 0, sizeof(tGATT_CB)); in gatt_init()
99 gatt_cb.trace_level = GATT_INITIAL_TRACE_LEVEL; in gatt_init()
101 gatt_cb.trace_level = BT_TRACE_LEVEL_NONE; /* No traces */ in gatt_init()
103 gatt_cb.def_mtu_size = GATT_DEF_BLE_MTU_SIZE; in gatt_init()
104 GKI_init_q (&gatt_cb.sign_op_queue); in gatt_init()
129 gatt_cb.hdl_cfg.gatt_start_hdl = GATT_GATT_START_HANDLE; in gatt_init()
130 gatt_cb.hdl_cfg.gap_start_hdl = GATT_GAP_START_HANDLE; in gatt_init()
131 gatt_cb.hdl_cfg.app_start_hdl = GATT_APP_START_HANDLE; in gatt_init()
478 for (i = 0, p_reg = gatt_cb.cl_rcb ; i < GATT_MAX_APPS; i++, p_reg++) in gatt_channel_congestion()
[all …]
Dgatt_auth.c239 if (gatt_cb.cl_rcb[i].in_use && gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb) in gatt_notify_enc_cmpl()
241 (*gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb)(gatt_cb.cl_rcb[i].gatt_if, bd_addr); in gatt_notify_enc_cmpl()
Dgatt_int.h37 #define GATT_GET_SR_REG_PTR(index) (&gatt_cb.sr_reg[(UINT8) (index)]);
525 GATT_API extern tGATT_CB gatt_cb;
528 #define gatt_cb (*gatt_cb_ptr)
Dgatt_cl.c706 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) in gatt_process_notification()
722 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) in gatt_process_notification()
Dgatt_db.c1149 p_sreg = &gatt_cb.sr_reg[i_rcb]; in gatts_send_app_read_request()
/external/bluetooth/bluedroid/include/
Dbt_trace.h645 #define GATT_TRACE_ERROR(...) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR)…
646 #define GATT_TRACE_WARNING(...) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNIN…
647 #define GATT_TRACE_API(...) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API) B…
648 #define GATT_TRACE_EVENT(...) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_EVENT)…
649 #define GATT_TRACE_DEBUG(...) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG)…
/external/libnfc-nci/src/include/
Dbt_trace.h2561 #define GATT_TRACE_ERROR0(m) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) …
2562 #define GATT_TRACE_ERROR1(m,p1) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) …
2563 #define GATT_TRACE_ERROR2(m,p1,p2) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) …
2564 #define GATT_TRACE_ERROR3(m,p1,p2,p3) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) …
2565 #define GATT_TRACE_ERROR4(m,p1,p2,p3,p4) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) …
2566 #define GATT_TRACE_ERROR5(m,p1,p2,p3,p4,p5) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) …
2567 #define GATT_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) …
2569 #define GATT_TRACE_WARNING0(m) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING…
2570 #define GATT_TRACE_WARNING1(m,p1) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING…
2571 #define GATT_TRACE_WARNING2(m,p1,p2) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING…
[all …]