Home | History | Annotate | Download | only in hh

Lines Matching refs:conn_id

78     UINT16 conn_id;
90 static void mark_as_executing(UINT16 conn_id) {
92 *executing_conn_id = conn_id;
100 UINT16 *conn_id = context;
102 if (*conn_id == *conn_id2)
108 static void mark_as_not_executing(UINT16 conn_id) {
110 list_foreach(gatt_op_queue_executing, rm_exec_conn_id, &conn_id);
114 UINT16 *conn_id = context;
116 if (*conn_id == *conn_id2)
123 UINT16 *conn_id = context;
125 if(op->conn_id == *conn_id)
131 static void gatt_op_queue_clean(UINT16 conn_id) {
133 list_foreach(gatt_op_queue, rm_op_by_conn_id, &conn_id);
135 mark_as_not_executing(conn_id);
139 UINT16 *conn_id = context;
141 if(op->conn_id == *conn_id)
147 static void gatt_execute_next_op(UINT16 conn_id) {
148 APPL_TRACE_DEBUG("%s:", __func__, conn_id);
154 list_node_t *op_node = list_foreach(gatt_op_queue, find_op_by_conn_id, &conn_id);
156 APPL_TRACE_DEBUG("%s: no more operations queued for conn_id %d", __func__, conn_id);
161 if (gatt_op_queue_executing && list_foreach(gatt_op_queue_executing, exec_list_contains, &conn_id)) {
167 mark_as_executing(conn_id);
168 BTA_GATTC_ReadCharacteristic(op->conn_id, op->handle, BTA_GATT_AUTH_REQ_NONE);
172 mark_as_executing(conn_id);
173 BTA_GATTC_ReadCharDescr(op->conn_id, op->handle, BTA_GATT_AUTH_REQ_NONE);
176 mark_as_executing(conn_id);
177 BTA_GATTC_WriteCharValue(op->conn_id, op->handle, op->write_type, op->len,
186 mark_as_executing(conn_id);
187 BTA_GATTC_WriteCharDescr(op->conn_id, op->handle, BTA_GATTC_TYPE_WRITE,
193 static void gatt_queue_read_op(UINT8 op_type, UINT16 conn_id, UINT16 handle) {
200 op->conn_id = conn_id;
204 gatt_execute_next_op(conn_id);
207 static void gatt_queue_write_op(UINT8 op_type, UINT16 conn_id, UINT16 handle, UINT16 len,
215 op->conn_id = conn_id;
222 gatt_execute_next_op(conn_id);
450 tBTA_HH_DEV_CB * bta_hh_le_find_dev_cb_by_conn_id(UINT16 conn_id)
457 if (p_dev_cb->in_use && p_dev_cb->conn_id == conn_id)
642 static tBTA_GATTC_DESCRIPTOR *find_descriptor_by_short_uuid(UINT16 conn_id,
646 BTA_GATTC_GetCharacteristic(conn_id, char_handle);
677 const tBTA_GATTC_DESCRIPTOR *p_desc = find_descriptor_by_short_uuid(p_cb->conn_id, char_handle, short_uuid);
681 gatt_queue_read_op(GATT_READ_DESC, p_cb->conn_id, p_desc->handle);
911 tBTA_GATTC_DESCRIPTOR *p_desc = find_descriptor_by_short_uuid(p_cb->conn_id,
917 gatt_queue_write_op(GATT_WRITE_DESC, p_cb->conn_id,
1003 gatt_queue_write_op(GATT_WRITE_CHAR, p_cb->conn_id, p_cb->hid_srvc.proto_mode_handle, 1,
1024 gatt_queue_read_op(GATT_READ_CHAR, p_cb->conn_id, p_cb->hid_srvc.proto_mode_handle);
1102 BTA_GATTC_ServiceSearchRequest(p_cb->conn_id, &pri_srvc);
1321 p_cb->conn_id = p_data->conn_id;
1326 gatt_op_queue_clean(p_cb->conn_id);
1329 APPL_TRACE_DEBUG("hid_handle = %2x conn_id = %04x cb_index = %d", p_cb->hid_handle, p_cb->conn_id, p_cb->index);
1362 p_buf->conn_id = p_data->conn_id;
1365 p_dev_cb->conn_id = BTA_GATT_INVALID_CONN_ID;
1429 gatt_queue_read_op(GATT_READ_CHAR, p_dev_cb->conn_id, p_char->handle);
1471 gatt_queue_read_op(GATT_READ_CHAR, p_dev_cb->conn_id, p_char->handle);
1537 tBTA_HH_DEV_CB *p_dev_cb = bta_hh_le_find_dev_cb_by_conn_id(p_data->conn_id);
1551 const list_t *services = BTA_GATTC_GetServices(p_data->conn_id);
1600 gatt_queue_read_op(GATT_READ_CHAR, p_dev_cb->conn_id, p_char->handle);
1678 const tBTA_GATTC_CHARACTERISTIC *p_char = BTA_GATTC_GetCharacteristic(p_dev_cb->conn_id,
1768 const tBTA_GATTC_CHARACTERISTIC *p_char = BTA_GATTC_GetCharacteristic(p_dev_cb->conn_id,
1863 const tBTA_GATTC_CHARACTERISTIC *p_char = BTA_GATTC_GetCharacteristic(p_dev_cb->conn_id,
1909 const tBTA_GATTC_DESCRIPTOR *p_desc = BTA_GATTC_GetDescriptor(p_data->conn_id, p_data->handle);
1949 const tBTA_GATTC_DESCRIPTOR *p_desc = BTA_GATTC_GetDescriptor(p_data->conn_id, p_data->handle);
2007 const tBTA_GATTC_CHARACTERISTIC *p_char = BTA_GATTC_GetCharacteristic(p_dev_cb->conn_id,
2037 const tBTA_GATTC_CHARACTERISTIC *p_char = BTA_GATTC_GetCharacteristic(p_dev_cb->conn_id,
2094 const tBTA_GATTC_DESCRIPTOR *p_desc = BTA_GATTC_GetDescriptor(p_dev_cb->conn_id,
2151 tBTA_HH_DEV_CB *p_dev_cb = bta_hh_le_find_dev_cb_by_conn_id(p_data->conn_id);
2162 const tBTA_GATTC_CHARACTERISTIC *p_char = BTA_GATTC_GetCharacteristic(p_dev_cb->conn_id,
2300 if (p_cb->conn_id != BTA_GATT_INVALID_CONN_ID)
2302 gatt_op_queue_clean(p_cb->conn_id);
2303 BTA_GATTC_Close(p_cb->conn_id);
2329 gatt_queue_read_op(GATT_READ_CHAR, p_cb->conn_id, p_rpt->char_inst_id);
2369 const tBTA_GATTC_CHARACTERISTIC *p_char = BTA_GATTC_GetCharacteristic(p_cb->conn_id,
2376 gatt_queue_write_op(GATT_WRITE_CHAR, p_cb->conn_id, p_rpt->char_inst_id,
2393 gatt_queue_write_op(GATT_WRITE_CHAR, p_cb->conn_id, p_cb->hid_srvc.control_point_handle, 1,
2600 gatt_queue_write_op(GATT_WRITE_CHAR, p_dev_cb->conn_id, p_dev_cb->scan_refresh_char_handle, 2,
2642 mark_as_not_executing(p_data->read.conn_id);
2643 gatt_execute_next_op(p_data->read.conn_id);
2644 p_dev_cb = bta_hh_le_find_dev_cb_by_conn_id(p_data->read.conn_id);
2655 mark_as_not_executing(p_data->write.conn_id);
2656 gatt_execute_next_op(p_data->write.conn_id);
2657 p_dev_cb = bta_hh_le_find_dev_cb_by_conn_id(p_data->write.conn_id);