Linux Kernel
3.7.1
|
#include <wa-hc.h>
Data Fields | |
struct kref | refcnt |
struct usb_rpipe_descriptor | descr |
struct usb_host_endpoint * | ep |
struct wahc * | wa |
spinlock_t | seg_lock |
struct list_head | seg_list |
atomic_t | segs_available |
u8 | buffer [1] |
RPipe instance
's fields are kept in LE, as we need to send it back and forth.
is referenced when set
is the number of requests segments that still can be submitted to the controller without overloading it. It is initialized to descr->wRequests when aiming.
A rpipe supports a max of descr->wRequests at the same time; before submitting seg_lock has to be taken. If segs_avail > 0, then we can submit; if not, we have to queue them.
struct usb_rpipe_descriptor descr |
spinlock_t seg_lock |