Home
last modified time | relevance | path

Searched refs:rpipe (Results 1 – 5 of 5) sorted by relevance

/linux-4.1.27/drivers/usb/wusbcore/
Dwa-rpipe.c140 static void rpipe_init(struct wa_rpipe *rpipe) in rpipe_init() argument
142 kref_init(&rpipe->refcnt); in rpipe_init()
143 spin_lock_init(&rpipe->seg_lock); in rpipe_init()
144 INIT_LIST_HEAD(&rpipe->seg_list); in rpipe_init()
145 INIT_LIST_HEAD(&rpipe->list_node); in rpipe_init()
172 struct wa_rpipe *rpipe = container_of(_rpipe, struct wa_rpipe, refcnt); in rpipe_destroy() local
173 u8 index = le16_to_cpu(rpipe->descr.wRPipeIndex); in rpipe_destroy()
175 if (rpipe->ep) in rpipe_destroy()
176 rpipe->ep->hcpriv = NULL; in rpipe_destroy()
177 rpipe_put_idx(rpipe->wa, index); in rpipe_destroy()
[all …]
Dwa-xfer.c110 static int __wa_xfer_delayed_run(struct wa_rpipe *rpipe, int *dto_waiting);
237 struct wa_rpipe *rpipe; in wa_check_for_delayed_rpipes() local
241 rpipe = list_first_entry(&wa->rpipe_delayed_list, in wa_check_for_delayed_rpipes()
243 __wa_xfer_delayed_run(rpipe, &dto_waiting); in wa_check_for_delayed_rpipes()
248 le16_to_cpu(rpipe->descr.wRPipeIndex)); in wa_check_for_delayed_rpipes()
249 list_del_init(&rpipe->list_node); in wa_check_for_delayed_rpipes()
256 static void wa_add_delayed_rpipe(struct wahc *wa, struct wa_rpipe *rpipe) in wa_add_delayed_rpipe() argument
262 if (list_empty(&rpipe->list_node)) { in wa_add_delayed_rpipe()
264 __func__, le16_to_cpu(rpipe->descr.wRPipeIndex)); in wa_add_delayed_rpipe()
265 list_add_tail(&rpipe->list_node, &wa->rpipe_delayed_list); in wa_add_delayed_rpipe()
[all …]
Dwa-hc.h323 void __rpipe_get(struct wa_rpipe *rpipe) in __rpipe_get() argument
325 kref_get(&rpipe->refcnt); in __rpipe_get()
329 static inline void rpipe_put(struct wa_rpipe *rpipe) in rpipe_put() argument
331 kref_put(&rpipe->refcnt, rpipe_destroy); in rpipe_put()
339 static inline void rpipe_avail_dec(struct wa_rpipe *rpipe) in rpipe_avail_dec() argument
341 atomic_dec(&rpipe->segs_available); in rpipe_avail_dec()
347 static inline int rpipe_avail_inc(struct wa_rpipe *rpipe) in rpipe_avail_inc() argument
349 return atomic_inc_return(&rpipe->segs_available) > 0 in rpipe_avail_inc()
350 && !list_empty(&rpipe->seg_list); in rpipe_avail_inc()
DMakefile24 wa-rpipe.o \
/linux-4.1.27/Documentation/usb/
DWUSB-Design-overview.txt345 Data is sent and received through /Remote Pipes/ (rpipes). An rpipe is
350 when doing a data transfer (xfer), first the rpipe has to be aimed and
400 rpipe to the endpoint where we have to transmit, create a transfer