Home
last modified time | relevance | path

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

12

/system/bt/bta/hh/
Dbta_hh_utils.c65 UINT8 xx; in bta_hh_find_cb() local
68 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) in bta_hh_find_cb()
71 if ((!bdcmp (bda, bta_hh_cb.kdev[xx].addr) && in bta_hh_find_cb()
75 APPL_TRACE_DEBUG("found kdev_cb[%d] hid_handle = %d ", xx, in bta_hh_find_cb()
76 bta_hh_cb.kdev[xx].hid_handle) in bta_hh_find_cb()
78 return xx; in bta_hh_find_cb()
83 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb()
84 bta_hh_cb.kdev[xx].hid_handle, in bta_hh_find_cb()
85 bta_hh_cb.kdev[xx].state); in bta_hh_find_cb()
90 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) in bta_hh_find_cb()
[all …]
Dbta_hh_act.c71 UINT8 xx; in bta_hh_api_enable() local
88 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx ++) in bta_hh_api_enable()
90 bta_hh_cb.kdev[xx].state = BTA_HH_IDLE_ST; in bta_hh_api_enable()
91 bta_hh_cb.kdev[xx].hid_handle = BTA_HH_INVALID_HANDLE; in bta_hh_api_enable()
92 bta_hh_cb.kdev[xx].index = xx; in bta_hh_api_enable()
96 for (xx = 0; xx < BTA_HH_MAX_KNOWN; xx ++) in bta_hh_api_enable()
97 bta_hh_cb.cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_api_enable()
122 UINT8 xx; in bta_hh_api_disable() local
137 for(xx = 0; xx < BTA_HH_MAX_DEVICE; xx ++) in bta_hh_api_disable()
140 if ( bta_hh_cb.kdev[xx].state == BTA_HH_CONN_ST ) in bta_hh_api_disable()
[all …]
/system/bt/stack/avrc/
Davrc_bld_tg.c45 UINT8 xx; in avrc_bld_get_capability_rsp() local
81 for (xx=0; xx< p_rsp->count; xx++) in avrc_bld_get_capability_rsp()
83 UINT24_TO_BE_STREAM(p_data, p_company_id[xx]); in avrc_bld_get_capability_rsp()
91 for (xx=0; xx< p_rsp->count; xx++) in avrc_bld_get_capability_rsp()
93 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 xx; in avrc_bld_list_app_settings_attr_rsp() local
143 for (xx=0; xx<p_rsp->num_attr; xx++) in avrc_bld_list_app_settings_attr_rsp()
145 if(AVRC_IsValidPlayerAttr(p_rsp->attrs[xx])) in avrc_bld_list_app_settings_attr_rsp()
148 UINT8_TO_BE_STREAM(p_data, p_rsp->attrs[xx]); in avrc_bld_list_app_settings_attr_rsp()
[all …]
Davrc_pars_tg.c47 UINT8 xx, yy; in avrc_pars_vendor_cmd() local
112 for (xx=0, yy=0; xx< p_result->get_cur_app_val.num_attr; xx++) in avrc_pars_vendor_cmd()
133 for (xx=0; ((xx< p_result->set_app_val.num_val) && (buf_len > size_needed)); xx++) in avrc_pars_vendor_cmd()
135 p_app_set[xx].attr_id = *p++; in avrc_pars_vendor_cmd()
136 p_app_set[xx].attr_val = *p++; in avrc_pars_vendor_cmd()
137 … if (!avrc_is_valid_player_attrib_value(p_app_set[xx].attr_id, p_app_set[xx].attr_val)) in avrc_pars_vendor_cmd()
140 if (xx != p_result->set_app_val.num_val) in avrc_pars_vendor_cmd()
143 xx, p_result->set_app_val.num_val); in avrc_pars_vendor_cmd()
144 p_result->set_app_val.num_val = xx; in avrc_pars_vendor_cmd()
170 for (xx=0; xx< p_result->get_app_val_txt.num_val; xx++) in avrc_pars_vendor_cmd()
[all …]
/system/bt/stack/sdp/
Dsdp_db.c61 UINT16 xx, yy; in sdp_db_service_search() local
78 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) in sdp_db_service_search()
96 if (xx == p_rec->num_attributes) in sdp_db_service_search()
193 UINT16 xx; in sdp_db_find_attr_in_rec() local
196 for (xx = 0, p_at = &p_rec->attribute[0]; xx < p_rec->num_attributes; in sdp_db_find_attr_in_rec()
197 xx++, p_at++) in sdp_db_find_attr_in_rec()
221 UINT16 xx, yy, len; in sdp_compose_proto_list() local
230 for (xx = 0; xx < num_elem; xx++, p_elem_list++) in sdp_compose_proto_list()
332 UINT16 xx, yy, zz; in SDP_DeleteRecord() local
348 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) in SDP_DeleteRecord()
[all …]
Dsdp_utils.c58 UINT16 xx; in sdpu_find_ccb_by_cid() local
62 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) in sdpu_find_ccb_by_cid()
86 UINT16 xx; in sdpu_find_ccb_by_db() local
92 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) in sdpu_find_ccb_by_db()
115 UINT16 xx; in sdpu_allocate_ccb() local
119 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) in sdpu_allocate_ccb()
180 UINT16 xx; in sdpu_build_attrib_seq() local
185 xx = 5; in sdpu_build_attrib_seq()
187 xx = num_attrs * 3; in sdpu_build_attrib_seq()
189 if (xx > 255) in sdpu_build_attrib_seq()
[all …]
Dsdp_server.c180 UINT16 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()
325 UINT16 rsp_param_len, xx; in process_service_attr_req() local
433 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) in process_service_attr_req()
435 …_attr = sdp_db_find_attr_in_rec (p_rec, attr_seq.attr_entry[xx].start, attr_seq.attr_entry[xx].end… in process_service_attr_req()
445 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req()
476 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req()
484 if (attr_seq.attr_entry[xx].start != attr_seq.attr_entry[xx].end) in process_service_attr_req()
487 attr_seq.attr_entry[xx].start = p_attr->id + 1; in process_service_attr_req()
[all …]
Dsdp_discovery.c73 UINT16 xx; in sdpu_build_uuid_seq() local
84 for (xx = 0; xx < num_uuids; xx++, p_uuid_list++) in sdpu_build_uuid_seq()
104 xx = (UINT16)(p_out - p_len - 1); in sdpu_build_uuid_seq()
105 UINT8_TO_BE_STREAM (p_len, xx); in sdpu_build_uuid_seq()
290 UINT16 xx; in process_service_search_rsp() local
314 for (xx = orig; xx < p_ccb->num_handles; xx++) in process_service_search_rsp()
315 BE_STREAM_TO_UINT32 (p_ccb->handles[xx], p_reply); in process_service_search_rsp()
/system/bt/stack/btm/
Dbtm_sco.c399 UINT8 xx; in btm_send_connect_request() local
420 if ((xx = btm_handle_to_acl_index(acl_handle)) < MAX_L2CAP_LINKS) in btm_send_connect_request()
422 p_acl = &btm_cb.acl_db[xx]; in btm_send_connect_request()
577 UINT16 xx; in BTM_CreateSco() local
601 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) in BTM_CreateSco()
614 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) in BTM_CreateSco()
622 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; xx++, p++) in BTM_CreateSco()
714 *p_sco_inx = xx; in BTM_CreateSco()
739 UINT16 xx; in btm_sco_chk_pend_unpark() local
743 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) in btm_sco_chk_pend_unpark()
[all …]
Dbtm_pm.c136 int xx; in BTM_PmRegister() local
147 for(xx=0; xx<BTM_MAX_PM_RECORDS; xx++) in BTM_PmRegister()
150 if(btm_cb.pm_reg_db[xx].mask == BTM_PM_REC_NOT_USED) in BTM_PmRegister()
157 btm_cb.pm_reg_db[xx].cback = p_cb; in BTM_PmRegister()
159 btm_cb.pm_reg_db[xx].mask = mask; in BTM_PmRegister()
160 *p_pm_id = xx; in BTM_PmRegister()
356 int xx; in btm_pm_reset() local
368 for(xx=0; xx<BTM_MAX_PM_RECORDS; xx++) in btm_pm_reset()
370 btm_cb.pm_reg_db[xx].mask = BTM_PM_REC_NOT_USED; in btm_pm_reset()
413 UINT8 xx; in btm_pm_find_acl_ind() local
[all …]
Dbtm_inq.c1155 UINT16 xx; in BTM_InqDbFirst() local
1158 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) in BTM_InqDbFirst()
1441 UINT16 xx; in btm_clr_inq_db() local
1447 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) in btm_clr_inq_db()
1503 UINT16 xx; in btm_inq_find_bdaddr() local
1509 for (xx = 0; xx < p_inq->num_bd_entries; xx++, p_db++) in btm_inq_find_bdaddr()
1516 if (xx < p_inq->max_bd_entries) in btm_inq_find_bdaddr()
1539 UINT16 xx; in btm_inq_db_find() local
1542 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) in btm_inq_db_find()
1565 UINT16 xx; in btm_inq_db_new() local
[all …]
Dbtm_acl.c97 UINT16 xx; in btm_bda_to_acl() local
100 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) in btm_bda_to_acl()
130 UINT8 xx; in btm_handle_to_acl_index() local
132 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) in btm_handle_to_acl_index()
141 return(xx); in btm_handle_to_acl_index()
214 UINT8 xx; in btm_acl_created() local
234 for (xx = 0, p = &btm_cb.acl_db[0]; xx < MAX_L2CAP_LINKS; xx++, p++) in btm_acl_created()
258 btm_pm_sm_alloc(xx); in btm_acl_created()
472 UINT16 xx; in btm_acl_device_down() local
474 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) in btm_acl_device_down()
[all …]
Dbtm_dev.c367 UINT8 xx; in btm_dev_support_switch() local
385 for (xx = 0 ; xx < BD_FEATURES_LEN ; xx++) in btm_dev_support_switch()
387 if (p_dev_rec->features[HCI_EXT_FEATURES_PAGE_0][xx] != 0x00) in btm_dev_support_switch()
/system/bt/stack/l2cap/
Dl2c_link.c60 int xx; in l2c_link_hci_conn_req() local
80 for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb_cur++) in l2c_link_hci_conn_req()
449 int xx; in l2c_link_hci_disc_comp() local
450 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) in l2c_link_hci_disc_comp()
452 if (p_lcb->p_fixed_ccbs[xx] && p_lcb->p_fixed_ccbs[xx] != p_lcb->p_pending_ccb) in l2c_link_hci_disc_comp()
455 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(xx + L2CAP_FIRST_FIXED_CHNL, in l2c_link_hci_disc_comp()
458 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(xx + L2CAP_FIRST_FIXED_CHNL, in l2c_link_hci_disc_comp()
461 l2cu_release_ccb (p_lcb->p_fixed_ccbs[xx]); in l2c_link_hci_disc_comp()
463 p_lcb->p_fixed_ccbs[xx] = NULL; in l2c_link_hci_disc_comp()
841 UINT8 xx; in l2c_link_adjust_chnl_allocation() local
[all …]
Dl2c_utils.c55 int xx; in l2cu_allocate_lcb() local
58 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) in l2cu_allocate_lcb()
264 int xx; in l2cu_find_lcb_by_bd_addr() local
267 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) in l2cu_find_lcb_by_bd_addr()
1216 int xx; in l2cu_send_peer_info_rsp() local
1218 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) in l2cu_send_peer_info_rsp()
1219 if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL) in l2cu_send_peer_info_rsp()
1220 p[(xx + L2CAP_FIRST_FIXED_CHNL) / 8] |= 1 << ((xx + L2CAP_FIRST_FIXED_CHNL) % 8); in l2cu_send_peer_info_rsp()
1800 UINT16 xx; in l2cu_allocate_rcb() local
1802 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in l2cu_allocate_rcb()
[all …]
Dl2c_ucd.c54 UINT16 xx; in l2c_ucd_discover_cback() local
58 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in l2c_ucd_discover_cback()
127 UINT16 xx; in l2c_ucd_congestion_status_cback() local
131 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in l2c_ucd_congestion_status_cback()
269 UINT16 xx; in L2CA_UcdDeregister() local
284 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in L2CA_UcdDeregister()
298 for ( xx = 0; xx < MAX_L2CAP_CHANNELS; xx++ ) in L2CA_UcdDeregister()
662 UINT16 xx; in l2c_ucd_check_pending_info_req() local
671 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in l2c_ucd_check_pending_info_req()
/system/bt/stack/bnep/
Dbnep_utils.c57 UINT16 xx; in bnepu_find_bcb_by_cid() local
61 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) in bnepu_find_bcb_by_cid()
84 UINT16 xx; in bnepu_find_bcb_by_bd_addr() local
88 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) in bnepu_find_bcb_by_bd_addr()
113 UINT16 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()
126 p_bcb->handle = xx + 1; in bnepu_allocate_bcb()
277 UINT16 xx; in bnepu_send_peer_our_filters() local
297 for (xx = 0; xx < p_bcb->sent_num_filters; xx++) in bnepu_send_peer_our_filters()
299 UINT16_TO_BE_STREAM (p, p_bcb->sent_prot_filter_start[xx]); in bnepu_send_peer_our_filters()
[all …]
Dbnep_api.c583 UINT16 xx; in BNEP_SetProtocolFilters() local
604 for (xx = 0; xx < num_filters; xx++) in BNEP_SetProtocolFilters()
606 p_bcb->sent_prot_filter_start[xx] = *p_start_array++; in BNEP_SetProtocolFilters()
607 p_bcb->sent_prot_filter_end[xx] = *p_end_array++; in BNEP_SetProtocolFilters()
642 UINT16 xx; in BNEP_SetMulticastFilters() local
663 for (xx = 0; xx < num_filters; xx++) in BNEP_SetMulticastFilters()
665 memcpy (p_bcb->sent_mcast_filter_start[xx], p_start_array, BD_ADDR_LEN); in BNEP_SetMulticastFilters()
666 memcpy (p_bcb->sent_mcast_filter_end[xx], p_end_array, BD_ADDR_LEN); in BNEP_SetMulticastFilters()
/system/bt/bta/av/
Dbta_av_act.c457 int xx; in bta_av_find_lcb() local
461 for(xx=0; xx<BTA_AV_NUM_LINKS; xx++) in bta_av_find_lcb()
463 mask = 1 << xx; /* the used mask for this lcb */ in bta_av_find_lcb()
464 if((mask & p_cb->conn_lcb) && 0 ==( bdcmp(p_cb->lcb[xx].addr, addr))) in bta_av_find_lcb()
466 p_lcb = &p_cb->lcb[xx]; in bta_av_find_lcb()
731 UINT8 xx; in bta_av_chk_notif_evt_id() local
744 for (xx=0; xx<p_bta_av_cfg->num_evt_ids; xx++) in bta_av_chk_notif_evt_id()
746 if (*p == p_bta_av_cfg->p_meta_evt_ids[xx]) in bta_av_chk_notif_evt_id()
751 if (xx == p_bta_av_cfg->num_evt_ids) in bta_av_chk_notif_evt_id()
1376 UINT16 xx; in bta_av_disable() local
[all …]
Dbta_av_main.c221 int xx; in bta_av_timer_cback() local
225 for(xx=0; xx<BTA_AV_NUM_STRS; xx++) in bta_av_timer_cback()
227 if(bta_av_cb.p_scb[xx] && &(bta_av_cb.p_scb[xx]->timer)== p) in bta_av_timer_cback()
229 p_scb = bta_av_cb.p_scb[xx]; in bta_av_timer_cback()
296 int xx; in bta_av_addr_to_scb() local
298 for(xx=0; xx<BTA_AV_NUM_STRS; xx++) in bta_av_addr_to_scb()
300 if(bta_av_cb.p_scb[xx]) in bta_av_addr_to_scb()
302 if(!bdcmp(bd_addr, bta_av_cb.p_scb[xx]->peer_addr)) in bta_av_addr_to_scb()
304 p_scb = bta_av_cb.p_scb[xx]; in bta_av_addr_to_scb()
348 int xx; in bta_av_alloc_scb() local
[all …]
Dbta_av_aact.c245 UINT8 xx =0; in bta_av_get_scb_handle() local
246 for (xx = 0; xx<BTA_AV_MAX_SEPS; xx++) in bta_av_get_scb_handle()
248 if ((p_scb->seps[xx].tsep == local_sep) && in bta_av_get_scb_handle()
249 (p_scb->seps[xx].codec_type == p_scb->codec_type)) in bta_av_get_scb_handle()
250 return (p_scb->seps[xx].av_handle); in bta_av_get_scb_handle()
267 UINT8 xx =0; in bta_av_get_scb_sep_type() local
268 for (xx = 0; xx<BTA_AV_MAX_SEPS; xx++) in bta_av_get_scb_sep_type()
270 if (p_scb->seps[xx].av_handle == tavdt_handle) in bta_av_get_scb_sep_type()
271 return (p_scb->seps[xx].tsep); in bta_av_get_scb_sep_type()
438 int xx; in bta_av_proc_stream_evt() local
[all …]
Dbta_av_ssm.c408 int i, xx; in bta_av_ssm_execute() local
423 for (xx = 0; xx < BTA_AV_NUM_STRS; xx++) in bta_av_ssm_execute()
425 if (bta_av_cb.p_scb[xx]) in bta_av_ssm_execute()
427 if (bta_av_cb.p_scb[xx]->state == BTA_AV_INCOMING_SST) in bta_av_ssm_execute()
429 bta_av_cb.p_scb[xx]->state = BTA_AV_INIT_SST; in bta_av_ssm_execute()
430 bta_av_cb.p_scb[xx]->coll_mask = 0; in bta_av_ssm_execute()
/system/bt/stack/gap/
Dgap_conn.c740 UINT16 xx; in gap_connect_ind() local
745 for (xx = 0, p_ccb = gap_cb.conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) in gap_connect_ind()
754 if (xx == GAP_MAX_CONNECTIONS) in gap_connect_ind()
1093 UINT16 xx; in gap_find_ccb_by_cid() local
1097 for (xx = 0, p_ccb = gap_cb.conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) in gap_find_ccb_by_cid()
1147 UINT16 xx; in gap_allocate_ccb() local
1151 for (xx = 0, p_ccb = gap_cb.conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) in gap_allocate_ccb()
1157 p_ccb->gap_handle = xx; in gap_allocate_ccb()
1180 UINT16 xx; in gap_release_ccb() local
1196 for (xx = 0, p_ccb = gap_cb.conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) in gap_release_ccb()
/system/bt/stack/hid/
Dhidh_conn.c88 int xx; in hidh_conn_reg() local
111 for (xx = 0; xx < HID_HOST_MAX_DEVICES; xx++) in hidh_conn_reg()
113 hh_cb.devices[xx].in_use = FALSE ; in hidh_conn_reg()
114 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg()
1057 UINT8 xx; in find_conn_by_cid() local
1059 for (xx = 0; xx < HID_HOST_MAX_DEVICES; xx++) in find_conn_by_cid()
1061 … if ((hh_cb.devices[xx].in_use) && (hh_cb.devices[xx].conn.conn_state != HID_CONN_STATE_UNUSED) in find_conn_by_cid()
1062 … && ((hh_cb.devices[xx].conn.ctrl_cid == cid) || (hh_cb.devices[xx].conn.intr_cid == cid))) in find_conn_by_cid()
1066 return (xx); in find_conn_by_cid()
/system/bt/bta/ag/
Dbta_ag_rfc.c352 UINT8 xx; in bta_ag_is_server_closed() local
355 for (xx = 0; xx < BTA_AG_NUM_IDX; xx++) in bta_ag_is_server_closed()
357 if (p_scb->serv_handle[xx] != 0) in bta_ag_is_server_closed()

12