Lines Matching refs:p_mdl

563     btif_hl_mdl_cfg_t    *p_mdl;  in btif_hl_is_reconnect_possible()  local
602 for (i=0, p_mdl=&p_acb->mdl_cfg[0] ; i< BTA_HL_NUM_MDL_CFGS; i++, p_mdl++ ) in btif_hl_is_reconnect_possible()
604 if (p_mdl->base.active && in btif_hl_is_reconnect_possible()
605 p_mdl->extra.data_type ==data_type && in btif_hl_is_reconnect_possible()
606 …(p_mdl->extra.peer_mdep_id != BTA_HL_INVALID_MDEP_ID && p_mdl->extra.peer_mdep_id == peer_mdep_id)… in btif_hl_is_reconnect_possible()
607 memcpy(p_mdl->base.peer_bd_addr, p_mcb->bd_addr,sizeof(BD_ADDR) ) && in btif_hl_is_reconnect_possible()
608 p_mdl->base.mdl_id && in btif_hl_is_reconnect_possible()
609 !btif_hl_find_mdl_idx(app_idx, mcl_idx,p_mdl->base.mdl_id, &mdl_idx)) in btif_hl_is_reconnect_possible()
612 i, p_mdl->base.active, p_mdl->base.mdl_id,p_mdl->base.dch_mode); in btif_hl_is_reconnect_possible()
615 if (p_mdl->base.dch_mode == dch_mode) in btif_hl_is_reconnect_possible()
618 *p_mdl_id = p_mdl->base.mdl_id; in btif_hl_is_reconnect_possible()
619 … BTIF_TRACE_DEBUG("reconnect is possible dch_mode=%d mdl_id=%d", dch_mode, p_mdl->base.mdl_id ); in btif_hl_is_reconnect_possible()
649 dch_mode= p_mdl->base.dch_mode; in btif_hl_is_reconnect_possible()
650 *p_mdl_id = p_mdl->base.mdl_id; in btif_hl_is_reconnect_possible()
651 …BTIF_TRACE_DEBUG("reconnect is ok index=%d dch_mode=%d mdl_id=%d", i, p_mdl->base.dch_mode, *p_m… in btif_hl_is_reconnect_possible()
914 btif_hl_mdl_cfg_t *p_mdl; in btif_hl_find_mdl_cfg_idx_using_channel_id() local
926 p_mdl =BTIF_HL_GET_MDL_CFG_PTR(i,j); in btif_hl_find_mdl_cfg_idx_using_channel_id()
929 p_mdl->base.active && in btif_hl_find_mdl_cfg_idx_using_channel_id()
1001 btif_hl_mdl_cfg_t *p_mdl; in btif_hl_find_channel_id_using_mdl_id() local
1010 p_mdl =BTIF_HL_GET_MDL_CFG_PTR(app_idx,j); in btif_hl_find_channel_id_using_mdl_id()
1012 if ( p_mdl->base.active && (p_mdl->base.mdl_id == mdl_id)) in btif_hl_find_channel_id_using_mdl_id()
3938 btif_hl_mdl_cfg_t *p_mdl; in destroy_channel() local
3958 p_mdl =BTIF_HL_GET_MDL_CFG_PTR(app_idx, mdl_cfg_idx); in destroy_channel()
3960 p_acb->delete_mdl.mdl_id = p_mdl->base.mdl_id; in destroy_channel()
3962 p_acb->delete_mdl.mdep_cfg_idx = p_mdl->extra.mdep_cfg_idx; in destroy_channel()
3963 memcpy(p_acb->delete_mdl.bd_addr, p_mdl->base.peer_bd_addr,sizeof(BD_ADDR)); in destroy_channel()
3965 if (btif_hl_find_mcl_idx(app_idx, p_mdl->base.peer_bd_addr, &mcl_idx)) in destroy_channel()
3981 mdep_cfg_idx = p_mdl->extra.mdep_cfg_idx; in destroy_channel()
4190 btif_hl_mdl_cfg_t *p_mdl=NULL; in btif_hl_save_mdl_cfg() local
4206 p_mdl = BTIF_HL_GET_MDL_CFG_PTR(app_idx, item_idx); in btif_hl_save_mdl_cfg()
4208 if (p_mdl) in btif_hl_save_mdl_cfg()
4210 memcpy(&p_mdl->base, p_mdl_cfg, sizeof(tBTA_HL_MDL_CFG)); in btif_hl_save_mdl_cfg()
4211 if (btif_hl_find_mcl_idx(app_idx, p_mdl->base.peer_bd_addr , &mcl_idx)) in btif_hl_save_mdl_cfg()
4218 p_mdl->extra.mdep_cfg_idx = p_mcb->pcb.mdep_cfg_idx; in btif_hl_save_mdl_cfg()
4219p_mdl->extra.data_type = p_acb->sup_feature.mdep[p_mcb->pcb.mdep_cfg_idx].mdep_cfg.data_cfg[0].dat… in btif_hl_save_mdl_cfg()
4224 &p_mdl->extra.peer_mdep_id)) in btif_hl_save_mdl_cfg()
4226 p_mdl->extra.peer_mdep_id = BTA_HL_INVALID_MDEP_ID; in btif_hl_save_mdl_cfg()
4229 __FUNCTION__, app_idx, item_idx, p_mdl->base.mdl_id); in btif_hl_save_mdl_cfg()
4257 btif_hl_mdl_cfg_t *p_mdl=NULL; in btif_hl_delete_mdl_cfg() local
4265 p_mdl = BTIF_HL_GET_MDL_CFG_PTR(app_idx, item_idx); in btif_hl_delete_mdl_cfg()
4266 if (p_mdl) in btif_hl_delete_mdl_cfg()
4268 memset(p_mdl, 0, sizeof(btif_hl_mdl_cfg_t)); in btif_hl_delete_mdl_cfg()