Home | History | Annotate | Download | only in gap

Lines Matching full:p_buf

361         BT_HDR *p_buf = fixed_queue_try_peek_first(p_ccb->rx_queue);
362 if (p_buf == NULL)
365 copy_len = (p_buf->len > max_len)?max_len:p_buf->len;
370 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, copy_len);
374 if (p_buf->len > copy_len)
376 p_buf->offset += copy_len;
377 p_buf->len -= copy_len;
448 BT_HDR *p_buf;
453 p_buf = (BT_HDR *)fixed_queue_try_dequeue(p_ccb->rx_queue);
455 if (p_buf)
457 *pp_buf = p_buf;
459 p_ccb->rx_queue_size -= p_buf->len;
490 BT_HDR *p_buf;
503 p_buf = (BT_HDR *)osi_malloc(L2CAP_FCR_ERTM_BUF_SIZE);
505 p_buf = (BT_HDR *)osi_malloc(GAP_DATA_BUF_SIZE);
507 p_buf->offset = L2CAP_MIN_OFFSET;
508 p_buf->len = (p_ccb->rem_mtu_size < max_len) ? p_ccb->rem_mtu_size : max_len;
509 p_buf->event = BT_EVT_TO_BTU_SP_DATA;
511 memcpy ((UINT8 *)(p_buf + 1) + p_buf->offset, p_data, p_buf->len);
513 *p_len += p_buf->len;
514 max_len -= p_buf->len;
515 p_data += p_buf->len;
517 GAP_TRACE_EVENT ("GAP_WriteData %d bytes", p_buf->len);
519 fixed_queue_enqueue(p_ccb->tx_queue, p_buf);
531 while ((p_buf = (BT_HDR *)fixed_queue_try_dequeue(p_ccb->tx_queue)) != NULL)
533 UINT8 status = L2CA_DATA_WRITE (p_ccb->connection_id, p_buf);
1067 BT_HDR *p_buf;
1084 while ((p_buf = (BT_HDR *)fixed_queue_try_dequeue(p_ccb->tx_queue)) != NULL)
1086 status = L2CA_DATA_WRITE (p_ccb->connection_id, p_buf);