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