• Home
  • Raw
  • Download

Lines Matching refs:conn_id

29 static void srvc_eng_s_request_cback(uint16_t conn_id, uint32_t trans_id,
32 const RawAddress& bda, uint16_t conn_id,
35 static void srvc_eng_c_cmpl_cback(uint16_t conn_id, tGATTC_OPTYPE op,
75 return p_clcb->conn_id; in srvc_eng_find_conn_id_by_bd_addr()
113 tSRVC_CLCB* srvc_eng_find_clcb_by_conn_id(uint16_t conn_id) { in srvc_eng_find_clcb_by_conn_id() argument
119 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) { in srvc_eng_find_clcb_by_conn_id()
135 uint8_t srvc_eng_find_clcb_idx_by_conn_id(uint16_t conn_id) { in srvc_eng_find_clcb_idx_by_conn_id() argument
141 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) { in srvc_eng_find_clcb_idx_by_conn_id()
158 tSRVC_CLCB* srvc_eng_clcb_alloc(uint16_t conn_id, const RawAddress& bda) { in srvc_eng_clcb_alloc() argument
166 p_clcb->conn_id = conn_id; in srvc_eng_clcb_alloc()
183 bool srvc_eng_clcb_dealloc(uint16_t conn_id) { in srvc_eng_clcb_dealloc() argument
189 if (p_clcb->in_use && p_clcb->connected && (p_clcb->conn_id == conn_id)) { in srvc_eng_clcb_dealloc()
244 static void srvc_eng_s_request_cback(uint16_t conn_id, uint32_t trans_id, in srvc_eng_s_request_cback() argument
250 uint8_t clcb_idx = srvc_eng_find_clcb_idx_by_conn_id(conn_id); in srvc_eng_s_request_cback()
289 if (act == SRVC_ACT_RSP) GATTS_SendRsp(conn_id, trans_id, status, &rsp_msg); in srvc_eng_s_request_cback()
301 static void srvc_eng_c_cmpl_cback(uint16_t conn_id, tGATTC_OPTYPE op, in srvc_eng_c_cmpl_cback() argument
304 tSRVC_CLCB* p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); in srvc_eng_c_cmpl_cback()
328 const RawAddress& bda, uint16_t conn_id, in srvc_eng_connect_cback() argument
332 << StringPrintf(" connected:%d conn_id=%d", connected, conn_id); in srvc_eng_connect_cback()
335 if (srvc_eng_clcb_alloc(conn_id, bda) == NULL) { in srvc_eng_connect_cback()
340 srvc_eng_clcb_dealloc(conn_id); in srvc_eng_connect_cback()
374 void srvc_eng_release_channel(uint16_t conn_id) { in srvc_eng_release_channel() argument
375 tSRVC_CLCB* p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); in srvc_eng_release_channel()
378 LOG(ERROR) << __func__ << ": invalid connection id " << conn_id; in srvc_eng_release_channel()
385 GATT_Disconnect(p_clcb->conn_id); in srvc_eng_release_channel()
418 GATTS_SendRsp(srvc_eng_cb.clcb[clcb_idx].conn_id, in srvc_sr_rsp()
426 uint16_t conn_id = srvc_eng_find_conn_id_by_bd_addr(remote_bda); in srvc_sr_notify() local
428 if (conn_id != GATT_INVALID_CONN_ID) { in srvc_sr_notify()
429 GATTS_HandleValueNotification(conn_id, handle, len, p_value); in srvc_sr_notify()