• Home
  • Raw
  • Download

Lines Matching refs:gatt_if

170 tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service,  in GATTS_AddService()  argument
174 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_AddService()
182 LOG(ERROR) << "Inavlid gatt_if=" << +gatt_if; in GATTS_AddService()
301 elem.gatt_if = gatt_if; in GATTS_AddService()
358 bool GATTS_DeleteService(tGATT_IF gatt_if, Uuid* p_svc_uuid, in GATTS_DeleteService() argument
362 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_DeleteService()
439 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueIndication() local
441 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueIndication()
502 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueNotification() local
504 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueNotification()
555 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_SendRsp() local
557 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_SendRsp()
578 return gatt_sr_process_app_rsp(*p_tcb, gatt_if, trans_id, sr_res_p->op_code, in GATTS_SendRsp()
605 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ConfigureMTU() local
608 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_ConfigureMTU()
666 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Discover() local
669 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_Discover()
739 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Read() local
742 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_Read()
820 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Write() local
823 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_Write()
873 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ExecuteWrite() local
876 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_ExecuteWrite()
995 tGATT_IF gatt_if = 0; in GATT_Register() local
1012 gatt_if = p_reg->gatt_if = (tGATT_IF)i_gatt_if; in GATT_Register()
1018 name.c_str(), app_uuid128.ToString().c_str(), gatt_if, in GATT_Register()
1020 return gatt_if; in GATT_Register()
1041 void GATT_Deregister(tGATT_IF gatt_if) { in GATT_Deregister() argument
1042 LOG(INFO) << __func__ << " gatt_if=" << +gatt_if; in GATT_Deregister()
1044 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_Deregister()
1046 if ((gatt_if == 0) || (p_reg == NULL)) { in GATT_Deregister()
1049 << +gatt_if; in GATT_Deregister()
1060 if (it->gatt_if == gatt_if) { in GATT_Deregister()
1078 gatt_update_app_use_link_flag(gatt_if, p_tcb, false, true); in GATT_Deregister()
1083 if (p_clcb->in_use && (p_clcb->p_reg->gatt_if == gatt_if) && in GATT_Deregister()
1092 connection_manager::on_app_deregistered(gatt_if); in GATT_Deregister()
1110 void GATT_StartIf(tGATT_IF gatt_if) { in GATT_StartIf() argument
1118 LOG_DEBUG("Starting GATT interface gatt_if_:%hu", gatt_if); in GATT_StartIf()
1120 p_reg = gatt_get_regcb(gatt_if); in GATT_StartIf()
1127 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if); in GATT_StartIf()
1128 (*p_reg->app_cb.p_conn_cb)(gatt_if, bda, conn_id, true, in GATT_StartIf()
1152 bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct, in GATT_Connect() argument
1155 return GATT_Connect(gatt_if, bd_addr, is_direct, transport, opportunistic, in GATT_Connect()
1159 bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct, in GATT_Connect() argument
1163 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_Connect()
1166 << ": Unable to find registered app gatt_if=" << +gatt_if; in GATT_Connect()
1173 << +gatt_if; in GATT_Connect()
1180 << +gatt_if; in GATT_Connect()
1186 LOG_DEBUG("Starting direct connect gatt_if=%u address=%s", gatt_if, in GATT_Connect()
1190 LOG_DEBUG("Starting background connect gatt_if=%u address=%s", gatt_if, in GATT_Connect()
1198 << +gatt_if; in GATT_Connect()
1202 ret = connection_manager::background_connect_add(gatt_if, bd_addr); in GATT_Connect()
1209 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, true, !is_direct); in GATT_Connect()
1229 bool GATT_CancelConnect(tGATT_IF gatt_if, const RawAddress& bd_addr, in GATT_CancelConnect() argument
1231 LOG(INFO) << __func__ << ": gatt_if:" << +gatt_if << ", address: " << bd_addr in GATT_CancelConnect()
1235 if (gatt_if) { in GATT_CancelConnect()
1236 p_reg = gatt_get_regcb(gatt_if); in GATT_CancelConnect()
1238 LOG(ERROR) << "gatt_if=" << +gatt_if << " is not registered"; in GATT_CancelConnect()
1243 return gatt_cancel_open(gatt_if, bd_addr); in GATT_CancelConnect()
1245 return gatt_auto_connect_dev_remove(p_reg->gatt_if, bd_addr); in GATT_CancelConnect()
1292 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATT_Disconnect() local
1293 gatt_update_app_use_link_flag(gatt_if, p_tcb, false, true); in GATT_Disconnect()
1313 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATT_GetConnectionInfor() local
1314 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_GetConnectionInfor()
1323 *p_gatt_if = gatt_if; in GATT_GetConnectionInfor()
1343 bool GATT_GetConnIdIfConnected(tGATT_IF gatt_if, const RawAddress& bd_addr, in GATT_GetConnIdIfConnected() argument
1345 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_GetConnIdIfConnected()
1350 *p_conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if); in GATT_GetConnIdIfConnected()