Lines Matching full:p_buf
93 static void l2c_ucd_data_ind_cback (BD_ADDR rem_bda, BT_HDR *p_buf)
101 p = (UINT8 *)(p_buf + 1) + p_buf->offset;
104 p_buf->offset += L2CAP_UCD_OVERHEAD;
105 p_buf->len -= L2CAP_UCD_OVERHEAD;
110 osi_free(p_buf);
114 p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb(rem_bda, p_buf);
395 UINT16 L2CA_UcdDataWrite (UINT16 psm, BD_ADDR rem_bda, BT_HDR *p_buf, UINT16 flags)
411 osi_free(p_buf);
422 osi_free(p_buf);
430 osi_free(p_buf);
436 p_buf->offset -= L2CAP_UCD_OVERHEAD;
437 p_buf->len += L2CAP_UCD_OVERHEAD;
438 p = (UINT8 *)(p_buf + 1) + p_buf->offset;
443 if ((p_lcb->ucd_mtu) && (p_buf->len > p_lcb->ucd_mtu))
446 osi_free(p_buf);
459 osi_free(p_buf);
464 p_buf->layer_specific = flags;
466 l2c_csm_execute (p_ccb, L2CEVT_L2CA_DATA_WRITE, p_buf);
762 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_peek_first(p_ccb->p_lcb->ucd_out_sec_pending_q);
764 if (p_buf != NULL)
767 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset;
792 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->p_lcb->ucd_out_sec_pending_q);
794 if (p_buf != NULL)
796 l2c_enqueue_peer_data (p_ccb, (BT_HDR *)p_buf);
813 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->p_lcb->ucd_out_sec_pending_q);
816 osi_free(p_buf);
830 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->p_lcb->ucd_in_sec_pending_q);
832 if (p_buf != NULL)
835 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset;
859 BT_HDR *p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->p_lcb->ucd_in_sec_pending_q)
861 if (p_buf != NULL)
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);
880 osi_free(p_buf);