Lines Matching full:p_lcb
328 tL2C_LCB *p_lcb;
346 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda)) == NULL)
347 ||((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL))
364 if ((p_lcb)&&(p_lcb->link_state == LST_CONNECTED))
368 p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID);
394 tL2C_LCB *p_lcb;
414 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda)) == NULL)
415 ||((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL))
424 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda)) == NULL)
425 || ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL))
440 if ((p_lcb->ucd_mtu) && (p_buf->len > p_lcb->ucd_mtu))
442 L2CAP_TRACE_WARNING1 ("L2CAP - Handle: 0x%04x UCD bigger than peer's UCD mtu size cannot be sent", p_lcb->handle);
451 p_lcb->handle,
452 (p_ccb->xmit_hold_q.count + p_lcb->ucd_out_sec_pending_q.count),
484 tL2C_LCB *p_lcb;
493 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda)) == NULL)
494 ||((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL))
517 tL2C_LCB *p_lcb;
524 if ((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda)) == NULL)
531 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL)
556 tL2C_LCB *p_lcb;
572 if ((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda)) == NULL)
575 if ( ((p_lcb = l2cu_allocate_lcb (rem_bda, FALSE)) == NULL)
576 || (l2cu_create_conn(p_lcb) == FALSE) )
582 else if ( p_lcb->info_rx_bits & (1 << L2CAP_EXTENDED_FEATURES_INFO_TYPE) )
584 if (!(p_lcb->peer_ext_fea & L2CAP_EXTFEA_UCD_RECEPTION))
592 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL)
595 if ((p_ccb = l2cu_allocate_ccb (p_lcb, 0)) == NULL)
621 if (p_lcb->link_state == LST_CONNECTED)
640 void l2c_ucd_delete_sec_pending_q(tL2C_LCB *p_lcb)
643 while (p_lcb->ucd_out_sec_pending_q.p_first)
644 GKI_freebuf (GKI_dequeue (&p_lcb->ucd_out_sec_pending_q));
646 while (p_lcb->ucd_in_sec_pending_q.p_first)
647 GKI_freebuf (GKI_dequeue (&p_lcb->ucd_in_sec_pending_q));
679 if ( p_ccb->p_lcb->info_rx_bits & (1 << L2CAP_EXTENDED_FEATURES_INFO_TYPE) )
681 if (!(p_ccb->p_lcb->peer_ext_fea & L2CAP_EXTFEA_UCD_RECEPTION))
685 l2c_ucd_delete_sec_pending_q(p_ccb->p_lcb);
689 p_ccb->p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (p_ccb->p_lcb->remote_bd_addr,
691 p_ccb->p_lcb->peer_ext_fea & L2CAP_EXTFEA_UCD_RECEPTION);
696 if (p_ccb->p_lcb->w4_info_rsp == FALSE)
698 l2cu_send_peer_info_req (p_ccb->p_lcb, L2CAP_EXTENDED_FEATURES_INFO_TYPE);
707 if ( p_ccb->p_lcb->info_rx_bits & (1 << L2CAP_CONNLESS_MTU_INFO_TYPE))
709 p_ccb->p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (p_ccb->p_lcb->remote_bd_addr,
711 p_ccb->p_lcb->ucd_mtu);
716 if (p_ccb->p_lcb->w4_info_rsp == FALSE)
718 l2cu_send_peer_info_req (p_ccb->p_lcb, L2CAP_CONNLESS_MTU_INFO_TYPE);
739 GKI_enqueue (&p_ccb->p_lcb->ucd_out_sec_pending_q, p_data);
758 if ( p_ccb->p_lcb->ucd_out_sec_pending_q.count )
760 p_buf = (BT_HDR*)(p_ccb->p_lcb->ucd_out_sec_pending_q.p_first);
765 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, psm,
766 p_ccb->p_lcb->handle, CONNLESS_ORIG, &l2c_link_sec_comp, p_ccb);
787 if ( p_ccb->p_lcb->ucd_out_sec_pending_q.count )
789 p_buf = (BT_HDR*)GKI_dequeue (&p_ccb->p_lcb->ucd_out_sec_pending_q);
792 l2c_link_check_send_pkts (p_ccb->p_lcb, NULL, NULL);
810 p_buf = (BT_HDR*)GKI_dequeue (&p_ccb->p_lcb->ucd_out_sec_pending_q);
835 if ( p_ccb->p_lcb->ucd_in_sec_pending_q.count )
837 p_buf = (BT_HDR*)(p_ccb->p_lcb->ucd_in_sec_pending_q.p_first);
842 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, psm,
843 p_ccb->p_lcb->handle, CONNLESS_TERM, &l2c_link_sec_comp, p_ccb);
864 if ( p_ccb->p_lcb->ucd_in_sec_pending_q.count )
866 p_buf = (BT_HDR*)GKI_dequeue (&p_ccb->p_lcb->ucd_in_sec_pending_q);
868 p_ccb->p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb(p_ccb->p_lcb->remote_bd_addr, (BT_HDR *)p_buf);
886 p_buf = (BT_HDR*)GKI_dequeue (&p_ccb->p_lcb->ucd_in_sec_pending_q);
904 BOOLEAN l2c_ucd_check_rx_pkts(tL2C_LCB *p_lcb, BT_HDR *p_msg)
909 if (((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) != NULL)
915 if ((p_ccb = l2cu_allocate_ccb (p_lcb, 0)) == NULL)
980 GKI_enqueue (&p_ccb->p_lcb->ucd_in_sec_pending_q, p_data);
1020 if ( p_ccb->p_lcb->ucd_out_sec_pending_q.count )
1046 GKI_enqueue (&p_ccb->p_lcb->ucd_in_sec_pending_q, p_data);
1068 if ( p_ccb->p_lcb->ucd_in_sec_pending_q.count )
1099 GKI_enqueue (&p_ccb->p_lcb->ucd_in_sec_pending_q, p_data);
1128 GKI_enqueue (&p_ccb->p_lcb->ucd_in_sec_pending_q, p_data);