Lines Matching refs:conn_id
411 tGATT_STATUS GATTS_HandleValueIndication(uint16_t conn_id, uint16_t attr_handle, in GATTS_HandleValueIndication() argument
413 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueIndication()
414 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTS_HandleValueIndication()
420 LOG(ERROR) << __func__ << ": Unknown conn_id=" << loghex(conn_id); in GATTS_HandleValueIndication()
427 indication.conn_id = conn_id; in GATTS_HandleValueIndication()
468 tGATT_STATUS GATTS_HandleValueNotification(uint16_t conn_id, in GATTS_HandleValueNotification() argument
472 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueNotification()
473 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTS_HandleValueNotification()
480 LOG(ERROR) << __func__ << "Unknown conn_id: " << conn_id; in GATTS_HandleValueNotification()
519 tGATT_STATUS GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id, in GATTS_SendRsp() argument
522 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_SendRsp()
523 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTS_SendRsp()
527 VLOG(1) << __func__ << ": conn_id=" << loghex(conn_id) in GATTS_SendRsp()
531 LOG(ERROR) << "Unknown conn_id=" << loghex(conn_id); in GATTS_SendRsp()
536 LOG(ERROR) << "conn_id=" << loghex(conn_id) in GATTS_SendRsp()
569 tGATT_STATUS GATTC_ConfigureMTU(uint16_t conn_id, uint16_t mtu) { in GATTC_ConfigureMTU() argument
570 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ConfigureMTU()
571 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTC_ConfigureMTU()
575 VLOG(1) << __func__ << ": conn_id=" << loghex(conn_id) << ", mtu=" << +mtu; in GATTC_ConfigureMTU()
587 if (gatt_is_clcb_allocated(conn_id)) { in GATTC_ConfigureMTU()
588 LOG(ERROR) << "GATT_BUSY conn_id = " << +conn_id; in GATTC_ConfigureMTU()
592 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_ConfigureMTU()
618 tGATT_STATUS GATTC_Discover(uint16_t conn_id, tGATT_DISC_TYPE disc_type, in GATTC_Discover() argument
621 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Discover()
622 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTC_Discover()
628 << " conn_id=" << loghex(conn_id); in GATTC_Discover()
632 LOG(INFO) << __func__ << " conn_id=" << loghex(conn_id) in GATTC_Discover()
644 if (gatt_is_clcb_allocated(conn_id)) { in GATTC_Discover()
645 LOG(ERROR) << __func__ << "GATT_BUSY conn_id = " << +conn_id; in GATTC_Discover()
649 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_Discover()
662 tGATT_STATUS GATTC_Discover(uint16_t conn_id, tGATT_DISC_TYPE disc_type, in GATTC_Discover() argument
664 return GATTC_Discover(conn_id, disc_type, start_handle, end_handle, in GATTC_Discover()
682 tGATT_STATUS GATTC_Read(uint16_t conn_id, tGATT_READ_TYPE type, in GATTC_Read() argument
684 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Read()
685 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTC_Read()
689 VLOG(1) << __func__ << ": conn_id=" << loghex(conn_id) in GATTC_Read()
694 LOG(ERROR) << ": illegal param: conn_id=" << loghex(conn_id) in GATTC_Read()
699 if (gatt_is_clcb_allocated(conn_id)) { in GATTC_Read()
700 LOG(ERROR) << "GATT_BUSY conn_id=" << loghex(conn_id); in GATTC_Read()
704 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_Read()
762 tGATT_STATUS GATTC_Write(uint16_t conn_id, tGATT_WRITE_TYPE type, in GATTC_Write() argument
764 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Write()
765 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTC_Write()
772 LOG(ERROR) << __func__ << " Illegal param: conn_id=" << loghex(conn_id) in GATTC_Write()
777 if (gatt_is_clcb_allocated(conn_id)) { in GATTC_Write()
778 LOG(ERROR) << "GATT_BUSY conn_id=" << loghex(conn_id); in GATTC_Write()
782 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_Write()
816 tGATT_STATUS GATTC_ExecuteWrite(uint16_t conn_id, bool is_execute) { in GATTC_ExecuteWrite() argument
817 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ExecuteWrite()
818 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATTC_ExecuteWrite()
822 VLOG(1) << __func__ << ": conn_id=" << loghex(conn_id) in GATTC_ExecuteWrite()
826 LOG(ERROR) << " Illegal param: conn_id=" << loghex(conn_id); in GATTC_ExecuteWrite()
830 if (gatt_is_clcb_allocated(conn_id)) { in GATTC_ExecuteWrite()
831 LOG(ERROR) << " GATT_BUSY conn_id=" << loghex(conn_id); in GATTC_ExecuteWrite()
835 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_ExecuteWrite()
858 tGATT_STATUS GATTC_SendHandleValueConfirm(uint16_t conn_id, uint16_t handle) { in GATTC_SendHandleValueConfirm() argument
859 VLOG(1) << __func__ << " conn_id=" << loghex(conn_id) in GATTC_SendHandleValueConfirm()
862 tGATT_TCB* p_tcb = gatt_get_tcb_by_idx(GATT_GET_TCB_IDX(conn_id)); in GATTC_SendHandleValueConfirm()
864 LOG(ERROR) << "Unknown conn_id=" << loghex(conn_id); in GATTC_SendHandleValueConfirm()
869 VLOG(1) << " conn_id: " << loghex(conn_id) in GATTC_SendHandleValueConfirm()
1060 uint16_t conn_id; in GATT_StartIf() local
1071 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if); in GATT_StartIf()
1072 (*p_reg->app_cb.p_conn_cb)(gatt_if, bda, conn_id, true, 0, transport); in GATT_StartIf()
1218 tGATT_STATUS GATT_Disconnect(uint16_t conn_id) { in GATT_Disconnect() argument
1219 LOG(INFO) << __func__ << " conn_id=" << loghex(conn_id); in GATT_Disconnect()
1221 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATT_Disconnect()
1225 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATT_Disconnect()
1244 bool GATT_GetConnectionInfor(uint16_t conn_id, tGATT_IF* p_gatt_if, in GATT_GetConnectionInfor() argument
1246 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATT_GetConnectionInfor()
1248 uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id); in GATT_GetConnectionInfor()
1251 VLOG(1) << __func__ << " conn_id=" << loghex(conn_id); in GATT_GetConnectionInfor()