Lines Matching refs:vhub
69 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable()
71 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable()
88 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable()
90 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable()
214 d->gadget.speed = ep->vhub->speed; in ast_vhub_std_dev_request()
257 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_wakeup()
264 ast_vhub_hub_wake_all(d->vhub); in ast_vhub_udc_wakeup()
267 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_wakeup()
275 return (readl(d->vhub->regs + AST_VHUB_USBSTS) >> 16) & 0x7ff; in ast_vhub_udc_get_frame()
294 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_pullup()
299 ast_vhub_device_connect(d->vhub, d->index, on); in ast_vhub_udc_pullup()
310 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_pullup()
321 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_start()
329 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_start()
424 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_stop()
436 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_stop()
454 spin_unlock(&d->vhub->lock); in ast_vhub_dev_suspend()
456 spin_lock(&d->vhub->lock); in ast_vhub_dev_suspend()
464 spin_unlock(&d->vhub->lock); in ast_vhub_dev_resume()
466 spin_lock(&d->vhub->lock); in ast_vhub_dev_resume()
488 spin_unlock(&d->vhub->lock); in ast_vhub_dev_reset()
490 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()
536 int ast_vhub_init_dev(struct ast_vhub *vhub, unsigned int idx) in ast_vhub_init_dev() argument
538 struct ast_vhub_dev *d = &vhub->ports[idx].dev; in ast_vhub_init_dev()
539 struct device *parent = &vhub->pdev->dev; in ast_vhub_init_dev()
542 d->vhub = vhub; in ast_vhub_init_dev()
545 d->regs = vhub->regs + 0x100 + 0x10 * idx; in ast_vhub_init_dev()
547 ast_vhub_init_ep0(vhub, &d->ep0, d); in ast_vhub_init_dev()
570 if (vhub->force_usb1) in ast_vhub_init_dev()
575 d->gadget.dev.of_node = vhub->pdev->dev.of_node; in ast_vhub_init_dev()