Lines Matching defs:channel_id

199 BOOLEAN btif_hl_if_channel_setup_pending(int channel_id, UINT8 *p_app_idx, UINT8 *p_mcl_idx)
217 p_mcb->is_connected && p_mcb->pcb.channel_id == channel_id )
229 BTIF_TRACE_DEBUG("%s found=%d channel_id=0x%08x",
230 __FUNCTION__, found, channel_id, *p_app_idx, *p_mcl_idx);
778 btif_hl_pend_dch_op_t op, int *channel_id){
804 *channel_id =
805 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id);
914 btif_hl_pend_dch_op_t op, int *channel_id){
959 *channel_id =
960 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id);
964 p_pcb->channel_id = p_acb->delete_mdl.channel_id;
990 if (channel_id)
992 BTIF_TRACE_DEBUG("status=%d channel_id=0x%08x", status, *channel_id);
1011 BOOLEAN btif_hl_find_mdl_cfg_idx_using_channel_id(int channel_id,
1031 (mdl_cfg_channel_id == channel_id))
1041 BTIF_TRACE_EVENT("%s found=%d channel_id=0x%08x, app_idx=%d mdl_cfg_idx=%d ",
1042 __FUNCTION__,found,channel_id, i,j );
1054 BOOLEAN btif_hl_find_mdl_idx_using_channel_id(int channel_id,
1075 (p_dcb->channel_id == channel_id))
1121 BTIF_TRACE_EVENT("%s found=%d channel_id=0x%08x, mdl_id=0x%x app_idx=%d mdl_cfg_idx=%d ",
1629 int channel_id;
1631 channel_id = (app_id << 16) + next_channel_id;
1632 BTIF_TRACE_DEBUG("%s channel_id=0x%08x, app_id=0x%02x next_channel_id=0x%04x", __FUNCTION__,
1633 channel_id, app_id, next_channel_id);
1634 return channel_id;
1646 static UINT8 btif_hl_get_app_id(int channel_id){
1647 UINT8 app_id =(UINT8) (channel_id >> 16);
1648 BTIF_TRACE_DEBUG("%s channel_id=0x%08x, app_id=0x%02x ", __FUNCTION__,channel_id, app_id);
1951 p_dcb->channel_id, BTHL_CONN_STATE_DISCONNECTED, 0 );
2215 int app_id = (int) btif_hl_get_app_id(p_acb->delete_mdl.channel_id);
2219 BTIF_TRACE_DEBUG("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d, state=%d fd=%d",p_acb->delete_mdl.channel_id,
2225 p_acb->delete_mdl.channel_id, BTHL_CONN_STATE_DESTROYED, 0 );
2240 int app_id = (int) btif_hl_get_app_id(p_scb->channel_id);
2245 BTIF_TRACE_DEBUG("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d, state=%d fd=%d",p_scb->channel_id,
2250 p_scb->channel_id, BTHL_CONN_STATE_DISCONNECTING, p_scb->socket_id[0] );
2264 int app_id = (int) btif_hl_get_app_id(p_pcb->channel_id);
2271 BTIF_TRACE_DEBUG("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id,
2277 p_pcb->channel_id, BTHL_CONN_STATE_CONNECTING, 0 );
2293 int app_id = (int) btif_hl_get_app_id(p_pcb->channel_id);
2303 BTIF_TRACE_DEBUG("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id,
2308 p_pcb->channel_id, BTHL_CONN_STATE_CONNECTING, 0 );
2310 BTIF_TRACE_DEBUG("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id,
2315 p_pcb->channel_id, BTHL_CONN_STATE_DISCONNECTED, 0 );
2319 BTIF_TRACE_DEBUG("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id,
2324 p_pcb->channel_id, BTHL_CONN_STATE_DISCONNECTED, 0 );
2801 if(btif_hl_find_channel_id_using_mdl_id(orig_app_idx,p_dcb->mdl_id , &p_dcb->channel_id))
2803 BTIF_TRACE_DEBUG(" app_idx=%d mcl_idx=%d mdl_idx=%d channel_id=%d",
2804 orig_app_idx, mcl_idx, mdl_idx, p_dcb->channel_id );
2879 p_dcb->channel_id = p_pcb->channel_id;
2886 BTIF_TRACE_DEBUG("app_idx=%d mcl_idx=%d mdl_idx=%d p_dcb->channel_id=0x%08x",
2887 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id);
2953 p_dcb->channel_id = p_pcb->channel_id;
2960 BTIF_TRACE_DEBUG("app_idx=%d mcl_idx=%d mdl_idx=%d p_dcb->channel_id=0x%08x",
2961 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id);
3031 p_dcb->channel_id = btif_hl_get_next_channel_id(p_acb->app_id);
3033 BTIF_TRACE_DEBUG(" app_idx=%d mcl_idx=%d mdl_idx=%d channel_id=%d",
3034 app_idx, mcl_idx, mdl_idx, p_dcb->channel_id );
3305 p_data->chan_cb.channel_id,
3311 p_data->chan_cb.channel_id, state, p_data->chan_cb.fd );
3961 static bt_status_t connect_channel(int app_id, bt_bdaddr_t *bd_addr, int mdep_cfg_index, int *channel_id){
4005 mdep_cfg_index, BTIF_HL_PEND_DCH_OP_OPEN, channel_id ))
4039 channel_id))
4050 BTIF_TRACE_DEBUG("%s status=%d channel_id=0x%08x", __FUNCTION__, status, *channel_id);
4063 static bt_status_t destroy_channel(int channel_id){
4071 BTIF_TRACE_EVENT("%s channel_id=0x%08x", __FUNCTION__, channel_id);
4075 if (btif_hl_if_channel_setup_pending(channel_id, &app_idx, &mcl_idx))
4081 if (btif_hl_find_mdl_cfg_idx_using_channel_id(channel_id, &app_idx, &mdl_cfg_idx))
4082 // if(btif_hl_find_mdl_idx_using_channel_id(channel_id, &app_idx,&mcl_idx, &mdl_idx))
4090 p_acb->delete_mdl.channel_id = channel_id;
4346 *p_channel_id = p_mcb->pcb.channel_id;
4616 p_scb->channel_id = p_dcb->channel_id;
4671 evt_param.chan_cb.channel_id = p_dcb->channel_id;
4709 evt_param.chan_cb.app_id = (int) btif_hl_get_app_id(p_scb->channel_id);
4711 evt_param.chan_cb.channel_id = p_scb->channel_id;