Lines Matching refs:xb
476 struct xillybuffer *xb = in endpoint_dealloc() local
479 free_pages((unsigned long)xb->buf, ep->order); in endpoint_dealloc()
480 kfree(xb); in endpoint_dealloc()
521 struct xillybuffer *xb; in endpoint_alloc() local
524 xb = kzalloc(sizeof(*xb), GFP_KERNEL); in endpoint_alloc()
526 if (!xb) { in endpoint_alloc()
534 kfree(xb); in endpoint_alloc()
539 xb->buf = (void *)addr; in endpoint_alloc()
540 xb->ep = ep; in endpoint_alloc()
541 list_add_tail(&xb->entry, &ep->buffers); in endpoint_alloc()
651 struct xillybuffer *xb = urb->context; in bulk_in_completer() local
652 struct xillyusb_endpoint *ep = xb->ep; in bulk_in_completer()
662 list_add_tail(&xb->entry, &ep->buffers); in bulk_in_completer()
669 xb->len = urb->actual_length; in bulk_in_completer()
672 list_add_tail(&xb->entry, &ep->filled_buffers); in bulk_in_completer()
681 struct xillybuffer *xb = urb->context; in bulk_out_completer() local
682 struct xillyusb_endpoint *ep = xb->ep; in bulk_out_completer()
692 list_add_tail(&xb->entry, &ep->buffers); in bulk_out_completer()
703 struct xillybuffer *xb; in try_queue_bulk_in() local
723 xb = list_first_entry(&ep->buffers, struct xillybuffer, entry); in try_queue_bulk_in()
724 list_del(&xb->entry); in try_queue_bulk_in()
737 xb->buf, bufsize, bulk_in_completer, xb); in try_queue_bulk_in()
758 list_add_tail(&xb->entry, &ep->buffers); in try_queue_bulk_in()
770 struct xillybuffer *xb; in try_queue_bulk_out() local
818 xb = list_first_entry(&ep->buffers, struct xillybuffer, entry); in try_queue_bulk_out()
819 list_del(&xb->entry); in try_queue_bulk_out()
826 count = fifo_read(&ep->fifo, xb->buf, max_read, xilly_memcpy); in try_queue_bulk_out()
841 xb->buf, count, bulk_out_completer, xb); in try_queue_bulk_out()
865 list_add_tail(&xb->entry, &ep->buffers); in try_queue_bulk_out()
937 static int process_bulk_in(struct xillybuffer *xb) in process_bulk_in() argument
939 struct xillyusb_endpoint *ep = xb->ep; in process_bulk_in()
942 int dws = xb->len >> 2; in process_bulk_in()
943 __le32 *p = xb->buf; in process_bulk_in()
953 if ((dws << 2) != xb->len) { in process_bulk_in()
955 xb->len); in process_bulk_in()
1033 struct xillybuffer *xb; in bulk_in_work() local
1054 xb = list_first_entry(&ep->filled_buffers, struct xillybuffer, in bulk_in_work()
1056 list_del(&xb->entry); in bulk_in_work()
1063 rc = process_bulk_in(xb); in bulk_in_work()
1066 list_add_tail(&xb->entry, &ep->buffers); in bulk_in_work()