Lines Matching full:p_buf
736 static sent_status_t send_data_to_app(int fd, BT_HDR *p_buf) {
737 if (p_buf->len == 0)
741 OSI_NO_INTR(sent = send(fd, p_buf->data + p_buf->offset, p_buf->len,
754 if (sent == p_buf->len)
757 p_buf->offset += sent;
758 p_buf->len -= sent;
764 BT_HDR *p_buf = list_front(slot->incoming_queue);
765 switch (send_data_to_app(slot->fd, p_buf)) {
773 list_remove(slot->incoming_queue, p_buf);
777 list_remove(slot->incoming_queue, p_buf);
833 int bta_co_rfc_data_incoming(void *user_data, BT_HDR *p_buf) {
846 bytes_rx = p_buf->len;
849 switch (send_data_to_app(slot->fd, p_buf)) {
852 list_append(slot->incoming_queue, p_buf);
857 osi_free(p_buf);
862 osi_free(p_buf);
867 list_append(slot->incoming_queue, p_buf);