Home
last modified time | relevance | path

Searched refs:gatt_if (Results 1 – 24 of 24) sorted by relevance

/system/bt/stack/gatt/
Dgatt_api.c140 UINT16 GATTS_CreateService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, in GATTS_CreateService() argument
149 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_CreateService()
157 GATT_TRACE_ERROR ("Inavlid gatt_if=%d", gatt_if); in GATTS_CreateService()
393 BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, UINT16 svc_inst) in GATTS_DeleteService() argument
400 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_DeleteService()
463 tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle, in GATTS_StartService() argument
470 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_StartService()
506 p_sreg->gatt_if = gatt_if; in GATTS_StartService()
602 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueIndication() local
604 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueIndication()
[all …]
Dgatt_utils.c1463 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in gatt_sr_send_req_callback() local
1464 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in gatt_sr_send_req_callback()
1615 tGATT_REG *gatt_get_regcb (tGATT_IF gatt_if) in gatt_get_regcb() argument
1617 UINT8 ii = (UINT8)gatt_if; in gatt_get_regcb()
1677 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id); in gatt_clcb_alloc() local
1680 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in gatt_clcb_alloc()
1935 void gatt_sr_update_cback_cnt(tGATT_TCB *p_tcb, tGATT_IF gatt_if, BOOLEAN is_inc, BOOLEAN is_reset_… in gatt_sr_update_cback_cnt() argument
1938 UINT8 idx = ((UINT8) gatt_if) - 1 ; in gatt_sr_update_cback_cnt()
1970 void gatt_sr_update_prep_cnt(tGATT_TCB *p_tcb, tGATT_IF gatt_if, BOOLEAN is_inc, BOOLEAN is_reset_f… in gatt_sr_update_prep_cnt() argument
1972 UINT8 idx = ((UINT8) gatt_if) - 1 ; in gatt_sr_update_prep_cnt()
[all …]
Dgatt_attr.c44 static void gatt_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected,
77 GATT_GetConnIdIfConnected (gatt_cb.gatt_if, remote_bda, &conn_id, BT_TRANSPORT_LE); in gatt_profile_find_conn_id_by_bd_addr()
232 static void gatt_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, in gatt_connect_cback() argument
236 UNUSED(gatt_if); in gatt_connect_cback()
278 gatt_cb.gatt_if = GATT_Register(&app_uuid, &gatt_profile_cback); in gatt_profile_db_init()
279 GATT_StartIf(gatt_cb.gatt_if); in gatt_profile_db_init()
281 service_handle = GATTS_CreateService (gatt_cb.gatt_if , &uuid, 0, GATTP_MAX_ATTR_NUM, TRUE); in gatt_profile_db_init()
294 status = GATTS_StartService (gatt_cb.gatt_if, service_handle, GATTP_TRANSPORT_SUPPORTED ); in gatt_profile_db_init()
297 gatt_cb.gatt_if, status); in gatt_profile_db_init()
453 if (GATT_GetConnIdIfConnected (gatt_cb.gatt_if, remote_bda, &p_clcb->conn_id, transport)) in GATT_ConfigServiceChangeCCC()
[all …]
Dgatt_int.h33 #define GATT_CREATE_CONN_ID(tcb_idx, gatt_if) ((UINT16) ((((UINT8)(tcb_idx) ) << 8) | ((UINT8) (ga… argument
239 tGATT_IF gatt_if; /* this service is belong to which application */ member
255 tGATT_IF gatt_if; /* one based */ member
438 tGATT_IF gatt_if[GATT_MAX_APPS]; member
473 tGATT_IF gatt_if; member
538 extern void gatt_update_app_use_link_flag ( tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add, BOO…
605 extern BOOLEAN gatt_update_auto_connect_dev (tGATT_IF gatt_if, BOOLEAN add, BD_ADDR bd_addr, BOOLEA…
606 extern BOOLEAN gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV *p_dev, tGATT_IF gatt_if);
607 extern BOOLEAN gatt_remove_bg_dev_for_app(tGATT_IF gatt_if, BD_ADDR bd_addr);
611 extern void gatt_deregister_bgdev_list(tGATT_IF gatt_if);
[all …]
Dgatt_main.c280 void gatt_update_app_hold_link_status (tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add) in gatt_update_app_hold_link_status() argument
294 if (p_tcb->app_hold_link[i] == gatt_if) in gatt_update_app_hold_link_status()
311 p_tcb->app_hold_link[i] = gatt_if; in gatt_update_app_hold_link_status()
318 …te_app_hold_link_status found=%d[1-found] idx=%d gatt_if=%d is_add=%d", found, i, gatt_if, is_add); in gatt_update_app_hold_link_status()
332 void gatt_update_app_use_link_flag (tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add, BOOLEAN che… in gatt_update_app_use_link_flag() argument
337 gatt_update_app_hold_link_status(gatt_if, p_tcb, is_add); in gatt_update_app_use_link_flag()
415 GATT_TRACE_ERROR("Max TCB for gatt_if [%d] reached.", p_reg->gatt_if); in gatt_act_connect()
421 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, FALSE); in gatt_act_connect()
538 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_channel_congestion()
963 if (p_bg_dev && gatt_is_bg_dev_for_app(p_bg_dev, p_reg->gatt_if)) in gatt_send_conn_cback()
[all …]
Dgatt_sr.c253 tGATT_STATUS gatt_sr_process_app_rsp (tGATT_TCB *p_tcb, tGATT_IF gatt_if, in gatt_sr_process_app_rsp() argument
260 GATT_TRACE_DEBUG("gatt_sr_process_app_rsp gatt_if=%d", gatt_if); in gatt_sr_process_app_rsp()
262 gatt_sr_update_cback_cnt(p_tcb, gatt_if, FALSE, FALSE); in gatt_sr_process_app_rsp()
273 gatt_sr_update_prep_cnt(p_tcb, gatt_if, TRUE, FALSE); in gatt_sr_process_app_rsp()
327 tGATT_IF gatt_if; in gatt_process_exec_write_req() local
360 gatt_if = (tGATT_IF) (i+1); in gatt_process_exec_write_req()
361 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if); in gatt_process_exec_write_req()
478 …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()
913 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_cb.cl_rcb[i].gatt_if); in gatts_process_mtu_req()
1100 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_sreg->gatt_if); in gatts_process_write_req()
[all …]
Dgatt_auth.c241 (*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_db.c1130 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_sreg->gatt_if); in gatts_send_app_read_request()
1135 gatt_sr_update_cback_cnt(p_tcb, p_sreg->gatt_if, TRUE, TRUE); in gatts_send_app_read_request()
Dgatt_cl.c732 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_process_notification()
/system/bt/bta/gatt/
Dbta_gatts_act.c44 static void bta_gatts_conn_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id,
163 GATT_Deregister(p_cb->rcb[i].gatt_if); in bta_gatts_api_disable()
228 p_cb->rcb[first_unuse].gatt_if = in bta_gatts_register()
230 if ( !p_cb->rcb[first_unuse].gatt_if) { in bta_gatts_register()
236 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; in bta_gatts_register()
295 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) in bta_gatts_deregister()
301 GATT_Deregister(p_cb->rcb[i].gatt_if); in bta_gatts_deregister()
346 service_id = GATTS_CreateService (p_cb->rcb[rcb_idx].gatt_if, in bta_gatts_create_srvc()
363 cb_data.create.server_if = p_cb->rcb[rcb_idx].gatt_if; in bta_gatts_create_srvc()
400 cb_data.add_result.server_if = p_rcb->gatt_if; in bta_gatts_add_include_srvc()
[all …]
Dbta_gatts_utils.c96 if (p_reg->in_use && p_reg->gatt_if == server_if) in bta_gatts_find_app_rcb_by_app_if()
118 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) in bta_gatts_find_app_rcb_idx_by_app_if()
Dbta_gattc_utils.c489 tBTA_GATTC_IF gatt_if; in bta_gattc_clear_notif_registration() local
495 if (GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { in bta_gattc_clear_notif_registration()
496 if ((p_clrcb = bta_gattc_cl_get_regcb(gatt_if)) != NULL) { in bta_gattc_clear_notif_registration()
Dbta_gatts_int.h186 tBTA_GATTS_IF gatt_if; member
Dbta_gattc_act.c693 tBTA_GATTC_IF gatt_if; in bta_gattc_conn() local
702 &gatt_if, p_clcb->bda, &p_clcb->transport); in bta_gattc_conn()
1789 tBTA_GATTC_IF gatt_if; in bta_gattc_process_indicate() local
1792 if (!GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) in bta_gattc_process_indicate()
1800 if ((p_clrcb = bta_gattc_cl_get_regcb(gatt_if)) == NULL) in bta_gattc_process_indicate()
1828 p_clcb = bta_gattc_clcb_alloc(gatt_if, remote_bda, transport); in bta_gattc_process_indicate()
/system/bt/btif/src/
Dbtif_gatt_test.c49 tGATT_IF gatt_if; member
100 static void btif_test_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, in btif_test_connect_cback() argument
103 UNUSED(gatt_if); in btif_test_connect_cback()
222 test_cb.gatt_if = GATT_Register(&app_uuid, &btif_test_callbacks); in btif_gattc_test_command_impl()
223 GATT_StartIf(test_cb.gatt_if); in btif_gattc_test_command_impl()
225 GATT_Deregister(test_cb.gatt_if); in btif_gattc_test_command_impl()
226 test_cb.gatt_if = 0; in btif_gattc_test_command_impl()
243 if ( !GATT_Connect(test_cb.gatt_if, params->bda1->address, TRUE, BT_TRANSPORT_LE) ) in btif_gattc_test_command_impl()
/system/bt/stack/include/
Dgatt_api.h570 typedef void (tGATT_CONN_CBACK) (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected,
581 typedef void (tGATT_ENC_CMPL_CB)(tGATT_IF gatt_if, BD_ADDR bda);
737 extern UINT16 GATTS_CreateService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid,
814 extern BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid,
830 extern tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle,
1047 extern void GATT_Deregister (tGATT_IF gatt_if);
1062 extern void GATT_StartIf (tGATT_IF gatt_if);
1079 extern BOOLEAN GATT_Connect (tGATT_IF gatt_if, BD_ADDR bd_addr,
1098 extern BOOLEAN GATT_CancelConnect (tGATT_IF gatt_if, BD_ADDR bd_addr,
1151 extern BOOLEAN GATT_GetConnIdIfConnected(tGATT_IF gatt_if, BD_ADDR bd_addr,
[all …]
/system/bt/stack/gap/
Dgap_ble.c46 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connec…
392 gap_cb.gatt_if = GATT_Register(&app_uuid, &gap_cback); in gap_attr_db_init()
394 GATT_StartIf(gap_cb.gatt_if); in gap_attr_db_init()
397 service_handle = GATTS_CreateService (gap_cb.gatt_if, &uuid, 0, GAP_MAX_ATTR_NUM, TRUE); in gap_attr_db_init()
443 status = GATTS_StartService(gap_cb.gatt_if, service_handle, GAP_TRANSPORT_SUPPORTED ); in gap_attr_db_init()
446 gap_cb.gatt_if, service_handle, status); in gap_attr_db_init()
581 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, in gap_ble_c_connect_cback() argument
587 UNUSED(gatt_if); in gap_ble_c_connect_cback()
707 if (GATT_GetConnIdIfConnected(gap_cb.gatt_if, peer_bda, &p_clcb->conn_id, BT_TRANSPORT_LE)) in gap_ble_accept_cl_operation()
711 if (!GATT_Connect(gap_cb.gatt_if, p_clcb->bda, TRUE, BT_TRANSPORT_LE)) in gap_ble_accept_cl_operation()
[all …]
Dgap_int.h153 tGATT_IF gatt_if; member
/system/bt/stack/srvc/
Dsrvc_eng.c35 static void srvc_eng_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connecte…
351 static void srvc_eng_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, in srvc_eng_connect_cback() argument
354 UNUSED(gatt_if); in srvc_eng_connect_cback()
443 srvc_eng_cb.gatt_if = GATT_Register(&app_uuid, &srvc_gatt_cback); in srvc_eng_init()
444 GATT_StartIf(srvc_eng_cb.gatt_if); in srvc_eng_init()
446 GATT_TRACE_DEBUG ("Srvc_Init: gatt_if=%d ", srvc_eng_cb.gatt_if); in srvc_eng_init()
Dsrvc_dis.c358 …dis_cb.service_handle = GATTS_CreateService (srvc_eng_cb.gatt_if , &uuid, 0, DIS_MAX_ATTR_NUM, TRU… in DIS_SrInit()
381 …status = GATTS_StartService (srvc_eng_cb.gatt_if, dis_cb.service_handle, GATT_TRANSPORT_LE_BR_EDR); in DIS_SrInit()
468 GATT_GetConnIdIfConnected(srvc_eng_cb.gatt_if, peer_bda, &conn_id, BT_TRANSPORT_LE); in DIS_ReadDISInfo()
475 return GATT_Connect(srvc_eng_cb.gatt_if, peer_bda, TRUE, BT_TRANSPORT_LE); in DIS_ReadDISInfo()
Dsrvc_battery.c214 srvc_hdl = GATTS_CreateService (srvc_eng_cb.gatt_if , in Battery_Instantiate()
287 status = GATTS_StartService (srvc_eng_cb.gatt_if, srvc_hdl, p_reg_info->transport); in Battery_Instantiate()
294 GATTS_DeleteService(srvc_eng_cb.gatt_if, &uuid, battery_cb.inst_id); in Battery_Instantiate()
Dsrvc_eng_int.h54 tGATT_IF gatt_if; member
/system/bt/bta/hh/
Dbta_hh_le.c344 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
374 bta_hh_cb.gatt_if = p_reg->client_if; in bta_hh_le_register_cmpl()
378 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_register_cmpl()
396 return (bta_hh_cb.gatt_if == client_if); in bta_hh_le_is_hh_gatt_if()
411 BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); in bta_hh_le_deregister()
447 BTA_GATTC_Open(bta_hh_cb.gatt_if, remote_bda, TRUE, BTA_GATT_TRANSPORT_LE); in bta_hh_le_open_conn()
796 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr, in bta_hh_le_register_input_notif()
806 BTA_GATTC_DeregisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr, in bta_hh_le_register_input_notif()
814 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr, in bta_hh_le_register_input_notif()
826 BTA_GATTC_DeregisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr, in bta_hh_le_register_input_notif()
[all …]
Dbta_hh_int.h306 tBTA_GATTC_IF gatt_if; member