/system/bt/bta/hh/ |
D | bta_hh_utils.cc | 60 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/ |
D | nfc_utils.cc | 48 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 …]
|
D | nfc_main.cc | 197 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/ |
D | nfa_p2p_act.cc | 59 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 …]
|
D | nfa_p2p_api.cc | 167 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/ |
D | nfa_hci_utils.cc | 54 int xx = 0; in nfa_hciu_find_pipe_by_pid() local 57 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_find_pipe_by_pid() 76 int xx = 0; in nfa_hciu_find_gate_by_gid() local 78 for (; xx < NFA_HCI_MAX_GATE_CB; xx++, pg++) { in nfa_hciu_find_gate_by_gid() 96 int xx = 0; in nfa_hciu_find_gate_by_owner() local 98 for (; xx < NFA_HCI_MAX_GATE_CB; xx++, pg++) { in nfa_hciu_find_gate_by_owner() 118 int xx = 0; in nfa_hciu_find_gate_with_nopipes_by_owner() local 120 for (; xx < NFA_HCI_MAX_GATE_CB; xx++, pg++) { in nfa_hciu_find_gate_with_nopipes_by_owner() 137 int xx = 0; in nfa_hciu_count_pipes_on_gate() local 141 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++) { in nfa_hciu_count_pipes_on_gate() [all …]
|
D | nfa_hci_main.cc | 212 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 …]
|
D | nfa_hci_api.cc | 155 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/bt/stack/sdp/ |
D | sdp_db.cc | 54 uint16_t xx, yy; in sdp_db_service_search() local 70 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) { in sdp_db_service_search() 84 if (xx == p_rec->num_attributes) break; in sdp_db_service_search() 172 uint16_t xx; in sdp_db_find_attr_in_rec() local 175 for (xx = 0, p_at = &p_rec->attribute[0]; xx < p_rec->num_attributes; in sdp_db_find_attr_in_rec() 176 xx++, p_at++) { in sdp_db_find_attr_in_rec() 196 uint16_t xx, yy, len; in sdp_compose_proto_list() local 205 for (xx = 0; xx < num_elem; xx++, p_elem_list++) { in sdp_compose_proto_list() 298 uint16_t xx, yy, zz; in SDP_DeleteRecord() local 311 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { in SDP_DeleteRecord() [all …]
|
D | sdp_server.cc | 183 uint16_t rsp_param_len, num_rsp_handles, xx; in process_service_search() local 274 for (xx = cont_offset; xx < cont_offset + cur_handles; xx++) in process_service_search() 275 UINT32_TO_BE_STREAM(p_rsp, rsp_handles[xx]); in process_service_search() 312 uint16_t rsp_param_len, xx; in process_service_attr_req() local 398 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req() 399 p_attr = sdp_db_find_attr_in_rec(p_rec, attr_seq.attr_entry[xx].start, in process_service_attr_req() 400 attr_seq.attr_entry[xx].end); in process_service_attr_req() 408 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req() 445 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req() 452 if (attr_seq.attr_entry[xx].start != attr_seq.attr_entry[xx].end) { in process_service_attr_req() [all …]
|
D | sdp_utils.cc | 304 uint16_t xx; in sdpu_find_ccb_by_cid() local 308 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_cid() 328 uint16_t xx; in sdpu_find_ccb_by_db() local 333 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_db() 352 uint16_t xx; in sdpu_allocate_ccb() local 356 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_allocate_ccb() 404 uint16_t xx; in sdpu_build_attrib_seq() local 409 xx = 5; in sdpu_build_attrib_seq() 411 xx = num_attrs * 3; in sdpu_build_attrib_seq() 413 if (xx > 255) { in sdpu_build_attrib_seq() [all …]
|
/system/nfc/src/nfc/tags/ |
D | tags_int.cc | 109 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()
|
D | ce_t4t.cc | 384 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() 899 uint8_t xx; in CE_T4tRegisterAID() local 936 for (xx = 0; xx < CE_T4T_MAX_REG_AID; xx++) { in CE_T4tRegisterAID() 937 if ((p_t4t->reg_aid[xx].aid_len == aid_len) && in CE_T4tRegisterAID() 938 (!(memcmp(p_t4t->reg_aid[xx].aid, p_aid, aid_len)))) { in CE_T4tRegisterAID() [all …]
|
/system/nfc/src/nfa/ee/ |
D | nfa_ee_act.cc | 124 int xx, yy = 0; in nfa_ee_trace_aid() local 134 for (xx = 0; xx < len; xx++) { in nfa_ee_trace_aid() 153 int xx; in nfa_ee_update_route_size() local 159 for (xx = 0; xx < NFA_EE_NUM_TECH; xx++) { in nfa_ee_update_route_size() 161 if (p_cb->tech_switch_on & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size() 163 if (p_cb->tech_switch_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size() 165 if (p_cb->tech_battery_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size() 169 if (p_cb->tech_screen_lock & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size() 171 if (p_cb->tech_screen_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size() 173 if (p_cb->tech_screen_off_lock & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size() [all …]
|
D | nfa_ee_main.cc | 97 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/btm/ |
D | btm_pm.cc | 105 int xx; in BTM_PmRegister() local 114 for (xx = 0; xx < BTM_MAX_PM_RECORDS; xx++) { in BTM_PmRegister() 116 if (btm_cb.pm_reg_db[xx].mask == BTM_PM_REC_NOT_USED) { in BTM_PmRegister() 120 btm_cb.pm_reg_db[xx].cback = p_cb; in BTM_PmRegister() 122 btm_cb.pm_reg_db[xx].mask = mask; in BTM_PmRegister() 123 *p_pm_id = xx; in BTM_PmRegister() 350 int xx; in btm_pm_reset() local 360 for (xx = 0; xx < BTM_MAX_PM_RECORDS; xx++) { in btm_pm_reset() 361 btm_cb.pm_reg_db[xx].mask = BTM_PM_REC_NOT_USED; in btm_pm_reset() 403 uint8_t xx; in btm_pm_find_acl_ind() local [all …]
|
D | btm_sco.cc | 437 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 …]
|
D | btm_inq.cc | 898 uint16_t xx; in BTM_InqDbFirst() local 901 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in BTM_InqDbFirst() 1129 uint16_t xx; in btm_clr_inq_db() local 1135 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_clr_inq_db() 1180 uint16_t xx; in btm_inq_find_bdaddr() local 1186 for (xx = 0; xx < p_inq->num_bd_entries; xx++, p_db++) { in btm_inq_find_bdaddr() 1191 if (xx < p_inq->max_bd_entries) { in btm_inq_find_bdaddr() 1212 uint16_t xx; in btm_inq_db_find() local 1215 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_inq_db_find() 1236 uint16_t xx; in btm_inq_db_new() local [all …]
|
/system/bt/stack/avrc/ |
D | avrc_bld_tg.cc | 55 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 …]
|
D | avrc_pars_tg.cc | 102 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 …]
|
D | avrc_pars_ct.cc | 579 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp() local 580 (xx < AVRC_CAP_MAX_NUM_COMP_ID)); in avrc_ctrl_pars_vendor_rsp() 581 xx++) { in avrc_ctrl_pars_vendor_rsp() 582 BE_STREAM_TO_UINT24(p_result->get_caps.param.company_id[xx], p); in avrc_ctrl_pars_vendor_rsp() 588 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp() local 589 (xx < AVRC_CAP_MAX_NUM_EVT_ID)); in avrc_ctrl_pars_vendor_rsp() 590 xx++) { in avrc_ctrl_pars_vendor_rsp() 591 BE_STREAM_TO_UINT8(p_result->get_caps.param.event_id[xx], p); in avrc_ctrl_pars_vendor_rsp() 613 for (int xx = 0; xx < p_result->list_app_attr.num_attr; xx++) { in avrc_ctrl_pars_vendor_rsp() local 614 BE_STREAM_TO_UINT8(p_result->list_app_attr.attrs[xx], p); in avrc_ctrl_pars_vendor_rsp() [all …]
|
/system/bt/stack/bnep/ |
D | bnep_utils.cc | 62 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/ |
D | nfa_dm_discover.cc | 397 uint8_t params[250], *p, xx; in nfa_dm_set_rf_listen_mode_raw_config() local 503 for (xx = 0; xx < NFA_LF_MAX_SC_NFCID2; xx++) { in nfa_dm_set_rf_listen_mode_raw_config() 504 if ((p_cfg->lf_t3t_flags & (0x0001 << xx)) != 0x0000) { in nfa_dm_set_rf_listen_mode_raw_config() 505 UINT8_TO_STREAM(p, NFC_PMID_LF_T3T_ID1 + xx); in nfa_dm_set_rf_listen_mode_raw_config() 507 ARRAY_TO_STREAM(p, p_cfg->lf_t3t_identifier[xx], in nfa_dm_set_rf_listen_mode_raw_config() 882 uint8_t num_params, xx; in nfa_dm_start_rf_discover() local 902 for (xx = 0; xx < NFA_DM_DISC_NUM_ENTRIES; xx++) { in nfa_dm_start_rf_discover() 903 if (nfa_dm_cb.disc_cb.entry[xx].in_use) { in nfa_dm_start_rf_discover() 904 poll_mask = (nfa_dm_cb.disc_cb.entry[xx].requested_disc_mask & in nfa_dm_start_rf_discover() 919 if (nfa_dm_cb.disc_cb.entry[xx].host_id == in nfa_dm_start_rf_discover() [all …]
|
/system/bt/stack/l2cap/ |
D | l2c_utils.cc | 70 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() 1140 int xx; in l2cu_send_peer_info_rsp() local 1142 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2cu_send_peer_info_rsp() 1144 if ((xx >= L2CAP_ATT_CID - L2CAP_FIRST_FIXED_CHNL) && in l2cu_send_peer_info_rsp() 1145 (xx <= L2CAP_SMP_CID - L2CAP_FIRST_FIXED_CHNL)) in l2cu_send_peer_info_rsp() 1148 if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL) in l2cu_send_peer_info_rsp() 1149 p[(xx + L2CAP_FIRST_FIXED_CHNL) / 8] |= in l2cu_send_peer_info_rsp() [all …]
|
D | l2c_link.cc | 62 int xx; in l2c_link_hci_conn_req() local 80 for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; in l2c_link_hci_conn_req() 81 xx++, p_lcb_cur++) { in l2c_link_hci_conn_req() 426 int xx; in l2c_link_hci_disc_comp() local 427 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2c_link_hci_disc_comp() 428 if (p_lcb->p_fixed_ccbs[xx] && in l2c_link_hci_disc_comp() 429 p_lcb->p_fixed_ccbs[xx] != p_lcb->p_pending_ccb) { in l2c_link_hci_disc_comp() 430 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)( in l2c_link_hci_disc_comp() 431 xx + L2CAP_FIRST_FIXED_CHNL, p_lcb->remote_bd_addr, false, in l2c_link_hci_disc_comp() 433 if (p_lcb->p_fixed_ccbs[xx] == NULL) { in l2c_link_hci_disc_comp() [all …]
|