Lines Matching full:vhub

3  * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget
33 #include "vhub.h"
59 spin_unlock(&ep->vhub->lock); in ast_vhub_reply()
64 spin_lock(&ep->vhub->lock); in ast_vhub_reply()
128 /* If this is the vHub, we handle requests differently */ in ast_vhub_ep0_handle_setup()
157 spin_unlock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup()
159 spin_lock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup()
275 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_handle_ack() local
276 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_handle_ack()
363 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_queue() local
364 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_queue()
402 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_ep0_queue()
411 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_queue()
432 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_queue()
440 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_dequeue() local
445 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_ep0_dequeue()
466 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_dequeue()
487 void ast_vhub_init_ep0(struct ast_vhub *vhub, struct ast_vhub_ep *ep, in ast_vhub_init_ep0() argument
500 ep->vhub = vhub; in ast_vhub_init_ep0()
505 /* Small difference between vHub and devices */ in ast_vhub_init_ep0()
508 ep->ep0.setup = vhub->regs + in ast_vhub_init_ep0()
510 ep->buf = vhub->ep0_bufs + in ast_vhub_init_ep0()
512 ep->buf_dma = vhub->ep0_bufs_dma + in ast_vhub_init_ep0()
515 ep->ep0.ctlstat = vhub->regs + AST_VHUB_EP0_CTRL; in ast_vhub_init_ep0()
516 ep->ep0.setup = vhub->regs + AST_VHUB_SETUP0; in ast_vhub_init_ep0()
517 ep->buf = vhub->ep0_bufs; in ast_vhub_init_ep0()
518 ep->buf_dma = vhub->ep0_bufs_dma; in ast_vhub_init_ep0()