Lines Matching refs:p_dcb
276 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
281 utl_freebuf((void **) &p_dcb->p_tx_pkt);
282 utl_freebuf((void **) &p_dcb->p_rx_pkt);
283 utl_freebuf((void **) &p_dcb->p_echo_tx_pkt);
284 utl_freebuf((void **) &p_dcb->p_echo_rx_pkt);
286 memset((void *)p_dcb, 0 , sizeof(tBTA_HL_MDL_CB));
376 tBTA_HL_MDL_CB *p_dcb;
384 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
385 if (p_dcb->local_mdep_id != BTA_HL_ECHO_TEST_MDEP_ID)
387 if (p_dcb->peer_mdep_role == BTA_HL_MDEP_ROLE_SINK)
468 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
479 switch (p_dcb->local_cfg)
490 if (p_dcb->local_cfg == cfg )
1215 tBTA_HL_MDL_CB *p_dcb;
1231 p_dcb = BTA_HL_GET_MDL_CB_PTR(i,j,k);
1232 if (p_dcb->in_use)
1234 if (p_dcb->mdl_handle == mdl_handle)
1307 tBTA_HL_MDL_CB *p_dcb;
1326 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, j, k);
1328 if (p_dcb->in_use && p_mdl->mdl_id == p_dcb->mdl_id)
1880 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
1888 if (p_dcb->local_mdep_id == BTA_HL_ECHO_TEST_MDEP_ID)
2525 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
2533 mdl_id = p_dcb->mdl_id;
2545 bta_hl_get_l2cap_cfg(p_dcb->mdl_handle, &l2cap_cfg);
2548 bta_hl_compact_mdl_cfg_time(app_idx,p_dcb->local_mdep_id);
2553 mdl_cfg.mdl_id = p_dcb->mdl_id;
2554 mdl_cfg.dch_mode = p_dcb->dch_mode;
2559 mdl_cfg.local_mdep_id= p_dcb->local_mdep_id;
2560 p_mdep_cfg = &p_acb->sup_feature.mdep[p_dcb->local_mdep_cfg_idx];
2569 if (p_dcb->mtu != l2cap_cfg.mtu)
2572 p_dcb->mtu, l2cap_cfg.mtu);
2595 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
2598 UINT8 local_mdep_cfg_idx = p_dcb->local_mdep_cfg_idx;
2600 switch (p_dcb->dch_oper)
2604 if (p_dcb->dch_mode == BTA_HL_DCH_MODE_STREAMING)
2612 if (p_dcb->local_cfg == BTA_HL_DCH_CFG_STREAMING )
2616 APPL_TRACE_ERROR("Invalid dch oper=%d for set dch chan cfg", p_dcb->dch_oper);
2619 p_dcb->chnl_cfg.fcr_opt.mode = l2cap_mode;
2620 p_dcb->chnl_cfg.fcr_opt.mps = bta_hl_set_mps(p_dcb->max_rx_apdu_size);
2621 p_dcb->chnl_cfg.fcr_opt.tx_win_sz = bta_hl_set_tx_win_size(p_dcb->max_rx_apdu_size,
2622 p_dcb->chnl_cfg.fcr_opt.mps);
2623 p_dcb->chnl_cfg.fcr_opt.max_transmit= BTA_HL_L2C_MAX_TRANSMIT;
2624 p_dcb->chnl_cfg.fcr_opt.rtrans_tout = BTA_HL_L2C_RTRANS_TOUT;
2625 p_dcb->chnl_cfg.fcr_opt.mon_tout = BTA_HL_L2C_MON_TOUT;
2627 p_dcb->chnl_cfg.user_rx_pool_id = bta_hl_set_user_rx_pool_id(p_dcb->max_rx_apdu_size);
2628 p_dcb->chnl_cfg.user_tx_pool_id = bta_hl_set_user_tx_pool_id(p_dcb->max_tx_apdu_size);
2629 p_dcb->chnl_cfg.fcr_rx_pool_id = BTA_HL_L2C_FCR_RX_POOL_ID;
2630 p_dcb->chnl_cfg.fcr_tx_pool_id = BTA_HL_L2C_FCR_TX_POOL_ID;
2631 p_dcb->chnl_cfg.data_mtu = p_dcb->max_rx_apdu_size;
2633 p_dcb->chnl_cfg.fcs = BTA_HL_MCA_NO_FCS;
2639 p_dcb->chnl_cfg.fcs = BTA_HL_DEFAULT_SOURCE_FCS;
2644 p_dcb->chnl_cfg.fcs = BTA_HL_MCA_USE_FCS;
2649 APPL_TRACE_DEBUG("Use FCS =%s mtu=%d", ((p_dcb->chnl_cfg.fcs & 1)?"YES":"NO"),
2650 p_dcb->chnl_cfg.data_mtu);
2652 p_dcb->chnl_cfg.fcr_opt.tx_win_sz,
2653 p_dcb->chnl_cfg.fcr_opt.max_transmit,
2654 p_dcb->chnl_cfg.fcr_opt.rtrans_tout,
2655 p_dcb->chnl_cfg.fcr_opt.mon_tout,
2656 p_dcb->chnl_cfg.fcr_opt.mps);
2659 p_dcb->chnl_cfg.user_rx_pool_id,
2660 p_dcb->chnl_cfg.user_tx_pool_id,
2661 p_dcb->chnl_cfg.fcr_rx_pool_id,
2662 p_dcb->chnl_cfg.fcr_tx_pool_id);
2758 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
2764 get_l2cap_result = bta_hl_get_l2cap_cfg(p_dcb->mdl_handle, &l2cap_cfg);
2765 get_mdl_result = bta_hl_find_mdl_cfg_idx(app_idx, mcl_idx, p_dcb->mdl_id, &mdl_cfg_idx);
2771 (p_acb->mdl_cfg[mdl_cfg_idx].dch_mode == p_dcb->dch_mode))
2780 if (p_dcb->mtu != l2cap_cfg.mtu)
2783 p_dcb->mtu, l2cap_cfg.mtu);
2789 APPL_TRACE_DEBUG("Cur. L2cap cfg mtu=%d fcs=%d dch_mode=%d", l2cap_cfg.mtu, l2cap_cfg.fcs, p_dcb->dch_mode);
2812 tBTA_HL_MDL_CB *p_dcb;
2822 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
2823 cong_status = p_dcb->cong;
2843 tBTA_HL_MDL_CB *p_dcb;
2854 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
2859 if (!p_dcb->abort_oper)
2861 p_dcb->abort_oper |= BTA_HL_ABORT_CCH_CLOSE_MASK;