Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/system/bta/hh/
Dbta_hh_utils.cc64 uint8_t xx; in bta_hh_find_cb() local
67 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_find_cb()
69 if ((link_spec == bta_hh_cb.kdev[xx].link_spec && in bta_hh_find_cb()
72 log::verbose("found kdev_cb[{}] hid_handle={}", xx, in bta_hh_find_cb()
73 bta_hh_cb.kdev[xx].hid_handle); in bta_hh_find_cb()
75 return xx; in bta_hh_find_cb()
80 bta_hh_cb.kdev[xx].in_use, xx, bta_hh_cb.kdev[xx].hid_handle, in bta_hh_find_cb()
81 bta_hh_cb.kdev[xx].state); in bta_hh_find_cb()
86 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_find_cb()
87 if (!bta_hh_cb.kdev[xx].in_use) { in bta_hh_find_cb()
[all …]
Dbta_hh_act.cc87 uint8_t xx; in bta_hh_api_enable() local
97 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_api_enable()
98 bta_hh_cb.kdev[xx].state = BTA_HH_IDLE_ST; in bta_hh_api_enable()
99 bta_hh_cb.kdev[xx].hid_handle = BTA_HH_INVALID_HANDLE; in bta_hh_api_enable()
100 bta_hh_cb.kdev[xx].index = xx; in bta_hh_api_enable()
104 for (xx = 0; xx < BTA_HH_MAX_KNOWN; xx++) { in bta_hh_api_enable()
105 bta_hh_cb.cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_api_enable()
140 uint8_t xx; in bta_hh_api_disable() local
152 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_api_disable()
154 if (bta_hh_cb.kdev[xx].state == BTA_HH_CONN_ST) { in bta_hh_api_disable()
[all …]
/packages/modules/Bluetooth/system/stack/sdp/
Dsdp_db.cc97 uint16_t xx, yy; in sdp_db_service_search() local
113 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) { in sdp_db_service_search()
127 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()
389 uint16_t xx, yy, zz; in SDP_DeleteRecord() local
402 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { in SDP_DeleteRecord()
[all …]
Dsdp_utils.cc335 uint16_t xx; in sdpu_find_ccb_by_cid() local
339 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_cid()
362 uint16_t xx; in sdpu_find_ccb_by_db() local
367 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_db()
386 uint16_t xx; in sdpu_allocate_ccb() local
390 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_allocate_ccb()
455 uint16_t xx; in sdpu_get_active_ccb_cid() local
459 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_get_active_ccb_cid()
487 uint16_t xx; in sdpu_process_pend_ccb_same_cid() local
491 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_process_pend_ccb_same_cid()
[all …]
Dsdp_server.cc194 uint16_t rsp_param_len, num_rsp_handles, xx; in process_service_search() local
289 for (xx = cont_offset; xx < cont_offset + cur_handles; xx++) in process_service_search()
290 UINT32_TO_BE_STREAM(p_rsp, rsp_handles[xx]); in process_service_search()
450 uint16_t rsp_param_len, xx; in process_service_attr_req() local
558 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req()
559 p_attr = sdp_db_find_attr_in_rec(p_rec, attr_seq.attr_entry[xx].start, in process_service_attr_req()
560 attr_seq.attr_entry[xx].end); in process_service_attr_req()
583 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req()
619 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req()
626 if (attr_seq.attr_entry[xx].start != attr_seq.attr_entry[xx].end) { in process_service_attr_req()
[all …]
Dsdp_discovery.cc60 uint16_t xx; in sdpu_build_uuid_seq() local
79 for (xx = 0; xx < num_uuids; xx++, p_uuid_list++) { in sdpu_build_uuid_seq()
105 xx = (uint16_t)(p_out - p_len - 1); in sdpu_build_uuid_seq()
106 UINT8_TO_BE_STREAM(p_len, xx); in sdpu_build_uuid_seq()
891 uint16_t xx; in process_service_search_rsp() local
922 for (xx = orig; xx < p_ccb->num_handles; xx++) in process_service_search_rsp()
923 BE_STREAM_TO_UINT32(p_ccb->handles[xx], p_reply); in process_service_search_rsp()
Dsdp_api.cc73 uint16_t xx; in SDP_InitDiscoveryDb() local
93 for (xx = 0; xx < num_uuid; xx++) p_db->uuid_filters[xx] = *p_uuid_list++; in SDP_InitDiscoveryDb()
97 for (xx = 0; xx < num_attr; xx++) p_db->attr_filters[xx] = *p_attr_list++; in SDP_InitDiscoveryDb()
/packages/modules/Bluetooth/system/stack/avrc/
Davrc_bld_tg.cc63 uint8_t xx; in avrc_bld_get_capability_rsp() local
94 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp()
95 UINT24_TO_BE_STREAM(p_data, p_company_id[xx]); in avrc_bld_get_capability_rsp()
101 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp()
102 if (AVRC_IS_VALID_EVENT_ID(p_event_id[xx])) { in avrc_bld_get_capability_rsp()
104 UINT8_TO_BE_STREAM(p_data, p_event_id[xx]); in avrc_bld_get_capability_rsp()
131 uint8_t xx; in avrc_bld_list_app_settings_attr_rsp() local
148 for (xx = 0; xx < p_rsp->num_attr; xx++) { in avrc_bld_list_app_settings_attr_rsp()
149 if (AVRC_IsValidPlayerAttr(p_rsp->attrs[xx])) { in avrc_bld_list_app_settings_attr_rsp()
151 UINT8_TO_BE_STREAM(p_data, p_rsp->attrs[xx]); in avrc_bld_list_app_settings_attr_rsp()
[all …]
Davrc_pars_tg.cc117 uint8_t xx, yy; in avrc_pars_vendor_cmd() local
188 for (xx = 0, yy = 0; xx < p_result->get_cur_app_val.num_attr; xx++) { in avrc_pars_vendor_cmd()
206 for (xx = 0; in avrc_pars_vendor_cmd()
207 ((xx < p_result->set_app_val.num_val) && (buf_len > size_needed)); in avrc_pars_vendor_cmd()
208 xx++) { in avrc_pars_vendor_cmd()
209 p_app_set[xx].attr_id = *p++; in avrc_pars_vendor_cmd()
210 p_app_set[xx].attr_val = *p++; in avrc_pars_vendor_cmd()
211 if (!avrc_is_valid_player_attrib_value(p_app_set[xx].attr_id, in avrc_pars_vendor_cmd()
212 p_app_set[xx].attr_val)) in avrc_pars_vendor_cmd()
215 if (xx != p_result->set_app_val.num_val) { in avrc_pars_vendor_cmd()
[all …]
Davrc_pars_ct.cc564 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp() local
565 (xx < AVRC_CAP_MAX_NUM_COMP_ID)); in avrc_ctrl_pars_vendor_rsp()
566 xx++) { in avrc_ctrl_pars_vendor_rsp()
567 BE_STREAM_TO_UINT24(p_result->get_caps.param.company_id[xx], p); in avrc_ctrl_pars_vendor_rsp()
576 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp() local
577 (xx < AVRC_CAP_MAX_NUM_EVT_ID)); in avrc_ctrl_pars_vendor_rsp()
578 xx++) { in avrc_ctrl_pars_vendor_rsp()
579 BE_STREAM_TO_UINT8(p_result->get_caps.param.event_id[xx], p); in avrc_ctrl_pars_vendor_rsp()
599 for (int xx = 0; xx < p_result->list_app_attr.num_attr; xx++) { in avrc_ctrl_pars_vendor_rsp() local
600 BE_STREAM_TO_UINT8(p_result->list_app_attr.attrs[xx], p); in avrc_ctrl_pars_vendor_rsp()
[all …]
/packages/modules/Bluetooth/system/stack/bnep/
Dbnep_utils.cc65 uint16_t xx; in bnepu_find_bcb_by_cid() local
69 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_find_bcb_by_cid()
89 uint16_t xx; in bnepu_find_bcb_by_bd_addr() local
93 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_find_bcb_by_bd_addr()
113 uint16_t xx; in bnepu_allocate_bcb() local
117 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_allocate_bcb()
124 p_bcb->handle = xx + 1; in bnepu_allocate_bcb()
256 uint16_t xx; in bnepu_send_peer_our_filters() local
270 for (xx = 0; xx < p_bcb->sent_num_filters; xx++) { in bnepu_send_peer_our_filters()
271 UINT16_TO_BE_STREAM(p, p_bcb->sent_prot_filter_start[xx]); in bnepu_send_peer_our_filters()
[all …]
Dbnep_api.cc547 uint16_t xx; in BNEP_SetProtocolFilters() local
566 for (xx = 0; xx < num_filters; xx++) { in BNEP_SetProtocolFilters()
567 p_bcb->sent_prot_filter_start[xx] = *p_start_array++; in BNEP_SetProtocolFilters()
568 p_bcb->sent_prot_filter_end[xx] = *p_end_array++; in BNEP_SetProtocolFilters()
603 uint16_t xx; in BNEP_SetMulticastFilters() local
622 for (xx = 0; xx < num_filters; xx++) { in BNEP_SetMulticastFilters()
623 memcpy(p_bcb->sent_mcast_filter_start[xx].address, p_start_array, in BNEP_SetMulticastFilters()
625 memcpy(p_bcb->sent_mcast_filter_end[xx].address, p_end_array, BD_ADDR_LEN); in BNEP_SetMulticastFilters()
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_sco.cc735 uint16_t xx; in BTM_CreateSco() local
759 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco()
770 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco()
780 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; in BTM_CreateSco()
781 xx++, p++) { in BTM_CreateSco()
857 *p_sco_inx = xx; in BTM_CreateSco()
886 for (uint16_t xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_chk_pend_unpark() local
917 uint16_t xx; in btm_sco_chk_pend_rolechange() local
921 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_chk_pend_rolechange()
957 for (uint16_t xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_disc_chk_pend_for_modechange() local
[all …]
Dbtm_inq.cc918 uint16_t xx; in BTM_InqDbFirst() local
922 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in BTM_InqDbFirst()
995 uint16_t xx; in btm_clear_all_pending_le_entry() local
999 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_clear_all_pending_le_entry()
1096 uint16_t xx; in btm_clr_inq_db() local
1104 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_clr_inq_db()
1164 uint16_t xx; in btm_inq_find_bdaddr() local
1169 for (xx = 0; xx < num_bd_entries_; xx++, p_db++) { in btm_inq_find_bdaddr()
1175 if (xx < max_bd_entries_) { in btm_inq_find_bdaddr()
1196 uint16_t xx; in btm_inq_db_find() local
[all …]
Dbtm_sco.h276 for (uint16_t xx = 0; xx < kMaxScoLinks; xx++, p_sco++) { in get_sco_connection_from_handle() local
292 for (uint16_t xx = 0; xx < kMaxScoLinks; xx++, p++) { in get_index() local
294 return xx; in get_index()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_utils.cc64 int xx; in l2cu_allocate_lcb() local
67 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) { in l2cu_allocate_lcb()
241 int xx; in l2cu_find_lcb_by_bd_addr() local
244 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) { in l2cu_find_lcb_by_bd_addr()
1122 int xx; in l2cu_send_peer_info_rsp() local
1124 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2cu_send_peer_info_rsp()
1126 if ((xx >= L2CAP_ATT_CID - L2CAP_FIRST_FIXED_CHNL) && in l2cu_send_peer_info_rsp()
1127 (xx <= L2CAP_SMP_CID - L2CAP_FIRST_FIXED_CHNL)) in l2cu_send_peer_info_rsp()
1130 if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL) in l2cu_send_peer_info_rsp()
1131 p[(xx + L2CAP_FIRST_FIXED_CHNL) / 8] |= in l2cu_send_peer_info_rsp()
[all …]
Dl2c_link.cc377 int xx; in l2c_link_hci_disc_comp() local
378 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2c_link_hci_disc_comp()
379 if (p_lcb->p_fixed_ccbs[xx] && in l2c_link_hci_disc_comp()
380 p_lcb->p_fixed_ccbs[xx] != p_lcb->p_pending_ccb) { in l2c_link_hci_disc_comp()
381 l2cu_release_ccb(p_lcb->p_fixed_ccbs[xx]); in l2c_link_hci_disc_comp()
383 p_lcb->p_fixed_ccbs[xx] = NULL; in l2c_link_hci_disc_comp()
384 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)( in l2c_link_hci_disc_comp()
385 xx + L2CAP_FIRST_FIXED_CHNL, p_lcb->remote_bd_addr, false, in l2c_link_hci_disc_comp()
696 for (uint8_t xx = 0; xx < MAX_L2CAP_CHANNELS; xx++) { in l2c_link_adjust_chnl_allocation() local
697 tL2C_CCB* p_ccb = l2cb.ccb_pool + xx; in l2c_link_adjust_chnl_allocation()
[all …]
Dl2c_main.cc844 int16_t xx; in l2c_init() local
852 for (xx = 0; xx < MAX_L2CAP_CHANNELS - 1; xx++) { in l2c_init()
853 l2cb.ccb_pool[xx].p_next_ccb = &l2cb.ccb_pool[xx + 1]; in l2c_init()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_rc.cc3146 int xx = 0; in handle_get_capability_response() local
3161 for (xx = 0; xx < p_rsp->count; xx++) { in handle_get_capability_response()
3163 if ((p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_STATUS_CHANGE) || in handle_get_capability_response()
3164 (p_rsp->param.event_id[xx] == AVRC_EVT_TRACK_CHANGE) || in handle_get_capability_response()
3165 (p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_POS_CHANGED) || in handle_get_capability_response()
3166 (p_rsp->param.event_id[xx] == AVRC_EVT_APP_SETTING_CHANGE) || in handle_get_capability_response()
3167 (p_rsp->param.event_id[xx] == AVRC_EVT_NOW_PLAYING_CHANGE) || in handle_get_capability_response()
3168 (p_rsp->param.event_id[xx] == AVRC_EVT_ADDR_PLAYER_CHANGE) || in handle_get_capability_response()
3169 (p_rsp->param.event_id[xx] == AVRC_EVT_UIDS_CHANGE) || in handle_get_capability_response()
3170 (p_rsp->param.event_id[xx] == AVRC_EVT_AVAL_PLAYERS_CHANGE)) { in handle_get_capability_response()
[all …]
/packages/modules/Bluetooth/system/bta/av/
Dbta_av_main.cc229 int xx; in bta_av_addr_to_scb() local
231 for (xx = 0; xx < BTA_AV_NUM_STRS; xx++) { in bta_av_addr_to_scb()
232 if (bta_av_cb.p_scb[xx]) { in bta_av_addr_to_scb()
233 if (bd_addr == bta_av_cb.p_scb[xx]->PeerAddress()) { in bta_av_addr_to_scb()
234 p_scb = bta_av_cb.p_scb[xx]; in bta_av_addr_to_scb()
306 for (int xx = 0; xx < BTA_AV_NUM_STRS; xx++) { in bta_av_alloc_scb() local
307 if (bta_av_cb.p_scb[xx] != nullptr) continue; in bta_av_alloc_scb()
314 p_ret->hndl = (tBTA_AV_HNDL)((xx + 1) | chnl); in bta_av_alloc_scb()
315 p_ret->hdi = xx; in bta_av_alloc_scb()
318 bta_av_cb.p_scb[xx] = p_ret; in bta_av_alloc_scb()
[all …]
Dbta_av_act.cc493 int xx; in bta_av_find_lcb() local
498 for (xx = 0; xx < BTA_AV_NUM_LINKS; xx++) { in bta_av_find_lcb()
499 mask = 1 << xx; /* the used mask for this lcb */ in bta_av_find_lcb()
500 if ((mask & p_cb->conn_lcb) && p_cb->lcb[xx].addr == addr) { in bta_av_find_lcb()
501 p_lcb = &p_cb->lcb[xx]; in bta_av_find_lcb()
805 uint8_t xx; in bta_av_chk_notif_evt_id() local
815 for (xx = 0; xx < bta_av_cfg.num_evt_ids; xx++) { in bta_av_chk_notif_evt_id()
816 if (*p == bta_av_cfg.p_meta_evt_ids[xx]) { in bta_av_chk_notif_evt_id()
820 for (xx = 0; xx < get_bta_avk_cfg()->num_evt_ids; xx++) { in bta_av_chk_notif_evt_id()
821 if (*p == get_bta_avk_cfg()->p_meta_evt_ids[xx]) { in bta_av_chk_notif_evt_id()
[all …]
/packages/modules/Bluetooth/system/stack/gap/
Dgap_conn.cc592 uint16_t xx; in gap_connect_ind() local
596 for (xx = 0, p_ccb = conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) { in gap_connect_ind()
602 if (xx == GAP_MAX_CONNECTIONS) { in gap_connect_ind()
902 uint16_t xx; in gap_find_ccb_by_cid() local
906 for (xx = 0, p_ccb = conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) { in gap_find_ccb_by_cid()
950 uint16_t xx; in gap_allocate_ccb() local
954 for (xx = 0, p_ccb = conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) { in gap_allocate_ccb()
960 p_ccb->gap_handle = xx; in gap_allocate_ccb()
/packages/modules/Bluetooth/system/stack/hid/
Dhidh_conn.cc100 int xx; in hidh_conn_reg() local
129 for (xx = 0; xx < kHID_HOST_MAX_DEVICES; xx++) { in hidh_conn_reg()
130 hh_cb.devices[xx].in_use = false; in hidh_conn_reg()
131 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg()
930 uint8_t xx; in find_conn_by_cid() local
932 for (xx = 0; xx < kHID_HOST_MAX_DEVICES; xx++) { in find_conn_by_cid()
933 if ((hh_cb.devices[xx].in_use) && in find_conn_by_cid()
934 (hh_cb.devices[xx].conn.conn_state != HID_CONN_STATE_UNUSED) && in find_conn_by_cid()
935 ((hh_cb.devices[xx].conn.ctrl_cid == cid) || in find_conn_by_cid()
936 (hh_cb.devices[xx].conn.intr_cid == cid))) in find_conn_by_cid()
[all …]
/packages/modules/Bluetooth/system/bta/ag/
Dbta_ag_rfc.cc318 uint8_t xx; in bta_ag_is_server_closed() local
321 for (xx = 0; xx < BTA_AG_NUM_IDX; xx++) { in bta_ag_is_server_closed()
322 if (p_scb->serv_handle[xx] != 0) is_closed = false; in bta_ag_is_server_closed()
/packages/modules/Bluetooth/system/stack/test/sdp/
Dstack_sdp_test.cc116 uint16_t xx; in find_ccb() local
120 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in find_ccb()

12