Home
last modified time | relevance | path

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

/system/bt/bta/gatt/
Dbta_gatts_act.cc47 static void bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bda,
55 static void bta_gatts_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id,
58 static void bta_gatts_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id,
160 GATT_Deregister(p_cb->rcb[i].gatt_if); in bta_gatts_api_disable()
213 cb_data.reg_oper.server_if = p_cb->rcb[first_unuse].gatt_if = in bta_gatts_register()
215 if (!p_cb->rcb[first_unuse].gatt_if) { in bta_gatts_register()
221 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; in bta_gatts_register()
272 p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) { in bta_gatts_deregister()
277 GATT_Deregister(p_cb->rcb[i].gatt_if); in bta_gatts_deregister()
307 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_delete_service()
[all …]
Dbta_gatts_utils.cc71 if (p_reg->in_use && p_reg->gatt_if == server_if) return p_reg; in bta_gatts_find_app_rcb_by_app_if()
92 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) return i; in bta_gatts_find_app_rcb_idx_by_app_if()
Dbta_gattc_act.cc67 static void bta_gattc_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id,
70 static void bta_gattc_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id,
460 tGATT_IF gatt_if; in bta_gattc_conn() local
467 GATT_GetConnectionInfor(p_data->hdr.layer_specific, &gatt_if, p_clcb->bda, in bta_gattc_conn()
1218 tGATT_IF gatt_if; in bta_gattc_process_indicate() local
1221 if (!GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { in bta_gattc_process_indicate()
1228 tBTA_GATTC_RCB* p_clrcb = bta_gattc_cl_get_regcb(gatt_if); in bta_gattc_process_indicate()
1257 p_clcb = bta_gattc_clcb_alloc(gatt_if, remote_bda, transport); in bta_gattc_process_indicate()
1341 static void bta_gattc_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, in bta_gattc_phy_update_cback() argument
1344 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(gatt_if); in bta_gattc_phy_update_cback()
[all …]
Dbta_gattc_utils.cc369 tGATT_IF gatt_if; in bta_gattc_clear_notif_registration() local
375 if (GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { in bta_gattc_clear_notif_registration()
376 p_clrcb = bta_gattc_cl_get_regcb(gatt_if); in bta_gattc_clear_notif_registration()
Dbta_gatts_int.h130 tGATT_IF gatt_if; member
/system/bt/stack/gatt/
Dgatt_api.cc152 uint16_t GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, in GATTS_AddService() argument
156 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_AddService()
164 LOG(ERROR) << "Inavlid gatt_if=" << +gatt_if; in GATTS_AddService()
277 elem.gatt_if = gatt_if; in GATTS_AddService()
333 bool GATTS_DeleteService(tGATT_IF gatt_if, Uuid* p_svc_uuid, in GATTS_DeleteService() argument
337 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_DeleteService()
413 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueIndication() local
415 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueIndication()
472 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueNotification() local
474 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueNotification()
[all …]
Dgatt_main.cc192 tGATT_IF gatt_if) { in gatt_connect() argument
203 gatt_update_app_use_link_flag(gatt_if, p_tcb, true, true); in gatt_connect()
208 return connection_manager::direct_connect_add(gatt_if, rem_bda); in gatt_connect()
265 bool gatt_update_app_hold_link_status(tGATT_IF gatt_if, tGATT_TCB* p_tcb, in gatt_update_app_hold_link_status() argument
271 auto ret = holders.insert(gatt_if); in gatt_update_app_hold_link_status()
273 VLOG(1) << "added gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status()
275 VLOG(1) << "attempt to add already existing gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status()
281 if (!holders.erase(gatt_if)) { in gatt_update_app_hold_link_status()
282 VLOG(1) << "attempt to remove nonexisting gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status()
286 VLOG(1) << "removed gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status()
[all …]
Dgatt_attr.cc55 static void gatt_connect_cback(UNUSED_ATTR tGATT_IF gatt_if,
90 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr()
93 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr()
307 static void gatt_connect_cback(UNUSED_ATTR tGATT_IF gatt_if, in gatt_connect_cback() argument
346 gatt_cb.gatt_if = GATT_Register(Uuid::From128BitBE(tmp), &gatt_profile_cback); in gatt_profile_db_init()
347 GATT_StartIf(gatt_cb.gatt_if); in gatt_profile_db_init()
379 GATTS_AddService(gatt_cb.gatt_if, service, in gatt_profile_db_init()
390 VLOG(1) << __func__ << ": gatt_if=" << gatt_cb.gatt_if << " EATT supported"; in gatt_profile_db_init()
456 tGATT_IF gatt_if; in gatt_attr_send_is_eatt_cb() local
460 GATT_GetConnectionInfor(conn_id, &gatt_if, bd_addr, &transport); in gatt_attr_send_is_eatt_cb()
[all …]
Dgatt_int.h36 #define GATT_CREATE_CONN_ID(tcb_idx, gatt_if) \ argument
37 ((uint16_t)((((uint8_t)(tcb_idx)) << 8) | ((uint8_t)(gatt_if))))
194 tGATT_IF gatt_if; /* one based */ member
263 tGATT_IF gatt_if; /* this service is belong to which application */ member
364 tGATT_IF gatt_if; member
415 tGATT_IF gatt_if);
417 extern void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb,
487 extern bool gatt_auto_connect_dev_remove(tGATT_IF gatt_if,
493 extern tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if,
503 extern bool gatt_cancel_open(tGATT_IF gatt_if, const RawAddress& bda);
[all …]
Dgatt_utils.cc710 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in gatt_sr_send_req_callback() local
711 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in gatt_sr_send_req_callback()
847 tGATT_REG* gatt_get_regcb(tGATT_IF gatt_if) { in gatt_get_regcb() argument
848 uint8_t ii = (uint8_t)gatt_if; in gatt_get_regcb()
904 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in gatt_clcb_alloc() local
907 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in gatt_clcb_alloc()
1065 void gatt_sr_update_cback_cnt(tGATT_TCB& tcb, tGATT_IF gatt_if, bool is_inc, in gatt_sr_update_cback_cnt() argument
1067 uint8_t idx = ((uint8_t)gatt_if) - 1; in gatt_sr_update_cback_cnt()
1090 void gatt_sr_update_prep_cnt(tGATT_TCB& tcb, tGATT_IF gatt_if, bool is_inc, in gatt_sr_update_prep_cnt() argument
1092 uint8_t idx = ((uint8_t)gatt_if) - 1; in gatt_sr_update_prep_cnt()
[all …]
Dgatt_sr.cc229 tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if, in gatt_sr_process_app_rsp() argument
235 VLOG(1) << __func__ << " gatt_if=" << +gatt_if; in gatt_sr_process_app_rsp()
237 gatt_sr_update_cback_cnt(tcb, gatt_if, false, false); in gatt_sr_process_app_rsp()
245 gatt_sr_update_prep_cnt(tcb, gatt_if, true, false); in gatt_sr_process_app_rsp()
292 tGATT_IF gatt_if; in gatt_process_exec_write_req() local
327 gatt_if = (tGATT_IF)(i + 1); in gatt_process_exec_write_req()
328 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, gatt_if); in gatt_process_exec_write_req()
427 gatt_sr_process_app_rsp(tcb, it->gatt_if, trans_id, op_code, in gatt_process_read_multi_req()
770 GATT_CREATE_CONN_ID(tcb.tcb_idx, gatt_cb.cl_rcb[i].gatt_if); in gatts_process_mtu_req()
916 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, el.gatt_if); in gatts_process_write_req()
[all …]
Dgatt_db.cc682 uint16_t conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, el.gatt_if); in gatts_send_app_read_request()
686 gatt_sr_update_cback_cnt(tcb, el.gatt_if, true, true); in gatts_send_app_read_request()
Dgatt_auth.cc220 (*gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb)(gatt_cb.cl_rcb[i].gatt_if, in gatt_notify_enc_cmpl()
Dgatt_cl.cc681 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, p_reg->gatt_if); in gatt_process_notification()
/system/bt/stack/include/
Dgatt_api.h558 typedef void(tGATT_CONN_CBACK)(tGATT_IF gatt_if, const RawAddress& bda,
571 typedef void(tGATT_ENC_CMPL_CB)(tGATT_IF gatt_if, const RawAddress& bda);
574 typedef void(tGATT_PHY_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id,
579 typedef void(tGATT_CONN_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id,
701 extern uint16_t GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service,
718 extern bool GATTS_DeleteService(tGATT_IF gatt_if, bluetooth::Uuid* p_svc_uuid,
944 extern void GATT_Deregister(tGATT_IF gatt_if);
959 extern void GATT_StartIf(tGATT_IF gatt_if);
981 extern bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr,
984 extern bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr,
[all …]
/system/bt/btif/src/
Dbtif_gatt_test.cc48 tGATT_IF gatt_if; member
180 test_cb.gatt_if = GATT_Register(bluetooth::Uuid::From128BitBE(tmp), in btif_gattc_test_command_impl()
182 GATT_StartIf(test_cb.gatt_if); in btif_gattc_test_command_impl()
184 GATT_Deregister(test_cb.gatt_if); in btif_gattc_test_command_impl()
185 test_cb.gatt_if = 0; in btif_gattc_test_command_impl()
199 if (!GATT_Connect(test_cb.gatt_if, *params->bda1, true, BT_TRANSPORT_LE, in btif_gattc_test_command_impl()
/system/bt/stack/gap/
Dgap_ble.cc76 tGATT_IF gatt_if; variable
368 if (GATT_GetConnIdIfConnected(gatt_if, peer_bda, &p_clcb->conn_id, in accept_client_operation()
372 if (!GATT_Connect(gatt_if, p_clcb->bda, true, BT_TRANSPORT_LE, true)) in accept_client_operation()
404 gatt_if = GATT_Register(app_uuid, &gap_cback); in gap_attr_db_init()
406 GATT_StartIf(gatt_if); in gap_attr_db_init()
440 GATTS_AddService(gatt_if, service, in gap_attr_db_init()
574 if (!GATT_CancelConnect(gatt_if, peer_bda, true)) { in GAP_BleCancelReadPeerDevName()
/system/bt/stack/srvc/
Dsrvc_eng.cc31 static void srvc_eng_connect_cback(UNUSED_ATTR tGATT_IF gatt_if,
327 static void srvc_eng_connect_cback(UNUSED_ATTR tGATT_IF gatt_if, in srvc_eng_connect_cback() argument
405 srvc_eng_cb.gatt_if = GATT_Register(app_uuid, &srvc_gatt_cback); in srvc_eng_init()
406 GATT_StartIf(srvc_eng_cb.gatt_if); in srvc_eng_init()
408 VLOG(1) << "Srvc_Init: gatt_if=" << +srvc_eng_cb.gatt_if; in srvc_eng_init()
Dsrvc_eng_int.h51 tGATT_IF gatt_if; member
Dsrvc_dis.cc360 status = GATTS_AddService(srvc_eng_cb.gatt_if, service, in DIS_SrInit()
451 GATT_GetConnIdIfConnected(srvc_eng_cb.gatt_if, peer_bda, &conn_id, in DIS_ReadDISInfo()
458 return GATT_Connect(srvc_eng_cb.gatt_if, peer_bda, true, BT_TRANSPORT_LE, in DIS_ReadDISInfo()
/system/bt/bta/hh/
Dbta_hh_le.cc167 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
178 bta_hh_cb.gatt_if = client_id; in bta_hh_le_enable()
181 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
204 return (bta_hh_cb.gatt_if == client_if); in bta_hh_le_is_hh_gatt_if()
217 void bta_hh_le_deregister(void) { BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); } in bta_hh_le_deregister()
279 BTA_GATTC_Open(bta_hh_cb.gatt_if, remote_bda, true, GATT_TRANSPORT_LE, false); in bta_hh_le_open_conn()
567 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr, in bta_hh_le_register_input_notif()
577 bta_hh_cb.gatt_if, p_dev_cb->addr, p_rpt->char_inst_id); in bta_hh_le_register_input_notif()
584 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr, in bta_hh_le_register_input_notif()
594 bta_hh_cb.gatt_if, p_dev_cb->addr, p_rpt->char_inst_id); in bta_hh_le_register_input_notif()
[all …]
Dbta_hh_int.h289 tGATT_IF gatt_if; member
/system/bt/bta/hearing_aid/
Dhearing_aid.cc241 gatt_if(0), in HearingAidImpl()
274 instance->gatt_if = client_id; in HearingAidImpl()
315 BTA_GATTC_Open(gatt_if, address, true, GATT_TRANSPORT_LE, false); in Connect()
321 BTA_GATTC_Open(gatt_if, address, false, GATT_TRANSPORT_LE, false); in AddToWhiteList()
336 BTA_GATTC_Open(gatt_if, dev_info.address, false, GATT_TRANSPORT_LE, in AddFromStorage()
937 gatt_if, address, hearingDevice->audio_status_handle); in OnGapConnection()
1460 BTA_GATTC_CancelOpen(gatt_if, address, true); in Disconnect()
1509 BTA_GATTC_Open(gatt_if, hearingDevice->address, false, GATT_TRANSPORT_LE, in OnGattDisconnected()
1573 BTA_GATTC_AppDeregister(gatt_if); in CleanUp()
1584 uint8_t gatt_if; member in __anonbabfa7770111::HearingAidImpl