Home
last modified time | relevance | path

Searched refs:p_rec (Results 1 – 4 of 4) sorted by relevance

/external/libnfc-nci/src/nfc/ndef/
Dndef_utils.c81 UINT8 *p_rec = p_msg; in NDEF_MsgValidate() local
99 for (count = 0; p_rec < p_end; count++) in NDEF_MsgValidate()
102 if (p_rec + 3 > p_end) in NDEF_MsgValidate()
105 rec_hdr = *p_rec++; in NDEF_MsgValidate()
112 type_len = *p_rec++; in NDEF_MsgValidate()
116 payload_len = *p_rec++; in NDEF_MsgValidate()
120 if (p_rec + 4 > p_end) in NDEF_MsgValidate()
123 BE_STREAM_TO_UINT32 (payload_len, p_rec); in NDEF_MsgValidate()
130 if (p_rec + 1 > p_end) in NDEF_MsgValidate()
133 id_len = *p_rec++; in NDEF_MsgValidate()
[all …]
Dndef_cho_utils.c171 UINT8 *p_rec, *p; in NDEF_MsgAddWktAc() local
191 p_rec = NDEF_MsgGetLastRecInMsg (p_msg); in NDEF_MsgAddWktAc()
194 p = NDEF_RecGetPayload (p_rec, &payload_len); in NDEF_MsgAddWktAc()
333 UINT8 *p_rec; in NDEF_MsgAppendMediaBtOobCod() local
340 p_rec = ndef_get_bt_oob_record (p_msg, max_size, p_cur_size, p_id_str); in NDEF_MsgAppendMediaBtOobCod()
342 if (!p_rec) in NDEF_MsgAppendMediaBtOobCod()
354 p_rec, eir_data, eir_data_len); in NDEF_MsgAppendMediaBtOobCod()
360 p = NDEF_RecGetPayload (p_rec, &oob_data_len); in NDEF_MsgAppendMediaBtOobCod()
382 UINT8 *p_rec; in NDEF_MsgAppendMediaBtOobName() local
389 p_rec = ndef_get_bt_oob_record (p_msg, max_size, p_cur_size, p_id_str); in NDEF_MsgAppendMediaBtOobName()
[all …]
/external/libnfc-nci/src/nfa/dm/
Dnfa_dm_ndef.c369 UINT8 *p_rec, *p_ndef_start, *p_type, *p_payload, *p_rec_end; in nfa_dm_ndef_handle_message() local
425 p_rec = p_ndef_start = p_msg_buf; in nfa_dm_ndef_handle_message()
428 while (p_rec != NULL) in nfa_dm_ndef_handle_message()
431 p_type = NDEF_RecGetType (p_rec, &tnf, &type_len); in nfa_dm_ndef_handle_message()
437 p_payload = NDEF_RecGetPayload (p_rec, &payload_len); in nfa_dm_ndef_handle_message()
463 ndef_data.p_data = p_rec; /* Start of record */ in nfa_dm_ndef_handle_message()
467 ndef_data.len = payload_len + (UINT32) (p_payload - p_rec); in nfa_dm_ndef_handle_message()
471 p_rec_end = p_rec; in nfa_dm_ndef_handle_message()
496 ndef_data.len = (UINT32) (p_rec_end - p_rec); in nfa_dm_ndef_handle_message()
531 p_rec = NDEF_MsgGetNextRec (p_rec); in nfa_dm_ndef_handle_message()
/external/libnfc-nci/src/nfc/include/
Dndef_utils.h220 EXPORT_NDEF_API extern UINT8 *NDEF_RecGetType (UINT8 *p_rec, UINT8 *p_tnf, UINT8 *p_type_len);
231 EXPORT_NDEF_API extern UINT8 *NDEF_RecGetId (UINT8 *p_rec, UINT8 *p_id_len);
242 EXPORT_NDEF_API extern UINT8 *NDEF_RecGetPayload (UINT8 *p_rec, UINT32 *p_payload_len);
315 UINT8 *p_rec, UINT8 *p_add_pl, UINT32 add_pl_len);
329 UINT8 *p_rec, UINT8 *p_new_pl, UINT32 new_pl_len);
343 UINT8 *p_rec, UINT8 *p_new_type, UINT8 new_type_len);
357 UINT8 *p_rec, UINT8 *p_new_id, UINT8 new_id_len);