Lines Matching refs:xx
125 int xx, yy = 0; in nfa_ee_trace_aid() local
135 for (xx = 0; xx < len; xx++) { in nfa_ee_trace_aid()
154 int xx; in nfa_ee_update_route_size() local
160 for (xx = 0; xx < NFA_EE_NUM_TECH; xx++) { in nfa_ee_update_route_size()
162 if (p_cb->tech_switch_on & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
164 if (p_cb->tech_switch_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
166 if (p_cb->tech_battery_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
170 if (p_cb->tech_screen_lock & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
172 if (p_cb->tech_screen_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
174 if (p_cb->tech_screen_off_lock & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
184 for (xx = 0; xx < NFA_EE_NUM_PROTO; xx++) { in nfa_ee_update_route_size()
186 if (p_cb->proto_switch_on & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size()
188 if (p_cb->proto_switch_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size()
190 if (p_cb->proto_battery_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size()
194 if (p_cb->proto_screen_lock & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size()
196 if (p_cb->proto_screen_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size()
198 if (p_cb->proto_screen_off_lock & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size()
205 nfa_ee_proto_mask_list[xx] == NFA_PROTOCOL_MASK_NFC_DEP)) { in nfa_ee_update_route_size()
229 int xx; in nfa_ee_update_route_aid_size() local
234 for (xx = 0; xx < p_cb->aid_entries; xx++) { in nfa_ee_update_route_aid_size()
236 if (p_cb->aid_rt_info[xx] & NFA_EE_AE_ROUTE) { in nfa_ee_update_route_aid_size()
244 start_offset += p_cb->aid_len[xx]; in nfa_ee_update_route_aid_size()
265 for (uint8_t xx = 0; xx < p_cb->sys_code_cfg_entries; xx++) { in nfa_ee_update_route_sys_code_size() local
266 if (p_cb->sys_code_rt_loc_vs_info[xx] & NFA_EE_AE_ROUTE) { in nfa_ee_update_route_sys_code_size()
288 int xx; in nfa_ee_total_lmrt_size() local
298 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb--) { in nfa_ee_total_lmrt_size()
317 for (int xx = 0; xx < NFA_EE_NUM_TECH; xx++) { in nfa_ee_add_tech_route_to_ecb() local
319 if (p_cb->tech_switch_on & nfa_ee_tech_mask_list[xx]) in nfa_ee_add_tech_route_to_ecb()
321 if (p_cb->tech_switch_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_add_tech_route_to_ecb()
323 if (p_cb->tech_battery_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_add_tech_route_to_ecb()
327 if (p_cb->tech_screen_lock & nfa_ee_tech_mask_list[xx]) in nfa_ee_add_tech_route_to_ecb()
329 if (p_cb->tech_screen_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_add_tech_route_to_ecb()
331 if (p_cb->tech_screen_off_lock & nfa_ee_tech_mask_list[xx]) in nfa_ee_add_tech_route_to_ecb()
336 power_cfg, nfa_ee_tech_list[xx]); in nfa_ee_add_tech_route_to_ecb()
355 for (int xx = 0; xx < NFA_EE_NUM_PROTO; xx++) { in nfa_ee_add_proto_route_to_ecb() local
357 if (p_cb->proto_switch_on & nfa_ee_proto_mask_list[xx]) in nfa_ee_add_proto_route_to_ecb()
359 if (p_cb->proto_switch_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_add_proto_route_to_ecb()
361 if (p_cb->proto_battery_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_add_proto_route_to_ecb()
365 nfa_ee_proto_mask_list[xx] == NFA_PROTOCOL_MASK_NFC_DEP)) { in nfa_ee_add_proto_route_to_ecb()
368 if (nfa_ee_proto_mask_list[xx] == NFA_PROTOCOL_MASK_ISO_DEP) { in nfa_ee_add_proto_route_to_ecb()
375 if (p_cb->proto_screen_lock & nfa_ee_proto_mask_list[xx]) in nfa_ee_add_proto_route_to_ecb()
377 if (p_cb->proto_screen_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_add_proto_route_to_ecb()
379 if (p_cb->proto_screen_off_lock & nfa_ee_proto_mask_list[xx]) in nfa_ee_add_proto_route_to_ecb()
386 nfa_ee_proto_mask_list[xx] == NFA_PROTOCOL_MASK_NFC_DEP) { in nfa_ee_add_proto_route_to_ecb()
399 nfa_ee_proto_list[xx]); in nfa_ee_add_proto_route_to_ecb()
421 for (int xx = 0; xx < p_cb->aid_entries; xx++) { in nfa_ee_add_aid_route_to_ecb() local
427 if (p_cb->aid_rt_info[xx] & NFA_EE_AE_ROUTE) { in nfa_ee_add_aid_route_to_ecb()
432 "%s - p_cb->aid_info%x", __func__, p_cb->aid_info[xx]); in nfa_ee_add_aid_route_to_ecb()
433 if (p_cb->aid_info[xx] & NCI_ROUTE_QUAL_LONG_SELECT) { in nfa_ee_add_aid_route_to_ecb()
436 p_cb->aid_info[xx] & NCI_ROUTE_QUAL_LONG_SELECT); in nfa_ee_add_aid_route_to_ecb()
439 if (p_cb->aid_info[xx] & NCI_ROUTE_QUAL_SHORT_SELECT) { in nfa_ee_add_aid_route_to_ecb()
442 p_cb->aid_info[xx] & NCI_ROUTE_QUAL_SHORT_SELECT); 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()
451 start_offset += p_cb->aid_len[xx]; in nfa_ee_add_aid_route_to_ecb()
484 for (int xx = 0; xx < p_cb->sys_code_cfg_entries; xx++) { in nfa_ee_add_sys_code_route_to_ecb() local
489 if (p_cb->sys_code_rt_loc_vs_info[xx] & NFA_EE_AE_ROUTE) { in nfa_ee_add_sys_code_route_to_ecb()
491 if (nfa_ee_is_active(p_cb->sys_code_rt_loc[xx] | NFA_HANDLE_GROUP_EE)) { 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()
493 p_cb->sys_code_pwr_cfg[xx]); in nfa_ee_add_sys_code_route_to_ecb()
499 p_cb->sys_code_rt_loc[xx]); in nfa_ee_add_sys_code_route_to_ecb()
586 int len = 0, xx; in nfa_ee_find_total_aid_len() local
589 for (xx = start_entry; xx < p_cb->aid_entries; xx++) { in nfa_ee_find_total_aid_len()
590 len += p_cb->aid_len[xx]; in nfa_ee_find_total_aid_len()
609 for (int xx = start_entry; xx < p_cb->sys_code_cfg_entries; xx++) { in nfa_ee_find_total_sys_code_len() local
628 for (int32_t xx = 0; xx < NFA_EE_NUM_ECBS; xx++) { in nfa_all_ee_find_total_sys_code_len() local
629 tNFA_EE_ECB* p_cb = &nfa_ee_cb.ecb[xx]; in nfa_all_ee_find_total_sys_code_len()
647 int xx, yy, aid_len_offset, offset; in nfa_ee_find_aid_offset() local
655 for (xx = 0; xx < p_ecb->aid_entries; xx++) { in nfa_ee_find_aid_offset()
661 if (p_entry) *p_entry = xx; in nfa_ee_find_aid_offset()
664 offset += p_ecb->aid_len[xx]; in nfa_ee_find_aid_offset()
693 for (uint8_t xx = 0; xx < NFA_EE_NUM_ECBS; xx++) { in nfa_ee_find_sys_code_offset() local
694 tNFA_EE_ECB* p_ecb = &nfa_ee_cb.ecb[xx]; in nfa_ee_find_sys_code_offset()
732 int xx; in nfa_ee_report_event() local
740 for (xx = 0; xx < NFA_EE_MAX_CBACKS; xx++) { in nfa_ee_report_event()
741 if (nfa_ee_cb.p_ee_cback[xx] != nullptr) { in nfa_ee_report_event()
742 (*nfa_ee_cb.p_ee_cback[xx])(event, p_data); in nfa_ee_report_event()
799 int xx; in nfa_ee_api_register() local
806 for (xx = 0; xx < NFA_EE_MAX_CBACKS; xx++) { in nfa_ee_api_register()
807 if (nfa_ee_cb.p_ee_cback[xx] == p_cback) { in nfa_ee_api_register()
816 for (xx = 0; xx < NFA_EE_MAX_CBACKS; xx++) { in nfa_ee_api_register()
817 if (nfa_ee_cb.p_ee_cback[xx] == nullptr) { in nfa_ee_api_register()
818 nfa_ee_cb.p_ee_cback[xx] = p_cback; in nfa_ee_api_register()
832 for (xx = 0; xx < NFA_EE_NUM_ECBS; xx++) { in nfa_ee_api_register()
833 nfa_ee_cb.ecb[xx].aid_len = (uint8_t*)GKI_getbuf(max_aid_entries); in nfa_ee_api_register()
834 nfa_ee_cb.ecb[xx].aid_pwr_cfg = (uint8_t*)GKI_getbuf(max_aid_entries); in nfa_ee_api_register()
835 nfa_ee_cb.ecb[xx].aid_rt_info = (uint8_t*)GKI_getbuf(max_aid_entries); in nfa_ee_api_register()
836 nfa_ee_cb.ecb[xx].aid_info = (uint8_t*)GKI_getbuf(max_aid_entries); in nfa_ee_api_register()
837 nfa_ee_cb.ecb[xx].aid_cfg = (uint8_t*)GKI_getbuf(max_aid_cfg_length); in nfa_ee_api_register()
838 if ((NULL != nfa_ee_cb.ecb[xx].aid_len) && in nfa_ee_api_register()
839 (NULL != nfa_ee_cb.ecb[xx].aid_pwr_cfg) && in nfa_ee_api_register()
840 (NULL != nfa_ee_cb.ecb[xx].aid_info) && in nfa_ee_api_register()
841 (NULL != nfa_ee_cb.ecb[xx].aid_cfg)) { in nfa_ee_api_register()
842 memset(nfa_ee_cb.ecb[xx].aid_len, 0, max_aid_entries); in nfa_ee_api_register()
843 memset(nfa_ee_cb.ecb[xx].aid_pwr_cfg, 0, max_aid_entries); in nfa_ee_api_register()
844 memset(nfa_ee_cb.ecb[xx].aid_rt_info, 0, max_aid_entries); in nfa_ee_api_register()
845 memset(nfa_ee_cb.ecb[xx].aid_info, 0, max_aid_entries); in nfa_ee_api_register()
846 memset(nfa_ee_cb.ecb[xx].aid_cfg, 0, max_aid_cfg_length); in nfa_ee_api_register()
876 for (int xx = 0; xx < NFA_EE_NUM_ECBS; xx++) { in nfa_ee_api_deregister() local
877 GKI_freebuf(nfa_ee_cb.ecb[xx].aid_len); in nfa_ee_api_deregister()
878 GKI_freebuf(nfa_ee_cb.ecb[xx].aid_pwr_cfg); in nfa_ee_api_deregister()
879 GKI_freebuf(nfa_ee_cb.ecb[xx].aid_rt_info); in nfa_ee_api_deregister()
880 GKI_freebuf(nfa_ee_cb.ecb[xx].aid_info); in nfa_ee_api_deregister()
881 GKI_freebuf(nfa_ee_cb.ecb[xx].aid_cfg); in nfa_ee_api_deregister()
1562 int xx; in nfa_ee_api_connect() local
1567 for (xx = 0; xx < p_cb->num_interface; xx++) { in nfa_ee_api_connect()
1568 if (p_data->connect.ee_interface == p_cb->ee_interface[xx]) { in nfa_ee_api_connect()
1722 int xx; in nfa_ee_restore_ntf_done() local
1725 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb++) { in nfa_ee_restore_ntf_done()
1747 int xx, num_removed = 0; in nfa_ee_remove_pending() local
1751 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb++) { in nfa_ee_remove_pending()
1756 if (first_removed == NFA_EE_MAX_EE_SUPPORTED) first_removed = xx; in nfa_ee_remove_pending()
1796 uint8_t xx; in nfa_ee_nci_disc_rsp() local
1825 for (xx = nfa_ee_cb.cur_ee; xx < num_nfcee; xx++, p_cb++) { in nfa_ee_nci_disc_rsp()
2049 uint32_t xx; in nfa_ee_check_restore_complete() local
2054 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb++) { in nfa_ee_check_restore_complete()
2091 uint8_t xx; in nfa_ee_build_discover_req_evt() local
2099 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb++) { in nfa_ee_build_discover_req_evt()
2417 uint8_t xx; in nfa_ee_nci_disc_req_ntf() local
2422 for (xx = 0; xx < p_cbk->num_info; xx++) { in nfa_ee_nci_disc_req_ntf()
2423 ee_handle = NFA_HANDLE_GROUP_EE | p_cbk->info[xx].nfcee_id; in nfa_ee_nci_disc_req_ntf()
2425 p_cb = nfa_ee_find_ecb(p_cbk->info[xx].nfcee_id); in nfa_ee_nci_disc_req_ntf()
2428 "Cannot find cb for NFCEE: 0x%x", p_cbk->info[xx].nfcee_id); in nfa_ee_nci_disc_req_ntf()
2431 p_cb->nfcee_id = p_cbk->info[xx].nfcee_id; in nfa_ee_nci_disc_req_ntf()
2435 p_cbk->info[xx].nfcee_id); in nfa_ee_nci_disc_req_ntf()
2443 if (p_cbk->info[xx].op == NFC_EE_DISC_OP_ADD) { in nfa_ee_nci_disc_req_ntf()
2444 if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_A) { in nfa_ee_nci_disc_req_ntf()
2445 p_cb->la_protocol = p_cbk->info[xx].protocol; in nfa_ee_nci_disc_req_ntf()
2446 } else if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_B) { in nfa_ee_nci_disc_req_ntf()
2447 p_cb->lb_protocol = p_cbk->info[xx].protocol; in nfa_ee_nci_disc_req_ntf()
2448 } else if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_F) { in nfa_ee_nci_disc_req_ntf()
2449 p_cb->lf_protocol = p_cbk->info[xx].protocol; in nfa_ee_nci_disc_req_ntf()
2450 } else if (p_cbk->info[xx].tech_n_mode == in nfa_ee_nci_disc_req_ntf()
2452 p_cb->lbp_protocol = p_cbk->info[xx].protocol; in nfa_ee_nci_disc_req_ntf()
2460 if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_A) { in nfa_ee_nci_disc_req_ntf()
2462 } else if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_B) { in nfa_ee_nci_disc_req_ntf()
2464 } else if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_F) { in nfa_ee_nci_disc_req_ntf()
2466 } else if (p_cbk->info[xx].tech_n_mode == in nfa_ee_nci_disc_req_ntf()
2488 int xx; in nfa_ee_is_active() local
2497 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb++) { in nfa_ee_is_active()
2520 int xx, yy; in nfa_ee_get_tech_route() local
2528 for (xx = 0; xx < NFA_EE_MAX_TECH_ROUTE; xx++) { in nfa_ee_get_tech_route()
2529 p_handles[xx] = NFC_DH_ID; in nfa_ee_get_tech_route()
2535 if (p_cb->tech_switch_on & tech_mask_list[xx]) in nfa_ee_get_tech_route()
2536 p_handles[xx] = p_cb->nfcee_id; in nfa_ee_get_tech_route()
2539 if (p_cb->tech_switch_off & tech_mask_list[xx]) in nfa_ee_get_tech_route()
2540 p_handles[xx] = p_cb->nfcee_id; in nfa_ee_get_tech_route()
2543 if (p_cb->tech_battery_off & tech_mask_list[xx]) in nfa_ee_get_tech_route()
2544 p_handles[xx] = p_cb->nfcee_id; in nfa_ee_get_tech_route()
2711 uint32_t xx; in nfa_ee_need_recfg() local
2725 for (xx = 0; xx <= nfa_ee_cb.cur_ee; xx++) { in nfa_ee_need_recfg()
2727 "%d: ecb_flags : 0x%02x, mask: 0x%02x", xx, p_cb->ecb_flags, mask); in nfa_ee_need_recfg()
2732 p_cb = &nfa_ee_cb.ecb[xx]; in nfa_ee_need_recfg()
2733 mask = 1 << xx; in nfa_ee_need_recfg()
2799 int xx; in nfa_ee_lmrt_to_nfcc() local
2825 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb--) { in nfa_ee_lmrt_to_nfcc()
2848 for (xx = 0; (xx < nfa_ee_cb.cur_ee) && check; xx++, p_cb++) { in nfa_ee_lmrt_to_nfcc()
2878 int xx; in nfa_ee_update_rout() local
2894 for (xx = 0; xx < NFA_EE_NUM_ECBS; xx++, p_cb++) { in nfa_ee_update_rout()
2896 mask = (1 << xx); in nfa_ee_update_rout()