Home | History | Annotate | Download | only in src

Lines Matching full:p_acb

192   btif_hl_app_cb_t* p_acb;
200 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
201 if (p_acb->in_use) {
228 btif_hl_app_cb_t* p_acb;
235 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
236 if (p_acb && p_acb->in_use) {
238 if (p_acb->mcb[j].in_use)
241 j, mcl_handle, p_acb->mcb[j].mcl_handle);
242 if (p_acb->mcb[j].in_use && (p_acb->mcb[j].mcl_handle == mcl_handle)) {
243 p_mcb = &p_acb->mcb[j];
441 btif_hl_app_cb_t* p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
442 p_acb->filter.num_elems = 0;
458 btif_hl_app_cb_t* p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
469 num_elems = p_acb->filter.num_elems;
480 data_type = p_acb->filter.elem[j].data_type;
481 peer_mdep_role = p_acb->filter.elem[j].peer_mdep_role;
529 btif_hl_app_cb_t* p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
540 p_acb->sup_feature.mdep[mdep_cfg_idx].mdep_cfg.data_cfg[0].data_type;
569 for (i = 0, p_mdl = &p_acb->mdl_cfg[0]; i < BTA_HL_NUM_MDL_CFGS;
589 for (j = i, p_mdl1 = &p_acb->mdl_cfg[i]; j < BTA_HL_NUM_MDL_CFGS;
637 btif_hl_app_cb_t* p_acb;
684 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
686 BTA_HlSdpQuery(app_id, p_acb->app_handle, bd_addr);
729 btif_hl_app_cb_t* p_acb;
740 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
770 p_pcb->channel_id = p_acb->delete_mdl.channel_id;
776 BTA_HlSdpQuery(app_id, p_acb->app_handle, bd_addr);
810 btif_hl_app_cb_t* p_acb;
819 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
823 if (p_acb->in_use && p_mdl->base.active &&
849 btif_hl_app_cb_t* p_acb;
856 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
861 if (p_acb->in_use && p_mcb->in_use && p_dcb->in_use &&
888 btif_hl_app_cb_t* p_acb;
893 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
894 if (p_acb && p_acb->in_use) {
923 btif_hl_app_cb_t* p_acb;
933 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
938 if (p_acb->in_use && p_mcb->in_use && p_dcb->in_use &&
1031 btif_hl_app_cb_t* p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
1032 tBTA_HL_SUP_FEATURE* p_sup_feature = &p_acb->sup_feature;
1480 btif_hl_app_cb_t* p_acb;
1485 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
1487 if (p_acb->mcb[j].in_use)
1491 i, j, p_acb->mcb[j].mcl_handle);
1492 if (p_acb->mcb[j].in_use && (p_acb->mcb[j].mcl_handle == mcl_handle)) {
1515 btif_hl_app_cb_t* p_acb;
1521 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
1523 if (p_acb->mcb[j].in_use && (p_acb->mcb[j].mcl_handle == mcl_handle)) {
1524 p_mcb = &p_acb->mcb[j];
1555 btif_hl_app_cb_t* p_acb;
1560 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
1561 if (p_acb->delete_mdl.active) {
1564 if (p_acb->delete_mdl.active && (p_acb->delete_mdl.mdl_id == mdl_id)) {
1584 btif_hl_app_cb_t* p_acb;
1588 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
1590 if (p_acb->mcb[j].in_use && (p_acb->mcb[j].mcl_handle == mcl_handle)) {
1608 btif_hl_app_cb_t* p_acb;
1612 p_acb = BTIF_HL_GET_APP_CB_PTR(p_app_idx);
1614 if (p_acb->mcb[j].in_use && (p_acb->mcb[j].mcl_handle == mcl_handle)) {
1634 btif_hl_app_cb_t* p_acb;
1640 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
1642 if (p_acb->mcb[j].in_use) {
1643 p_mcb = &p_acb->mcb[j];
1651 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, p_acb->app_id,
1808 btif_hl_app_cb_t* p_acb;
1817 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
1818 app_id = (int)p_acb->app_id;
1822 alarm_free(p_acb->mcb[i].cch_timer);
1823 memset(p_acb, 0, sizeof(btif_hl_app_cb_t));
1847 btif_hl_app_cb_t* p_acb;
1855 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
1857 p_acb->app_handle = p_data->reg_cfm.app_handle;
1898 void btif_hl_send_destroyed_cb(btif_hl_app_cb_t* p_acb) {
1899 int app_id = (int)btif_hl_get_app_id(p_acb->delete_mdl.channel_id);
1901 RawAddress bd_addr = p_acb->delete_mdl.bd_addr;
1906 p_acb->delete_mdl.channel_id, p_acb->delete_mdl.mdep_cfg_idx,
1911 p_acb->delete_mdl.mdep_cfg_idx,
1912 p_acb->delete_mdl.channel_id, BTHL_CONN_STATE_DESTROYED,
2036 btif_hl_app_cb_t* p_acb;
2069 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
2110 BTA_HlCchOpen(p_acb->app_id, p_acb->app_handle, &open_param);
2183 btif_hl_app_cb_t* p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
2199 p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx].mdep_id;
2201 p_acb->app_id, p_mcb->bd_addr,
2202 p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx]
2204 p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx]
2208 dch_open.local_cfg = p_acb->channel_type[p_pcb->mdep_cfg_idx];
2209 if ((p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx]
2241 BTA_HlDeleteMdl(p_mcb->mcl_handle, p_acb->delete_mdl.mdl_id);
2297 btif_hl_app_cb_t* p_acb;
2301 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
2303 if (p_acb->mcb[j].in_use)
2307 i, j, p_acb->mcb[j].mcl_handle);
2308 if (p_acb->mcb[j].in_use && (p_acb->mcb[j].mcl_handle == mcl_handle)) {
2360 btif_hl_app_cb_t* p_acb;
2377 p_acb = BTIF_HL_GET_APP_CB_PTR(orig_app_idx);
2383 p_mdep = &(p_acb->sup_feature.mdep[mdep_cfg_idx]);
2390 rsp_cfg = p_acb->channel_type[mdep_cfg_idx];
2650 btif_hl_app_cb_t* p_acb;
2663 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
2683 p_dcb->channel_id = btif_hl_get_next_channel_id(p_acb->app_id);
2776 btif_hl_app_cb_t* p_acb;
2780 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
2782 if (p_acb->mcb[j].in_use)
2786 i, j, p_acb->mcb[j].mcl_handle);
2787 if (p_acb->mcb[j].in_use && (p_acb->mcb[j].mcl_handle == mcl_handle)) {
2807 btif_hl_app_cb_t* p_acb;
2811 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
2813 if (p_acb->mcb[j].in_use)
2817 i, j, p_acb->mcb[j].mcl_handle);
2818 if (p_acb->mcb[j].in_use && (p_acb->mcb[j].mcl_handle == mcl_handle)) {
2910 btif_hl_app_cb_t* p_acb;
2943 p_acb = BTIF_HL_GET_APP_CB_PTR(p_data->reg.app_idx);
2945 p_data->reg.app_idx, p_acb->reg_pending);
2946 if (btif_hl_get_state() == BTIF_HL_STATE_ENABLED && p_acb->reg_pending) {
2948 p_acb->reg_pending = false;
2949 reg_param.dev_type = p_acb->dev_type;
2951 reg_param.p_srv_name = p_acb->srv_name;
2952 reg_param.p_srv_desp = p_acb->srv_desp;
2953 reg_param.p_provider_name = p_acb->provider_name;
2954 btif_hl_proc_reg_request(p_data->reg.app_idx, p_acb->app_id, &reg_param,
2958 btif_hl_get_state(), p_acb->reg_pending);
2966 p_acb = BTIF_HL_GET_APP_CB_PTR(p_data->unreg.app_idx);
2969 BTA_HlUpdate(p_acb->app_id, NULL, false, NULL);
2971 BTA_HlDeregister(p_acb->app_id, p_acb->app_handle);
2978 p_acb = BTIF_HL_GET_APP_CB_PTR(p_data->update_mdl.app_idx);
2999 btif_hl_app_cb_t* p_acb;
3051 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3093 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3198 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3199 btif_hl_send_destroyed_cb(p_acb);
3200 btif_hl_clean_delete_mdl(&p_acb->delete_mdl);
3456 btif_hl_app_cb_t* p_acb;
3470 p_acb = BTIF_HL_GET_APP_CB_PTR(i);
3471 if (p_acb->in_use && p_acb->reg_pending) {
3472 p_acb->reg_pending = false;
3473 reg_param.dev_type = p_acb->dev_type;
3475 reg_param.p_srv_name = p_acb->srv_name;
3476 reg_param.p_srv_desp = p_acb->srv_desp;
3477 reg_param.p_provider_name = p_acb->provider_name;
3479 BTIF_TRACE_DEBUG("Register pending app_id=%d", p_acb->app_id);
3480 btif_hl_proc_reg_request(i, p_acb->app_id, &reg_param,
3548 btif_hl_app_cb_t* p_acb = NULL;
3559 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3565 p_acb->sup_feature.mdep[mdep_cfg_index].mdep_id;
3571 p_acb->app_id, p_mcb->bd_addr,
3572 p_acb->sup_feature.mdep[mdep_cfg_index].mdep_cfg.mdep_role,
3573 p_acb->sup_feature.mdep[mdep_cfg_index]
3577 dch_open.local_cfg = p_acb->channel_type[mdep_cfg_index];
3578 if ((p_acb->sup_feature.mdep[mdep_cfg_index].mdep_cfg.mdep_role ==
3585 if (!btif_hl_dch_open(p_acb->app_id, *bd_addr, &dch_open,
3599 BTA_HlSdpQuery(app_id, p_acb->app_handle, *bd_addr);
3605 p_acb->filter.num_elems = 1;
3606 p_acb->filter.elem[0].data_type = p_acb->sup_feature.mdep[mdep_cfg_index]
3609 if (p_acb->sup_feature.mdep[mdep_cfg_index].mdep_cfg.mdep_role ==
3611 p_acb->filter.elem[0].peer_mdep_role = BTA_HL_MDEP_ROLE_SOURCE;
3613 p_acb->filter.elem[0].peer_mdep_role = BTA_HL_MDEP_ROLE_SINK;
3615 if (!btif_hl_cch_open(p_acb->app_id, *bd_addr, 0, mdep_cfg_index,
3643 btif_hl_app_cb_t* p_acb;
3657 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3658 if (!p_acb->delete_mdl.active) {
3660 p_acb->delete_mdl.active = true;
3661 p_acb->delete_mdl.mdl_id = p_mdl->base.mdl_id;
3662 p_acb->delete_mdl.channel_id = channel_id;
3663 p_acb->delete_mdl.mdep_cfg_idx = p_mdl->extra.mdep_cfg_idx;
3664 p_acb->delete_mdl.bd_addr = p_mdl->base.peer_bd_addr;
3670 p_acb->delete_mdl.mdl_id);
3671 BTA_HlDeleteMdl(p_mcb->mcl_handle, p_acb->delete_mdl.mdl_id);
3678 p_acb->filter.num_elems = 1;
3679 p_acb->filter.elem[0].data_type =
3680 p_acb->sup_feature.mdep[mdep_cfg_idx]
3683 if (p_acb->sup_feature.mdep[mdep_cfg_idx].mdep_cfg.mdep_role ==
3685 p_acb->filter.elem[0].peer_mdep_role = BTA_HL_MDEP_ROLE_SOURCE;
3687 p_acb->filter.elem[0].peer_mdep_role = BTA_HL_MDEP_ROLE_SINK;
3688 if (btif_hl_cch_open(p_acb->app_id, p_acb->delete_mdl.bd_addr, 0,
3697 btif_hl_clean_delete_mdl(&p_acb->delete_mdl);
3752 btif_hl_app_cb_t* p_acb;
3777 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3778 p_acb->in_use = true;
3780 p_acb->app_id = btif_hl_get_next_app_id();
3783 strncpy(p_acb->application_name, p_reg_param->application_name,
3787 strncpy(p_acb->provider_name, p_reg_param->provider_name,
3791 strncpy(p_acb->srv_name, p_reg_param->srv_name, BTA_SERVICE_NAME_LEN);
3794 strncpy(p_acb->srv_desp, p_reg_param->srv_desp, BTA_SERVICE_DESP_LEN);
3796 p_sup = &p_acb->sup_feature;
3821 p_acb->dev_type = BTA_HL_DEVICE_TYPE_DUAL;
3823 p_acb->dev_type = BTA_HL_DEVICE_TYPE_SINK;
3825 p_acb->dev_type = BTA_HL_DEVICE_TYPE_SOURCE;
3839 &(p_acb->channel_type[i]))) {
3848 *app_id = (int)p_acb->app_id;
3851 p_acb->reg_pending = true;
3879 btif_hl_app_cb_t* p_acb;
3892 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
3902 *p_channel_id = btif_hl_get_next_channel_id(p_acb->app_id);
3905 p_acb->sup_feature.mdep[p_mcb->pcb.mdep_cfg_idx]
3910 p_acb->app_id, p_mcb->bd_addr,
3911 p_acb->sup_feature.mdep[p_mcb->pcb.mdep_cfg_idx]
3913 p_acb->sup_feature.mdep[p_mcb->pcb.mdep_cfg_idx]
4201 btif_hl_app_cb_t* p_acb = NULL;
4222 p_acb = BTIF_HL_GET_APP_CB_PTR(p_scb->app_idx);
4225 evt_param.chan_cb.app_id = p_acb->app_id;
4636 btif_hl_app_cb_t* p_acb;
4642 p_acb = BTIF_HL_GET_APP_CB_PTR(app_idx);
4644 memcpy(p, &p_acb->mdl_cfg[i].base, sizeof(tBTA_HL_MDL_CFG));