Lines Matching refs:p_mdl

1267     tBTA_HL_MDL_CFG     *p_mdl;  in bta_hl_find_non_active_mdl_cfg()  local
1275 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_find_non_active_mdl_cfg()
1280 !memcmp(p_mdl->peer_bd_addr,p_mcb->bd_addr,BD_ADDR_LEN)) in bta_hl_find_non_active_mdl_cfg()
1287 if (p_dcb->in_use && p_mdl->mdl_id == p_dcb->mdl_id) in bta_hl_find_non_active_mdl_cfg()
1325 tBTA_HL_MDL_CFG *p_mdl, *p_mdl1, *p_mdl2; in bta_hl_find_avail_mdl_cfg_idx() local
1334 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_find_avail_mdl_cfg_idx()
1335 if (!p_mdl->active ) in bta_hl_find_avail_mdl_cfg_idx()
1421 tBTA_HL_MDL_CFG *p_mdl; in bta_hl_find_mdl_cfg_idx() local
1428 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_find_mdl_cfg_idx()
1429 if(p_mdl->active) in bta_hl_find_mdl_cfg_idx()
1431 p_mdl->mdl_id); in bta_hl_find_mdl_cfg_idx()
1432 if (p_mdl->active && in bta_hl_find_mdl_cfg_idx()
1433 (!memcmp (p_mcb->bd_addr, p_mdl->peer_bd_addr, BD_ADDR_LEN))&& in bta_hl_find_mdl_cfg_idx()
1434 (p_mdl->mdl_id == mdl_id)) in bta_hl_find_mdl_cfg_idx()
1467 tBTA_HL_MDL_CFG *p_mdl; in bta_hl_get_cur_time() local
1473 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_get_cur_time()
1474 if (p_mdl->active) in bta_hl_get_cur_time()
1477 time_latest = p_mdl->time; in bta_hl_get_cur_time()
1480 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, j); in bta_hl_get_cur_time()
1481 if (p_mdl->active) in bta_hl_get_cur_time()
1483 time = p_mdl->time; in bta_hl_get_cur_time()
1566 tBTA_HL_MDL_CFG *p_mdl; in bta_hl_compact_mdl_cfg_time() local
1573 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_compact_mdl_cfg_time()
1574 if (p_mdl->active ) in bta_hl_compact_mdl_cfg_time()
1594 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, s_arr[i]); in bta_hl_compact_mdl_cfg_time()
1595 p_mdl->time = time_min + i; in bta_hl_compact_mdl_cfg_time()
1596 bta_hl_co_save_mdl(mdep_id, s_arr[i], p_mdl); in bta_hl_compact_mdl_cfg_time()
1619 tBTA_HL_MDL_CFG *p_mdl; in bta_hl_is_mdl_exsit_in_mcl() local
1625 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_is_mdl_exsit_in_mcl()
1626 if (p_mdl->active && in bta_hl_is_mdl_exsit_in_mcl()
1627 !memcmp(p_mdl->peer_bd_addr, bd_addr,BD_ADDR_LEN)) in bta_hl_is_mdl_exsit_in_mcl()
1631 if (p_mdl->mdl_id == mdl_id) in bta_hl_is_mdl_exsit_in_mcl()
1661 tBTA_HL_MDL_CFG *p_mdl; in bta_hl_delete_mdl_cfg() local
1667 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_delete_mdl_cfg()
1668 if (p_mdl->active && in bta_hl_delete_mdl_cfg()
1669 !memcmp(p_mdl->peer_bd_addr, bd_addr,BD_ADDR_LEN)) in bta_hl_delete_mdl_cfg()
1673 if (p_mdl->mdl_id == mdl_id) in bta_hl_delete_mdl_cfg()
1675 bta_hl_co_delete_mdl(p_mdl->local_mdep_id, i); in bta_hl_delete_mdl_cfg()
1676 memset(p_mdl, 0, sizeof(tBTA_HL_MDL_CFG)); in bta_hl_delete_mdl_cfg()
1683 bta_hl_co_delete_mdl(p_mdl->local_mdep_id, i); in bta_hl_delete_mdl_cfg()
1684 memset(p_mdl, 0, sizeof(tBTA_HL_MDL_CFG)); in bta_hl_delete_mdl_cfg()