Lines Matching refs:conn_id
437 tGATT_STATUS GATTS_HandleValueIndication(uint16_t conn_id, uint16_t attr_handle, in GATTS_HandleValueIndication() argument
439 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueIndication()
440 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTS_HandleValueIndication()
446 LOG(ERROR) << __func__ << ": Unknown conn_id=" << loghex(conn_id); in GATTS_HandleValueIndication()
453 indication.conn_id = conn_id; in GATTS_HandleValueIndication()
498 tGATT_STATUS GATTS_HandleValueNotification(uint16_t conn_id, in GATTS_HandleValueNotification() argument
502 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueNotification()
503 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTS_HandleValueNotification()
510 LOG(ERROR) << __func__ << "Unknown conn_id: " << conn_id; in GATTS_HandleValueNotification()
553 tGATT_STATUS GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id, in GATTS_SendRsp() argument
555 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_SendRsp()
556 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTS_SendRsp()
560 VLOG(1) << __func__ << ": conn_id=" << loghex(conn_id) in GATTS_SendRsp()
565 LOG(ERROR) << "Unknown conn_id=" << loghex(conn_id); in GATTS_SendRsp()
572 LOG(ERROR) << "conn_id=" << loghex(conn_id) in GATTS_SendRsp()
604 tGATT_STATUS GATTC_ConfigureMTU(uint16_t conn_id, uint16_t mtu) { in GATTC_ConfigureMTU() argument
605 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ConfigureMTU()
606 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTC_ConfigureMTU()
615 conn_id, mtu, (p_tcb == nullptr) ? "BAD" : "ok", in GATTC_ConfigureMTU()
625 if (gatt_is_clcb_allocated(conn_id)) { in GATTC_ConfigureMTU()
626 LOG_WARN("Connection is already used conn_id:%hu", conn_id); in GATTC_ConfigureMTU()
630 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_ConfigureMTU()
642 LOG_DEBUG("Configuring ATT mtu size conn_id:%hu mtu:%hu", conn_id, mtu); in GATTC_ConfigureMTU()
663 tGATT_STATUS GATTC_Discover(uint16_t conn_id, tGATT_DISC_TYPE disc_type, in GATTC_Discover() argument
666 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Discover()
667 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTC_Discover()
673 << " conn_id=" << loghex(conn_id); in GATTC_Discover()
681 LOG(WARNING) << __func__ << " Illegal parameter conn_id=" << loghex(conn_id) in GATTC_Discover()
688 if (gatt_is_clcb_allocated(conn_id)) { in GATTC_Discover()
689 LOG(ERROR) << __func__ << "GATT_BUSY conn_id = " << +conn_id; in GATTC_Discover()
693 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_Discover()
695 LOG(WARNING) << __func__ << " No resources conn_id=" << loghex(conn_id) in GATTC_Discover()
708 LOG(INFO) << __func__ << " conn_id=" << loghex(conn_id) in GATTC_Discover()
717 tGATT_STATUS GATTC_Discover(uint16_t conn_id, tGATT_DISC_TYPE disc_type, in GATTC_Discover() argument
719 return GATTC_Discover(conn_id, disc_type, start_handle, end_handle, in GATTC_Discover()
737 tGATT_STATUS GATTC_Read(uint16_t conn_id, tGATT_READ_TYPE type, in GATTC_Read() argument
739 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Read()
740 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTC_Read()
744 VLOG(1) << __func__ << ": conn_id=" << loghex(conn_id) in GATTC_Read()
749 LOG(ERROR) << ": illegal param: conn_id=" << loghex(conn_id) in GATTC_Read()
754 if (gatt_is_clcb_allocated(conn_id)) { in GATTC_Read()
755 LOG(ERROR) << "GATT_BUSY conn_id=" << loghex(conn_id); in GATTC_Read()
759 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_Read()
818 tGATT_STATUS GATTC_Write(uint16_t conn_id, tGATT_WRITE_TYPE type, in GATTC_Write() argument
820 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Write()
821 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTC_Write()
828 LOG(ERROR) << __func__ << " Illegal param: conn_id=" << loghex(conn_id) in GATTC_Write()
833 if (gatt_is_clcb_allocated(conn_id)) { in GATTC_Write()
834 LOG(ERROR) << "GATT_BUSY conn_id=" << loghex(conn_id); in GATTC_Write()
838 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_Write()
872 tGATT_STATUS GATTC_ExecuteWrite(uint16_t conn_id, bool is_execute) { in GATTC_ExecuteWrite() argument
873 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ExecuteWrite()
874 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTC_ExecuteWrite()
878 VLOG(1) << __func__ << ": conn_id=" << loghex(conn_id) in GATTC_ExecuteWrite()
882 LOG(ERROR) << " Illegal param: conn_id=" << loghex(conn_id); in GATTC_ExecuteWrite()
886 if (gatt_is_clcb_allocated(conn_id)) { in GATTC_ExecuteWrite()
887 LOG(ERROR) << " GATT_BUSY conn_id=" << loghex(conn_id); in GATTC_ExecuteWrite()
891 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_ExecuteWrite()
914 tGATT_STATUS GATTC_SendHandleValueConfirm(uint16_t conn_id, uint16_t cid) { in GATTC_SendHandleValueConfirm() argument
915 VLOG(1) << __func__ << " conn_id=" << loghex(conn_id) in GATTC_SendHandleValueConfirm()
918 tGATT_TCB* p_tcb = gatt_get_tcb_by_idx(GATT_GET_TCB_IDX(conn_id)); in GATTC_SendHandleValueConfirm()
920 LOG(ERROR) << "Unknown conn_id=" << loghex(conn_id); in GATTC_SendHandleValueConfirm()
925 VLOG(1) << " conn_id: " << loghex(conn_id) in GATTC_SendHandleValueConfirm()
1115 uint16_t conn_id; in GATT_StartIf() local
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()
1285 tGATT_STATUS GATT_Disconnect(uint16_t conn_id) { in GATT_Disconnect() argument
1286 LOG(INFO) << __func__ << " conn_id=" << loghex(conn_id); in GATT_Disconnect()
1288 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATT_Disconnect()
1292 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATT_Disconnect()
1311 bool GATT_GetConnectionInfor(uint16_t conn_id, tGATT_IF* p_gatt_if, in GATT_GetConnectionInfor() argument
1313 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATT_GetConnectionInfor()
1315 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATT_GetConnectionInfor()
1318 VLOG(1) << __func__ << " conn_id=" << loghex(conn_id); in GATT_GetConnectionInfor()