/hal_espressif-latest/components/bt/host/bluedroid/bta/hh/ |
D | bta_hh_utils.c | 64 UINT8 xx; in bta_hh_find_cb() local 67 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_find_cb() 69 if ((!bdcmp (bda, bta_hh_cb.kdev[xx].addr) && in bta_hh_find_cb() 72 APPL_TRACE_DEBUG("found kdev_cb[%d] hid_handle = %d ", 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, in bta_hh_find_cb() 81 bta_hh_cb.kdev[xx].hid_handle, in bta_hh_find_cb() 82 bta_hh_cb.kdev[xx].state); in bta_hh_find_cb() 88 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_find_cb() [all …]
|
D | bta_hh_act.c | 72 UINT8 xx; in bta_hh_api_enable() local 88 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx ++) { in bta_hh_api_enable() 89 bta_hh_cb.kdev[xx].state = BTA_HH_IDLE_ST; in bta_hh_api_enable() 90 bta_hh_cb.kdev[xx].hid_handle = BTA_HH_INVALID_HANDLE; in bta_hh_api_enable() 91 bta_hh_cb.kdev[xx].index = xx; in bta_hh_api_enable() 95 for (xx = 0; xx < BTA_HH_MAX_KNOWN; xx ++) { in bta_hh_api_enable() 96 bta_hh_cb.cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_api_enable() 122 UINT8 xx; in bta_hh_api_disable() local 135 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx ++) { in bta_hh_api_disable() 137 if ( bta_hh_cb.kdev[xx].state == BTA_HH_CONN_ST ) { in bta_hh_api_disable() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/avrc/ |
D | avrc_bld_tg.c | 47 UINT8 xx; in avrc_bld_get_capability_rsp() local 78 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp() 79 UINT24_TO_BE_STREAM(p_data, p_company_id[xx]); in avrc_bld_get_capability_rsp() 85 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp() 86 if (AVRC_IS_VALID_EVENT_ID(p_event_id[xx])) { in avrc_bld_get_capability_rsp() 88 UINT8_TO_BE_STREAM(p_data, p_event_id[xx]); in avrc_bld_get_capability_rsp() 115 UINT8 xx; in avrc_bld_list_app_settings_attr_rsp() local 132 for (xx = 0; xx < p_rsp->num_attr; xx++) { in avrc_bld_list_app_settings_attr_rsp() 133 if (AVRC_IsValidPlayerAttr(p_rsp->attrs[xx])) { in avrc_bld_list_app_settings_attr_rsp() 135 UINT8_TO_BE_STREAM(p_data, p_rsp->attrs[xx]); in avrc_bld_list_app_settings_attr_rsp() [all …]
|
D | avrc_pars_tg.c | 48 UINT8 xx, yy; in avrc_pars_vendor_cmd() local 115 for (xx = 0, yy = 0; xx < p_result->get_cur_app_val.num_attr; xx++) { in avrc_pars_vendor_cmd() 134 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() 141 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() 165 for (xx = 0; xx < p_result->get_app_val_txt.num_val; xx++) { in avrc_pars_vendor_cmd() [all …]
|
D | avrc_api.c | 521 int xx; in avrc_msg_cback() local 612 xx = 0; in avrc_msg_cback() 613 while (*p_data != AVRC_CMD_OPRND_PAD && xx < AVRC_SUB_TYPE_LEN) { in avrc_msg_cback() 614 msg.sub.subunit_type[xx] = *p_data++ >> AVRC_SUBTYPE_SHIFT; in avrc_msg_cback() 615 if (msg.sub.subunit_type[xx] == AVRC_SUB_PANEL) { in avrc_msg_cback() 618 xx++; in avrc_msg_cback()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/sdp/ |
D | sdp_db.c | 65 UINT16 xx, yy; in sdp_db_service_search() local 88 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) { in sdp_db_service_search() 104 if (xx == p_rec->num_attributes) { in sdp_db_service_search() 203 UINT16 xx; in sdp_db_find_attr_in_rec() local 206 for (xx = 0, p_at = &p_rec->attribute[0]; xx < p_rec->num_attributes; in sdp_db_find_attr_in_rec() 207 xx++, p_at++) { in sdp_db_find_attr_in_rec() 231 UINT16 xx, yy, len; in sdp_compose_proto_list() local 240 for (xx = 0; xx < num_elem; xx++, p_elem_list++) { in sdp_compose_proto_list() 410 UINT16 xx, yy; in SDP_AddAttribute() local 448 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) { in SDP_AddAttribute() [all …]
|
D | sdp_utils.c | 60 UINT16 xx; in sdpu_find_ccb_by_cid() local 64 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_cid() 88 UINT16 xx; in sdpu_find_ccb_by_db() local 93 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_db() 116 UINT16 xx; in sdpu_allocate_ccb() local 120 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_allocate_ccb() 179 UINT16 xx; in sdpu_build_attrib_seq() local 184 xx = 5; in sdpu_build_attrib_seq() 186 xx = num_attrs * 3; in sdpu_build_attrib_seq() 189 if (xx > 255) { in sdpu_build_attrib_seq() [all …]
|
D | sdp_server.c | 177 UINT16 rsp_param_len, num_rsp_handles, xx; in process_service_search() local 271 for (xx = cont_offset; xx < cont_offset + cur_handles; xx++) { in process_service_search() 272 UINT32_TO_BE_STREAM (p_rsp, rsp_handles[xx]); in process_service_search() 314 UINT16 rsp_param_len, xx; in process_service_attr_req() local 407 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req() 408 …_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() 416 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req() 444 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() 454 attr_seq.attr_entry[xx].start = p_attr->id + 1; in process_service_attr_req() [all …]
|
D | sdp_discovery.c | 73 UINT16 xx; in sdpu_build_uuid_seq() local 84 for (xx = 0; xx < num_uuids; xx++, p_uuid_list++) { in sdpu_build_uuid_seq() 98 xx = (UINT16)(p_out - p_len - 1); in sdpu_build_uuid_seq() 99 UINT8_TO_BE_STREAM (p_len, xx); in sdpu_build_uuid_seq() 274 UINT16 xx; in process_service_search_rsp() local 299 for (xx = orig; xx < p_ccb->num_handles; xx++) { in process_service_search_rsp() 300 BE_STREAM_TO_UINT32 (p_ccb->handles[xx], p_reply); in process_service_search_rsp()
|
D | sdp_api.c | 69 UINT16 xx; in SDP_InitDiscoveryDb() local 87 for (xx = 0; xx < num_uuid; xx++) { in SDP_InitDiscoveryDb() 88 p_db->uuid_filters[xx] = *p_uuid_list++; in SDP_InitDiscoveryDb() 93 for (xx = 0; xx < num_attr; xx++) { in SDP_InitDiscoveryDb() 94 p_db->attr_filters[xx] = *p_attr_list++; in SDP_InitDiscoveryDb()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/btm/ |
D | btm_sco.c | 329 UINT8 num_handles, xx; in btm_sco_process_num_completed_pkts() local 336 for (xx = 0; xx < num_handles; xx++) { in btm_sco_process_num_completed_pkts() 746 UINT16 xx; in BTM_CreateSco() local 769 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 778 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 786 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 867 *p_sco_inx = xx; in BTM_CreateSco() 892 UINT16 xx; in btm_sco_chk_pend_unpark() local 896 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_chk_pend_unpark() 926 UINT16 xx; in btm_sco_chk_pend_rolechange() local [all …]
|
D | btm_pm.c | 132 int xx; in BTM_PmRegister() local 143 for (xx = 0; xx < BTM_MAX_PM_RECORDS; xx++) { in BTM_PmRegister() 145 if (btm_cb.pm_reg_db[xx].mask == BTM_PM_REC_NOT_USED) { in BTM_PmRegister() 151 btm_cb.pm_reg_db[xx].cback = p_cb; in BTM_PmRegister() 153 btm_cb.pm_reg_db[xx].mask = mask; in BTM_PmRegister() 154 *p_pm_id = xx; in BTM_PmRegister() 352 int xx; in btm_pm_reset() local 363 for (xx = 0; xx < BTM_MAX_PM_RECORDS; xx++) { in btm_pm_reset() 364 btm_cb.pm_reg_db[xx].mask = BTM_PM_REC_NOT_USED; in btm_pm_reset() 491 int xx, loop_max; in btm_pm_get_set_mode() local [all …]
|
D | btm_inq.c | 1136 UINT16 xx; in BTM_InqDbFirst() local 1139 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in BTM_InqDbFirst() 1416 UINT16 xx; in btm_clr_inq_db() local 1422 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_clr_inq_db() 1474 UINT16 xx; in btm_inq_find_bdaddr() local 1481 for (xx = 0; xx < p_inq->num_bd_entries; xx++, p_db++) { in btm_inq_find_bdaddr() 1488 if (xx < p_inq->max_bd_entries) { in btm_inq_find_bdaddr() 1510 UINT16 xx; in btm_inq_db_find() local 1513 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_inq_db_find() 1536 UINT16 xx; in btm_inq_db_new() local [all …]
|
D | btm_dev.c | 478 UINT8 xx; in btm_dev_support_switch() local 495 for (xx = 0 ; xx < BD_FEATURES_LEN ; xx++) { in btm_dev_support_switch() 496 if (p_dev_rec->features[HCI_EXT_FEATURES_PAGE_0][xx] != 0x00) { in btm_dev_support_switch()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/l2cap/ |
D | l2c_utils.c | 1250 int xx; in l2cu_send_peer_info_rsp() local 1252 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) in l2cu_send_peer_info_rsp() 1253 if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL) { in l2cu_send_peer_info_rsp() 1254 … 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() 1831 UINT16 xx; in l2cu_allocate_ble_rcb() local 1833 for (xx = 0; xx < BLE_MAX_L2CAP_CLIENTS; xx++, p_rcb++) in l2cu_allocate_ble_rcb() 1909 UINT16 xx; in l2cu_find_rcb_by_psm() local 1911 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) { in l2cu_find_rcb_by_psm() [all …]
|
D | l2c_ucd.c | 53 UINT16 xx; in l2c_ucd_discover_cback() local 57 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) { in l2c_ucd_discover_cback() 119 UINT16 xx; in l2c_ucd_congestion_status_cback() local 123 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) { in l2c_ucd_congestion_status_cback() 262 UINT16 xx; in L2CA_UcdDeregister() local 276 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) { in L2CA_UcdDeregister() 625 UINT16 xx; in l2c_ucd_check_pending_info_req() local 633 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) { in l2c_ucd_check_pending_info_req()
|
D | l2c_link.c | 448 int xx; in l2c_link_hci_disc_comp() local 449 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2c_link_hci_disc_comp() 450 … if (p_lcb->p_fixed_ccbs[xx] && p_lcb->p_fixed_ccbs[xx] != p_lcb->p_pending_ccb) { in l2c_link_hci_disc_comp() 452 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(xx + L2CAP_FIRST_FIXED_CHNL, 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 l2cu_release_ccb (p_lcb->p_fixed_ccbs[xx]); in l2c_link_hci_disc_comp() 460 p_lcb->p_fixed_ccbs[xx] = NULL; in l2c_link_hci_disc_comp() 1360 UINT8 num_handles, xx; in l2c_link_process_num_completed_pkts() local 1367 for (xx = 0; xx < num_handles; xx++) { in l2c_link_process_num_completed_pkts()
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/av/ |
D | bta_av_main.c | 218 int xx; in bta_av_timer_cback() local 222 for (xx = 0; xx < BTA_AV_NUM_STRS; xx++) { in bta_av_timer_cback() 223 if (bta_av_cb.p_scb[xx] && &(bta_av_cb.p_scb[xx]->timer) == p) { in bta_av_timer_cback() 224 p_scb = bta_av_cb.p_scb[xx]; in bta_av_timer_cback() 290 int xx; in bta_av_addr_to_scb() local 292 for (xx = 0; xx < BTA_AV_NUM_STRS; xx++) { in bta_av_addr_to_scb() 293 if (bta_av_cb.p_scb[xx]) { in bta_av_addr_to_scb() 294 if (!bdcmp(bd_addr, bta_av_cb.p_scb[xx]->peer_addr)) { in bta_av_addr_to_scb() 295 p_scb = bta_av_cb.p_scb[xx]; in bta_av_addr_to_scb() 338 int xx; in bta_av_alloc_scb() local [all …]
|
D | bta_av_act.c | 419 int xx; in bta_av_find_lcb() local 423 for (xx = 0; xx < BTA_AV_NUM_LINKS; xx++) { in bta_av_find_lcb() 424 mask = 1 << xx; /* the used mask for this lcb */ in bta_av_find_lcb() 425 if ((mask & p_cb->conn_lcb) && 0 == ( bdcmp(p_cb->lcb[xx].addr, addr))) { in bta_av_find_lcb() 426 p_lcb = &p_cb->lcb[xx]; in bta_av_find_lcb() 1260 UINT16 xx; in bta_av_disable() local 1271 for (xx = 0; xx < BTA_AV_NUM_STRS; xx++) { in bta_av_disable() 1272 hdr.layer_specific = xx + 1; in bta_av_disable() 1310 int xx; in bta_av_sig_chg() local 1319 for (xx = 0; xx < BTA_AV_NUM_LINKS; xx++) { in bta_av_sig_chg() [all …]
|
D | bta_av_aact.c | 235 UINT8 xx = 0; in bta_av_get_scb_handle() local 236 for (xx = 0; xx < BTA_AV_MAX_SEPS; xx++) { in bta_av_get_scb_handle() 237 if ((p_scb->seps[xx].tsep == local_sep) && in bta_av_get_scb_handle() 238 (p_scb->seps[xx].codec_type == p_scb->codec_type)) { in bta_av_get_scb_handle() 239 return (p_scb->seps[xx].av_handle); in bta_av_get_scb_handle() 257 UINT8 xx = 0; in bta_av_get_scb_sep_type() local 258 for (xx = 0; xx < BTA_AV_MAX_SEPS; xx++) { in bta_av_get_scb_sep_type() 259 if (p_scb->seps[xx].av_handle == tavdt_handle) { in bta_av_get_scb_sep_type() 260 return (p_scb->seps[xx].tsep); in bta_av_get_scb_sep_type() 420 int xx; in bta_av_proc_stream_evt() local [all …]
|
D | bta_av_ssm.c | 404 int i, xx; in bta_av_ssm_execute() local 417 for (xx = 0; xx < BTA_AV_NUM_STRS; xx++) { in bta_av_ssm_execute() 418 if (bta_av_cb.p_scb[xx]) { in bta_av_ssm_execute() 419 if (bta_av_cb.p_scb[xx]->state == BTA_AV_INCOMING_SST) { in bta_av_ssm_execute() 420 bta_av_cb.p_scb[xx]->state = BTA_AV_INIT_SST; in bta_av_ssm_execute() 421 bta_av_cb.p_scb[xx]->coll_mask = 0; in bta_av_ssm_execute()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/gap/ |
D | gap_conn.c | 721 UINT16 xx; in gap_connect_ind() local 726 for (xx = 0, p_ccb = gap_cb.conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) { in gap_connect_ind() 735 if (xx == GAP_MAX_CONNECTIONS) { in gap_connect_ind() 1062 UINT16 xx; in gap_find_ccb_by_cid() local 1066 for (xx = 0, p_ccb = gap_cb.conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) { in gap_find_ccb_by_cid() 1116 UINT16 xx; in gap_allocate_ccb() local 1120 for (xx = 0, p_ccb = gap_cb.conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) { in gap_allocate_ccb() 1126 p_ccb->gap_handle = xx; in gap_allocate_ccb() 1149 UINT16 xx; in gap_release_ccb() local 1171 for (xx = 0, p_ccb = gap_cb.conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) { in gap_release_ccb()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/hid/ |
D | hidh_conn.c | 90 int xx; in hidh_conn_reg() local 111 for (xx = 0; xx < HID_HOST_MAX_DEVICES; xx++) { in hidh_conn_reg() 112 hh_cb.devices[xx].in_use = FALSE ; in hidh_conn_reg() 113 hh_cb.devices[xx].delay_remove = FALSE; in hidh_conn_reg() 114 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg() 1018 UINT8 xx; in find_conn_by_cid() local 1020 for (xx = 0; xx < HID_HOST_MAX_DEVICES; xx++) { in find_conn_by_cid() 1021 … if ((hh_cb.devices[xx].in_use) && (hh_cb.devices[xx].conn.conn_state != HID_CONN_STATE_UNUSED) in find_conn_by_cid() 1022 … && ((hh_cb.devices[xx].conn.ctrl_cid == cid) || (hh_cb.devices[xx].conn.intr_cid == cid))) { in find_conn_by_cid() 1027 return (xx); in find_conn_by_cid()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/ |
D | port_utils.c | 67 UINT8 xx, yy; in port_allocate_port() local 69 for (xx = 0, yy = rfc_cb.rfc.last_port + 1; xx < MAX_RFC_PORTS; xx++, yy++) { in port_allocate_port()
|
D | port_api.c | 515 UINT8 xx, yy; in PORT_IsOpening() local 521 for (xx = 0; xx < MAX_BD_CONNECTIONS; xx++) { in PORT_IsOpening() 522 if ((rfc_cb.port.rfc_mcb[xx].state > RFC_MX_STATE_IDLE) && in PORT_IsOpening() 523 (rfc_cb.port.rfc_mcb[xx].state < RFC_MX_STATE_CONNECTED)) { in PORT_IsOpening() 524 memcpy (bd_addr, rfc_cb.port.rfc_mcb[xx].bd_addr, BD_ADDR_LEN); in PORT_IsOpening() 528 if (rfc_cb.port.rfc_mcb[xx].state == RFC_MX_STATE_CONNECTED) { in PORT_IsOpening() 530 p_mcb = &rfc_cb.port.rfc_mcb[xx]; in PORT_IsOpening() 543 memcpy (bd_addr, rfc_cb.port.rfc_mcb[xx].bd_addr, BD_ADDR_LEN); in PORT_IsOpening()
|