Lines Matching refs:vhub

3  * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget
33 #include "vhub.h"
338 struct ast_vhub *vhub = ep->vhub;
345 dev_warn(&vhub->pdev->dev, "Bogus EPn request ! u_req=%p\n", u_req);
347 dev_warn(&vhub->pdev->dev, "complete=%p internal=%d\n",
379 rc = usb_gadget_map_request_by_dev(&vhub->pdev->dev, u_req,
382 dev_warn(&vhub->pdev->dev,
401 spin_lock_irqsave(&vhub->lock, flags);
412 spin_unlock_irqrestore(&vhub->lock, flags);
438 dev_warn(&ep->vhub->pdev->dev, "Timeout waiting for DMA\n");
473 struct ast_vhub *vhub = ep->vhub;
478 spin_lock_irqsave(&vhub->lock, flags);
495 spin_unlock_irqrestore(&vhub->lock, flags);
514 ep->vhub->regs + AST_VHUB_EP_TOGGLE);
521 struct ast_vhub *vhub = ep->vhub;
533 spin_lock_irqsave(&vhub->lock, flags);
537 spin_unlock_irqrestore(&vhub->lock, flags);
544 spin_unlock_irqrestore(&vhub->lock, flags);
562 struct ast_vhub *vhub = ep->vhub;
568 spin_lock_irqsave(&vhub->lock, flags);
580 ep_ier = readl(vhub->regs + AST_VHUB_EP_ACK_IER);
582 writel(ep_ier, vhub->regs + AST_VHUB_EP_ACK_IER);
583 writel(imask, vhub->regs + AST_VHUB_EP_ACK_ISR);
591 spin_unlock_irqrestore(&vhub->lock, flags);
601 struct ast_vhub *vhub;
629 vhub = ep->vhub;
695 spin_lock_irqsave(&vhub->lock, flags);
739 vhub->regs + AST_VHUB_EP_TOGGLE);
743 writel(imask, vhub->regs + AST_VHUB_EP_ACK_ISR);
744 ep_ier = readl(vhub->regs + AST_VHUB_EP_ACK_IER);
746 writel(ep_ier, vhub->regs + AST_VHUB_EP_ACK_IER);
751 spin_unlock_irqrestore(&vhub->lock, flags);
774 dma_free_coherent(&ep->vhub->pdev->dev,
799 struct ast_vhub *vhub = d->vhub;
805 spin_lock_irqsave(&vhub->lock, flags);
806 for (i = 0; i < vhub->max_epns; i++)
807 if (vhub->epns[i].dev == NULL)
809 if (i >= vhub->max_epns) {
810 spin_unlock_irqrestore(&vhub->lock, flags);
815 ep = &vhub->epns[i];
817 spin_unlock_irqrestore(&vhub->lock, flags);
822 ep->vhub = vhub;
827 ep->epn.regs = vhub->regs + 0x200 + (i * 0x10);
829 ep->buf = dma_alloc_coherent(&vhub->pdev->dev,