• Home
  • Raw
  • Download

Lines Matching refs:gatt_if

152 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()
522 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_SendRsp() local
524 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_SendRsp()
541 cmd_sent = gatt_sr_process_app_rsp(*p_tcb, gatt_if, trans_id, in GATTS_SendRsp()
570 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ConfigureMTU() local
573 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_ConfigureMTU()
621 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Discover() local
624 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_Discover()
684 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Read() local
687 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_Read()
763 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Write() local
766 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_Write()
816 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ExecuteWrite() local
819 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_ExecuteWrite()
944 tGATT_IF gatt_if = 0; in GATT_Register() local
962 gatt_if = p_reg->gatt_if = (tGATT_IF)i_gatt_if; in GATT_Register()
966 LOG(INFO) << "allocated gatt_if=" << +gatt_if; in GATT_Register()
967 return gatt_if; in GATT_Register()
987 void GATT_Deregister(tGATT_IF gatt_if) { in GATT_Deregister() argument
988 VLOG(1) << __func__ << " gatt_if=" << +gatt_if; in GATT_Deregister()
990 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_Deregister()
992 if ((gatt_if == 0) || (p_reg == NULL)) { in GATT_Deregister()
993 LOG(ERROR) << "invalid gatt_if=" << +gatt_if; in GATT_Deregister()
1004 if (it->gatt_if == gatt_if) { in GATT_Deregister()
1022 gatt_update_app_use_link_flag(gatt_if, p_tcb, false, true); in GATT_Deregister()
1027 if (p_clcb->in_use && (p_clcb->p_reg->gatt_if == gatt_if) && in GATT_Deregister()
1036 connection_manager::on_app_deregistered(gatt_if); in GATT_Deregister()
1054 void GATT_StartIf(tGATT_IF gatt_if) { in GATT_StartIf() argument
1062 VLOG(1) << __func__ << " gatt_if=" << +gatt_if; in GATT_StartIf()
1063 p_reg = gatt_get_regcb(gatt_if); in GATT_StartIf()
1070 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if); in GATT_StartIf()
1071 (*p_reg->app_cb.p_conn_cb)(gatt_if, bda, conn_id, true, 0, transport); in GATT_StartIf()
1094 bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct, in GATT_Connect() argument
1097 return GATT_Connect(gatt_if, bd_addr, is_direct, transport, opportunistic, in GATT_Connect()
1101 bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct, in GATT_Connect() argument
1104 LOG(INFO) << __func__ << "gatt_if=" << +gatt_if << ", address=" << bd_addr; in GATT_Connect()
1107 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_Connect()
1109 LOG(ERROR) << "gatt_if = " << +gatt_if << " is not registered"; in GATT_Connect()
1134 ret = connection_manager::background_connect_add(gatt_if, bd_addr); in GATT_Connect()
1141 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, true, !is_direct); in GATT_Connect()
1161 bool GATT_CancelConnect(tGATT_IF gatt_if, const RawAddress& bd_addr, in GATT_CancelConnect() argument
1163 LOG(INFO) << __func__ << ": gatt_if:" << +gatt_if << ", address: " << bd_addr in GATT_CancelConnect()
1167 if (gatt_if) { in GATT_CancelConnect()
1168 p_reg = gatt_get_regcb(gatt_if); in GATT_CancelConnect()
1170 LOG(ERROR) << "gatt_if=" << +gatt_if << " is not registered"; in GATT_CancelConnect()
1175 return gatt_cancel_open(gatt_if, bd_addr); in GATT_CancelConnect()
1177 return gatt_auto_connect_dev_remove(p_reg->gatt_if, bd_addr); in GATT_CancelConnect()
1224 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATT_Disconnect() local
1225 gatt_update_app_use_link_flag(gatt_if, p_tcb, false, true); in GATT_Disconnect()
1245 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATT_GetConnectionInfor() local
1246 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_GetConnectionInfor()
1255 *p_gatt_if = gatt_if; in GATT_GetConnectionInfor()
1275 bool GATT_GetConnIdIfConnected(tGATT_IF gatt_if, const RawAddress& bd_addr, in GATT_GetConnIdIfConnected() argument
1277 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_GetConnIdIfConnected()
1282 *p_conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if); in GATT_GetConnIdIfConnected()