Home
last modified time | relevance | path

Searched refs:tcb (Results 1 – 20 of 20) sorted by relevance

/system/bt/stack/gatt/
Dgatt_sr.cc50 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint8_t op_code, uint16_t handle) { in gatt_sr_enqueue_cmd() argument
51 tGATT_SR_CMD* p_cmd = &tcb.sr_cmd; in gatt_sr_enqueue_cmd()
59 trans_id = ++tcb.trans_id; in gatt_sr_enqueue_cmd()
61 p_cmd->trans_id = ++tcb.trans_id; in gatt_sr_enqueue_cmd()
65 tcb.trans_id %= GATT_TRANS_ID_MAX; in gatt_sr_enqueue_cmd()
82 bool gatt_sr_cmd_empty(tGATT_TCB& tcb) { return (tcb.sr_cmd.op_code == 0); } in gatt_sr_cmd_empty() argument
93 void gatt_dequeue_sr_cmd(tGATT_TCB& tcb) { in gatt_dequeue_sr_cmd() argument
96 if (tcb.sr_cmd.p_rsp_msg) in gatt_dequeue_sr_cmd()
97 LOG(ERROR) << "free tcb.sr_cmd.p_rsp_msg = " << tcb.sr_cmd.p_rsp_msg; in gatt_dequeue_sr_cmd()
98 osi_free_and_reset((void**)&tcb.sr_cmd.p_rsp_msg); in gatt_dequeue_sr_cmd()
[all …]
Dgatt_cl.cc52 void gatt_send_prepare_write(tGATT_TCB& tcb, tGATT_CLCB* p_clcb);
140 tGATT_TCB& tcb = *p_clcb->p_tcb; in gatt_act_read() local
202 if (op_code != 0) rt = attp_send_cl_msg(tcb, p_clcb, op_code, &msg); in gatt_act_read()
211 tGATT_TCB& tcb = *p_clcb->p_tcb; in gatt_act_write() local
221 uint8_t rt = gatt_send_write_msg(tcb, p_clcb, op_code, attr.handle, in gatt_act_write()
234 if (attr.len <= (tcb.payload_size - GATT_HDR_SIZE)) { in gatt_act_write()
237 uint8_t rt = gatt_send_write_msg(tcb, p_clcb, GATT_REQ_WRITE, in gatt_act_write()
251 gatt_send_prepare_write(tcb, p_clcb); in gatt_act_write()
257 gatt_send_prepare_write(tcb, p_clcb); in gatt_act_write()
274 void gatt_send_queue_write_cancel(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, in gatt_send_queue_write_cancel() argument
[all …]
Dgatt_utils.cc257 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].ch_state == GATT_CH_OPEN) { in gatt_find_the_connected_bda()
258 bda = gatt_cb.tcb[i].peer_bda; in gatt_find_the_connected_bda()
260 *p_transport = gatt_cb.tcb[i].transport; in gatt_find_the_connected_bda()
343 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].peer_bda == bda) { in gatt_is_bda_connected()
365 if (gatt_cb.tcb[i].peer_bda == bda && in gatt_find_i_tcb_by_addr()
366 gatt_cb.tcb[i].transport == transport) { in gatt_find_i_tcb_by_addr()
385 if ((tcb_idx < GATT_MAX_PHY_CHANNEL) && gatt_cb.tcb[tcb_idx].in_use) in gatt_get_tcb_by_idx()
386 p_tcb = &gatt_cb.tcb[tcb_idx]; in gatt_get_tcb_by_idx()
406 if (i != GATT_INDEX_INVALID) p_tcb = &gatt_cb.tcb[i]; in gatt_find_tcb_by_addr()
424 if (j != GATT_INDEX_INVALID) return &gatt_cb.tcb[j]; in gatt_allocate_tcb_by_bdaddr()
[all …]
Datt_protocol.cc325 tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB& tcb, BT_HDR* p_toL2CAP) { in attp_send_msg_to_l2cap() argument
328 if (tcb.att_lcid == L2CAP_ATT_CID) in attp_send_msg_to_l2cap()
329 l2cap_ret = L2CA_SendFixedChnlData(L2CAP_ATT_CID, tcb.peer_bda, p_toL2CAP); in attp_send_msg_to_l2cap()
331 l2cap_ret = (uint16_t)L2CA_DataWrite(tcb.att_lcid, p_toL2CAP); in attp_send_msg_to_l2cap()
344 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, in attp_build_sr_msg() argument
361 tcb.payload_size, op_code, p_msg->attr_value.handle, offset, in attp_build_sr_msg()
397 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, BT_HDR* p_msg) { in attp_send_sr_msg() argument
401 return attp_send_msg_to_l2cap(tcb, p_msg); in attp_send_sr_msg()
416 tGATT_STATUS attp_cl_send_cmd(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, in attp_cl_send_cmd() argument
420 if (!tcb.cl_cmd_q.empty() && cmd_code != GATT_HANDLE_VALUE_CONF) { in attp_cl_send_cmd()
[all …]
Dgatt_int.h358 tGATT_TCB tcb[GATT_MAX_PHY_CHANNEL]; member
437 extern tGATT_STATUS attp_send_cl_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb,
439 extern BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code,
441 extern tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, BT_HDR* p_msg);
442 extern tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB& tcb, BT_HDR* p_toL2CAP);
461 extern void gatt_start_ind_ack_timer(tGATT_TCB& tcb);
462 extern tGATT_STATUS gatt_send_error_rsp(tGATT_TCB& tcb, uint8_t err_code,
477 extern bool gatt_cl_send_next_cmd_inq(tGATT_TCB& tcb);
493 extern tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if,
501 extern uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint8_t op_code,
[all …]
Dgatt_db.cc46 tGATT_TCB& tcb, uint8_t op_code, uint16_t handle, uint16_t offset,
255 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, BT_HDR* p_rsp, in gatts_db_read_attr_value_by_type() argument
277 status = gatts_send_app_read_request(tcb, op_code, attr.handle, 0, in gatts_db_read_attr_value_by_type()
303 if (BTM_GetSecurityFlags(tcb.peer_bda, &flag)) { in gatts_db_read_attr_value_by_type()
304 if ((tcb.att_lcid == L2CAP_ATT_CID) && (status == GATT_PENDING) && in gatts_db_read_attr_value_by_type()
308 tACL_CONN* p = btm_bda_to_acl(tcb.peer_bda, BT_TRANSPORT_LE); in gatts_db_read_attr_value_by_type()
310 btm_ble_set_encryption(tcb.peer_bda, BTM_BLE_SEC_ENCRYPT, in gatts_db_read_attr_value_by_type()
443 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, uint16_t handle, in gatts_read_attr_value_by_handle() argument
455 status = gatts_send_app_read_request(tcb, op_code, p_attr->handle, offset, in gatts_read_attr_value_by_handle()
679 tGATT_TCB& tcb, uint8_t op_code, uint16_t handle, uint16_t offset, in gatts_send_app_read_request() argument
[all …]
Dgatt_main.cc157 gatt_cb.tcb[i].pending_enc_clcb = std::queue<tGATT_CLCB*>(); in gatt_free()
159 fixed_queue_free(gatt_cb.tcb[i].pending_ind_q, NULL); in gatt_free()
160 gatt_cb.tcb[i].pending_ind_q = NULL; in gatt_free()
162 alarm_free(gatt_cb.tcb[i].conf_timer); in gatt_free()
163 gatt_cb.tcb[i].conf_timer = NULL; in gatt_free()
165 alarm_free(gatt_cb.tcb[i].ind_ack_timer); in gatt_free()
166 gatt_cb.tcb[i].ind_ack_timer = NULL; in gatt_free()
168 fixed_queue_free(gatt_cb.tcb[i].sr_cmd.multi_rsp_q, NULL); in gatt_free()
169 gatt_cb.tcb[i].sr_cmd.multi_rsp_q = NULL; in gatt_free()
846 void gatt_data_process(tGATT_TCB& tcb, BT_HDR* p_buf) { in gatt_data_process() argument
[all …]
Dgatt_auth.cc96 void gatt_verify_signature(tGATT_TCB& tcb, BT_HDR* p_buf) { in gatt_verify_signature() argument
111 if (!BTM_BleVerifySignature(tcb.peer_bda, p_orig, cmd_len, counter, p)) { in gatt_verify_signature()
118 gatt_server_handle_client_req(tcb, op_code, (uint16_t)(p_buf->len - 1), in gatt_verify_signature()
355 tGATT_STATUS gatt_get_link_encrypt_status(tGATT_TCB& tcb) { in gatt_get_link_encrypt_status() argument
359 BTM_GetSecurityFlagsByTransport(tcb.peer_bda, &sec_flag, tcb.transport); in gatt_get_link_encrypt_status()
Dgatt_api.cc1019 for (i = 0, p_tcb = gatt_cb.tcb; i < GATT_MAX_PHY_CHANNEL; i++, p_tcb++) { in GATT_Deregister()
/system/nfc/src/nfc/tags/
Drw_i93.cc113 tRW_I93_CB* p_i93 = &rw_cb.tcb.i93; in rw_i93_get_product_version()
242 tRW_I93_CB* p_i93 = &rw_cb.tcb.i93; in rw_i93_process_ext_sys_info()
326 tRW_I93_CB* p_i93 = &rw_cb.tcb.i93; in rw_i93_process_sys_info()
490 tRW_I93_CB* p_i93 = &rw_cb.tcb.i93; in rw_i93_check_sys_info_prot_ext()
517 tRW_I93_CB* p_i93 = &rw_cb.tcb.i93; in rw_i93_send_to_upper()
529 rw_cb.tcb.i93.sent_cmd = 0; in rw_i93_send_to_upper()
549 rw_cb.tcb.i93.sent_cmd = 0; in rw_i93_send_to_upper()
670 rw_cb.tcb.i93.sent_cmd = 0; in rw_i93_send_to_upper()
689 if (rw_cb.tcb.i93.p_retry_cmd) { in rw_i93_send_to_lower()
690 GKI_freebuf(rw_cb.tcb.i93.p_retry_cmd); in rw_i93_send_to_lower()
[all …]
Drw_t4t.cc136 nfc_start_quick_timer(&rw_cb.tcb.t4t.timer, NFC_TTYPE_RW_T4T_RESPONSE, in rw_t4t_send_to_lower()
226 tRW_T4T_CB* p_t4t = &rw_cb.tcb.t4t; in rw_t4t_update_version_details()
312 tRW_T4T_CB* p_t4t = &rw_cb.tcb.t4t; in rw_t4t_create_app()
363 tRW_T4T_CB* p_t4t = &rw_cb.tcb.t4t; in rw_t4t_select_app()
408 tRW_T4T_CB* p_t4t = &rw_cb.tcb.t4t; in rw_t4t_create_ccfile()
458 tRW_T4T_CB* p_t4t = &rw_cb.tcb.t4t; in rw_t4t_create_ndef()
509 tRW_T4T_CB* p_t4t = &rw_cb.tcb.t4t; in rw_t4t_write_cc()
562 tRW_T4T_CB* p_t4t = &rw_cb.tcb.t4t; in rw_t4t_write_ndef()
630 if (rw_cb.tcb.t4t.version == T4T_VERSION_2_0) { in rw_t4t_select_file()
660 tRW_T4T_CB* p_t4t = &rw_cb.tcb.t4t; in rw_t4t_read_file()
[all …]
Drw_t1t.cc65 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_data_cback()
72 (tT1T_CMD_RSP_INFO*)rw_cb.tcb.t1t.p_cmd_rsp_info; in rw_t1t_data_cback()
225 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_conn_cback()
326 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_send_static_cmd()
386 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_send_dyn_cmd()
450 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_handle_rid_rsp()
495 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_select()
529 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_process_timeout()
533 (rw_cb.tcb.t1t.p_cmd_rsp_info)->opcode); in rw_t1t_process_timeout()
574 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_process_error()
[all …]
Drw_t2t.cc66 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_proc_data()
73 (tT2T_CMD_RSP_INFO*)rw_cb.tcb.t2t.p_cmd_rsp_info; in rw_t2t_proc_data()
242 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_conn_cback()
350 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_send_cmd()
414 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_process_timeout()
483 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_process_error()
485 (tT2T_CMD_RSP_INFO*)rw_cb.tcb.t2t.p_cmd_rsp_info; in rw_t2t_process_error()
594 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_resume_op()
599 (tT2T_CMD_RSP_INFO*)rw_cb.tcb.t2t.p_cmd_rsp_info; in rw_t2t_resume_op()
655 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_sector_change()
[all …]
Drw_mfc.cc128 tRW_MFC_CB* p_mfc = &rw_cb.tcb.mfc; in RW_MfcFormatNDef()
165 tRW_MFC_CB* p_mfc = &rw_cb.tcb.mfc; in rw_mfc_formatBlock()
224 tRW_MFC_CB* p_mfc = &rw_cb.tcb.mfc; in rw_mfc_handle_format_rsp()
267 tRW_MFC_CB* p_mfc = &rw_cb.tcb.mfc; in rw_mfc_handle_format_op()
322 tRW_MFC_CB* p_mfc = &rw_cb.tcb.mfc; in RW_MfcWriteNDef()
360 tRW_MFC_CB* p_mfc = &rw_cb.tcb.mfc; in rw_mfc_writeBlock()
427 tRW_MFC_CB* p_mfc = &rw_cb.tcb.mfc; in rw_mfc_handle_write_rsp()
470 tRW_MFC_CB* p_mfc = &rw_cb.tcb.mfc; in rw_mfc_handle_write_op()
542 tRW_MFC_CB* p_mfc = &rw_cb.tcb.mfc; in rw_mfc_select()
583 tRW_MFC_CB* p_mfc = &rw_cb.tcb.mfc; in rw_mfc_send_to_lower()
[all …]
Drw_t2t_ndef.cc95 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_handle_rsp()
169 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_info_to_event()
217 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_handle_cc_read_rsp()
246 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_ntf_tlv_detect_complete()
320 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_handle_lock_read_rsp()
400 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_handle_tlv_detect_rsp()
411 (tT2T_CMD_RSP_INFO*)rw_cb.tcb.t2t.p_cmd_rsp_info; in rw_t2t_handle_tlv_detect_rsp()
792 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_read_locks()
855 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_extract_default_locks_info()
916 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_read_ndef_last_block()
[all …]
Drw_t3t.cc196 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_check_timeout()
219 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_update_timeout()
241 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_process_error()
338 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_handle_nci_poll_ntf()
391 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_handle_get_system_codes_cplt()
420 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_format_cplt()
452 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_set_readonly_cplt()
472 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_process_timeout()
479 rw_t3t_state_str(rw_cb.tcb.t3t.rw_state).c_str(), in rw_t3t_process_timeout()
480 rw_cb.tcb.t3t.cur_cmd, in rw_t3t_process_timeout()
[all …]
Drw_t1t_ndef.cc91 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_handle_rsp()
133 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_info_to_event()
189 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_extract_lock_bytes()
191 (tT1T_CMD_RSP_INFO*)rw_cb.tcb.t1t.p_cmd_rsp_info; in rw_t1t_extract_lock_bytes()
247 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_update_tag_state()
288 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_read_locks()
336 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_handle_write_rsp()
357 if (rw_cb.tcb.t1t.hr[0] != T1T_STATIC_HR0 || in rw_t1t_handle_write_rsp()
358 rw_cb.tcb.t1t.hr[1] >= RW_T1T_HR1_MIN) in rw_t1t_handle_write_rsp()
581 tRW_T1T_CB* p_t1t = &rw_cb.tcb.t1t; in rw_t1t_handle_read_rsp()
[all …]
Dtags_int.cc113 if ((xx < T1T_STATIC_OPCODES) || (rw_cb.tcb.t1t.hr[0] != T1T_STATIC_HR0)) in t1t_cmd_to_rsp_info()
Drw_main.cc218 memset(&rw_cb.tcb, 0, sizeof(tRW_TCB)); in RW_SetActivatedTagType()
/system/nfc/src/nfc/include/
Drw_int.h751 tRW_TCB tcb; member