Lines Matching refs:p_pcb
411 static void btif_hl_clean_pcb(btif_hl_pending_chan_cb_t *p_pcb) in btif_hl_clean_pcb() argument
414 memset(p_pcb, 0 , sizeof(btif_hl_pending_chan_cb_t)); in btif_hl_clean_pcb()
680 btif_hl_pending_chan_cb_t *p_pcb; in btif_hl_dch_open() local
697 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_dch_open()
698 if (!p_pcb->in_use) in btif_hl_dch_open()
702 p_pcb->in_use = TRUE; in btif_hl_dch_open()
704 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id); in btif_hl_dch_open()
705 p_pcb->cb_state = BTIF_HL_CHAN_CB_STATE_CONNECTING_PENDING; in btif_hl_dch_open()
706 p_pcb->mdep_cfg_idx = mdep_cfg_idx; in btif_hl_dch_open()
707 memcpy(p_pcb->bd_addr, bd_addr, sizeof(BD_ADDR)); in btif_hl_dch_open()
708 p_pcb->op = op; in btif_hl_dch_open()
817 btif_hl_pending_chan_cb_t *p_pcb; in btif_hl_cch_open() local
850 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_cch_open()
851 p_pcb->in_use = TRUE; in btif_hl_cch_open()
852 p_pcb->mdep_cfg_idx = mdep_cfg_idx; in btif_hl_cch_open()
853 memcpy(p_pcb->bd_addr, bd_addr, sizeof(BD_ADDR)); in btif_hl_cch_open()
854 p_pcb->op = op; in btif_hl_cch_open()
860 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id); in btif_hl_cch_open()
861 p_pcb->cb_state = BTIF_HL_CHAN_CB_STATE_CONNECTING_PENDING; in btif_hl_cch_open()
864 p_pcb->channel_id = p_acb->delete_mdl.channel_id; in btif_hl_cch_open()
865 p_pcb->cb_state = BTIF_HL_CHAN_CB_STATE_DESTROYED_PENDING; in btif_hl_cch_open()
2083 btif_hl_pending_chan_cb_t *p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_set_chan_cb_state() local
2084 btif_hl_chan_cb_state_t cur_state = p_pcb->cb_state; in btif_hl_set_chan_cb_state()
2088 p_pcb->cb_state = state; in btif_hl_set_chan_cb_state()
2151 btif_hl_pending_chan_cb_t *p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_send_setup_connecting_cb() local
2153 int app_id = (int) btif_hl_get_app_id(p_pcb->channel_id); in btif_hl_send_setup_connecting_cb()
2155 btif_hl_copy_bda(&bd_addr, p_pcb->bd_addr); in btif_hl_send_setup_connecting_cb()
2157 if (p_pcb->in_use && p_pcb->cb_state == BTIF_HL_CHAN_CB_STATE_CONNECTING_PENDING) in btif_hl_send_setup_connecting_cb()
2160 …("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id, in btif_hl_send_setup_connecting_cb()
2161 p_pcb->mdep_cfg_idx, BTHL_CONN_STATE_CONNECTING, 0); in btif_hl_send_setup_connecting_cb()
2165 &bd_addr, p_pcb->mdep_cfg_idx, in btif_hl_send_setup_connecting_cb()
2166 p_pcb->channel_id, BTHL_CONN_STATE_CONNECTING, 0 ); in btif_hl_send_setup_connecting_cb()
2180 btif_hl_pending_chan_cb_t *p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_send_setup_disconnected_cb() local
2182 int app_id = (int) btif_hl_get_app_id(p_pcb->channel_id); in btif_hl_send_setup_disconnected_cb()
2184 btif_hl_copy_bda(&bd_addr, p_pcb->bd_addr); in btif_hl_send_setup_disconnected_cb()
2186 BTIF_TRACE_DEBUG("%s p_pcb->in_use=%d",__FUNCTION__, p_pcb->in_use); in btif_hl_send_setup_disconnected_cb()
2187 if (p_pcb->in_use) in btif_hl_send_setup_disconnected_cb()
2189 BTIF_TRACE_DEBUG("%p_pcb->cb_state=%d",p_pcb->cb_state); in btif_hl_send_setup_disconnected_cb()
2190 if (p_pcb->cb_state == BTIF_HL_CHAN_CB_STATE_CONNECTING_PENDING) in btif_hl_send_setup_disconnected_cb()
2192 …("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id, in btif_hl_send_setup_disconnected_cb()
2193 p_pcb->mdep_cfg_idx, BTHL_CONN_STATE_CONNECTING, 0); in btif_hl_send_setup_disconnected_cb()
2196 &bd_addr, p_pcb->mdep_cfg_idx, in btif_hl_send_setup_disconnected_cb()
2197 p_pcb->channel_id, BTHL_CONN_STATE_CONNECTING, 0 ); in btif_hl_send_setup_disconnected_cb()
2199 …("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id, in btif_hl_send_setup_disconnected_cb()
2200 p_pcb->mdep_cfg_idx, BTHL_CONN_STATE_DISCONNECTED, 0); in btif_hl_send_setup_disconnected_cb()
2203 &bd_addr, p_pcb->mdep_cfg_idx, in btif_hl_send_setup_disconnected_cb()
2204 p_pcb->channel_id, BTHL_CONN_STATE_DISCONNECTED, 0 ); in btif_hl_send_setup_disconnected_cb()
2206 else if (p_pcb->cb_state == BTIF_HL_CHAN_CB_STATE_CONNECTED_PENDING) in btif_hl_send_setup_disconnected_cb()
2208 …("call channel state callback channel_id=0x%08x mdep_cfg_idx=%d state=%d fd=%d",p_pcb->channel_id, in btif_hl_send_setup_disconnected_cb()
2209 p_pcb->mdep_cfg_idx, BTHL_CONN_STATE_DISCONNECTED, 0); in btif_hl_send_setup_disconnected_cb()
2212 &bd_addr, p_pcb->mdep_cfg_idx, in btif_hl_send_setup_disconnected_cb()
2213 p_pcb->channel_id, BTHL_CONN_STATE_DISCONNECTED, 0 ); in btif_hl_send_setup_disconnected_cb()
2215 btif_hl_clean_pcb(p_pcb); in btif_hl_send_setup_disconnected_cb()
2236 btif_hl_pending_chan_cb_t *p_pcb; in btif_hl_proc_sdp_query_cfm() local
2293 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_proc_sdp_query_cfm()
2294 if (p_pcb->in_use) in btif_hl_proc_sdp_query_cfm()
2296 if (!p_pcb->abort_pending) in btif_hl_proc_sdp_query_cfm()
2298 switch (p_pcb->op) in btif_hl_proc_sdp_query_cfm()
2397 btif_hl_pending_chan_cb_t *p_pcb; in btif_hl_proc_pending_op() local
2403 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_proc_pending_op()
2404 if (p_pcb->in_use) in btif_hl_proc_pending_op()
2406 switch (p_pcb->op) in btif_hl_proc_pending_op()
2409 if (!p_pcb->abort_pending) in btif_hl_proc_pending_op()
2413 dch_open.local_mdep_id = p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx].mdep_id; in btif_hl_proc_pending_op()
2415 … p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx].mdep_cfg.mdep_role, in btif_hl_proc_pending_op()
2416 …p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx].mdep_cfg.data_cfg[0].data_type, &dch_open.peer_mdep_i… in btif_hl_proc_pending_op()
2418 dch_open.local_cfg = p_acb->channel_type[p_pcb->mdep_cfg_idx]; in btif_hl_proc_pending_op()
2419 … if ((p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx].mdep_cfg.mdep_role == BTA_HL_MDEP_ROLE_SOURCE) in btif_hl_proc_pending_op()
2428 … if (!btif_hl_is_reconnect_possible(app_idx, mcl_idx, p_pcb->mdep_cfg_idx, &dch_open, &mdl_id )) in btif_hl_proc_pending_op()
2732 btif_hl_pending_chan_cb_t *p_pcb; in btif_hl_proc_dch_open_cfm() local
2744 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_proc_dch_open_cfm()
2760 p_dcb->channel_id = p_pcb->channel_id; in btif_hl_proc_dch_open_cfm()
2769 btif_hl_clean_pcb(p_pcb); in btif_hl_proc_dch_open_cfm()
2805 btif_hl_pending_chan_cb_t *p_pcb; in btif_hl_proc_dch_reconnect_cfm() local
2816 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_proc_dch_reconnect_cfm()
2832 p_dcb->channel_id = p_pcb->channel_id; in btif_hl_proc_dch_reconnect_cfm()
2841 btif_hl_clean_pcb(p_pcb); in btif_hl_proc_dch_reconnect_cfm()
3837 btif_hl_pending_chan_cb_t *p_pcb = NULL; in connect_channel() local
3887 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in connect_channel()
3888 p_pcb->in_use = TRUE; in connect_channel()
3889 p_pcb->mdep_cfg_idx = mdep_cfg_index; in connect_channel()
3890 memcpy(p_pcb->bd_addr, bda, sizeof(BD_ADDR)); in connect_channel()
3891 p_pcb->op = BTIF_HL_PEND_DCH_OP_OPEN; in connect_channel()