Home | History | Annotate | Download | only in btm

Lines Matching defs:p_buf

85     BT_HDR      *p_buf;
92 if ((p_buf = (BT_HDR *)GKI_dequeue (&p->xmit_data_q)) != NULL)
93 GKI_freebuf (p_buf);
248 BT_HDR *p_buf;
255 p_buf = NULL;
260 p_buf = (BT_HDR *)GKI_dequeue (&p_ccb->xmit_data_q);
262 HCI_SCO_DATA_TO_LOWER (p_buf);
318 ** to be written p_buf needs to carry an offset of
334 tBTM_STATUS BTM_WriteScoData (UINT16 sco_inx, BT_HDR *p_buf)
345 if (p_buf->offset < HCI_SCO_PREAMBLE_SIZE)
347 BTM_TRACE_ERROR1 ("BTM SCO - cannot send buffer, offset: %d", p_buf->offset);
348 GKI_freebuf (p_buf);
354 p_buf->offset -= HCI_SCO_PREAMBLE_SIZE;
356 p = (UINT8 *)(p_buf + 1) + p_buf->offset;
361 if (p_buf->len > BTM_SCO_DATA_SIZE_MAX)
363 p_buf->len = BTM_SCO_DATA_SIZE_MAX;
367 UINT8_TO_STREAM (p, (UINT8)p_buf->len);
368 p_buf->len += HCI_SCO_PREAMBLE_SIZE;
370 GKI_enqueue (&p_ccb->xmit_data_q, p_buf);
377 GKI_freebuf(p_buf);