Home | History | Annotate | Download | only in l2cap

Lines Matching refs:p_lcb

331     tL2C_LCB        *p_lcb;
349 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda, BT_TRANSPORT_BR_EDR)) == NULL)
350 ||((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL))
367 if ((p_lcb)&&(p_lcb->link_state == LST_CONNECTED))
371 p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID);
397 tL2C_LCB *p_lcb;
417 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda, BT_TRANSPORT_BR_EDR)) == NULL)
418 ||((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL))
427 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda, BT_TRANSPORT_BR_EDR)) == NULL)
428 || ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL))
443 if ((p_lcb->ucd_mtu) && (p_buf->len > p_lcb->ucd_mtu))
445 L2CAP_TRACE_WARNING ("L2CAP - Handle: 0x%04x UCD bigger than peer's UCD mtu size cannot be sent", p_lcb->handle);
454 p_lcb->handle,
456 fixed_queue_length(p_lcb->ucd_out_sec_pending_q)),
488 tL2C_LCB *p_lcb;
497 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda, BT_TRANSPORT_BR_EDR)) == NULL)
498 ||((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL))
521 tL2C_LCB *p_lcb;
528 if ((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda, BT_TRANSPORT_BR_EDR)) == NULL)
535 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL)
560 tL2C_LCB *p_lcb;
576 if ((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda, BT_TRANSPORT_BR_EDR)) == NULL)
579 if ( ((p_lcb = l2cu_allocate_lcb (rem_bda, FALSE, BT_TRANSPORT_BR_EDR)) == NULL)
580 || (l2cu_create_conn(p_lcb, BT_TRANSPORT_BR_EDR) == FALSE) )
586 else if ( p_lcb->info_rx_bits & (1 << L2CAP_EXTENDED_FEATURES_INFO_TYPE) )
588 if (!(p_lcb->peer_ext_fea & L2CAP_EXTFEA_UCD_RECEPTION))
596 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL)
599 if ((p_ccb = l2cu_allocate_ccb (p_lcb, 0)) == NULL)
625 if (p_lcb->link_state == LST_CONNECTED)
644 void l2c_ucd_delete_sec_pending_q(tL2C_LCB *p_lcb)
647 while (! fixed_queue_is_empty(p_lcb->ucd_out_sec_pending_q))
648 osi_free(fixed_queue_try_dequeue(p_lcb->ucd_out_sec_pending_q));
649 fixed_queue_free(p_lcb->ucd_out_sec_pending_q, NULL);
650 p_lcb->ucd_out_sec_pending_q = NULL;
652 while (! fixed_queue_is_empty(p_lcb->ucd_in_sec_pending_q))
653 osi_free(fixed_queue_try_dequeue(p_lcb->ucd_in_sec_pending_q));
654 fixed_queue_free(p_lcb->ucd_in_sec_pending_q);
655 p_lcb->ucd_in_sec_pending_q = NULL;
687 if ( p_ccb->p_lcb->info_rx_bits & (1 << L2CAP_EXTENDED_FEATURES_INFO_TYPE) )
689 if (!(p_ccb->p_lcb->peer_ext_fea & L2CAP_EXTFEA_UCD_RECEPTION))
693 l2c_ucd_delete_sec_pending_q(p_ccb->p_lcb);
697 p_ccb->p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (p_ccb->p_lcb->remote_bd_addr,
699 p_ccb->p_lcb->peer_ext_fea & L2CAP_EXTFEA_UCD_RECEPTION);
704 if (p_ccb->p_lcb->w4_info_rsp == FALSE)
706 l2cu_send_peer_info_req (p_ccb->p_lcb, L2CAP_EXTENDED_FEATURES_INFO_TYPE);
715 if ( p_ccb->p_lcb->info_rx_bits & (1 << L2CAP_CONNLESS_MTU_INFO_TYPE))
717 p_ccb->p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (p_ccb->p_lcb->remote_bd_addr,
719 p_ccb->p_lcb->ucd_mtu);
724 if (p_ccb->p_lcb->w4_info_rsp == FALSE)
726 l2cu_send_peer_info_req (p_ccb->p_lcb, L2CAP_CONNLESS_MTU_INFO_TYPE);
747 fixed_queue_enqueue(p_ccb->p_lcb->ucd_out_sec_pending_q, p_data);
762 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_peek_first(p_ccb->p_lcb->ucd_out_sec_pending_q);
772 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, psm,
773 p_ccb->p_lcb->handle, CONNLESS_ORIG, &l2c_link_sec_comp, p_ccb);
792 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->p_lcb->ucd_out_sec_pending_q);
797 l2c_link_check_send_pkts (p_ccb->p_lcb, NULL, NULL);
813 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->p_lcb->ucd_out_sec_pending_q);
830 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->p_lcb->ucd_in_sec_pending_q);
839 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, psm,
840 p_ccb->p_lcb->handle, CONNLESS_TERM, &l2c_link_sec_comp, p_ccb);
859 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->p_lcb->ucd_in_sec_pending_q)
863 p_ccb->p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb(p_ccb->p_lcb->remote_bd_addr, (BT_HDR *)p_buf);
879 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->p_lcb->ucd_in_sec_pending_q);
893 BOOLEAN l2c_ucd_check_rx_pkts(tL2C_LCB *p_lcb, BT_HDR *p_msg)
898 if (((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) != NULL)
904 if ((p_ccb = l2cu_allocate_ccb (p_lcb, 0)) == NULL)
969 fixed_queue_enqueue(p_ccb->p_lcb->ucd_in_sec_pending_q, p_data);
1009 if (! fixed_queue_is_empty(p_ccb->p_lcb->ucd_out_sec_pending_q))
1043 fixed_queue_enqueue(p_ccb->p_lcb->ucd_in_sec_pending_q, p_data);
1065 if (! fixed_queue_is_empty(p_ccb->p_lcb->ucd_in_sec_pending_q))
1104 fixed_queue_enqueue(p_ccb->p_lcb->ucd_in_sec_pending_q, p_data);
1133 fixed_queue_enqueue(p_ccb->p_lcb->ucd_in_sec_pending_q, p_data);