Lines Matching refs:p_buf
63 void l2c_bcst_msg( BT_HDR *p_buf, UINT16 psm )
68 if (p_buf->offset < L2CAP_BCST_MIN_OFFSET)
70 L2CAP_TRACE_ERROR1 ("L2CAP - cannot send buffer, offset: %d", p_buf->offset);
71 GKI_freebuf (p_buf);
76 p_buf->offset -= (HCI_DATA_PREAMBLE_SIZE + L2CAP_PKT_OVERHEAD + L2CAP_BCST_OVERHEAD);
77 p_buf->len += L2CAP_PKT_OVERHEAD + L2CAP_BCST_OVERHEAD;
80 p = (UINT8 *)(p_buf + 1) + p_buf->offset;
86 if (p_buf->len > btu_cb.hcit_acl_data_size)
92 UINT16_TO_STREAM (p, p_buf->len);
96 UINT16_TO_STREAM (p, p_buf->len - L2CAP_PKT_OVERHEAD);
100 p_buf->len += HCI_DATA_PREAMBLE_SIZE;
102 if (p_buf->len <= btu_cb.hcit_acl_pkt_size)
104 HCI_ACL_DATA_TO_LOWER (p_buf);
785 BT_HDR *p_buf, *p_buf1;
802 for (p_buf = (BT_HDR *)GKI_getfirst (p_rcv_hold_q); p_buf; p_buf = p_buf1)
804 p_buf1 = (BT_HDR *)GKI_getnext (p_buf);
805 if (!timed_out || (!p_buf->layer_specific) || (--p_buf->layer_specific == 0))
807 GKI_remove_from_queue (p_rcv_hold_q, p_buf);
808 p_buf->layer_specific = 0xFFFF;
809 l2c_rcv_acl_data (p_buf);