Lines Matching refs:conn_id

34 static void srvc_eng_s_request_cback (UINT16 conn_id, UINT32 trans_id, UINT8 op_code, tGATTS_DATA *…
35 static void srvc_eng_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connecte…
37 static void srvc_eng_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_…
78 return p_clcb->conn_id; in srvc_eng_find_conn_id_by_bd_addr()
118 tSRVC_CLCB *srvc_eng_find_clcb_by_conn_id(UINT16 conn_id) in srvc_eng_find_clcb_by_conn_id() argument
125 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) in srvc_eng_find_clcb_by_conn_id()
142 UINT8 srvc_eng_find_clcb_idx_by_conn_id(UINT16 conn_id) in srvc_eng_find_clcb_idx_by_conn_id() argument
149 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) in srvc_eng_find_clcb_idx_by_conn_id()
166 tSRVC_CLCB *srvc_eng_clcb_alloc (UINT16 conn_id, BD_ADDR bda) in srvc_eng_clcb_alloc() argument
176 p_clcb->conn_id = conn_id; in srvc_eng_clcb_alloc()
193 BOOLEAN srvc_eng_clcb_dealloc (UINT16 conn_id) in srvc_eng_clcb_dealloc() argument
200 if (p_clcb->in_use && p_clcb->connected && (p_clcb->conn_id == conn_id)) in srvc_eng_clcb_dealloc()
268 static void srvc_eng_s_request_cback (UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE type, in srvc_eng_s_request_cback() argument
274 UINT8 clcb_idx = srvc_eng_find_clcb_idx_by_conn_id(conn_id); in srvc_eng_s_request_cback()
310 GATTS_SendRsp (conn_id, trans_id, status, &rsp_msg); in srvc_eng_s_request_cback()
325 static void srvc_eng_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, in srvc_eng_c_cmpl_cback() argument
328 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); in srvc_eng_c_cmpl_cback()
353 static void srvc_eng_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, in srvc_eng_connect_cback() argument
361 (bda[4]<<8)+bda[5], connected, conn_id, reason); in srvc_eng_connect_cback()
365 if (srvc_eng_clcb_alloc(conn_id, bda) == NULL) in srvc_eng_connect_cback()
373 srvc_eng_clcb_dealloc(conn_id); in srvc_eng_connect_cback()
410 void srvc_eng_release_channel (UINT16 conn_id) in srvc_eng_release_channel() argument
412 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); in srvc_eng_release_channel()
416 GATT_TRACE_ERROR("%s: invalid connection id %d", __FUNCTION__, conn_id); in srvc_eng_release_channel()
423 GATT_Disconnect(p_clcb->conn_id); in srvc_eng_release_channel()
462 GATTS_SendRsp(srvc_eng_cb.clcb[clcb_idx].conn_id, in srvc_sr_rsp()
472 UINT16 conn_id = srvc_eng_find_conn_id_by_bd_addr(remote_bda); in srvc_sr_notify() local
474 if (conn_id != GATT_INVALID_CONN_ID) in srvc_sr_notify()
476 GATTS_HandleValueNotification( conn_id, handle, len, p_value); in srvc_sr_notify()