Lines Matching refs:xb

477 		struct xillybuffer *xb =  in endpoint_dealloc()  local
480 free_pages((unsigned long)xb->buf, ep->order); in endpoint_dealloc()
481 kfree(xb); in endpoint_dealloc()
522 struct xillybuffer *xb; in endpoint_alloc() local
525 xb = kzalloc(sizeof(*xb), GFP_KERNEL); in endpoint_alloc()
527 if (!xb) { in endpoint_alloc()
535 kfree(xb); in endpoint_alloc()
540 xb->buf = (void *)addr; in endpoint_alloc()
541 xb->ep = ep; in endpoint_alloc()
542 list_add_tail(&xb->entry, &ep->buffers); in endpoint_alloc()
648 struct xillybuffer *xb = urb->context; in bulk_in_completer() local
649 struct xillyusb_endpoint *ep = xb->ep; in bulk_in_completer()
659 list_add_tail(&xb->entry, &ep->buffers); in bulk_in_completer()
666 xb->len = urb->actual_length; in bulk_in_completer()
669 list_add_tail(&xb->entry, &ep->filled_buffers); in bulk_in_completer()
678 struct xillybuffer *xb = urb->context; in bulk_out_completer() local
679 struct xillyusb_endpoint *ep = xb->ep; in bulk_out_completer()
689 list_add_tail(&xb->entry, &ep->buffers); in bulk_out_completer()
700 struct xillybuffer *xb; in try_queue_bulk_in() local
720 xb = list_first_entry(&ep->buffers, struct xillybuffer, entry); in try_queue_bulk_in()
721 list_del(&xb->entry); in try_queue_bulk_in()
734 xb->buf, bufsize, bulk_in_completer, xb); in try_queue_bulk_in()
755 list_add_tail(&xb->entry, &ep->buffers); in try_queue_bulk_in()
767 struct xillybuffer *xb; in try_queue_bulk_out() local
815 xb = list_first_entry(&ep->buffers, struct xillybuffer, entry); in try_queue_bulk_out()
816 list_del(&xb->entry); in try_queue_bulk_out()
823 count = fifo_read(&ep->fifo, xb->buf, max_read, xilly_memcpy); in try_queue_bulk_out()
838 xb->buf, count, bulk_out_completer, xb); in try_queue_bulk_out()
862 list_add_tail(&xb->entry, &ep->buffers); in try_queue_bulk_out()
934 static int process_bulk_in(struct xillybuffer *xb) in process_bulk_in() argument
936 struct xillyusb_endpoint *ep = xb->ep; in process_bulk_in()
939 int dws = xb->len >> 2; in process_bulk_in()
940 __le32 *p = xb->buf; in process_bulk_in()
950 if ((dws << 2) != xb->len) { in process_bulk_in()
952 xb->len); in process_bulk_in()
1030 struct xillybuffer *xb; in bulk_in_work() local
1051 xb = list_first_entry(&ep->filled_buffers, struct xillybuffer, in bulk_in_work()
1053 list_del(&xb->entry); in bulk_in_work()
1060 rc = process_bulk_in(xb); in bulk_in_work()
1063 list_add_tail(&xb->entry, &ep->buffers); in bulk_in_work()