Lines Matching refs:xx
128 int len = 0, xx; in nfa_ee_find_total_aid_len() local
132 for (xx = start_entry; xx < p_cb->aid_entries; xx++) in nfa_ee_find_total_aid_len()
134 len += p_cb->aid_len[xx]; in nfa_ee_find_total_aid_len()
155 int xx, yy, aid_len_offset, offset; in nfa_ee_find_aid_offset() local
165 for (xx = 0; xx < p_ecb->aid_entries; xx++) in nfa_ee_find_aid_offset()
174 *p_entry = xx; in nfa_ee_find_aid_offset()
177 offset += p_ecb->aid_len[xx]; in nfa_ee_find_aid_offset()
203 int xx; in nfa_ee_report_event() local
212 for (xx = 0; xx < NFA_EE_MAX_CBACKS; xx++) in nfa_ee_report_event()
214 if (nfa_ee_cb.p_ee_cback[xx] != NULL) in nfa_ee_report_event()
216 (*nfa_ee_cb.p_ee_cback[xx])(event, p_data); in nfa_ee_report_event()
276 int xx; in nfa_ee_api_register() local
283 for (xx = 0; xx < NFA_EE_MAX_CBACKS; xx++) in nfa_ee_api_register()
285 if (nfa_ee_cb.p_ee_cback[xx] == p_cback) in nfa_ee_api_register()
296 for (xx = 0; xx < NFA_EE_MAX_CBACKS; xx++) in nfa_ee_api_register()
298 if (nfa_ee_cb.p_ee_cback[xx] == NULL) in nfa_ee_api_register()
300 nfa_ee_cb.p_ee_cback[xx] = p_cback; in nfa_ee_api_register()
595 int xx; in nfa_ee_api_connect() local
601 for (xx = 0; xx < p_cb->num_interface; xx++) in nfa_ee_api_connect()
603 if (p_data->connect.ee_interface == p_cb->ee_interface[xx]) in nfa_ee_api_connect()
747 int xx; in nfa_ee_restore_ntf_done() local
750 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb++) in nfa_ee_restore_ntf_done()
774 int xx, num_removed = 0; in nfa_ee_remove_pending() local
778 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb++) in nfa_ee_remove_pending()
785 first_removed = xx; in nfa_ee_remove_pending()
828 UINT8 xx; in nfa_ee_nci_disc_rsp() local
859 for (xx = nfa_ee_cb.cur_ee; xx < num_nfcee; xx++, p_cb++) in nfa_ee_nci_disc_rsp()
1073 UINT32 xx; in nfa_ee_check_restore_complete() local
1078 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb++) in nfa_ee_check_restore_complete()
1117 UINT8 xx; in nfa_ee_build_discover_req_evt() local
1126 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb++) in nfa_ee_build_discover_req_evt()
1400 UINT8 xx; in nfa_ee_nci_disc_req_ntf() local
1404 for (xx = 0; xx < p_cbk->num_info; xx++) in nfa_ee_nci_disc_req_ntf()
1406 ee_handle = NFA_HANDLE_GROUP_EE|p_cbk->info[xx].nfcee_id; in nfa_ee_nci_disc_req_ntf()
1408 p_cb = nfa_ee_find_ecb (p_cbk->info[xx].nfcee_id); in nfa_ee_nci_disc_req_ntf()
1411 NFA_TRACE_DEBUG1 ("Cannot find cb for NFCEE: 0x%x", p_cbk->info[xx].nfcee_id); in nfa_ee_nci_disc_req_ntf()
1415 p_cb->nfcee_id = p_cbk->info[xx].nfcee_id; in nfa_ee_nci_disc_req_ntf()
1420 NFA_TRACE_ERROR1 ("Cannot allocate cb for NFCEE: 0x%x", p_cbk->info[xx].nfcee_id); in nfa_ee_nci_disc_req_ntf()
1426 if (p_cbk->info[xx].op == NFC_EE_DISC_OP_ADD) in nfa_ee_nci_disc_req_ntf()
1428 if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_A) in nfa_ee_nci_disc_req_ntf()
1430 p_cb->la_protocol = p_cbk->info[xx].protocol; in nfa_ee_nci_disc_req_ntf()
1432 else if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_B) in nfa_ee_nci_disc_req_ntf()
1434 p_cb->lb_protocol = p_cbk->info[xx].protocol; in nfa_ee_nci_disc_req_ntf()
1436 else if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_F) in nfa_ee_nci_disc_req_ntf()
1438 p_cb->lf_protocol = p_cbk->info[xx].protocol; in nfa_ee_nci_disc_req_ntf()
1440 else if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_B_PRIME) in nfa_ee_nci_disc_req_ntf()
1442 p_cb->lbp_protocol = p_cbk->info[xx].protocol; in nfa_ee_nci_disc_req_ntf()
1450 if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_A) in nfa_ee_nci_disc_req_ntf()
1454 else if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_B) in nfa_ee_nci_disc_req_ntf()
1458 else if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_F) in nfa_ee_nci_disc_req_ntf()
1462 else if (p_cbk->info[xx].tech_n_mode == NFC_DISCOVERY_TYPE_LISTEN_B_PRIME) in nfa_ee_nci_disc_req_ntf()
1488 int xx; in nfa_ee_is_active() local
1495 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb++) in nfa_ee_is_active()
1522 int xx, yy; in nfa_ee_get_tech_route() local
1534 for (xx = 0; xx < NFA_EE_MAX_TECH_ROUTE; xx++) in nfa_ee_get_tech_route()
1536 p_handles[xx] = NFC_DH_ID; in nfa_ee_get_tech_route()
1545 if (p_cb->tech_switch_on & tech_mask_list[xx]) in nfa_ee_get_tech_route()
1546 p_handles[xx] = p_cb->nfcee_id; in nfa_ee_get_tech_route()
1549 if (p_cb->tech_switch_off & tech_mask_list[xx]) in nfa_ee_get_tech_route()
1550 p_handles[xx] = p_cb->nfcee_id; in nfa_ee_get_tech_route()
1553 if (p_cb->tech_battery_off & tech_mask_list[xx]) in nfa_ee_get_tech_route()
1554 p_handles[xx] = p_cb->nfcee_id; in nfa_ee_get_tech_route()
1576 int xx; in nfa_ee_route_add_one_ecb() local
1592 for (xx = 0; xx < NFA_EE_NUM_TECH; xx++) in nfa_ee_route_add_one_ecb()
1595 if (p_cb->tech_switch_on & nfa_ee_tech_mask_list[xx]) in nfa_ee_route_add_one_ecb()
1597 if (p_cb->tech_switch_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_route_add_one_ecb()
1599 if (p_cb->tech_battery_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_route_add_one_ecb()
1607 *pp++ = nfa_ee_tech_list[xx]; in nfa_ee_route_add_one_ecb()
1615 for (xx = 0; xx < NFA_EE_NUM_PROTO; xx++) in nfa_ee_route_add_one_ecb()
1618 if (p_cb->proto_switch_on & nfa_ee_proto_mask_list[xx]) in nfa_ee_route_add_one_ecb()
1620 if (p_cb->proto_switch_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_route_add_one_ecb()
1622 if (p_cb->proto_battery_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_route_add_one_ecb()
1630 *pp++ = nfa_ee_proto_list[xx]; in nfa_ee_route_add_one_ecb()
1641 for (xx = 0; xx < p_cb->aid_entries; xx++) in nfa_ee_route_add_one_ecb()
1644 if (p_cb->aid_rt_info[xx] & NFA_EE_AE_ROUTE) in nfa_ee_route_add_one_ecb()
1653 *pp++ = p_cb->aid_pwr_cfg[xx]; in nfa_ee_route_add_one_ecb()
1658 start_offset += p_cb->aid_len[xx]; in nfa_ee_route_add_one_ecb()
1747 UINT32 xx; in nfa_ee_need_recfg() local
1767 for (xx = 0; xx <= nfa_ee_cb.cur_ee; xx++) in nfa_ee_need_recfg()
1769 … NFA_TRACE_DEBUG3("%d: ecb_flags : 0x%02x, mask: 0x%02x", xx, p_cb->ecb_flags , mask); in nfa_ee_need_recfg()
1775 p_cb = &nfa_ee_cb.ecb[xx]; in nfa_ee_need_recfg()
1776 mask = 1 << xx; in nfa_ee_need_recfg()
1835 int xx; in nfa_ee_lmrt_to_nfcc() local
1855 for (xx = 0; xx < nfa_ee_cb.cur_ee; xx++, p_cb--) in nfa_ee_lmrt_to_nfcc()
1884 for (xx = 0; (xx < nfa_ee_cb.cur_ee) && more; xx++, p_cb++) in nfa_ee_lmrt_to_nfcc()
1919 int xx; in nfa_ee_update_rout() local
1934 for (xx = 0; xx < NFA_EE_NUM_ECBS; xx++, p_cb++) in nfa_ee_update_rout()
1937 mask = (1 << xx); in nfa_ee_update_rout()