combined-packet.c (ce5e5b522e8d3b848b6445c34226b69c77c46403) combined-packet.c (1de7afc984b49af164e2619e6850b9732b173b34)
1/*
2 * QEMU USB packet combining code (for input pipelining)
3 *
4 * Copyright(c) 2012 Red Hat, Inc.
5 *
6 * Red Hat Authors:
7 * Hans de Goede <hdegoede@redhat.com>
8 *

--- 7 unchanged lines hidden (view full) ---

16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <http://www.gnu.org/licenses/>.
21 */
22#include "qemu-common.h"
23#include "hw/usb.h"
1/*
2 * QEMU USB packet combining code (for input pipelining)
3 *
4 * Copyright(c) 2012 Red Hat, Inc.
5 *
6 * Red Hat Authors:
7 * Hans de Goede <hdegoede@redhat.com>
8 *

--- 7 unchanged lines hidden (view full) ---

16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <http://www.gnu.org/licenses/>.
21 */
22#include "qemu-common.h"
23#include "hw/usb.h"
24#include "iov.h"
24#include "qemu/iov.h"
25#include "trace.h"
26
27static void usb_combined_packet_add(USBCombinedPacket *combined, USBPacket *p)
28{
29 qemu_iovec_concat(&combined->iov, &p->iov, 0, p->iov.size);
30 QTAILQ_INSERT_TAIL(&combined->packets, p, combined_entry);
31 p->combined = combined;
32}

--- 154 unchanged lines hidden ---
25#include "trace.h"
26
27static void usb_combined_packet_add(USBCombinedPacket *combined, USBPacket *p)
28{
29 qemu_iovec_concat(&combined->iov, &p->iov, 0, p->iov.size);
30 QTAILQ_INSERT_TAIL(&combined->packets, p, combined_entry);
31 p->combined = combined;
32}

--- 154 unchanged lines hidden ---