Lines Matching refs:pp

66 static void add_route_tech_proto_tlv(uint8_t** pp, uint8_t tlv_type,  in add_route_tech_proto_tlv()  argument
69 *(*pp)++ = tlv_type; in add_route_tech_proto_tlv()
70 *(*pp)++ = 3; in add_route_tech_proto_tlv()
71 *(*pp)++ = nfcee_id; in add_route_tech_proto_tlv()
72 *(*pp)++ = pwr_cfg; in add_route_tech_proto_tlv()
73 *(*pp)++ = tech_proto; in add_route_tech_proto_tlv()
76 static void add_route_aid_tlv(uint8_t** pp, uint8_t* pa, uint8_t nfcee_id, in add_route_aid_tlv() argument
80 *(*pp)++ = tag; in add_route_aid_tlv()
81 *(*pp)++ = len + 2; in add_route_aid_tlv()
82 *(*pp)++ = nfcee_id; in add_route_aid_tlv()
83 *(*pp)++ = pwr_cfg; in add_route_aid_tlv()
85 memcpy(*pp, pa, len); in add_route_aid_tlv()
86 *pp += len; in add_route_aid_tlv()
311 static void nfa_ee_add_tech_route_to_ecb(tNFA_EE_ECB* p_cb, uint8_t* pp, in nfa_ee_add_tech_route_to_ecb() argument
335 add_route_tech_proto_tlv(&pp, NFC_ROUTE_TAG_TECH, p_cb->nfcee_id, in nfa_ee_add_tech_route_to_ecb()
344 uint8_t entry_size = (uint8_t)(pp - p); in nfa_ee_add_tech_route_to_ecb()
349 static void nfa_ee_add_proto_route_to_ecb(tNFA_EE_ECB* p_cb, uint8_t* pp, in nfa_ee_add_proto_route_to_ecb() argument
389 add_route_tech_proto_tlv(&pp, NFC_ROUTE_TAG_PROTO, NFC_DH_ID, in nfa_ee_add_proto_route_to_ecb()
398 add_route_tech_proto_tlv(&pp, proto_tag, p_cb->nfcee_id, power_cfg, in nfa_ee_add_proto_route_to_ecb()
408 uint8_t entry_size = (uint8_t)(pp - p); in nfa_ee_add_proto_route_to_ecb()
413 static void nfa_ee_add_aid_route_to_ecb(tNFA_EE_ECB* p_cb, uint8_t* pp, in nfa_ee_add_aid_route_to_ecb() argument
425 uint8_t* p_start = pp; in nfa_ee_add_aid_route_to_ecb()
449 add_route_aid_tlv(&pp, pa, p_cb->nfcee_id, p_cb->aid_pwr_cfg[xx], tag); in nfa_ee_add_aid_route_to_ecb()
452 uint8_t new_size = (uint8_t)(pp - p_start); in nfa_ee_add_aid_route_to_ecb()
459 pp = ps + 1; in nfa_ee_add_aid_route_to_ecb()
460 p = pp; in nfa_ee_add_aid_route_to_ecb()
462 pp += new_size; in nfa_ee_add_aid_route_to_ecb()
475 static void nfa_ee_add_sys_code_route_to_ecb(tNFA_EE_ECB* p_cb, uint8_t* pp, in nfa_ee_add_sys_code_route_to_ecb() argument
487 uint8_t* p_start = pp; in nfa_ee_add_sys_code_route_to_ecb()
492 add_route_sys_code_tlv(&pp, p_sys_code_cfg, p_cb->sys_code_rt_loc[xx], in nfa_ee_add_sys_code_route_to_ecb()
503 uint8_t new_size = (uint8_t)(pp - p_start); in nfa_ee_add_sys_code_route_to_ecb()
510 pp = p_buff + 1; in nfa_ee_add_sys_code_route_to_ecb()
511 p = pp; in nfa_ee_add_sys_code_route_to_ecb()
513 pp += new_size; in nfa_ee_add_sys_code_route_to_ecb()
2605 uint8_t* pp = ps + 1 + *p_cur_offset; in nfa_ee_route_add_one_ecb_by_route_order() local
2606 uint8_t* p = pp; in nfa_ee_route_add_one_ecb_by_route_order()
2613 pp = ps + 1 + *p_cur_offset; in nfa_ee_route_add_one_ecb_by_route_order()
2614 p = pp; in nfa_ee_route_add_one_ecb_by_route_order()
2615 nfa_ee_add_tech_route_to_ecb(p_cb, pp, p, ps, p_cur_offset); in nfa_ee_route_add_one_ecb_by_route_order()
2621 pp = ps + 1 + *p_cur_offset; in nfa_ee_route_add_one_ecb_by_route_order()
2622 p = pp; in nfa_ee_route_add_one_ecb_by_route_order()
2623 nfa_ee_add_proto_route_to_ecb(p_cb, pp, p, ps, p_cur_offset); in nfa_ee_route_add_one_ecb_by_route_order()
2626 nfa_ee_add_aid_route_to_ecb(p_cb, pp, p, ps, p_cur_offset, p_max_len); in nfa_ee_route_add_one_ecb_by_route_order()
2629 nfa_ee_add_sys_code_route_to_ecb(p_cb, pp, p, ps, p_cur_offset, in nfa_ee_route_add_one_ecb_by_route_order()