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.cc47 p_cb->p_cmd_buf = nullptr; in bta_ag_at_init()
64 osi_free_and_reset((void**)&p_cb->p_cmd_buf); in bta_ag_at_reinit()
87 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) { in bta_ag_process_at()
95 p_arg = p_cb->p_cmd_buf + strlen(p_cb->p_at_tbl[idx].p_cmd); in bta_ag_process_at()
157 (*p_cb->p_err_cback)((tBTA_AG_SCB*)p_cb->p_user, true, p_cb->p_cmd_buf); in bta_ag_process_at()
177 if (p_cb->p_cmd_buf == nullptr) { in bta_ag_at_parse()
178 p_cb->p_cmd_buf = (char*)osi_malloc(p_cb->cmd_max_len); in bta_ag_at_parse()
190 p_cb->p_cmd_buf[p_cb->cmd_pos] = p_buf[i++]; in bta_ag_at_parse()
191 if (p_cb->p_cmd_buf[p_cb->cmd_pos] == '\r' || in bta_ag_at_parse()
192 p_cb->p_cmd_buf[p_cb->cmd_pos] == '\n') { in bta_ag_at_parse()
[all …]
Dbta_ag_at.h72 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
262 p_cmd_buf = rw_t3t_get_cmd_buf(); in rw_t3t_process_error()
263 if (p_cmd_buf != nullptr) { in rw_t3t_process_error()
264 memcpy(p_cmd_buf, p_cb->p_cur_cmd_buf, sizeof(NFC_HDR) + in rw_t3t_process_error()
268 if (rw_t3t_send_to_lower(p_cmd_buf) == NFC_STATUS_OK) { in rw_t3t_process_error()
275 GKI_freebuf(p_cmd_buf); in rw_t3t_process_error()
582 NFC_HDR* p_cmd_buf; in rw_t3t_get_cmd_buf() local
584 p_cmd_buf = (NFC_HDR*)GKI_getpoolbuf(NFC_RW_POOL_ID); in rw_t3t_get_cmd_buf()
585 if (p_cmd_buf != nullptr) { in rw_t3t_get_cmd_buf()
587 p_cmd_buf->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + 1; 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.cc1340 NFC_HDR* p_cmd_buf; in rw_mfc_process_error() local
1356 p_cmd_buf = (NFC_HDR*)GKI_getpoolbuf(NFC_RW_POOL_ID); in rw_mfc_process_error()
1357 if (p_cmd_buf != NULL) { in rw_mfc_process_error()
1358 memcpy(p_cmd_buf, p_mfc->p_cur_cmd_buf, in rw_mfc_process_error()
1362 if (NFC_SendData(NFC_RF_CONN_ID, p_cmd_buf) == NFC_STATUS_OK) { in rw_mfc_process_error()