Lines Matching refs:channel_id
182 BOOLEAN btif_hl_if_channel_setup_pending(int channel_id, UINT8 *p_app_idx, UINT8 *p_mcl_idx)
197 p_mcb->is_connected && p_mcb->pcb.channel_id == channel_id )
209 BTIF_TRACE_DEBUG5("%s found=%d channel_id=0x%08x",
210 __FUNCTION__, found, channel_id, *p_app_idx, *p_mcl_idx);
759 btif_hl_pend_dch_op_t op, int *channel_id){
785 *channel_id =
786 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id);
895 btif_hl_pend_dch_op_t op, int *channel_id){
940 *channel_id =
941 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id);
945 p_pcb->channel_id = p_acb->delete_mdl.channel_id;
971 if (channel_id)
973 BTIF_TRACE_DEBUG2("status=%d channel_id=0x%08x", status, *channel_id);
992 BOOLEAN btif_hl_find_mdl_cfg_idx_using_channel_id(int channel_id,
1010 (mdl_cfg_channel_id == channel_id))
1020 BTIF_TRACE_EVENT5("%s found=%d channel_id=0x%08x, app_idx=%d mdl_cfg_idx=%d ",
1021 __FUNCTION__,found,channel_id, i,j );
1033 BOOLEAN btif_hl_find_mdl_idx_using_channel_id(int channel_id,
1054 (p_dcb->channel_id == channel_id))
1100 BTIF_TRACE_EVENT6("%s found=%d channel_id=0x%08x, mdl_id=0x%x app_idx=%d mdl_cfg_idx=%d ",
1650 int channel_id;
1652 channel_id = (app_id << 16) + next_channel_id;
1653 BTIF_TRACE_DEBUG4("%s channel_id=0x%08x, app_id=0x%02x next_channel_id=0x%04x", __FUNCTION__,
1654 channel_id, app_id, next_channel_id);
1655 return channel_id;
1667 static UINT8 btif_hl_get_app_id(int channel_id){
1668 UINT8 app_id =(UINT8) (channel_id >> 16);
1669 BTIF_TRACE_DEBUG3("%s channel_id=0x%08x, app_id=0x%02x ", __FUNCTION__,channel_id, app_id);
1971 p_dcb->channel_id
2258 int app_id = (int) btif_hl_get_app_id(p_acb->delete_mdl.channel_id);
2262 BTIF_TRACE_DEBUG4("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d, state=%d fd=%d",p_acb->delete_mdl.channel_id,
2268 p_acb->delete_mdl.channel_id, BTHL_CONN_STATE_DESTROYED, 0 );
2283 int app_id = (int) btif_hl_get_app_id(p_scb->channel_id);
2288 BTIF_TRACE_DEBUG4("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d, state=%d fd=%d",p_scb->channel_id,
2293 p_scb->channel_id, BTHL_CONN_STATE_DISCONNECTING, p_scb->socket_id[0] );
2307 int app_id = (int) btif_hl_get_app_id(p_pcb->channel_id);
2314 BTIF_TRACE_DEBUG4("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id,
2320 p_pcb->channel_id, BTHL_CONN_STATE_CONNECTING, 0 );
2336 int app_id = (int) btif_hl_get_app_id(p_pcb->channel_id);
2346 BTIF_TRACE_DEBUG4("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id,
2351 p_pcb->channel_id, BTHL_CONN_STATE_CONNECTING, 0 );
2353 BTIF_TRACE_DEBUG4("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id,
2358 p_pcb->channel_id, BTHL_CONN_STATE_DISCONNECTED, 0 );
2362 BTIF_TRACE_DEBUG4("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id,
2367 p_pcb->channel_id, BTHL_CONN_STATE_DISCONNECTED, 0 );
2852 if(btif_hl_find_channel_id_using_mdl_id(orig_app_idx,p_dcb->mdl_id , &p_dcb->channel_id))
2854 BTIF_TRACE_DEBUG4(" app_idx=%d mcl_idx=%d mdl_idx=%d channel_id=%d",
2855 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id );
2932 p_dcb->channel_id = p_pcb->channel_id;
2939 BTIF_TRACE_DEBUG4("app_idx=%d mcl_idx=%d mdl_idx=%d p_dcb->channel_id=0x%08x",
2940 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id);
3008 p_dcb->channel_id = p_pcb->channel_id;
3015 BTIF_TRACE_DEBUG4("app_idx=%d mcl_idx=%d mdl_idx=%d p_dcb->channel_id=0x%08x",
3016 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id);
3087 p_dcb->channel_id = btif_hl_get_next_channel_id(p_acb->app_id);
3089 BTIF_TRACE_DEBUG4(" app_idx=%d mcl_idx=%d mdl_idx=%d channel_id=%d",
3090 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id );
3365 p_data->chan_cb.channel_id,
3371 p_data->chan_cb.channel_id, state, p_data->chan_cb.fd );
4023 static bt_status_t connect_channel(int app_id, bt_bdaddr_t *bd_addr, int mdep_cfg_index, int *channel_id){
4067 mdep_cfg_index, BTIF_HL_PEND_DCH_OP_OPEN, channel_id ))
4101 channel_id))
4112 BTIF_TRACE_DEBUG3("%s status=%d channel_id=0x%08x", __FUNCTION__, status, *channel_id);
4125 static bt_status_t destroy_channel(int channel_id){
4134 BTIF_TRACE_EVENT2("%s channel_id=0x%08x", __FUNCTION__, channel_id);
4138 if (btif_hl_if_channel_setup_pending(channel_id, &app_idx, &mcl_idx))
4144 if (btif_hl_find_mdl_cfg_idx_using_channel_id(channel_id, &app_idx, &mdl_cfg_idx))
4145 // if(btif_hl_find_mdl_idx_using_channel_id(channel_id, &app_idx,&mcl_idx, &mdl_idx))
4153 p_acb->delete_mdl.channel_id = channel_id;
4410 *p_channel_id = p_mcb->pcb.channel_id;
4735 p_scb->channel_id = p_dcb->channel_id;
4793 evt_param.chan_cb.channel_id = p_dcb->channel_id;
4846 evt_param.chan_cb.app_id = (int) btif_hl_get_app_id(p_scb->channel_id);
4848 evt_param.chan_cb.channel_id = p_scb->channel_id;