Home
last modified time | relevance | path

Searched refs:xx (Results 1 – 25 of 65) sorted by relevance

123

/system/bt/bta/hh/
Dbta_hh_utils.cc60 uint8_t xx; in bta_hh_find_cb() local
63 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_find_cb()
65 if ((bda == bta_hh_cb.kdev[xx].addr && !bda.IsEmpty())) { in bta_hh_find_cb()
67 APPL_TRACE_DEBUG("found kdev_cb[%d] hid_handle = %d ", xx, in bta_hh_find_cb()
68 bta_hh_cb.kdev[xx].hid_handle) in bta_hh_find_cb()
70 return xx; in bta_hh_find_cb()
75 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb()
76 bta_hh_cb.kdev[xx].hid_handle, bta_hh_cb.kdev[xx].state); in bta_hh_find_cb()
81 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_find_cb()
82 if (!bta_hh_cb.kdev[xx].in_use) { in bta_hh_find_cb()
[all …]
/system/nfc/src/nfc/nfc/
Dnfc_utils.cc48 int xx, max = NCI_MAX_CONN_CBS; in nfc_alloc_conn_cb() local
52 for (xx = 0; xx < max; xx++) { in nfc_alloc_conn_cb()
53 if (nfc_cb.conn_cb[xx].conn_id == NFC_ILLEGAL_CONN_ID) { in nfc_alloc_conn_cb()
54 nfc_cb.conn_cb[xx].conn_id = in nfc_alloc_conn_cb()
56 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_alloc_conn_cb()
97 int xx; in nfc_find_conn_cb_by_handle() local
100 for (xx = 0; xx < NCI_MAX_CONN_CBS; xx++) { in nfc_find_conn_cb_by_handle()
101 if (nfc_cb.conn_cb[xx].id == id) { in nfc_find_conn_cb_by_handle()
102 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_find_conn_cb_by_handle()
123 int xx; in nfc_find_conn_cb_by_conn_id() local
[all …]
Dnfc_main.cc197 uint8_t num_interfaces = 0, xx; in nfc_enabled() local
216 for (xx = 0; xx < num_interfaces; xx++) { in nfc_enabled()
265 for (xx = 0; xx < num_interfaces; xx++) { in nfc_enabled()
722 int xx; in NFC_Init() local
728 for (xx = 0; xx < NCI_MAX_CONN_CBS; xx++) { in NFC_Init()
729 nfc_cb.conn_cb[xx].conn_id = NFC_ILLEGAL_CONN_ID; in NFC_Init()
820 uint8_t xx, yy, num_intf, intf_mask; in NFC_DiscoveryMap() local
830 for (xx = 0; xx < NFC_NFCC_MAX_NUM_VS_INTERFACE + NCI_INTERFACE_MAX; xx++) { in NFC_DiscoveryMap()
831 memset(&max_maps[xx], 0x00, sizeof(tNFC_DISCOVER_MAPS)); in NFC_DiscoveryMap()
834 for (xx = 0; xx < num_disc_maps; xx++) { in NFC_DiscoveryMap()
[all …]
/system/nfc/src/nfa/p2p/
Dnfa_p2p_act.cc59 uint8_t xx; in nfa_p2p_allocate_conn_cb() local
61 for (xx = 0; xx < LLCP_MAX_DATA_LINK; xx++) { in nfa_p2p_allocate_conn_cb()
62 if (nfa_p2p_cb.conn_cb[xx].flags == 0) { in nfa_p2p_allocate_conn_cb()
63 nfa_p2p_cb.conn_cb[xx].flags |= NFA_P2P_CONN_FLAG_IN_USE; in nfa_p2p_allocate_conn_cb()
64 nfa_p2p_cb.conn_cb[xx].local_sap = local_sap; in nfa_p2p_allocate_conn_cb()
66 return (xx); in nfa_p2p_allocate_conn_cb()
85 static void nfa_p2p_deallocate_conn_cb(uint8_t xx) { in nfa_p2p_deallocate_conn_cb() argument
86 if (xx < LLCP_MAX_DATA_LINK) { in nfa_p2p_deallocate_conn_cb()
87 nfa_p2p_cb.conn_cb[xx].flags = 0; in nfa_p2p_deallocate_conn_cb()
89 LOG(ERROR) << StringPrintf("Invalid index (%d)", xx); in nfa_p2p_deallocate_conn_cb()
[all …]
Dnfa_p2p_api.cc167 tNFA_HANDLE xx; in NFA_P2pDeregister() local
171 xx = handle & NFA_HANDLE_MASK; in NFA_P2pDeregister()
173 if ((xx >= NFA_P2P_NUM_SAP) || (nfa_p2p_cb.sap_cb[xx].p_cback == nullptr)) { in NFA_P2pDeregister()
207 tNFA_HANDLE xx; in NFA_P2pAcceptConn() local
212 xx = handle & NFA_HANDLE_MASK; in NFA_P2pAcceptConn()
214 if (!(xx & NFA_P2P_HANDLE_FLAG_CONN)) { in NFA_P2pAcceptConn()
218 xx &= ~NFA_P2P_HANDLE_FLAG_CONN; in NFA_P2pAcceptConn()
221 if ((xx >= LLCP_MAX_DATA_LINK) || (nfa_p2p_cb.conn_cb[xx].flags == 0)) { in NFA_P2pAcceptConn()
260 tNFA_HANDLE xx; in NFA_P2pRejectConn() local
264 xx = handle & NFA_HANDLE_MASK; in NFA_P2pRejectConn()
[all …]
/system/nfc/src/nfa/hci/
Dnfa_hci_utils.cc53 int xx = 0; in nfa_hciu_find_pipe_by_pid() local
56 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_find_pipe_by_pid()
75 int xx = 0; in nfa_hciu_find_gate_by_gid() local
77 for (; xx < NFA_HCI_MAX_GATE_CB; xx++, pg++) { in nfa_hciu_find_gate_by_gid()
95 int xx = 0; in nfa_hciu_find_gate_by_owner() local
97 for (; xx < NFA_HCI_MAX_GATE_CB; xx++, pg++) { in nfa_hciu_find_gate_by_owner()
117 int xx = 0; in nfa_hciu_find_gate_with_nopipes_by_owner() local
119 for (; xx < NFA_HCI_MAX_GATE_CB; xx++, pg++) { in nfa_hciu_find_gate_with_nopipes_by_owner()
136 int xx = 0; in nfa_hciu_count_pipes_on_gate() local
140 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++) { in nfa_hciu_count_pipes_on_gate()
[all …]
Dnfa_hci_main.cc212 uint8_t xx, yy, zz; in nfa_hci_is_valid_cfg() local
221 for (xx = 0; xx < NFA_HCI_MAX_APP_CB; xx++) { in nfa_hci_is_valid_cfg()
223 if (strlen(&nfa_hci_cb.cfg.reg_app_names[xx][0]) > NFA_MAX_HCI_APP_NAME_LEN) in nfa_hci_is_valid_cfg()
227 if ((nfa_hci_cb.cfg.b_send_conn_evts[xx] != true) && in nfa_hci_is_valid_cfg()
228 (nfa_hci_cb.cfg.b_send_conn_evts[xx] != false)) in nfa_hci_is_valid_cfg()
231 if (nfa_hci_cb.cfg.reg_app_names[xx][0] != 0) { in nfa_hci_is_valid_cfg()
234 for (yy = xx + 1; yy < NFA_HCI_MAX_APP_CB; yy++) { in nfa_hci_is_valid_cfg()
236 (!strncmp(&nfa_hci_cb.cfg.reg_app_names[xx][0], in nfa_hci_is_valid_cfg()
238 strlen(nfa_hci_cb.cfg.reg_app_names[xx])))) { in nfa_hci_is_valid_cfg()
242 &nfa_hci_cb.cfg.reg_app_names[xx][0], xx); in nfa_hci_is_valid_cfg()
[all …]
Dnfa_hci_api.cc155 int xx; in NFA_HciDeregister() local
170 for (xx = 0; xx < NFA_HCI_MAX_APP_CB; xx++) { in NFA_HciDeregister()
171 if ((nfa_hci_cb.cfg.reg_app_names[xx][0] != 0) && in NFA_HciDeregister()
172 (!strncmp(p_app_name, &nfa_hci_cb.cfg.reg_app_names[xx][0], in NFA_HciDeregister()
177 if (xx == NFA_HCI_MAX_APP_CB) { in NFA_HciDeregister()
824 int xx; in NFA_HciDebug() local
834 for (xx = 0; xx < NFA_HCI_MAX_APP_CB; xx++) { in NFA_HciDebug()
835 if (nfa_hci_cb.cfg.reg_app_names[xx][0] != 0) { in NFA_HciDebug()
837 << StringPrintf(" Host Inx: %u Name: %s", xx, in NFA_HciDebug()
838 &nfa_hci_cb.cfg.reg_app_names[xx][0]); in NFA_HciDebug()
[all …]
/system/nfc/src/nfc/tags/
Dtags_int.cc109 int xx; in t1t_cmd_to_rsp_info() local
111 for (xx = 0, p = &t1t_cmd_rsp_infos[0]; xx < T1T_MAX_NUM_OPCODES; xx++, p++) { in t1t_cmd_to_rsp_info()
113 if ((xx < T1T_STATIC_OPCODES) || (rw_cb.tcb.t1t.hr[0] != T1T_STATIC_HR0)) in t1t_cmd_to_rsp_info()
133 int xx; in t1t_tag_init_data() local
135 for (xx = 0, p = &t1t_init_content[0]; xx < T1T_MAX_TAG_MODELS; xx++, p++) { in t1t_tag_init_data()
158 int xx; in t2t_tag_init_data() local
160 for (xx = 0, p = &t2t_init_content[0]; xx < T2T_MAX_TAG_MODELS; xx++, p++) { in t2t_tag_init_data()
184 int xx; in t2t_cmd_to_rsp_info() local
186 for (xx = 0, p = &t2t_cmd_rsp_infos[0]; xx < T2T_MAX_NUM_OPCODES; xx++, p++) { in t2t_cmd_to_rsp_info()
Dce_t4t.cc384 uint8_t xx; in ce_t4t_process_select_app_cmd() local
419 for (xx = 0; xx < CE_T4T_MAX_REG_AID; xx++) { in ce_t4t_process_select_app_cmd()
420 if ((ce_cb.mem.t4t.reg_aid[xx].aid_len > 0) && in ce_t4t_process_select_app_cmd()
421 (ce_cb.mem.t4t.reg_aid[xx].aid_len == data_len) && in ce_t4t_process_select_app_cmd()
422 (!(memcmp(ce_cb.mem.t4t.reg_aid[xx].aid, p_cmd, data_len)))) { in ce_t4t_process_select_app_cmd()
423 ce_cb.mem.t4t.selected_aid_idx = xx; in ce_t4t_process_select_app_cmd()
888 uint8_t xx; in CE_T4tRegisterAID() local
925 for (xx = 0; xx < CE_T4T_MAX_REG_AID; xx++) { in CE_T4tRegisterAID()
926 if ((p_t4t->reg_aid[xx].aid_len == aid_len) && in CE_T4tRegisterAID()
927 (!(memcmp(p_t4t->reg_aid[xx].aid, p_aid, aid_len)))) { in CE_T4tRegisterAID()
[all …]
/system/nfc/src/nfa/ee/
Dnfa_ee_act.cc124 int xx, yy = 0; in nfa_ee_trace_aid() local
133 for (xx = 0; xx < len; xx++) { in nfa_ee_trace_aid()
152 int xx; in nfa_ee_update_route_size() local
158 for (xx = 0; xx < NFA_EE_NUM_TECH; xx++) { in nfa_ee_update_route_size()
160 if (p_cb->tech_switch_on & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
162 if (p_cb->tech_switch_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
164 if (p_cb->tech_battery_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
168 if (p_cb->tech_screen_lock & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
170 if (p_cb->tech_screen_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
172 if (p_cb->tech_screen_off_lock & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
[all …]
Dnfa_ee_main.cc97 int xx; in nfa_ee_init() local
103 for (xx = 0; xx < NFA_EE_MAX_EE_SUPPORTED; xx++) { in nfa_ee_init()
104 nfa_ee_cb.ecb[xx].nfcee_id = NFA_EE_INVALID; in nfa_ee_init()
105 nfa_ee_cb.ecb[xx].ee_status = NFC_NFCEE_STATUS_INACTIVE; in nfa_ee_init()
221 uint32_t xx; in nfa_ee_proc_nfcc_power_mode() local
231 for (xx = 0; xx < NFA_EE_MAX_EE_SUPPORTED; xx++, p_cb++) { in nfa_ee_proc_nfcc_power_mode()
233 if (xx >= nfa_ee_cb.cur_ee) p_cb->nfcee_id = NFA_EE_INVALID; in nfa_ee_proc_nfcc_power_mode()
282 uint32_t xx; in nfa_ee_proc_hci_info_cback() local
291 for (xx = 0; xx < NFA_EE_MAX_EE_SUPPORTED; xx++, p_cb++) { in nfa_ee_proc_hci_info_cback()
401 uint32_t xx; in nfa_ee_find_ecb() local
[all …]
/system/bt/stack/sdp/
Dsdp_db.cc59 uint16_t xx, yy; in sdp_db_service_search() local
75 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) { in sdp_db_service_search()
89 if (xx == p_rec->num_attributes) break; in sdp_db_service_search()
177 uint16_t xx; in sdp_db_find_attr_in_rec() local
180 for (xx = 0, p_at = &p_rec->attribute[0]; xx < p_rec->num_attributes; in sdp_db_find_attr_in_rec()
181 xx++, p_at++) { in sdp_db_find_attr_in_rec()
201 uint16_t xx, yy, len; in sdp_compose_proto_list() local
210 for (xx = 0; xx < num_elem; xx++, p_elem_list++) { in sdp_compose_proto_list()
303 uint16_t xx, yy, zz; in SDP_DeleteRecord() local
316 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { in SDP_DeleteRecord()
[all …]
Dsdp_server.cc191 uint16_t rsp_param_len, num_rsp_handles, xx; in process_service_search() local
282 for (xx = cont_offset; xx < cont_offset + cur_handles; xx++) in process_service_search()
283 UINT32_TO_BE_STREAM(p_rsp, rsp_handles[xx]); in process_service_search()
320 uint16_t rsp_param_len, xx; in process_service_attr_req() local
406 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req()
407 p_attr = sdp_db_find_attr_in_rec(p_rec, attr_seq.attr_entry[xx].start, in process_service_attr_req()
408 attr_seq.attr_entry[xx].end); in process_service_attr_req()
416 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req()
453 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req()
460 if (attr_seq.attr_entry[xx].start != attr_seq.attr_entry[xx].end) { in process_service_attr_req()
[all …]
Dsdp_utils.cc299 uint16_t xx; in sdpu_find_ccb_by_cid() local
303 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_cid()
323 uint16_t xx; in sdpu_find_ccb_by_db() local
328 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_db()
347 uint16_t xx; in sdpu_allocate_ccb() local
351 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_allocate_ccb()
399 uint16_t xx; in sdpu_build_attrib_seq() local
404 xx = 5; in sdpu_build_attrib_seq()
406 xx = num_attrs * 3; in sdpu_build_attrib_seq()
408 if (xx > 255) { in sdpu_build_attrib_seq()
[all …]
/system/bt/stack/btm/
Dbtm_pm.cc110 int xx; in BTM_PmRegister() local
119 for (xx = 0; xx < BTM_MAX_PM_RECORDS; xx++) { in BTM_PmRegister()
121 if (btm_cb.pm_reg_db[xx].mask == BTM_PM_REC_NOT_USED) { in BTM_PmRegister()
125 btm_cb.pm_reg_db[xx].cback = p_cb; in BTM_PmRegister()
127 btm_cb.pm_reg_db[xx].mask = mask; in BTM_PmRegister()
128 *p_pm_id = xx; in BTM_PmRegister()
356 int xx; in btm_pm_reset() local
366 for (xx = 0; xx < BTM_MAX_PM_RECORDS; xx++) { in btm_pm_reset()
367 btm_cb.pm_reg_db[xx].mask = BTM_PM_REC_NOT_USED; in btm_pm_reset()
409 uint8_t xx; in btm_pm_find_acl_ind() local
[all …]
Dbtm_sco.cc437 uint16_t xx; in BTM_CreateSco() local
459 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco()
470 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco()
481 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; in BTM_CreateSco()
482 xx++, p++) { in BTM_CreateSco()
562 *p_sco_inx = xx; in BTM_CreateSco()
588 for (uint16_t xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_chk_pend_unpark() local
621 uint16_t xx; in btm_sco_chk_pend_rolechange() local
625 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_chk_pend_rolechange()
661 for (uint16_t xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_disc_chk_pend_for_modechange() local
[all …]
Dbtm_inq.cc963 uint16_t xx; in BTM_InqDbFirst() local
966 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in BTM_InqDbFirst()
1217 uint16_t xx; in btm_clr_inq_db() local
1223 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_clr_inq_db()
1268 uint16_t xx; in btm_inq_find_bdaddr() local
1274 for (xx = 0; xx < p_inq->num_bd_entries; xx++, p_db++) { in btm_inq_find_bdaddr()
1279 if (xx < p_inq->max_bd_entries) { in btm_inq_find_bdaddr()
1300 uint16_t xx; in btm_inq_db_find() local
1303 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_inq_db_find()
1324 uint16_t xx; in btm_inq_db_new() local
[all …]
/system/bt/stack/avrc/
Davrc_bld_tg.cc55 uint8_t xx; in avrc_bld_get_capability_rsp() local
86 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp()
87 UINT24_TO_BE_STREAM(p_data, p_company_id[xx]); in avrc_bld_get_capability_rsp()
93 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp()
94 if (AVRC_IS_VALID_EVENT_ID(p_event_id[xx])) { in avrc_bld_get_capability_rsp()
96 UINT8_TO_BE_STREAM(p_data, p_event_id[xx]); in avrc_bld_get_capability_rsp()
123 uint8_t xx; in avrc_bld_list_app_settings_attr_rsp() local
140 for (xx = 0; xx < p_rsp->num_attr; xx++) { in avrc_bld_list_app_settings_attr_rsp()
141 if (AVRC_IsValidPlayerAttr(p_rsp->attrs[xx])) { in avrc_bld_list_app_settings_attr_rsp()
143 UINT8_TO_BE_STREAM(p_data, p_rsp->attrs[xx]); in avrc_bld_list_app_settings_attr_rsp()
[all …]
Davrc_pars_tg.cc102 uint8_t xx, yy; in avrc_pars_vendor_cmd() local
170 for (xx = 0, yy = 0; xx < p_result->get_cur_app_val.num_attr; xx++) { in avrc_pars_vendor_cmd()
188 for (xx = 0; in avrc_pars_vendor_cmd()
189 ((xx < p_result->set_app_val.num_val) && (buf_len > size_needed)); in avrc_pars_vendor_cmd()
190 xx++) { in avrc_pars_vendor_cmd()
191 p_app_set[xx].attr_id = *p++; in avrc_pars_vendor_cmd()
192 p_app_set[xx].attr_val = *p++; in avrc_pars_vendor_cmd()
193 if (!avrc_is_valid_player_attrib_value(p_app_set[xx].attr_id, in avrc_pars_vendor_cmd()
194 p_app_set[xx].attr_val)) in avrc_pars_vendor_cmd()
197 if (xx != p_result->set_app_val.num_val) { in avrc_pars_vendor_cmd()
[all …]
Davrc_pars_ct.cc555 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp() local
556 (xx < AVRC_CAP_MAX_NUM_COMP_ID)); in avrc_ctrl_pars_vendor_rsp()
557 xx++) { in avrc_ctrl_pars_vendor_rsp()
558 BE_STREAM_TO_UINT24(p_result->get_caps.param.company_id[xx], p); in avrc_ctrl_pars_vendor_rsp()
564 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp() local
565 (xx < AVRC_CAP_MAX_NUM_EVT_ID)); in avrc_ctrl_pars_vendor_rsp()
566 xx++) { in avrc_ctrl_pars_vendor_rsp()
567 BE_STREAM_TO_UINT8(p_result->get_caps.param.event_id[xx], p); in avrc_ctrl_pars_vendor_rsp()
589 for (int xx = 0; xx < p_result->list_app_attr.num_attr; xx++) { in avrc_ctrl_pars_vendor_rsp() local
590 BE_STREAM_TO_UINT8(p_result->list_app_attr.attrs[xx], p); in avrc_ctrl_pars_vendor_rsp()
[all …]
/system/bt/stack/bnep/
Dbnep_utils.cc62 uint16_t xx; in bnepu_find_bcb_by_cid() local
66 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_find_bcb_by_cid()
86 uint16_t xx; in bnepu_find_bcb_by_bd_addr() local
90 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_find_bcb_by_bd_addr()
110 uint16_t xx; in bnepu_allocate_bcb() local
114 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_allocate_bcb()
121 p_bcb->handle = xx + 1; in bnepu_allocate_bcb()
254 uint16_t xx; in bnepu_send_peer_our_filters() local
268 for (xx = 0; xx < p_bcb->sent_num_filters; xx++) { in bnepu_send_peer_our_filters()
269 UINT16_TO_BE_STREAM(p, p_bcb->sent_prot_filter_start[xx]); in bnepu_send_peer_our_filters()
[all …]
/system/nfc/src/nfa/dm/
Dnfa_dm_discover.cc398 uint8_t params[250], *p, xx; in nfa_dm_set_rf_listen_mode_raw_config() local
504 for (xx = 0; xx < NFA_LF_MAX_SC_NFCID2; xx++) { in nfa_dm_set_rf_listen_mode_raw_config()
505 if ((p_cfg->lf_t3t_flags & (0x0001 << xx)) != 0x0000) { in nfa_dm_set_rf_listen_mode_raw_config()
506 UINT8_TO_STREAM(p, NFC_PMID_LF_T3T_ID1 + xx); in nfa_dm_set_rf_listen_mode_raw_config()
508 ARRAY_TO_STREAM(p, p_cfg->lf_t3t_identifier[xx], in nfa_dm_set_rf_listen_mode_raw_config()
883 uint8_t num_params, xx; in nfa_dm_start_rf_discover() local
903 for (xx = 0; xx < NFA_DM_DISC_NUM_ENTRIES; xx++) { in nfa_dm_start_rf_discover()
904 if (nfa_dm_cb.disc_cb.entry[xx].in_use) { in nfa_dm_start_rf_discover()
905 poll_mask = (nfa_dm_cb.disc_cb.entry[xx].requested_disc_mask & in nfa_dm_start_rf_discover()
920 if (nfa_dm_cb.disc_cb.entry[xx].host_id == in nfa_dm_start_rf_discover()
[all …]
/system/bt/stack/l2cap/
Dl2c_utils.cc70 int xx; in l2cu_allocate_lcb() local
73 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) { in l2cu_allocate_lcb()
247 int xx; in l2cu_find_lcb_by_bd_addr() local
250 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) { in l2cu_find_lcb_by_bd_addr()
1138 int xx; in l2cu_send_peer_info_rsp() local
1140 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2cu_send_peer_info_rsp()
1142 if ((xx >= L2CAP_ATT_CID - L2CAP_FIRST_FIXED_CHNL) && in l2cu_send_peer_info_rsp()
1143 (xx <= L2CAP_SMP_CID - L2CAP_FIRST_FIXED_CHNL)) in l2cu_send_peer_info_rsp()
1146 if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL) in l2cu_send_peer_info_rsp()
1147 p[(xx + L2CAP_FIRST_FIXED_CHNL) / 8] |= in l2cu_send_peer_info_rsp()
[all …]
Dl2c_link.cc61 int xx; in l2c_link_hci_conn_req() local
79 for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; in l2c_link_hci_conn_req()
80 xx++, p_lcb_cur++) { in l2c_link_hci_conn_req()
420 int xx; in l2c_link_hci_disc_comp() local
421 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2c_link_hci_disc_comp()
422 if (p_lcb->p_fixed_ccbs[xx] && in l2c_link_hci_disc_comp()
423 p_lcb->p_fixed_ccbs[xx] != p_lcb->p_pending_ccb) { in l2c_link_hci_disc_comp()
424 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)( in l2c_link_hci_disc_comp()
425 xx + L2CAP_FIRST_FIXED_CHNL, p_lcb->remote_bd_addr, false, in l2c_link_hci_disc_comp()
427 if (p_lcb->p_fixed_ccbs[xx] == NULL) { in l2c_link_hci_disc_comp()
[all …]

123