linux/drivers/usb/usbip/stub_tx.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2003-2008 Takahiro Hirofuchi
 */

#include <linux/kthread.h>
#include <linux/socket.h>
#include <linux/scatterlist.h>

#include "usbip_common.h"
#include "stub.h"

/* be in spin_lock_irqsave(&sdev->priv_lock, flags) */
void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum,
			     __u32 status)
{}

/**
 * stub_complete - completion handler of a usbip urb
 * @urb: pointer to the urb completed
 *
 * When a urb has completed, the USB core driver calls this function mostly in
 * the interrupt context. To return the result of a urb, the completed urb is
 * linked to the pending list of returning.
 *
 */
void stub_complete(struct urb *urb)
{}

static inline void setup_base_pdu(struct usbip_header_basic *base,
				  __u32 command, __u32 seqnum)
{}

static void setup_ret_submit_pdu(struct usbip_header *rpdu, struct urb *urb)
{}

static void setup_ret_unlink_pdu(struct usbip_header *rpdu,
				 struct stub_unlink *unlink)
{}

static struct stub_priv *dequeue_from_priv_tx(struct stub_device *sdev)
{}

static int stub_send_ret_submit(struct stub_device *sdev)
{}

static struct stub_unlink *dequeue_from_unlink_tx(struct stub_device *sdev)
{}

static int stub_send_ret_unlink(struct stub_device *sdev)
{}

int stub_tx_loop(void *data)
{}