Home
last modified time | relevance | path

Searched refs:aid_len (Results 1 – 12 of 12) sorted by relevance

/external/libnfc-nci/src/nfa/ee/
Dnfa_ee_api.c405 UINT8 aid_len, in NFA_EeAddAidRouting() argument
411 UINT16 size = sizeof(tNFA_EE_API_ADD_AID) + aid_len; in NFA_EeAddAidRouting()
419 …if ((p_cb == NULL) || (aid_len == 0) || (p_aid == NULL) || (aid_len < NFA_MIN_AID_LEN) || (aid_len in NFA_EeAddAidRouting()
421 NFA_TRACE_ERROR1 ("Bad ee_handle or AID (len=%d)", aid_len); in NFA_EeAddAidRouting()
430 p_msg->aid_len = aid_len; in NFA_EeAddAidRouting()
433 memcpy(p_msg->p_aid, p_aid, aid_len); in NFA_EeAddAidRouting()
464 tNFA_STATUS NFA_EeRemoveAidRouting(UINT8 aid_len, in NFA_EeRemoveAidRouting() argument
469 UINT16 size = sizeof(tNFA_EE_API_REMOVE_AID) + aid_len; in NFA_EeRemoveAidRouting()
472 if ((aid_len == 0) || (p_aid == NULL) || (aid_len > NFA_MAX_AID_LEN)) in NFA_EeRemoveAidRouting()
480 p_msg->aid_len = aid_len; in NFA_EeRemoveAidRouting()
[all …]
Dnfa_ee_act.c134 len += p_cb->aid_len[xx]; in nfa_ee_find_total_aid_len()
153 tNFA_EE_ECB * nfa_ee_find_aid_offset(UINT8 aid_len, UINT8 *p_aid, int *p_offset, int *p_entry) in nfa_ee_find_aid_offset() argument
167 if ( (p_ecb->aid_cfg[offset + aid_len_offset] == aid_len) in nfa_ee_find_aid_offset()
168 &&(memcmp(&p_ecb->aid_cfg[offset + aid_len_offset + 1], p_aid, aid_len) == 0) ) in nfa_ee_find_aid_offset()
177 offset += p_ecb->aid_len[xx]; in nfa_ee_find_aid_offset()
451 p_chk_cb = nfa_ee_find_aid_offset(p_add->aid_len, p_add->p_aid, &offset, &entry); in nfa_ee_api_add_aid()
472 len_needed = p_add->aid_len + 2; /* tag/len */ in nfa_ee_api_add_aid()
486 *p++ = p_add->aid_len; in nfa_ee_api_add_aid()
487 memcpy(p, p_add->p_aid, p_add->aid_len); in nfa_ee_api_add_aid()
488 p += p_add->aid_len; in nfa_ee_api_add_aid()
[all …]
/external/libnfc-nci/src/nfc/tags/
Dce_t4t.c456 if ( (ce_cb.mem.t4t.reg_aid[xx].aid_len > 0) in ce_t4t_process_select_app_cmd()
457 &&(ce_cb.mem.t4t.reg_aid[xx].aid_len == data_len) in ce_t4t_process_select_app_cmd()
944 tCE_T4T_AID_HANDLE CE_T4tRegisterAID (UINT8 aid_len, UINT8 *p_aid, tCE_CBACK *p_cback) in CE_T4tRegisterAID() argument
950 if (aid_len == 0) in CE_T4tRegisterAID()
968 *p_aid, *(p_aid+1), *(p_aid+2), *(p_aid+3), aid_len); in CE_T4tRegisterAID()
970 if (aid_len > NFC_MAX_AID_LEN) in CE_T4tRegisterAID()
984 if ( (p_t4t->reg_aid[xx].aid_len == aid_len) in CE_T4tRegisterAID()
985 &&(!(memcmp(p_t4t->reg_aid[xx].aid, p_aid, aid_len))) ) in CE_T4tRegisterAID()
994 if (p_t4t->reg_aid[xx].aid_len == 0) in CE_T4tRegisterAID()
996 p_t4t->reg_aid[xx].aid_len = aid_len; in CE_T4tRegisterAID()
[all …]
/external/wpa_supplicant_8/src/utils/
Dpcsc_funcs.c396 unsigned char aid_len; in scard_get_aid() member
452 if (efdir->aid_len < 1 || efdir->aid_len > 16) { in scard_get_aid()
454 efdir->aid_len); in scard_get_aid()
459 efdir->rid, efdir->aid_len); in scard_get_aid()
475 if (efdir->aid_len > maxlen) { in scard_get_aid()
480 os_memcpy(aid, efdir->rid, efdir->aid_len); in scard_get_aid()
482 return efdir->aid_len; in scard_get_aid()
645 int aid_len; in scard_init() local
647 aid_len = scard_get_aid(scard, aid, sizeof(aid)); in scard_init()
648 if (aid_len < 0) { in scard_init()
[all …]
/external/libnfc-nci/src/nfa/ce/
Dnfa_ce_api.c325 UINT8 aid_len, in NFA_CeRegisterAidOnDH() argument
343 memcpy (p_msg->reg_listen.aid, aid, aid_len); in NFA_CeRegisterAidOnDH()
344 p_msg->reg_listen.aid_len = aid_len; in NFA_CeRegisterAidOnDH()
Dnfa_ce_act.c1224 …_cb->listen_info[listen_info_idx].t4t_aid_handle = CE_T4tRegisterAID (p_ce_msg->reg_listen.aid_len, in nfa_ce_api_reg_listen()
/external/libnfc-nci/src/nfa/int/
Dnfa_ee_int.h143 UINT8 aid_len[NFA_EE_MAX_AID_ENTRIES];/* the actual lengths in aid_cfg */ member
221 UINT8 aid_len; member
230 UINT8 aid_len; member
455 tNFA_EE_ECB * nfa_ee_find_aid_offset(UINT8 aid_len, UINT8 *p_aid, int *p_offset, int *p_entry);
Dnfa_ce_int.h99 UINT8 aid_len; /* AID length */ member
/external/libnfc-nci/src/nfa/include/
Dnfa_ee_api.h365 UINT8 aid_len,
389 NFC_API extern tNFA_STATUS NFA_EeRemoveAidRouting (UINT8 aid_len,
Dnfa_ce_api.h180 UINT8 aid_len,
/external/libnfc-nci/src/nfc/int/
Dce_int.h85 UINT8 aid_len; member
/external/libnfc-nci/src/nfc/include/
Dce_api.h181 NFC_API extern tCE_T4T_AID_HANDLE CE_T4tRegisterAID (UINT8 aid_len,