Lines Matching full:vhub

3  * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget
35 #include "vhub.h"
72 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable()
74 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable()
104 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable()
106 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable()
234 d->gadget.speed = ep->vhub->speed; in ast_vhub_std_dev_request()
277 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_wakeup()
284 ast_vhub_hub_wake_all(d->vhub); in ast_vhub_udc_wakeup()
287 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_wakeup()
295 return (readl(d->vhub->regs + AST_VHUB_USBSTS) >> 16) & 0x7ff; in ast_vhub_udc_get_frame()
314 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_pullup()
319 ast_vhub_device_connect(d->vhub, d->index, on); in ast_vhub_udc_pullup()
330 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_pullup()
341 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_start()
349 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_start()
444 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_stop()
456 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_stop()
473 spin_unlock(&d->vhub->lock); in ast_vhub_dev_suspend()
475 spin_lock(&d->vhub->lock); in ast_vhub_dev_suspend()
482 spin_unlock(&d->vhub->lock); in ast_vhub_dev_resume()
484 spin_lock(&d->vhub->lock); in ast_vhub_dev_resume()
502 spin_unlock(&d->vhub->lock); in ast_vhub_dev_reset()
504 spin_lock(&d->vhub->lock); in ast_vhub_dev_reset()
519 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_del_dev()
521 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_del_dev()
525 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_del_dev()
537 int ast_vhub_init_dev(struct ast_vhub *vhub, unsigned int idx) in ast_vhub_init_dev() argument
539 struct ast_vhub_dev *d = &vhub->ports[idx].dev; in ast_vhub_init_dev()
540 struct device *parent = &vhub->pdev->dev; in ast_vhub_init_dev()
543 d->vhub = vhub; in ast_vhub_init_dev()
546 d->regs = vhub->regs + 0x100 + 0x10 * idx; in ast_vhub_init_dev()
548 ast_vhub_init_ep0(vhub, &d->ep0, d); in ast_vhub_init_dev()
554 d->max_epns = min_t(u32, vhub->max_epns, 30); in ast_vhub_init_dev()
582 if (vhub->force_usb1) in ast_vhub_init_dev()
587 d->gadget.dev.of_node = vhub->pdev->dev.of_node; in ast_vhub_init_dev()