Lines Matching full:vhub
3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget
28 #include "vhub.h"
54 spin_unlock(&ep->vhub->lock); in ast_vhub_reply()
59 spin_lock(&ep->vhub->lock); in ast_vhub_reply()
123 /* If this is the vHub, we handle requests differently */ in ast_vhub_ep0_handle_setup()
152 spin_unlock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup()
154 spin_lock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup()
270 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_handle_ack() local
271 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_handle_ack()
358 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_queue() local
359 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_queue()
397 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_ep0_queue()
406 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_queue()
427 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_queue()
435 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_dequeue() local
440 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_ep0_dequeue()
461 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_dequeue()
482 void ast_vhub_init_ep0(struct ast_vhub *vhub, struct ast_vhub_ep *ep, in ast_vhub_init_ep0() argument
495 ep->vhub = vhub; in ast_vhub_init_ep0()
500 /* Small difference between vHub and devices */ in ast_vhub_init_ep0()
503 ep->ep0.setup = vhub->regs + in ast_vhub_init_ep0()
505 ep->buf = vhub->ep0_bufs + in ast_vhub_init_ep0()
507 ep->buf_dma = vhub->ep0_bufs_dma + in ast_vhub_init_ep0()
510 ep->ep0.ctlstat = vhub->regs + AST_VHUB_EP0_CTRL; in ast_vhub_init_ep0()
511 ep->ep0.setup = vhub->regs + AST_VHUB_SETUP0; in ast_vhub_init_ep0()
512 ep->buf = vhub->ep0_bufs; in ast_vhub_init_ep0()
513 ep->buf_dma = vhub->ep0_bufs_dma; in ast_vhub_init_ep0()