Lines Matching refs:p_dcb

246     tBTA_HL_MDL_CB      *p_dcb  = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);  in bta_hl_clean_mdl_cb()  local
251 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); in bta_hl_clean_mdl_cb()
252 osi_free_and_reset((void **)&p_dcb->p_rx_pkt); in bta_hl_clean_mdl_cb()
253 osi_free_and_reset((void **)&p_dcb->p_echo_tx_pkt); in bta_hl_clean_mdl_cb()
254 osi_free_and_reset((void **)&p_dcb->p_echo_rx_pkt); in bta_hl_clean_mdl_cb()
256 memset((void *)p_dcb, 0 , sizeof(tBTA_HL_MDL_CB)); in bta_hl_clean_mdl_cb()
338 tBTA_HL_MDL_CB *p_dcb; in bta_hl_get_service_uuids() local
346 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_get_service_uuids()
347 if (p_dcb->local_mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_get_service_uuids()
349 if (p_dcb->peer_mdep_role == BTA_HL_MDEP_ROLE_SINK) in bta_hl_get_service_uuids()
430 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_validate_cfg() local
441 switch (p_dcb->local_cfg) in bta_hl_validate_cfg()
452 if (p_dcb->local_cfg == cfg ) in bta_hl_validate_cfg()
1174 tBTA_HL_MDL_CB *p_dcb; in bta_hl_find_mdl_idx_using_handle() local
1190 p_dcb = BTA_HL_GET_MDL_CB_PTR(i,j,k); in bta_hl_find_mdl_idx_using_handle()
1191 if (p_dcb->in_use) in bta_hl_find_mdl_idx_using_handle()
1193 if (p_dcb->mdl_handle == mdl_handle) in bta_hl_find_mdl_idx_using_handle()
1266 tBTA_HL_MDL_CB *p_dcb; in bta_hl_find_non_active_mdl_cfg() local
1285 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, j, k); 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()
1836 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_validate_peer_cfg() local
1844 if (p_dcb->local_mdep_id == BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_validate_peer_cfg()
2481 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_save_mdl_cfg() local
2489 mdl_id = p_dcb->mdl_id; in bta_hl_save_mdl_cfg()
2501 bta_hl_get_l2cap_cfg(p_dcb->mdl_handle, &l2cap_cfg); in bta_hl_save_mdl_cfg()
2504 bta_hl_compact_mdl_cfg_time(app_idx,p_dcb->local_mdep_id); in bta_hl_save_mdl_cfg()
2509 mdl_cfg.mdl_id = p_dcb->mdl_id; in bta_hl_save_mdl_cfg()
2510 mdl_cfg.dch_mode = p_dcb->dch_mode; in bta_hl_save_mdl_cfg()
2515 mdl_cfg.local_mdep_id= p_dcb->local_mdep_id; in bta_hl_save_mdl_cfg()
2516 p_mdep_cfg = &p_acb->sup_feature.mdep[p_dcb->local_mdep_cfg_idx]; in bta_hl_save_mdl_cfg()
2525 if (p_dcb->mtu != l2cap_cfg.mtu) in bta_hl_save_mdl_cfg()
2528 p_dcb->mtu, l2cap_cfg.mtu); in bta_hl_save_mdl_cfg()
2551 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_set_dch_chan_cfg() local
2554 UINT8 local_mdep_cfg_idx = p_dcb->local_mdep_cfg_idx; in bta_hl_set_dch_chan_cfg()
2556 switch (p_dcb->dch_oper) in bta_hl_set_dch_chan_cfg()
2560 if (p_dcb->dch_mode == BTA_HL_DCH_MODE_STREAMING) in bta_hl_set_dch_chan_cfg()
2568 if (p_dcb->local_cfg == BTA_HL_DCH_CFG_STREAMING ) in bta_hl_set_dch_chan_cfg()
2572 APPL_TRACE_ERROR("Invalid dch oper=%d for set dch chan cfg", p_dcb->dch_oper); in bta_hl_set_dch_chan_cfg()
2575 p_dcb->chnl_cfg.fcr_opt.mode = l2cap_mode; in bta_hl_set_dch_chan_cfg()
2576 p_dcb->chnl_cfg.fcr_opt.mps = bta_hl_set_mps(p_dcb->max_rx_apdu_size); in bta_hl_set_dch_chan_cfg()
2577 p_dcb->chnl_cfg.fcr_opt.tx_win_sz = bta_hl_set_tx_win_size(p_dcb->max_rx_apdu_size, in bta_hl_set_dch_chan_cfg()
2578 p_dcb->chnl_cfg.fcr_opt.mps); in bta_hl_set_dch_chan_cfg()
2579 p_dcb->chnl_cfg.fcr_opt.max_transmit= BTA_HL_L2C_MAX_TRANSMIT; in bta_hl_set_dch_chan_cfg()
2580 p_dcb->chnl_cfg.fcr_opt.rtrans_tout = BTA_HL_L2C_RTRANS_TOUT; in bta_hl_set_dch_chan_cfg()
2581 p_dcb->chnl_cfg.fcr_opt.mon_tout = BTA_HL_L2C_MON_TOUT; in bta_hl_set_dch_chan_cfg()
2583 p_dcb->chnl_cfg.user_rx_buf_size = bta_hl_set_user_rx_buf_size(p_dcb->max_rx_apdu_size); in bta_hl_set_dch_chan_cfg()
2584 p_dcb->chnl_cfg.user_tx_buf_size = bta_hl_set_user_tx_buf_size(p_dcb->max_tx_apdu_size); in bta_hl_set_dch_chan_cfg()
2585 p_dcb->chnl_cfg.fcr_rx_buf_size = L2CAP_INVALID_ERM_BUF_SIZE; in bta_hl_set_dch_chan_cfg()
2586 p_dcb->chnl_cfg.fcr_tx_buf_size = L2CAP_INVALID_ERM_BUF_SIZE; in bta_hl_set_dch_chan_cfg()
2587 p_dcb->chnl_cfg.data_mtu = p_dcb->max_rx_apdu_size; in bta_hl_set_dch_chan_cfg()
2589 p_dcb->chnl_cfg.fcs = BTA_HL_MCA_NO_FCS; in bta_hl_set_dch_chan_cfg()
2595 p_dcb->chnl_cfg.fcs = BTA_HL_DEFAULT_SOURCE_FCS; in bta_hl_set_dch_chan_cfg()
2600 p_dcb->chnl_cfg.fcs = BTA_HL_MCA_USE_FCS; in bta_hl_set_dch_chan_cfg()
2605 APPL_TRACE_DEBUG("Use FCS =%s mtu=%d", ((p_dcb->chnl_cfg.fcs & 1)?"YES":"NO"), in bta_hl_set_dch_chan_cfg()
2606 p_dcb->chnl_cfg.data_mtu); in bta_hl_set_dch_chan_cfg()
2608 p_dcb->chnl_cfg.fcr_opt.tx_win_sz, in bta_hl_set_dch_chan_cfg()
2609 p_dcb->chnl_cfg.fcr_opt.max_transmit, in bta_hl_set_dch_chan_cfg()
2610 p_dcb->chnl_cfg.fcr_opt.rtrans_tout, in bta_hl_set_dch_chan_cfg()
2611 p_dcb->chnl_cfg.fcr_opt.mon_tout, in bta_hl_set_dch_chan_cfg()
2612 p_dcb->chnl_cfg.fcr_opt.mps); in bta_hl_set_dch_chan_cfg()
2615 p_dcb->chnl_cfg.user_rx_buf_size, in bta_hl_set_dch_chan_cfg()
2616 p_dcb->chnl_cfg.user_tx_buf_size, in bta_hl_set_dch_chan_cfg()
2617 p_dcb->chnl_cfg.fcr_rx_buf_size, in bta_hl_set_dch_chan_cfg()
2618 p_dcb->chnl_cfg.fcr_tx_buf_size); in bta_hl_set_dch_chan_cfg()
2714 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_validate_chan_cfg() local
2720 get_l2cap_result = bta_hl_get_l2cap_cfg(p_dcb->mdl_handle, &l2cap_cfg); in bta_hl_validate_chan_cfg()
2721 get_mdl_result = bta_hl_find_mdl_cfg_idx(app_idx, mcl_idx, p_dcb->mdl_id, &mdl_cfg_idx); in bta_hl_validate_chan_cfg()
2727 (p_acb->mdl_cfg[mdl_cfg_idx].dch_mode == p_dcb->dch_mode)) in bta_hl_validate_chan_cfg()
2736 if (p_dcb->mtu != l2cap_cfg.mtu) in bta_hl_validate_chan_cfg()
2739 p_dcb->mtu, l2cap_cfg.mtu); in bta_hl_validate_chan_cfg()
2745 …E_DEBUG("Cur. L2cap cfg mtu=%d fcs=%d dch_mode=%d", l2cap_cfg.mtu, l2cap_cfg.fcs, p_dcb->dch_mode); in bta_hl_validate_chan_cfg()
2768 tBTA_HL_MDL_CB *p_dcb; in bta_hl_is_cong_on() local
2778 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_is_cong_on()
2779 cong_status = p_dcb->cong; in bta_hl_is_cong_on()
2799 tBTA_HL_MDL_CB *p_dcb; in bta_hl_check_cch_close() local
2810 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_check_cch_close()
2815 if (!p_dcb->abort_oper) in bta_hl_check_cch_close()
2817 p_dcb->abort_oper |= BTA_HL_ABORT_CCH_CLOSE_MASK; in bta_hl_check_cch_close()