Lines Matching refs:p_dcb
512 static void btif_hl_clean_mdl_cb(btif_hl_mdl_cb_t *p_dcb)
515 btif_hl_free_buf((void **) &p_dcb->p_rx_pkt);
516 btif_hl_free_buf((void **) &p_dcb->p_tx_pkt);
517 memset(p_dcb, 0 , sizeof(btif_hl_mdl_cb_t));
1047 btif_hl_mdl_cb_t *p_dcb;
1059 p_dcb =BTIF_HL_GET_MDL_CB_PTR(i,j,k);
1062 p_dcb->in_use &&
1063 (p_dcb->channel_id == channel_id))
1129 btif_hl_mdl_cb_t *p_dcb;
1144 p_dcb =BTIF_HL_GET_MDL_CB_PTR(i,j,k);
1147 p_dcb->in_use &&
1148 (p_dcb->mdl_handle == mdl_handle))
1919 btif_hl_mdl_cb_t *p_dcb;
1934 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, j,x);
1941 &bd_addr, p_dcb->local_mdep_cfg_idx,
1942 p_dcb->channel_id, BTHL_CONN_STATE_DISCONNECTED, 0 );
1943 btif_hl_clean_mdl_cb(p_dcb);
2230 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR( app_idx, mcl_idx, mdl_idx);
2231 btif_hl_soc_cb_t *p_scb = p_dcb->p_scb;
2770 btif_hl_mdl_cb_t *p_dcb;
2787 p_dcb = BTIF_HL_GET_MDL_CB_PTR(orig_app_idx, mcl_idx, mdl_idx);
2791 p_dcb->in_use = TRUE;
2792 p_dcb->mdl_handle = p_data->dch_open_ind.mdl_handle;
2793 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx;
2794 p_dcb->local_mdep_id = p_data->dch_open_ind.local_mdep_id;
2795 p_dcb->mdl_id = p_data->dch_open_ind.mdl_id;
2796 p_dcb->dch_mode = p_data->dch_open_ind.dch_mode;
2797 p_dcb->dch_mode = p_data->dch_open_ind.dch_mode;
2798 p_dcb->is_the_first_reliable = p_data->dch_open_ind.first_reliable;
2799 p_dcb->mtu = p_data->dch_open_ind.mtu;
2801 if(btif_hl_find_channel_id_using_mdl_id(orig_app_idx,p_dcb->mdl_id , &p_dcb->channel_id))
2804 orig_app_idx, mcl_idx, mdl_idx, p_dcb->channel_id );
2813 BTIF_TRACE_ERROR("Unable find channel id for mdl_id=0x%x", p_dcb->mdl_id );
2824 btif_hl_clean_mdl_cb(p_dcb);
2850 btif_hl_mdl_cb_t *p_dcb;
2869 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
2873 p_dcb->in_use = TRUE;
2874 p_dcb->mdl_handle = p_data->dch_open_cfm.mdl_handle;
2875 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx;
2876 p_dcb->local_mdep_id = p_data->dch_open_cfm.local_mdep_id;
2877 p_dcb->mdl_id = p_data->dch_open_cfm.mdl_id;
2878 p_dcb->dch_mode = p_data->dch_open_cfm.dch_mode;
2879 p_dcb->is_the_first_reliable= p_data->dch_open_cfm.first_reliable;
2880 p_dcb->mtu = p_data->dch_open_cfm.mtu;
2881 p_dcb->channel_id = p_pcb->channel_id;
2888 BTIF_TRACE_DEBUG("app_idx=%d mcl_idx=%d mdl_idx=%d p_dcb->channel_id=0x%08x",
2889 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id);
2906 btif_hl_clean_mdl_cb(p_dcb);
2927 btif_hl_mdl_cb_t *p_dcb;
2945 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
2949 p_dcb->in_use = TRUE;
2950 p_dcb->mdl_handle = p_data->dch_reconnect_cfm.mdl_handle;
2951 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx;
2952 p_dcb->local_mdep_id = p_data->dch_reconnect_cfm.local_mdep_id;
2953 p_dcb->mdl_id = p_data->dch_reconnect_cfm.mdl_id;
2954 p_dcb->dch_mode = p_data->dch_reconnect_cfm.dch_mode;
2955 p_dcb->is_the_first_reliable= p_data->dch_reconnect_cfm.first_reliable;
2956 p_dcb->mtu = p_data->dch_reconnect_cfm.mtu;
2957 p_dcb->channel_id = p_pcb->channel_id;
2964 BTIF_TRACE_DEBUG("app_idx=%d mcl_idx=%d mdl_idx=%d p_dcb->channel_id=0x%08x",
2965 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id);
2982 btif_hl_clean_mdl_cb(p_dcb);
3005 btif_hl_mdl_cb_t *p_dcb;
3023 p_dcb =BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
3027 p_dcb->in_use = TRUE;
3028 p_dcb->mdl_handle = p_data->dch_reconnect_ind.mdl_handle;
3029 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx;
3030 p_dcb->local_mdep_id = p_data->dch_reconnect_ind.local_mdep_id;
3031 p_dcb->mdl_id = p_data->dch_reconnect_ind.mdl_id;
3032 p_dcb->dch_mode = p_data->dch_reconnect_ind.dch_mode;
3033 p_dcb->dch_mode = p_data->dch_reconnect_ind.dch_mode;
3034 p_dcb->is_the_first_reliable= p_data->dch_reconnect_ind.first_reliable;
3035 p_dcb->mtu = p_data->dch_reconnect_ind.mtu;
3036 p_dcb->channel_id = btif_hl_get_next_channel_id(p_acb->app_id);
3039 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id );
3053 btif_hl_clean_mdl_cb(p_dcb);
3078 btif_hl_mdl_cb_t *p_dcb;
3086 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
3090 btif_hl_clean_mdl_cb(p_dcb);
3109 btif_hl_mdl_cb_t *p_dcb;
3117 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
3119 btif_hl_clean_mdl_cb(p_dcb);
3209 btif_hl_mdl_cb_t *p_dcb;
3216 p_dcb =BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
3217 btif_hl_free_buf((void **) &p_dcb->p_tx_pkt);
3218 BTIF_TRACE_DEBUG("send success free p_tx_pkt tx_size=%d", p_dcb->tx_size);
3219 p_dcb->tx_size = 0;
3235 btif_hl_mdl_cb_t *p_dcb;
3243 p_dcb =BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
3244 p_dcb->cong = p_data->dch_cong_ind.cong;
4082 btif_hl_mdl_cb_t *p_dcb;
4580 btif_hl_mdl_cb_t *p_dcb;
4585 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, i);
4586 if (p_dcb && p_dcb->in_use && p_dcb->p_scb)
4589 btif_hl_set_socket_state (p_dcb->p_scb, BTIF_HL_SOC_STATE_W4_REL);
4590 p_dcb->p_scb = NULL;
4608 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
4613 if (p_dcb && p_dcb->p_scb)
4615 p_scb = p_dcb->p_scb;
4617 p_dcb->p_scb = NULL;
4632 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);
4639 if (p_dcb && ((p_scb = (btif_hl_soc_cb_t *)GKI_getbuf((UINT16)sizeof(btif_hl_soc_cb_t)))!=NULL))
4644 p_dcb->p_scb = p_scb;
4648 p_scb->channel_id = p_dcb->channel_id;
4649 p_scb->mdep_cfg_idx = p_dcb->local_mdep_cfg_idx;
4678 btif_hl_mdl_cb_t *p_dcb = NULL;
4699 p_dcb = BTIF_HL_GET_MDL_CB_PTR(p_scb->app_idx, p_scb->mcl_idx, p_scb->mdl_idx);
4701 if (p_mcb && p_dcb)
4706 evt_param.chan_cb.channel_id = p_dcb->channel_id;
4708 evt_param.chan_cb.mdep_cfg_index = (int ) p_dcb->local_mdep_cfg_idx;
4735 btif_hl_mdl_cb_t *p_dcb = NULL ;
4782 p_dcb = BTIF_HL_GET_MDL_CB_PTR(p_scb->app_idx, p_scb->mcl_idx, p_scb->mdl_idx);
4783 BTIF_TRACE_DEBUG("idle socket app_idx=%d mcl_id=%d, mdl_idx=%d p_dcb->in_use=%d",
4784 p_scb->app_idx, p_scb->mcl_idx, p_scb->mdl_idx, p_dcb->in_use);
4787 p_dcb->p_scb = NULL;
4839 btif_hl_mdl_cb_t *p_dcb = NULL;
4857 p_dcb = BTIF_HL_GET_MDL_CB_PTR(p_scb->app_idx, p_scb->mcl_idx, p_scb->mdl_idx);
4858 if (p_dcb->p_tx_pkt)
4860 BTIF_TRACE_ERROR("Rcv new pkt but the last pkt is still not been sent tx_size=%d", p_dcb->tx_size);
4861 btif_hl_free_buf((void **) &p_dcb->p_tx_pkt);
4863 p_dcb->p_tx_pkt = btif_hl_get_buf (p_dcb->mtu);
4864 if (p_dcb )
4868 // r = recv(p_scb->socket_id[1], p_dcb->p_tx_pkt, p_dcb->mtu , MSG_DONTWAIT));
4871 if ((r = (int)recv(p_scb->socket_id[1], p_dcb->p_tx_pkt, p_dcb->mtu , MSG_DONTWAIT)) > 0)
4874 p_dcb->tx_size = r;
4875 BTIF_TRACE_DEBUG("btif_hl_select_monitor_callback send data tx_size=%d", p_dcb->tx_size );
4876 BTA_HlSendData(p_dcb->mdl_handle, p_dcb->tx_size );
4882 BTA_HlDchClose(p_dcb->mdl_handle );