Searched refs:rpipe (Results 1 – 4 of 4) sorted by relevance
139 static void rpipe_init(struct wa_rpipe *rpipe) in rpipe_init() argument141 kref_init(&rpipe->refcnt); in rpipe_init()142 spin_lock_init(&rpipe->seg_lock); in rpipe_init()143 INIT_LIST_HEAD(&rpipe->seg_list); in rpipe_init()170 struct wa_rpipe *rpipe = container_of(_rpipe, struct wa_rpipe, refcnt); in rpipe_destroy() local171 u8 index = le16_to_cpu(rpipe->descr.wRPipeIndex); in rpipe_destroy()173 if (rpipe->ep) in rpipe_destroy()174 rpipe->ep->hcpriv = NULL; in rpipe_destroy()175 rpipe_put_idx(rpipe->wa, index); in rpipe_destroy()176 wa_put(rpipe->wa); in rpipe_destroy()[all …]
364 struct wa_rpipe *rpipe = xfer->ep->hcpriv; in __wa_xfer_abort() local371 b->cmd.wRPipe = rpipe->descr.wRPipeIndex; in __wa_xfer_abort()406 struct wa_rpipe *rpipe = xfer->ep->hcpriv; in __wa_xfer_setup_sizes() local408 switch (rpipe->descr.bmAttribute & 0x3) { in __wa_xfer_setup_sizes()429 xfer->seg_size = le16_to_cpu(rpipe->descr.wBlocks) in __wa_xfer_setup_sizes()434 maxpktsize = le16_to_cpu(rpipe->descr.wMaxPacketSize); in __wa_xfer_setup_sizes()463 struct wa_rpipe *rpipe = xfer->ep->hcpriv; in __wa_xfer_setup_hdr0() local468 xfer_hdr0->wRPipe = rpipe->descr.wRPipeIndex; in __wa_xfer_setup_hdr0()509 struct wa_rpipe *rpipe; in wa_seg_dto_cb() local533 rpipe = xfer->ep->hcpriv; in wa_seg_dto_cb()[all …]
260 void __rpipe_get(struct wa_rpipe *rpipe) in __rpipe_get() argument262 kref_get(&rpipe->refcnt); in __rpipe_get()266 static inline void rpipe_put(struct wa_rpipe *rpipe) in rpipe_put() argument268 kref_put(&rpipe->refcnt, rpipe_destroy); in rpipe_put()274 static inline void rpipe_avail_dec(struct wa_rpipe *rpipe) in rpipe_avail_dec() argument276 atomic_dec(&rpipe->segs_available); in rpipe_avail_dec()282 static inline int rpipe_avail_inc(struct wa_rpipe *rpipe) in rpipe_avail_inc() argument284 return atomic_inc_return(&rpipe->segs_available) > 0 in rpipe_avail_inc()285 && !list_empty(&rpipe->seg_list); in rpipe_avail_inc()
21 wa-rpipe.o \