Home
last modified time | relevance | path

Searched refs:pp (Results 1 – 11 of 11) sorted by relevance

/system/nfc/src/nfc/nci/
Dnci_hmsgs.cc49 uint8_t* pp; in nci_snd_tlv_parameter_generic_cmd() local
58 pp = (uint8_t*)(p + 1) + p->offset; in nci_snd_tlv_parameter_generic_cmd()
60 NCI_MSG_BLD_HDR0(pp, NCI_MT_CMD, NCI_GID_RF_MANAGE); in nci_snd_tlv_parameter_generic_cmd()
61 NCI_MSG_BLD_HDR1(pp, oid); in nci_snd_tlv_parameter_generic_cmd()
62 UINT8_TO_STREAM(pp, (uint8_t)(tlv_size + 1)); in nci_snd_tlv_parameter_generic_cmd()
79 UINT8_TO_STREAM(pp, num); in nci_snd_tlv_parameter_generic_cmd()
80 ARRAY_TO_STREAM(pp, p_param_tlvs, tlv_size); in nci_snd_tlv_parameter_generic_cmd()
97 uint8_t* pp; in nci_snd_core_reset() local
106 pp = (uint8_t*)(p + 1) + p->offset; in nci_snd_core_reset()
108 NCI_MSG_BLD_HDR0(pp, NCI_MT_CMD, NCI_GID_CORE); in nci_snd_core_reset()
[all …]
Dnci_hrcv.cc51 uint8_t *pp, len, op_code; in nci_proc_core_rsp() local
57 pp = p + 1; in nci_proc_core_rsp()
58 NCI_MSG_PRS_HDR1(pp, op_code); in nci_proc_core_rsp()
60 len = *pp++; in nci_proc_core_rsp()
65 nfc_ncif_proc_reset_rsp(pp, false); in nci_proc_core_rsp()
78 nfc_ncif_set_config_status(pp, len); in nci_proc_core_rsp()
86 nfc_ncif_report_conn_close_evt(*p_old, *pp); in nci_proc_core_rsp()
89 nfc_ncif_event_status(NFC_SET_POWER_SUB_STATE_REVT, *pp); in nci_proc_core_rsp()
110 uint8_t *pp, len, op_code; in nci_proc_core_ntf() local
116 pp = p + 1; in nci_proc_core_ntf()
[all …]
/system/nfc/src/nfc/ndef/
Dndef_utils.cc913 uint8_t *p_prev_pl, *pp; in NDEF_MsgAppendPayload() local
918 pp = p_rec + 1; in NDEF_MsgAppendPayload()
921 type_len = *pp++; in NDEF_MsgAppendPayload()
925 prev_paylen = *pp++; in NDEF_MsgAppendPayload()
927 BE_STREAM_TO_UINT32(prev_paylen, pp); in NDEF_MsgAppendPayload()
931 id_len = *pp++; in NDEF_MsgAppendPayload()
935 p_prev_pl = pp + type_len + id_len; in NDEF_MsgAppendPayload()
950 pp = p_rec + 2; in NDEF_MsgAppendPayload()
954 shiftdown(pp + 1, (uint32_t)(*p_cur_size - (pp - p_msg) - 1), 3); in NDEF_MsgAppendPayload()
961 UINT32_TO_BE_STREAM(pp, new_paylen); in NDEF_MsgAppendPayload()
[all …]
/system/nfc/src/nfa/hci/
Dnfa_hci_utils.cc51 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_find_pipe_by_pid() local
55 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_find_pipe_by_pid()
56 if (pp->pipe_id == pipe_id) return (pp); in nfa_hciu_find_pipe_by_pid()
158 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_count_open_pipes_on_gate() local
163 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_count_open_pipes_on_gate()
166 (pp->pipe_state == NFA_HCI_PIPE_OPENED)) in nfa_hciu_count_open_pipes_on_gate()
203 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_get_pipe_owner() local
206 pp = nfa_hciu_find_pipe_by_pid(pipe_id); in nfa_hciu_get_pipe_owner()
207 if (pp == nullptr) return (NFA_HANDLE_INVALID); in nfa_hciu_get_pipe_owner()
209 pg = nfa_hciu_find_gate_by_gid(pp->local_gate); in nfa_hciu_get_pipe_owner()
[all …]
Dnfa_hci_api.cc790 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in NFA_HciDebug() local
815 for (xx = 0; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in NFA_HciDebug()
816 if (pp->pipe_id != 0) { in NFA_HciDebug()
821 xx, pp->pipe_id, pp->pipe_state, pp->local_gate, pp->dest_gate, in NFA_HciDebug()
822 pp->dest_host); in NFA_HciDebug()
Dnfa_hci_act.cc399 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hci_api_get_gate_pipe_list() local
408 pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hci_api_get_gate_pipe_list()
411 for (yy = 0; yy < NFA_HCI_MAX_PIPE_CB; yy++, pp++) { in nfa_hci_api_get_gate_pipe_list()
412 if (pp->local_gate == pg->gate_id) in nfa_hci_api_get_gate_pipe_list()
414 *(tNFA_HCI_PIPE_INFO*)pp; in nfa_hci_api_get_gate_pipe_list()
421 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hci_api_get_gate_pipe_list()
422 xx++, pp++) { in nfa_hci_api_get_gate_pipe_list()
423 if (pp->pipe_id != 0 && pp->local_gate == NFA_HCI_CONNECTIVITY_GATE) { in nfa_hci_api_get_gate_pipe_list()
426 pp, sizeof(tNFA_HCI_PIPE_INFO)); in nfa_hci_api_get_gate_pipe_list()
427 } else if (pp->pipe_id != 0 && pp->local_gate == NFA_HCI_LOOP_BACK_GATE) { in nfa_hci_api_get_gate_pipe_list()
[all …]
/system/nfc/src/nfc/nfc/
Dnfc_vs.cc126 uint8_t* pp; in NFC_SendVsCommand() local
152 pp = (uint8_t*)(p_data + 1) + p_data->offset; in NFC_SendVsCommand()
153 NCI_MSG_BLD_HDR0(pp, NCI_MT_CMD, NCI_GID_PROP); in NFC_SendVsCommand()
154 NCI_MSG_BLD_HDR1(pp, oid); in NFC_SendVsCommand()
155 *pp = (uint8_t)p_data->len; in NFC_SendVsCommand()
Dnfc_ncif.cc144 uint8_t* pp; in nfc_ncif_send_data() local
208 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data()
210 memcpy(pp, ps, ulen); in nfc_ncif_send_data()
221 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data()
223 NCI_DATA_PBLD_HDR(pp, pbf, hdr0, ulen); in nfc_ncif_send_data()
950 uint8_t *pp, len_act; in nfc_ncif_proc_activate() local
998 pp = p; in nfc_ncif_proc_activate()
1004 STREAM_TO_ARRAY(p_intf->intf_param.frame.param, pp, in nfc_ncif_proc_activate()
1035 pp = &p_pa_iso->ats_res[NCI_ATS_T0_INDEX]; in nfc_ncif_proc_activate()
1037 pp++; /* T0 */ in nfc_ncif_proc_activate()
[all …]
Dnfc_main.cc1009 uint8_t param_tlvs[4], *pp; in NFC_ConnCreate() local
1014 pp = param_tlvs; in NFC_ConnCreate()
1017 UINT8_TO_STREAM(pp, NCI_CON_CREATE_TAG_NFCEE_VAL); in NFC_ConnCreate()
1018 UINT8_TO_STREAM(pp, 2); in NFC_ConnCreate()
1019 UINT8_TO_STREAM(pp, id); in NFC_ConnCreate()
1020 UINT8_TO_STREAM(pp, protocol); in NFC_ConnCreate()
1024 UINT8_TO_STREAM(pp, NCI_CON_CREATE_TAG_RF_DISC_ID); in NFC_ConnCreate()
1025 UINT8_TO_STREAM(pp, 1); in NFC_ConnCreate()
1026 UINT8_TO_STREAM(pp, id); in NFC_ConnCreate()
/system/nfc/src/nfa/ee/
Dnfa_ee_act.cc65 static void add_route_tech_proto_tlv(uint8_t** pp, uint8_t tlv_type, in add_route_tech_proto_tlv() argument
68 *(*pp)++ = tlv_type; in add_route_tech_proto_tlv()
69 *(*pp)++ = 3; in add_route_tech_proto_tlv()
70 *(*pp)++ = nfcee_id; in add_route_tech_proto_tlv()
71 *(*pp)++ = pwr_cfg; in add_route_tech_proto_tlv()
72 *(*pp)++ = tech_proto; in add_route_tech_proto_tlv()
75 static void add_route_aid_tlv(uint8_t** pp, uint8_t* pa, uint8_t nfcee_id, in add_route_aid_tlv() argument
79 *(*pp)++ = tag; in add_route_aid_tlv()
80 *(*pp)++ = len + 2; in add_route_aid_tlv()
81 *(*pp)++ = nfcee_id; in add_route_aid_tlv()
[all …]
/system/nfc/tools/casimir/scripts/
Drf_packets.py28 def print_val(p: str, pp: str, name: str, align: int, typ, val):
45 n_pp = pp + (' ' * (align + 4))
56 val.show(prefix=pp)
64 n_p = pp + ('├── ' if idx != last else '└── ')
65 n_pp = pp + ('│ ' if idx != last else ' ')
80 pp = prefix + ('│ ' if idx != last else ' ')
83 print_val(p, pp, f.name, align, f.type, val)