Lines Matching refs:p_acb
184 btif_hl_app_cb_t *p_acb;
190 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
191 if (p_acb->in_use)
224 btif_hl_app_cb_t * p_acb;
232 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
233 if (p_acb && p_acb->in_use)
237 if(p_acb->mcb[j].in_use)
239 j,mcl_handle, p_acb->mcb[j].mcl_handle);
240 if (p_acb->mcb[j].in_use &&
241 (p_acb->mcb[j].mcl_handle == mcl_handle))
243 p_mcb = &p_acb->mcb[j];
543 btif_hl_app_cb_t *p_acb =BTIF_HL_GET_APP_CB_PTR(app_idx);
544 p_acb->filter.num_elems = 0;
558 btif_hl_app_cb_t *p_acb =BTIF_HL_GET_APP_CB_PTR(app_idx);
569 num_elems = p_acb->filter.num_elems;
583 data_type = p_acb->filter.elem[j].data_type;
584 peer_mdep_role = p_acb->filter.elem[j].peer_mdep_role;
639 btif_hl_app_cb_t *p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
649 UINT16 data_type = p_acb->sup_feature.mdep[mdep_cfg_idx].mdep_cfg.data_cfg[0].data_type;
684 for (i=0, p_mdl=&p_acb->mdl_cfg[0] ; i< BTA_HL_NUM_MDL_CFGS; i++, p_mdl++ )
708 for (j=i, p_mdl1=&p_acb->mdl_cfg[i]; j< BTA_HL_NUM_MDL_CFGS; j++, p_mdl1++)
760 btif_hl_app_cb_t *p_acb;
817 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
819 BTA_HlSdpQuery(app_id,p_acb->app_handle, bd_addr);
897 btif_hl_app_cb_t *p_acb;
910 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
945 p_pcb->channel_id = p_acb->delete_mdl.channel_id;
951 BTA_HlSdpQuery(app_id,p_acb->app_handle, bd_addr);
995 btif_hl_app_cb_t *p_acb;
1003 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
1008 if (p_acb->in_use &&
1036 btif_hl_app_cb_t *p_acb;
1044 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
1051 if (p_acb->in_use &&
1080 btif_hl_app_cb_t *p_acb;
1085 p_acb =BTIF_HL_GET_APP_CB_PTR(app_idx);
1086 if (p_acb && p_acb->in_use)
1118 btif_hl_app_cb_t *p_acb;
1126 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
1133 if (p_acb->in_use &&
1167 btif_hl_app_cb_t *p_acb;
1194 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
1241 btif_hl_app_cb_t *p_acb;
1249 p_acb =BTIF_HL_GET_APP_CB_PTR(app_idx);
1251 for (i=0; i< p_acb->sup_feature.num_of_mdeps; i++)
1253 if (p_acb->sup_feature.mdep[i].mdep_cfg.mdep_role == local_mdep_role )
1255 for (j=0; j< p_acb->sup_feature.mdep[i].mdep_cfg.num_of_mdep_data_types; j++)
1257 if ( p_acb->sup_feature.mdep[i].mdep_cfg.data_cfg[j].data_type == mdep_data_type)
1260 *p_local_mdep_id = p_acb->sup_feature.mdep[i].mdep_id;
1284 btif_hl_app_cb_t *p_acb =BTIF_HL_GET_APP_CB_PTR(app_idx);
1285 tBTA_HL_SUP_FEATURE *p_sup_feature= &p_acb->sup_feature;
1320 btif_hl_app_cb_t *p_acb =BTIF_HL_GET_APP_CB_PTR(app_idx);
1771 btif_hl_app_cb_t *p_acb;
1777 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
1780 if (p_acb->mcb[j].in_use)
1782 "mcl_idx =%d mcl_handle=%d",i,j,p_acb->mcb[j].mcl_handle);
1783 if (p_acb->mcb[j].in_use &&
1784 (p_acb->mcb[j].mcl_handle == mcl_handle))
1809 btif_hl_app_cb_t *p_acb;
1816 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
1819 if (p_acb->mcb[j].in_use &&
1820 (p_acb->mcb[j].mcl_handle == mcl_handle))
1822 p_mcb = &p_acb->mcb[j];
1854 btif_hl_app_cb_t *p_acb;
1860 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
1861 if (p_acb->delete_mdl.active)
1863 "mcl_idx =%d mcl_handle=%d",i,j,p_acb->mcb[j].mcl_handle);
1864 if (p_acb->delete_mdl.active &&
1865 (p_acb->delete_mdl.mdl_id == mdl_id))
1887 btif_hl_app_cb_t *p_acb;
1893 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
1896 if (p_acb->mcb[j].in_use &&
1897 (p_acb->mcb[j].mcl_handle == mcl_handle))
1916 btif_hl_app_cb_t *p_acb;
1920 p_acb =BTIF_HL_GET_APP_CB_PTR(p_app_idx);
1923 if (p_acb->mcb[j].in_use &&
1924 (p_acb->mcb[j].mcl_handle == mcl_handle))
1946 btif_hl_app_cb_t *p_acb;
1952 p_acb =BTIF_HL_GET_APP_CB_PTR(app_idx);
1955 if (p_acb->mcb[j].in_use)
1957 p_mcb = &p_acb->mcb[j];
1969 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, p_acb->app_id,
2137 btif_hl_app_cb_t *p_acb;
2148 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
2149 app_id = (int) p_acb->app_id;
2153 memset(p_acb, 0,sizeof(btif_hl_app_cb_t));
2178 btif_hl_app_cb_t *p_acb;
2187 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
2190 p_acb->app_handle = p_data->reg_cfm.app_handle;
2216 btif_hl_app_cb_t *p_acb;
2222 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
2223 memcpy(&p_acb->sdp_info_ind, &p_data->sdp_info_ind, sizeof(tBTA_HL_SDP_INFO_IND));
2256 void btif_hl_send_destroyed_cb(btif_hl_app_cb_t *p_acb ){
2258 int app_id = (int) btif_hl_get_app_id(p_acb->delete_mdl.channel_id);
2260 btif_hl_copy_bda(&bd_addr, p_acb->delete_mdl.bd_addr);
2262 BTIF_TRACE_DEBUG4("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d, state=%d fd=%d",p_acb->delete_mdl.channel_id,
2263 p_acb->delete_mdl.mdep_cfg_idx, BTHL_CONN_STATE_DESTROYED, 0);
2267 &bd_addr, p_acb->delete_mdl.mdep_cfg_idx,
2268 p_acb->delete_mdl.channel_id, BTHL_CONN_STATE_DESTROYED, 0 );
2382 btif_hl_app_cb_t *p_acb;
2417 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
2465 BTA_HlCchOpen(p_acb->app_id,p_acb->app_handle, &open_param);
2549 btif_hl_app_cb_t *p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
2567 dch_open.local_mdep_id = p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx].mdep_id;
2568 if (btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr,
2569 p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx].mdep_cfg.mdep_role,
2570 p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx].mdep_cfg.data_cfg[0].data_type, &dch_open.peer_mdep_id ))
2572 dch_open.local_cfg = p_acb->channel_type[p_pcb->mdep_cfg_idx];
2573 if ((p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx].mdep_cfg.mdep_role == BTA_HL_MDEP_ROLE_SOURCE)
2604 BTA_HlDeleteMdl(p_mcb->mcl_handle, p_acb->delete_mdl.mdl_id);
2627 btif_hl_app_cb_t *p_acb;
2641 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
2666 btif_hl_app_cb_t *p_acb;
2671 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
2674 if (p_acb->mcb[j].in_use)
2676 "mcl_idx =%d mcl_handle=%d",i,j,p_acb->mcb[j].mcl_handle);
2677 if (p_acb->mcb[j].in_use &&
2678 (p_acb->mcb[j].mcl_handle == mcl_handle))
2735 btif_hl_app_cb_t *p_acb;
2751 p_acb =BTIF_HL_GET_APP_CB_PTR(orig_app_idx);
2756 p_mdep = &(p_acb->sup_feature.mdep[mdep_cfg_idx]);
2765 rsp_cfg = p_acb->channel_type[mdep_cfg_idx];
2819 btif_hl_app_cb_t *p_acb;
2833 p_acb =BTIF_HL_GET_APP_CB_PTR(orig_app_idx);
2899 btif_hl_app_cb_t *p_acb;
2914 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
2976 btif_hl_app_cb_t *p_acb;
2990 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3054 btif_hl_app_cb_t *p_acb;
3067 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3087 p_dcb->channel_id = btif_hl_get_next_channel_id(p_acb->app_id);
3192 btif_hl_app_cb_t *p_acb;
3197 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
3200 if (p_acb->mcb[j].in_use)
3201 BTIF_TRACE_DEBUG3("btif_hl_find_mcl_idx_using_handle: app_idx=%d,mcl_idx =%d mcl_handle=%d",i,j,p_acb->mcb[j].mcl_handle);
3202 if (p_acb->mcb[j].in_use &&
3203 (p_acb->mcb[j].mcl_handle == mcl_handle))
3226 btif_hl_app_cb_t *p_acb;
3231 p_acb =BTIF_HL_GET_APP_CB_PTR(i);
3234 if (p_acb->mcb[j].in_use)
3235 BTIF_TRACE_DEBUG3("btif_hl_find_mcl_idx_using_handle: app_idx=%d,mcl_idx =%d mcl_handle=%d",i,j,p_acb->mcb[j].mcl_handle);
3236 if (p_acb->mcb[j].in_use &&
3237 (p_acb->mcb[j].mcl_handle == mcl_handle))
3341 btif_hl_app_cb_t *p_acb;
3376 p_acb = BTIF_HL_GET_APP_CB_PTR(p_data->reg.app_idx);
3377 app_id = (int) p_acb->app_id;
3378 BTIF_TRACE_DEBUG2("Rcv BTIF_HL_REG_APP app_idx=%d reg_pending=%d", p_data->reg.app_idx, p_acb->reg_pending);
3379 if (btif_hl_get_state() == BTIF_HL_STATE_ENABLED && p_acb->reg_pending)
3382 p_acb->reg_pending = FALSE;
3383 reg_param.dev_type = p_acb->dev_type;
3385 reg_param.p_srv_name = p_acb->srv_name;
3386 reg_param.p_srv_desp = p_acb->srv_desp;
3387 reg_param.p_provider_name = p_acb->provider_name;
3388 btif_hl_proc_reg_request (p_data->reg.app_idx, p_acb->app_id, ®_param, btif_hl_cback);
3392 BTIF_TRACE_DEBUG2("reg request is processed state=%d reg_pending=%d", btif_hl_get_state(), p_acb->reg_pending);
3399 p_acb = BTIF_HL_GET_APP_CB_PTR(p_data->unreg.app_idx);
3403 BTA_HlUpdate(p_acb->app_id,NULL,FALSE,NULL);
3405 BTA_HlDeregister(p_acb->app_id, p_acb->app_handle);
3410 p_acb = BTIF_HL_GET_APP_CB_PTR(p_data->update_mdl.app_idx);
3431 btif_hl_app_cb_t *p_acb;
3491 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3545 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3664 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3665 btif_hl_send_destroyed_cb(p_acb);
3666 btif_hl_clean_delete_mdl(&p_acb->delete_mdl);
3933 btif_hl_app_cb_t *p_acb;
3951 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
3952 if (p_acb->in_use && p_acb->reg_pending)
3954 p_acb->reg_pending = FALSE;
3955 reg_param.dev_type = p_acb->dev_type;
3957 reg_param.p_srv_name = p_acb->srv_name;
3958 reg_param.p_srv_desp = p_acb->srv_desp;
3959 reg_param.p_provider_name = p_acb->provider_name;
3961 BTIF_TRACE_DEBUG1("Register pending app_id=%d", p_acb->app_id);
3962 btif_hl_proc_reg_request (i, p_acb->app_id, ®_param, btif_hl_cback);
4025 btif_hl_app_cb_t *p_acb = NULL;
4044 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
4051 dch_open.local_mdep_id = p_acb->sup_feature.mdep[mdep_cfg_index].mdep_id;
4054 if (btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr,
4055 p_acb->sup_feature.mdep[mdep_cfg_index].mdep_cfg.mdep_role,
4056 p_acb->sup_feature.mdep[mdep_cfg_index].mdep_cfg.data_cfg[0].data_type, &dch_open.peer_mdep_id ))
4058 dch_open.local_cfg = p_acb
4059 if ((p_acb->sup_feature.mdep[mdep_cfg_index].mdep_cfg.mdep_role == BTA_HL_MDEP_ROLE_SOURCE)
4066 if( !btif_hl_dch_open(p_acb->app_id, bda, &dch_open,
4082 BTA_HlSdpQuery(app_id,p_acb->app_handle, bda);
4092 p_acb->filter.num_elems =1;
4093 p_acb->filter.elem[0].data_type = p_acb->sup_feature.mdep[mdep_cfg_index].mdep_cfg.data_cfg[mdep_cfg_index].data_type;
4094 if (p_acb->sup_feature.mdep[mdep_cfg_index].mdep_cfg.mdep_role == BTA_HL_MDEP_ROLE_SINK)
4095 p_acb->filter.elem[0].peer_mdep_role = BTA_HL_MDEP_ROLE_SOURCE;
4097 p_acb->filter.elem[0].peer_mdep_role = BTA_HL_MDEP_ROLE_SINK;
4099 if ( !btif_hl_cch_open(p_acb->app_id, bda, 0, mdep_cfg_index,
4131 btif_hl_app_cb_t *p_acb;
4147 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
4148 if (!p_acb->delete_mdl.active)
4151 p_acb->delete_mdl.active = TRUE;
4152 p_acb->delete_mdl.mdl_id = p_mdl->base.mdl_id;
4153 p_acb->delete_mdl.channel_id = channel_id;
4154 p_acb->delete_mdl.mdep_cfg_idx = p_mdl->extra.mdep_cfg_idx;
4155 memcpy(p_acb->delete_mdl.bd_addr, p_mdl->base.peer_bd_addr,sizeof(BD_ADDR));
4162 BTIF_TRACE_DEBUG1("calling BTA_HlDeleteMdl mdl_id=%d",p_acb->delete_mdl.mdl_id );
4163 BTA_HlDeleteMdl(p_mcb->mcl_handle, p_acb->delete_mdl.mdl_id);
4174 p_acb->filter.num_elems =1;
4175 p_acb->filter.elem[0].data_type = p_acb->sup_feature.mdep[mdep_cfg_idx].mdep_cfg.data_cfg[mdep_cfg_idx].data_type;
4176 if (p_acb->sup_feature.mdep[mdep_cfg_idx].mdep_cfg.mdep_role == BTA_HL_MDEP_ROLE_SINK)
4177 p_acb->filter.elem[0].peer_mdep_role = BTA_HL_MDEP_ROLE_SOURCE;
4179 p_acb->filter.elem[0].peer_mdep_role = BTA_HL_MDEP_ROLE_SINK;
4180 if (btif_hl_cch_open(p_acb->app_id, p_acb->delete_mdl.bd_addr, 0,
4191 btif_hl_clean_delete_mdl(&p_acb->delete_mdl);
4217 btif_hl_app_cb_t *p_acb;
4230 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
4255 btif_hl_app_cb_t *p_acb;
4282 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
4283 p_acb->in_use = TRUE;
4286 p_acb->app_id = btif_hl_get_next_app_id();
4289 strncpy(p_acb->application_name, p_reg_param->application_name, BTIF_HL_APPLICATION_NAME_LEN);
4292 strncpy(p_acb->provider_name, p_reg_param->provider_name, BTA_PROVIDER_NAME_LEN);
4295 strncpy(p_acb->srv_name, p_reg_param->srv_name, BTA_SERVICE_NAME_LEN);
4298 strncpy(p_acb->srv_desp, p_reg_param->srv_desp, BTA_SERVICE_DESP_LEN);
4300 p_sup = &p_acb->sup_feature;
4328 p_acb->dev_type = BTA_HL_DEVICE_TYPE_DUAL;
4331 p_acb->dev_type = BTA_HL_DEVICE_TYPE_SINK;
4334 p_acb->dev_type = BTA_HL_DEVICE_TYPE_SOURCE;
4343 if ( !btif_hl_get_bta_channel_type(p_mdep_cfg->channel_type, &(p_acb->channel_type[i])))
4354 *app_id = (int) p_acb->app_id;
4357 p_acb->reg_pending = TRUE;
4387 btif_hl_app_cb_t *p_acb;
4400 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
4412 *p_channel_id = btif_hl_get_next_channel_id(p_acb->app_id);
4414 p_mdl->extra.data_type = p_acb->sup_feature.mdep[p_mcb->pcb.mdep_cfg_idx].mdep_cfg.data_cfg[0].data_type;
4416 if (!btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr,
4417 p_acb->sup_feature.mdep[p_mcb->pcb.mdep_cfg_idx].mdep_cfg.mdep_role,
4418 p_acb->sup_feature.mdep[p_mcb->pcb.mdep_cfg_idx].mdep_cfg.data_cfg[0].data_type,
4454 btif_hl_app_cb_t *p_acb;
4462 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
4494 btif_hl_app_cb_t *p_acb;
4511 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
4512 BTA_HlSdpQuery(app_id,p_acb->app_handle,bda);
4767 btif_hl_app_cb_t *p_acb = NULL;
4787 p_acb = BTIF_HL_GET_APP_CB_PTR(p_scb->app_idx);
4791 evt_param.chan_cb.app_id = p_acb->app_id;
4823 btif_hl_app_cb_t *p_acb = NULL ;
5232 btif_hl_app_cb_t *p_acb;
5239 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
5242 memcpy(p, &p_acb->mdl_cfg[i].base, sizeof(tBTA_HL_MDL_CFG));