Home
last modified time | relevance | path

Searched refs:p_cmd_buf (Results 1 – 7 of 7) sorted by relevance

/system/bt/bta/ag/
Dbta_ag_at.cc51 p_cb->p_cmd_buf = nullptr; in bta_ag_at_init()
68 osi_free_and_reset((void**)&p_cb->p_cmd_buf); in bta_ag_at_reinit()
91 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) { in bta_ag_process_at()
99 p_arg = p_cb->p_cmd_buf + strlen(p_cb->p_at_tbl[idx].p_cmd); in bta_ag_process_at()
163 (*p_cb->p_err_cback)((tBTA_AG_SCB*)p_cb->p_user, true, p_cb->p_cmd_buf); in bta_ag_process_at()
183 if (p_cb->p_cmd_buf == nullptr) { in bta_ag_at_parse()
184 p_cb->p_cmd_buf = (char*)osi_malloc(p_cb->cmd_max_len); in bta_ag_at_parse()
196 p_cb->p_cmd_buf[p_cb->cmd_pos] = p_buf[i++]; in bta_ag_at_parse()
197 if (p_cb->p_cmd_buf[p_cb->cmd_pos] == '\r' || in bta_ag_at_parse()
198 p_cb->p_cmd_buf[p_cb->cmd_pos] == '\n') { in bta_ag_at_parse()
[all …]
Dbta_ag_at.h76 char* p_cmd_buf; /* temp parsing buffer */ member
/system/nfc/src/nfc/tags/
Drw_t3t.cc244 NFC_HDR* p_cmd_buf; in rw_t3t_process_error() local
270 p_cmd_buf = rw_t3t_get_cmd_buf(); in rw_t3t_process_error()
271 if (p_cmd_buf != nullptr) { in rw_t3t_process_error()
272 memcpy(p_cmd_buf, p_cb->p_cur_cmd_buf, sizeof(NFC_HDR) + in rw_t3t_process_error()
276 if (rw_t3t_send_to_lower(p_cmd_buf) == NFC_STATUS_OK) { in rw_t3t_process_error()
593 NFC_HDR* p_cmd_buf; in rw_t3t_get_cmd_buf() local
595 p_cmd_buf = (NFC_HDR*)GKI_getpoolbuf(NFC_RW_POOL_ID); in rw_t3t_get_cmd_buf()
596 if (p_cmd_buf != nullptr) { in rw_t3t_get_cmd_buf()
598 p_cmd_buf->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + 1; in rw_t3t_get_cmd_buf()
599 p_cmd_buf->len = 0; in rw_t3t_get_cmd_buf()
[all …]
Drw_t2t.cc482 NFC_HDR* p_cmd_buf; in rw_t2t_process_error() local
499 p_cmd_buf = (NFC_HDR*)GKI_getpoolbuf(NFC_RW_POOL_ID); in rw_t2t_process_error()
500 if (p_cmd_buf != nullptr) { in rw_t2t_process_error()
501 memcpy(p_cmd_buf, p_t2t->p_cur_cmd_buf, sizeof(NFC_HDR) + in rw_t2t_process_error()
506 rw_main_update_tx_stats(p_cmd_buf->len, true); in rw_t2t_process_error()
508 if (NFC_SendData(NFC_RF_CONN_ID, p_cmd_buf) == NFC_STATUS_OK) { in rw_t2t_process_error()
596 NFC_HDR* p_cmd_buf; in rw_t2t_resume_op() local
610 p_cmd_buf = (NFC_HDR*)GKI_getpoolbuf(NFC_RW_POOL_ID); in rw_t2t_resume_op()
611 if (p_cmd_buf != nullptr) { in rw_t2t_resume_op()
612 memcpy(p_cmd_buf, p_t2t->p_sec_cmd_buf, sizeof(NFC_HDR) + in rw_t2t_resume_op()
[all …]
Dce_t3t.cc136 NFC_HDR* p_cmd_buf; in ce_t3t_get_rsp_buf() local
138 p_cmd_buf = (NFC_HDR*)GKI_getpoolbuf(NFC_CE_POOL_ID); in ce_t3t_get_rsp_buf()
139 if (p_cmd_buf != nullptr) { in ce_t3t_get_rsp_buf()
141 p_cmd_buf->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + 1; in ce_t3t_get_rsp_buf()
142 p_cmd_buf->len = 0; in ce_t3t_get_rsp_buf()
145 return (p_cmd_buf); in ce_t3t_get_rsp_buf()
Drw_t1t.cc573 NFC_HDR* p_cmd_buf; in rw_t1t_process_error() local
589 p_cmd_buf = (NFC_HDR*)GKI_getpoolbuf(NFC_RW_POOL_ID); in rw_t1t_process_error()
590 if (p_cmd_buf != nullptr) { in rw_t1t_process_error()
591 memcpy(p_cmd_buf, p_t1t->p_cur_cmd_buf, sizeof(NFC_HDR) + in rw_t1t_process_error()
597 rw_main_update_tx_stats(p_cmd_buf->len, true); in rw_t1t_process_error()
600 if (NFC_SendData(NFC_RF_CONN_ID, p_cmd_buf) == NFC_STATUS_OK) { in rw_t1t_process_error()
Drw_mfc.cc1350 NFC_HDR* p_cmd_buf; in rw_mfc_process_error() local
1367 p_cmd_buf = (NFC_HDR*)GKI_getpoolbuf(NFC_RW_POOL_ID); in rw_mfc_process_error()
1368 if (p_cmd_buf != NULL) { in rw_mfc_process_error()
1369 memcpy(p_cmd_buf, p_mfc->p_cur_cmd_buf, in rw_mfc_process_error()
1373 if (NFC_SendData(NFC_RF_CONN_ID, p_cmd_buf) == NFC_STATUS_OK) { in rw_mfc_process_error()