/system/bt/bta/hh/ |
D | bta_hh_utils.cc | 58 uint8_t xx; in bta_hh_find_cb() local 61 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_find_cb() 63 if ((bda == bta_hh_cb.kdev[xx].addr && !bda.IsEmpty())) { in bta_hh_find_cb() 65 APPL_TRACE_DEBUG("found kdev_cb[%d] hid_handle = %d ", xx, in bta_hh_find_cb() 66 bta_hh_cb.kdev[xx].hid_handle) in bta_hh_find_cb() 68 return xx; in bta_hh_find_cb() 73 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb() 74 bta_hh_cb.kdev[xx].hid_handle, bta_hh_cb.kdev[xx].state); in bta_hh_find_cb() 79 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_find_cb() 80 if (!bta_hh_cb.kdev[xx].in_use) { in bta_hh_find_cb() [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/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 | 198 uint8_t num_interfaces = 0, xx; in nfc_enabled() local 229 for (xx = 0; xx < num_interfaces; xx++) { in nfc_enabled() 286 for (xx = 0; xx < num_interfaces; xx++) { in nfc_enabled() 768 int xx; in NFC_Init() local 774 for (xx = 0; xx < NCI_MAX_CONN_CBS; xx++) { in NFC_Init() 775 nfc_cb.conn_cb[xx].conn_id = NFC_ILLEGAL_CONN_ID; in NFC_Init() 866 uint8_t xx, yy, num_intf, intf_mask; in NFC_DiscoveryMap() local 876 for (xx = 0; xx < NFC_NFCC_MAX_NUM_VS_INTERFACE + NCI_INTERFACE_MAX; xx++) { in NFC_DiscoveryMap() 877 memset(&max_maps[xx], 0x00, sizeof(tNFC_DISCOVER_MAPS)); in NFC_DiscoveryMap() 880 for (xx = 0; xx < num_disc_maps; xx++) { in NFC_DiscoveryMap() [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/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 | rw_t5t.cc | 70 uint16_t length = p_resp->len, xx; in rw_t5t_sm_detect_ndef() local 336 for (xx = 0; xx < length; xx++) { in rw_t5t_sm_detect_ndef() 339 if (*(p + xx) == I93_ICODE_TLV_TYPE_NDEF) { in rw_t5t_sm_detect_ndef() 341 p_i93->tlv_type = *(p + xx); in rw_t5t_sm_detect_ndef() 342 p_i93->ndef_tlv_start_offset = p_i93->rw_offset + xx; in rw_t5t_sm_detect_ndef() 346 } else if (*(p + xx) == I93_ICODE_TLV_TYPE_TERM) { in rw_t5t_sm_detect_ndef() 352 p_i93->tlv_type = *(p + xx); in rw_t5t_sm_detect_ndef() 358 if (*(p + xx) == 0xFF) { in rw_t5t_sm_detect_ndef() 362 p_i93->tlv_length = *(p + xx); in rw_t5t_sm_detect_ndef() 374 p_i93->tlv_length = *(p + xx); in rw_t5t_sm_detect_ndef() [all …]
|
/system/nfc/src/nfa/ee/ |
D | nfa_ee_act.cc | 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() [all …]
|
D | nfa_ee_main.cc | 99 int xx; in nfa_ee_init() local 105 for (xx = 0; xx < NFA_EE_MAX_EE_SUPPORTED; xx++) { in nfa_ee_init() 106 nfa_ee_cb.ecb[xx].nfcee_id = NFA_EE_INVALID; in nfa_ee_init() 107 nfa_ee_cb.ecb[xx].ee_status = NFC_NFCEE_STATUS_INACTIVE; in nfa_ee_init() 223 uint32_t xx; in nfa_ee_proc_nfcc_power_mode() local 233 for (xx = 0; xx < NFA_EE_MAX_EE_SUPPORTED; xx++, p_cb++) { in nfa_ee_proc_nfcc_power_mode() 235 if (xx >= nfa_ee_cb.cur_ee) p_cb->nfcee_id = NFA_EE_INVALID; in nfa_ee_proc_nfcc_power_mode() 284 uint32_t xx; in nfa_ee_proc_hci_info_cback() local 293 for (xx = 0; xx < NFA_EE_MAX_EE_SUPPORTED; xx++, p_cb++) { in nfa_ee_proc_hci_info_cback() 407 uint32_t xx; in nfa_ee_find_ecb() local [all …]
|
/system/bt/stack/sdp/ |
D | sdp_db.cc | 53 uint16_t xx, yy; in sdp_db_service_search() local 69 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) { in sdp_db_service_search() 83 if (xx == p_rec->num_attributes) break; in sdp_db_service_search() 171 uint16_t xx; in sdp_db_find_attr_in_rec() local 174 for (xx = 0, p_at = &p_rec->attribute[0]; xx < p_rec->num_attributes; in sdp_db_find_attr_in_rec() 175 xx++, p_at++) { in sdp_db_find_attr_in_rec() 195 uint16_t xx, yy, len; in sdp_compose_proto_list() local 204 for (xx = 0; xx < num_elem; xx++, p_elem_list++) { in sdp_compose_proto_list() 292 uint16_t xx, yy, zz; in SDP_DeleteRecord() local 305 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { in SDP_DeleteRecord() [all …]
|
D | sdp_server.cc | 187 uint16_t rsp_param_len, num_rsp_handles, xx; in process_service_search() local 278 for (xx = cont_offset; xx < cont_offset + cur_handles; xx++) in process_service_search() 279 UINT32_TO_BE_STREAM(p_rsp, rsp_handles[xx]); in process_service_search() 316 uint16_t rsp_param_len, xx; in process_service_attr_req() local 402 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req() 403 p_attr = sdp_db_find_attr_in_rec(p_rec, attr_seq.attr_entry[xx].start, in process_service_attr_req() 404 attr_seq.attr_entry[xx].end); in process_service_attr_req() 412 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req() 449 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req() 456 if (attr_seq.attr_entry[xx].start != attr_seq.attr_entry[xx].end) { in process_service_attr_req() [all …]
|
D | sdp_utils.cc | 300 uint16_t xx; in sdpu_find_ccb_by_cid() local 304 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_cid() 324 uint16_t xx; in sdpu_find_ccb_by_db() local 329 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_db() 348 uint16_t xx; in sdpu_allocate_ccb() local 352 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_allocate_ccb() 400 uint16_t xx; in sdpu_build_attrib_seq() local 405 xx = 5; in sdpu_build_attrib_seq() 407 xx = num_attrs * 3; in sdpu_build_attrib_seq() 409 if (xx > 255) { in sdpu_build_attrib_seq() [all …]
|
/system/bt/stack/btm/ |
D | btm_sco.cc | 344 uint16_t xx; in BTM_CreateSco() local 369 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 380 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 391 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; in BTM_CreateSco() 392 xx++, p++) { in BTM_CreateSco() 469 *p_sco_inx = xx; in BTM_CreateSco() 498 for (uint16_t xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_chk_pend_unpark() local 529 uint16_t xx; in btm_sco_chk_pend_rolechange() local 533 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_chk_pend_rolechange() 569 for (uint16_t xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_disc_chk_pend_for_modechange() local [all …]
|
D | btm_sco.h | 107 for (uint16_t xx = 0; xx < kMaxScoLinks; xx++, p_sco++) { in get_sco_connection_from_handle() local 123 for (uint16_t xx = 0; xx < kMaxScoLinks; xx++, p++) { in get_index() local 125 return xx; in get_index()
|
D | btm_inq.cc | 674 uint16_t xx; in BTM_InqDbFirst() local 677 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in BTM_InqDbFirst() 890 uint16_t xx; in btm_clr_inq_db() local 896 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_clr_inq_db() 941 uint16_t xx; in btm_inq_find_bdaddr() local 946 for (xx = 0; xx < p_inq->num_bd_entries; xx++, p_db++) { in btm_inq_find_bdaddr() 951 if (xx < p_inq->max_bd_entries) { in btm_inq_find_bdaddr() 972 uint16_t xx; in btm_inq_db_find() local 975 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_inq_db_find() 996 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 | 111 uint8_t xx, yy; in avrc_pars_vendor_cmd() local 186 for (xx = 0, yy = 0; xx < p_result->get_cur_app_val.num_attr; xx++) { in avrc_pars_vendor_cmd() 204 for (xx = 0; in avrc_pars_vendor_cmd() 205 ((xx < p_result->set_app_val.num_val) && (buf_len > size_needed)); in avrc_pars_vendor_cmd() 206 xx++) { in avrc_pars_vendor_cmd() 207 p_app_set[xx].attr_id = *p++; in avrc_pars_vendor_cmd() 208 p_app_set[xx].attr_val = *p++; in avrc_pars_vendor_cmd() 209 if (!avrc_is_valid_player_attrib_value(p_app_set[xx].attr_id, in avrc_pars_vendor_cmd() 210 p_app_set[xx].attr_val)) in avrc_pars_vendor_cmd() 213 if (xx != p_result->set_app_val.num_val) { in avrc_pars_vendor_cmd() [all …]
|
D | avrc_pars_ct.cc | 586 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp() local 587 (xx < AVRC_CAP_MAX_NUM_COMP_ID)); in avrc_ctrl_pars_vendor_rsp() 588 xx++) { in avrc_ctrl_pars_vendor_rsp() 589 BE_STREAM_TO_UINT24(p_result->get_caps.param.company_id[xx], p); in avrc_ctrl_pars_vendor_rsp() 595 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp() local 596 (xx < AVRC_CAP_MAX_NUM_EVT_ID)); in avrc_ctrl_pars_vendor_rsp() 597 xx++) { in avrc_ctrl_pars_vendor_rsp() 598 BE_STREAM_TO_UINT8(p_result->get_caps.param.event_id[xx], p); in avrc_ctrl_pars_vendor_rsp() 620 for (int xx = 0; xx < p_result->list_app_attr.num_attr; xx++) { in avrc_ctrl_pars_vendor_rsp() local 621 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 | 61 uint16_t xx; in bnepu_find_bcb_by_cid() local 65 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_find_bcb_by_cid() 85 uint16_t xx; in bnepu_find_bcb_by_bd_addr() local 89 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_find_bcb_by_bd_addr() 109 uint16_t xx; in bnepu_allocate_bcb() local 113 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_allocate_bcb() 120 p_bcb->handle = xx + 1; in bnepu_allocate_bcb() 253 uint16_t xx; in bnepu_send_peer_our_filters() local 267 for (xx = 0; xx < p_bcb->sent_num_filters; xx++) { in bnepu_send_peer_our_filters() 268 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 | 58 int xx; in l2cu_allocate_lcb() local 61 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) { in l2cu_allocate_lcb() 240 int xx; in l2cu_find_lcb_by_bd_addr() local 243 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) { in l2cu_find_lcb_by_bd_addr() 1124 int xx; in l2cu_send_peer_info_rsp() local 1126 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2cu_send_peer_info_rsp() 1128 if ((xx >= L2CAP_ATT_CID - L2CAP_FIRST_FIXED_CHNL) && in l2cu_send_peer_info_rsp() 1129 (xx <= L2CAP_SMP_CID - L2CAP_FIRST_FIXED_CHNL)) in l2cu_send_peer_info_rsp() 1132 if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL) in l2cu_send_peer_info_rsp() 1133 p[(xx + L2CAP_FIRST_FIXED_CHNL) / 8] |= in l2cu_send_peer_info_rsp() [all …]
|
D | l2c_link.cc | 70 int xx; in l2c_link_hci_conn_req() local 88 for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; in l2c_link_hci_conn_req() 89 xx++, p_lcb_cur++) { in l2c_link_hci_conn_req() 402 int xx; in l2c_link_hci_disc_comp() local 403 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2c_link_hci_disc_comp() 404 if (p_lcb->p_fixed_ccbs[xx] && in l2c_link_hci_disc_comp() 405 p_lcb->p_fixed_ccbs[xx] != p_lcb->p_pending_ccb) { in l2c_link_hci_disc_comp() 406 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)( in l2c_link_hci_disc_comp() 407 xx + L2CAP_FIRST_FIXED_CHNL, p_lcb->remote_bd_addr, false, in l2c_link_hci_disc_comp() 409 if (p_lcb->p_fixed_ccbs[xx] == NULL) { in l2c_link_hci_disc_comp() [all …]
|