Lines Matching refs:p_dcb

426 static void btif_hl_clean_mdl_cb(btif_hl_mdl_cb_t *p_dcb)  in btif_hl_clean_mdl_cb()  argument
429 osi_free_and_reset((void **)&p_dcb->p_rx_pkt); in btif_hl_clean_mdl_cb()
430 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); in btif_hl_clean_mdl_cb()
431 memset(p_dcb, 0 , sizeof(btif_hl_mdl_cb_t)); in btif_hl_clean_mdl_cb()
958 btif_hl_mdl_cb_t *p_dcb; in btif_hl_find_mdl_idx_using_channel_id() local
970 p_dcb =BTIF_HL_GET_MDL_CB_PTR(i,j,k); in btif_hl_find_mdl_idx_using_channel_id()
973 p_dcb->in_use && in btif_hl_find_mdl_idx_using_channel_id()
974 (p_dcb->channel_id == channel_id)) in btif_hl_find_mdl_idx_using_channel_id()
1039 btif_hl_mdl_cb_t *p_dcb; in btif_hl_find_mdl_idx_using_handle() local
1054 p_dcb =BTIF_HL_GET_MDL_CB_PTR(i,j,k); in btif_hl_find_mdl_idx_using_handle()
1057 p_dcb->in_use && in btif_hl_find_mdl_idx_using_handle()
1058 (p_dcb->mdl_handle == mdl_handle)) in btif_hl_find_mdl_idx_using_handle()
1817 btif_hl_mdl_cb_t *p_dcb; in btif_hl_clean_mdls_using_app_idx() local
1832 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, j,x); in btif_hl_clean_mdls_using_app_idx()
1839 &bd_addr, p_dcb->local_mdep_cfg_idx, in btif_hl_clean_mdls_using_app_idx()
1840 p_dcb->channel_id, BTHL_CONN_STATE_DISCONNECTED, 0 ); in btif_hl_clean_mdls_using_app_idx()
1841 btif_hl_clean_mdl_cb(p_dcb); in btif_hl_clean_mdls_using_app_idx()
2126 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR( app_idx, mcl_idx, mdl_idx); in btif_hl_send_disconnecting_cb() local
2127 btif_hl_soc_cb_t *p_scb = p_dcb->p_scb; in btif_hl_send_disconnecting_cb()
2657 btif_hl_mdl_cb_t *p_dcb; in btif_hl_proc_dch_open_ind() local
2670 p_dcb = BTIF_HL_GET_MDL_CB_PTR(orig_app_idx, mcl_idx, mdl_idx); in btif_hl_proc_dch_open_ind()
2674 p_dcb->in_use = TRUE; in btif_hl_proc_dch_open_ind()
2675 p_dcb->mdl_handle = p_data->dch_open_ind.mdl_handle; in btif_hl_proc_dch_open_ind()
2676 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx; in btif_hl_proc_dch_open_ind()
2677 p_dcb->local_mdep_id = p_data->dch_open_ind.local_mdep_id; in btif_hl_proc_dch_open_ind()
2678 p_dcb->mdl_id = p_data->dch_open_ind.mdl_id; in btif_hl_proc_dch_open_ind()
2679 p_dcb->dch_mode = p_data->dch_open_ind.dch_mode; in btif_hl_proc_dch_open_ind()
2680 p_dcb->dch_mode = p_data->dch_open_ind.dch_mode; in btif_hl_proc_dch_open_ind()
2681 p_dcb->is_the_first_reliable = p_data->dch_open_ind.first_reliable; in btif_hl_proc_dch_open_ind()
2682 p_dcb->mtu = p_data->dch_open_ind.mtu; in btif_hl_proc_dch_open_ind()
2684 … if(btif_hl_find_channel_id_using_mdl_id(orig_app_idx,p_dcb->mdl_id , &p_dcb->channel_id)) in btif_hl_proc_dch_open_ind()
2687 orig_app_idx, mcl_idx, mdl_idx, p_dcb->channel_id ); in btif_hl_proc_dch_open_ind()
2696 BTIF_TRACE_ERROR("Unable find channel id for mdl_id=0x%x", p_dcb->mdl_id ); in btif_hl_proc_dch_open_ind()
2707 btif_hl_clean_mdl_cb(p_dcb); in btif_hl_proc_dch_open_ind()
2731 btif_hl_mdl_cb_t *p_dcb; in btif_hl_proc_dch_open_cfm() local
2748 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in btif_hl_proc_dch_open_cfm()
2752 p_dcb->in_use = TRUE; in btif_hl_proc_dch_open_cfm()
2753 p_dcb->mdl_handle = p_data->dch_open_cfm.mdl_handle; in btif_hl_proc_dch_open_cfm()
2754 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx; in btif_hl_proc_dch_open_cfm()
2755 p_dcb->local_mdep_id = p_data->dch_open_cfm.local_mdep_id; in btif_hl_proc_dch_open_cfm()
2756 p_dcb->mdl_id = p_data->dch_open_cfm.mdl_id; in btif_hl_proc_dch_open_cfm()
2757 p_dcb->dch_mode = p_data->dch_open_cfm.dch_mode; in btif_hl_proc_dch_open_cfm()
2758 p_dcb->is_the_first_reliable= p_data->dch_open_cfm.first_reliable; in btif_hl_proc_dch_open_cfm()
2759 p_dcb->mtu = p_data->dch_open_cfm.mtu; in btif_hl_proc_dch_open_cfm()
2760 p_dcb->channel_id = p_pcb->channel_id; in btif_hl_proc_dch_open_cfm()
2768 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id); in btif_hl_proc_dch_open_cfm()
2785 btif_hl_clean_mdl_cb(p_dcb); in btif_hl_proc_dch_open_cfm()
2804 btif_hl_mdl_cb_t *p_dcb; in btif_hl_proc_dch_reconnect_cfm() local
2820 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in btif_hl_proc_dch_reconnect_cfm()
2824 p_dcb->in_use = TRUE; in btif_hl_proc_dch_reconnect_cfm()
2825 p_dcb->mdl_handle = p_data->dch_reconnect_cfm.mdl_handle; in btif_hl_proc_dch_reconnect_cfm()
2826 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx; in btif_hl_proc_dch_reconnect_cfm()
2827 p_dcb->local_mdep_id = p_data->dch_reconnect_cfm.local_mdep_id; in btif_hl_proc_dch_reconnect_cfm()
2828 p_dcb->mdl_id = p_data->dch_reconnect_cfm.mdl_id; in btif_hl_proc_dch_reconnect_cfm()
2829 p_dcb->dch_mode = p_data->dch_reconnect_cfm.dch_mode; in btif_hl_proc_dch_reconnect_cfm()
2830 p_dcb->is_the_first_reliable= p_data->dch_reconnect_cfm.first_reliable; in btif_hl_proc_dch_reconnect_cfm()
2831 p_dcb->mtu = p_data->dch_reconnect_cfm.mtu; in btif_hl_proc_dch_reconnect_cfm()
2832 p_dcb->channel_id = p_pcb->channel_id; in btif_hl_proc_dch_reconnect_cfm()
2840 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id); in btif_hl_proc_dch_reconnect_cfm()
2857 btif_hl_clean_mdl_cb(p_dcb); in btif_hl_proc_dch_reconnect_cfm()
2879 btif_hl_mdl_cb_t *p_dcb; in btif_hl_proc_dch_reconnect_ind() local
2896 p_dcb =BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in btif_hl_proc_dch_reconnect_ind()
2900 p_dcb->in_use = TRUE; in btif_hl_proc_dch_reconnect_ind()
2901 p_dcb->mdl_handle = p_data->dch_reconnect_ind.mdl_handle; in btif_hl_proc_dch_reconnect_ind()
2902 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx; in btif_hl_proc_dch_reconnect_ind()
2903 p_dcb->local_mdep_id = p_data->dch_reconnect_ind.local_mdep_id; in btif_hl_proc_dch_reconnect_ind()
2904 p_dcb->mdl_id = p_data->dch_reconnect_ind.mdl_id; in btif_hl_proc_dch_reconnect_ind()
2905 p_dcb->dch_mode = p_data->dch_reconnect_ind.dch_mode; in btif_hl_proc_dch_reconnect_ind()
2906 p_dcb->dch_mode = p_data->dch_reconnect_ind.dch_mode; in btif_hl_proc_dch_reconnect_ind()
2907 p_dcb->is_the_first_reliable= p_data->dch_reconnect_ind.first_reliable; in btif_hl_proc_dch_reconnect_ind()
2908 p_dcb->mtu = p_data->dch_reconnect_ind.mtu; in btif_hl_proc_dch_reconnect_ind()
2909 p_dcb->channel_id = btif_hl_get_next_channel_id(p_acb->app_id); in btif_hl_proc_dch_reconnect_ind()
2912 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id ); in btif_hl_proc_dch_reconnect_ind()
2926 btif_hl_clean_mdl_cb(p_dcb); in btif_hl_proc_dch_reconnect_ind()
2951 btif_hl_mdl_cb_t *p_dcb; in btif_hl_proc_dch_close_ind() local
2959 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in btif_hl_proc_dch_close_ind()
2963 btif_hl_clean_mdl_cb(p_dcb); in btif_hl_proc_dch_close_ind()
2982 btif_hl_mdl_cb_t *p_dcb; in btif_hl_proc_dch_close_cfm() local
2990 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in btif_hl_proc_dch_close_cfm()
2992 btif_hl_clean_mdl_cb(p_dcb); in btif_hl_proc_dch_close_cfm()
3078 btif_hl_mdl_cb_t *p_dcb; in btif_hl_proc_send_data_cfm() local
3085 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in btif_hl_proc_send_data_cfm()
3086 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); in btif_hl_proc_send_data_cfm()
3088 p_dcb->tx_size); in btif_hl_proc_send_data_cfm()
3089 p_dcb->tx_size = 0; in btif_hl_proc_send_data_cfm()
3105 btif_hl_mdl_cb_t *p_dcb; in btif_hl_proc_dch_cong_ind() local
3112 p_dcb =BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in btif_hl_proc_dch_cong_ind()
3113 p_dcb->cong = p_data->dch_cong_ind.cong; in btif_hl_proc_dch_cong_ind()
4414 btif_hl_mdl_cb_t *p_dcb; in btif_hl_release_mcl_sockets() local
4419 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, i); in btif_hl_release_mcl_sockets()
4420 if (p_dcb && p_dcb->in_use && p_dcb->p_scb) in btif_hl_release_mcl_sockets()
4423 btif_hl_set_socket_state (p_dcb->p_scb, BTIF_HL_SOC_STATE_W4_REL); in btif_hl_release_mcl_sockets()
4424 p_dcb->p_scb = NULL; in btif_hl_release_mcl_sockets()
4442 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in btif_hl_release_socket() local
4447 if (p_dcb && p_dcb->p_scb) in btif_hl_release_socket()
4449 p_scb = p_dcb->p_scb; in btif_hl_release_socket()
4451 p_dcb->p_scb = NULL; in btif_hl_release_socket()
4466 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in btif_hl_create_socket() local
4471 if (p_dcb) { in btif_hl_create_socket()
4476 p_dcb->p_scb = p_scb; in btif_hl_create_socket()
4480 p_scb->channel_id = p_dcb->channel_id; in btif_hl_create_socket()
4481 p_scb->mdep_cfg_idx = p_dcb->local_mdep_cfg_idx; in btif_hl_create_socket()
4506 btif_hl_mdl_cb_t *p_dcb = NULL; in btif_hl_add_socket_to_set() local
4526 p_dcb = BTIF_HL_GET_MDL_CB_PTR(p_scb->app_idx, p_scb->mcl_idx, p_scb->mdl_idx); in btif_hl_add_socket_to_set()
4528 if (p_mcb && p_dcb) { in btif_hl_add_socket_to_set()
4532 evt_param.chan_cb.channel_id = p_dcb->channel_id; in btif_hl_add_socket_to_set()
4534 evt_param.chan_cb.mdep_cfg_index = (int ) p_dcb->local_mdep_cfg_idx; in btif_hl_add_socket_to_set()
4593 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(p_scb->app_idx, in btif_hl_close_socket() local
4596 p_scb->app_idx, p_scb->mcl_idx, p_scb->mdl_idx, p_dcb->in_use); in btif_hl_close_socket()
4599 p_dcb->p_scb = NULL; in btif_hl_close_socket()
4649 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(p_scb->app_idx, in btif_hl_select_monitor_callback() local
4651 assert(p_dcb != NULL); in btif_hl_select_monitor_callback()
4652 if (p_dcb->p_tx_pkt) { in btif_hl_select_monitor_callback()
4654 " sent tx_size=%d", p_dcb->tx_size); in btif_hl_select_monitor_callback()
4655 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); in btif_hl_select_monitor_callback()
4657 p_dcb->p_tx_pkt = osi_malloc(p_dcb->mtu); in btif_hl_select_monitor_callback()
4659 OSI_NO_INTR(r = recv(p_scb->socket_id[1], p_dcb->p_tx_pkt, in btif_hl_select_monitor_callback()
4660 p_dcb->mtu, MSG_DONTWAIT)); in btif_hl_select_monitor_callback()
4663 p_dcb->tx_size = r; in btif_hl_select_monitor_callback()
4664 … BTIF_TRACE_DEBUG("btif_hl_select_monitor_callback send data tx_size=%d", p_dcb->tx_size ); in btif_hl_select_monitor_callback()
4665 BTA_HlSendData(p_dcb->mdl_handle, p_dcb->tx_size); in btif_hl_select_monitor_callback()
4668 BTA_HlDchClose(p_dcb->mdl_handle); in btif_hl_select_monitor_callback()