• Home
  • Raw
  • Download

Lines Matching refs:p_pcb

392 static void btif_hl_clean_pcb(btif_hl_pending_chan_cb_t* p_pcb) {  in btif_hl_clean_pcb()  argument
394 memset(p_pcb, 0, sizeof(btif_hl_pending_chan_cb_t)); in btif_hl_clean_pcb()
639 btif_hl_pending_chan_cb_t* p_pcb; in btif_hl_dch_open() local
652 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_dch_open()
653 if (!p_pcb->in_use) { in btif_hl_dch_open()
656 p_pcb->in_use = true; in btif_hl_dch_open()
657 *channel_id = p_pcb->channel_id = in btif_hl_dch_open()
659 p_pcb->cb_state = BTIF_HL_CHAN_CB_STATE_CONNECTING_PENDING; in btif_hl_dch_open()
660 p_pcb->mdep_cfg_idx = mdep_cfg_idx; in btif_hl_dch_open()
661 p_pcb->bd_addr = bd_addr; in btif_hl_dch_open()
662 p_pcb->op = op; in btif_hl_dch_open()
731 btif_hl_pending_chan_cb_t* p_pcb; in btif_hl_cch_open() local
757 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_cch_open()
758 p_pcb->in_use = true; in btif_hl_cch_open()
759 p_pcb->mdep_cfg_idx = mdep_cfg_idx; in btif_hl_cch_open()
760 p_pcb->bd_addr = bd_addr; in btif_hl_cch_open()
761 p_pcb->op = op; in btif_hl_cch_open()
765 *channel_id = p_pcb->channel_id = in btif_hl_cch_open()
767 p_pcb->cb_state = BTIF_HL_CHAN_CB_STATE_CONNECTING_PENDING; in btif_hl_cch_open()
770 p_pcb->channel_id = p_acb->delete_mdl.channel_id; in btif_hl_cch_open()
771 p_pcb->cb_state = BTIF_HL_CHAN_CB_STATE_DESTROYED_PENDING; in btif_hl_cch_open()
1881 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
1882 btif_hl_chan_cb_state_t cur_state = p_pcb->cb_state; in btif_hl_set_chan_cb_state()
1885 p_pcb->cb_state = state; in btif_hl_set_chan_cb_state()
1953 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
1954 int app_id = (int)btif_hl_get_app_id(p_pcb->channel_id); in btif_hl_send_setup_connecting_cb()
1956 RawAddress bd_addr = p_pcb->bd_addr; in btif_hl_send_setup_connecting_cb()
1958 if (p_pcb->in_use && in btif_hl_send_setup_connecting_cb()
1959 p_pcb->cb_state == BTIF_HL_CHAN_CB_STATE_CONNECTING_PENDING) { in btif_hl_send_setup_connecting_cb()
1964 p_pcb->channel_id, p_pcb->mdep_cfg_idx, BTHL_CONN_STATE_CONNECTING, 0); in btif_hl_send_setup_connecting_cb()
1968 p_pcb->mdep_cfg_idx, p_pcb->channel_id, in btif_hl_send_setup_connecting_cb()
1984 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
1985 int app_id = (int)btif_hl_get_app_id(p_pcb->channel_id); in btif_hl_send_setup_disconnected_cb()
1987 RawAddress bd_addr = p_pcb->bd_addr; in btif_hl_send_setup_disconnected_cb()
1989 BTIF_TRACE_DEBUG("%s p_pcb->in_use=%d", __func__, p_pcb->in_use); in btif_hl_send_setup_disconnected_cb()
1990 if (p_pcb->in_use) { in btif_hl_send_setup_disconnected_cb()
1991 BTIF_TRACE_DEBUG("%p_pcb->cb_state=%d", p_pcb->cb_state); in btif_hl_send_setup_disconnected_cb()
1992 if (p_pcb->cb_state == BTIF_HL_CHAN_CB_STATE_CONNECTING_PENDING) { in btif_hl_send_setup_disconnected_cb()
1996 p_pcb->channel_id, p_pcb->mdep_cfg_idx, BTHL_CONN_STATE_CONNECTING, in btif_hl_send_setup_disconnected_cb()
2000 p_pcb->mdep_cfg_idx, p_pcb->channel_id, in btif_hl_send_setup_disconnected_cb()
2006 p_pcb->channel_id, p_pcb->mdep_cfg_idx, BTHL_CONN_STATE_DISCONNECTED, in btif_hl_send_setup_disconnected_cb()
2010 p_pcb->mdep_cfg_idx, p_pcb->channel_id, in btif_hl_send_setup_disconnected_cb()
2012 } else if (p_pcb->cb_state == BTIF_HL_CHAN_CB_STATE_CONNECTED_PENDING) { in btif_hl_send_setup_disconnected_cb()
2016 p_pcb->channel_id, p_pcb->mdep_cfg_idx, BTHL_CONN_STATE_DISCONNECTED, in btif_hl_send_setup_disconnected_cb()
2020 p_pcb->mdep_cfg_idx, p_pcb->channel_id, in btif_hl_send_setup_disconnected_cb()
2023 btif_hl_clean_pcb(p_pcb); in btif_hl_send_setup_disconnected_cb()
2044 btif_hl_pending_chan_cb_t* p_pcb; in btif_hl_proc_sdp_query_cfm() local
2095 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_proc_sdp_query_cfm()
2096 if (p_pcb->in_use) { in btif_hl_proc_sdp_query_cfm()
2097 if (!p_pcb->abort_pending) { in btif_hl_proc_sdp_query_cfm()
2098 switch (p_pcb->op) { in btif_hl_proc_sdp_query_cfm()
2189 btif_hl_pending_chan_cb_t* p_pcb; in btif_hl_proc_pending_op() local
2195 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_proc_pending_op()
2196 if (p_pcb->in_use) { in btif_hl_proc_pending_op()
2197 switch (p_pcb->op) { in btif_hl_proc_pending_op()
2199 if (!p_pcb->abort_pending) { in btif_hl_proc_pending_op()
2203 p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx].mdep_id; in btif_hl_proc_pending_op()
2206 p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx] in btif_hl_proc_pending_op()
2208 p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx] in btif_hl_proc_pending_op()
2212 dch_open.local_cfg = p_acb->channel_type[p_pcb->mdep_cfg_idx]; in btif_hl_proc_pending_op()
2213 if ((p_acb->sup_feature.mdep[p_pcb->mdep_cfg_idx] in btif_hl_proc_pending_op()
2223 p_pcb->mdep_cfg_idx, &dch_open, in btif_hl_proc_pending_op()
2515 btif_hl_pending_chan_cb_t* p_pcb; in btif_hl_proc_dch_open_cfm() local
2528 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_proc_dch_open_cfm()
2543 p_dcb->channel_id = p_pcb->channel_id; in btif_hl_proc_dch_open_cfm()
2553 btif_hl_clean_pcb(p_pcb); in btif_hl_proc_dch_open_cfm()
2584 btif_hl_pending_chan_cb_t* p_pcb; in btif_hl_proc_dch_reconnect_cfm() local
2596 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in btif_hl_proc_dch_reconnect_cfm()
2612 p_dcb->channel_id = p_pcb->channel_id; in btif_hl_proc_dch_reconnect_cfm()
2622 btif_hl_clean_pcb(p_pcb); in btif_hl_proc_dch_reconnect_cfm()
3553 btif_hl_pending_chan_cb_t* p_pcb = NULL; in connect_channel() local
3598 p_pcb = BTIF_HL_GET_PCB_PTR(app_idx, mcl_idx); in connect_channel()
3599 p_pcb->in_use = true; in connect_channel()
3600 p_pcb->mdep_cfg_idx = mdep_cfg_index; in connect_channel()
3601 p_pcb->bd_addr = *bd_addr; in connect_channel()
3602 p_pcb->op = BTIF_HL_PEND_DCH_OP_OPEN; in connect_channel()