Lines Matching full:vhub

3  * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget
30 #include "vhub.h"
67 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable()
69 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable()
99 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable()
101 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable()
229 d->gadget.speed = ep->vhub->speed; in ast_vhub_std_dev_request()
272 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_wakeup()
279 ast_vhub_hub_wake_all(d->vhub); in ast_vhub_udc_wakeup()
282 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_wakeup()
290 return (readl(d->vhub->regs + AST_VHUB_USBSTS) >> 16) & 0x7ff; in ast_vhub_udc_get_frame()
309 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_pullup()
314 ast_vhub_device_connect(d->vhub, d->index, on); in ast_vhub_udc_pullup()
325 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_pullup()
336 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_start()
344 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_start()
439 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_stop()
451 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_stop()
468 spin_unlock(&d->vhub->lock); in ast_vhub_dev_suspend()
470 spin_lock(&d->vhub->lock); in ast_vhub_dev_suspend()
477 spin_unlock(&d->vhub->lock); in ast_vhub_dev_resume()
479 spin_lock(&d->vhub->lock); in ast_vhub_dev_resume()
497 spin_unlock(&d->vhub->lock); in ast_vhub_dev_reset()
499 spin_lock(&d->vhub->lock); in ast_vhub_dev_reset()
514 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_del_dev()
516 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_del_dev()
520 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_del_dev()
532 int ast_vhub_init_dev(struct ast_vhub *vhub, unsigned int idx) in ast_vhub_init_dev() argument
534 struct ast_vhub_dev *d = &vhub->ports[idx].dev; in ast_vhub_init_dev()
535 struct device *parent = &vhub->pdev->dev; in ast_vhub_init_dev()
538 d->vhub = vhub; in ast_vhub_init_dev()
541 d->regs = vhub->regs + 0x100 + 0x10 * idx; in ast_vhub_init_dev()
543 ast_vhub_init_ep0(vhub, &d->ep0, d); in ast_vhub_init_dev()
549 d->max_epns = min_t(u32, vhub->max_epns, 30); in ast_vhub_init_dev()
577 if (vhub->force_usb1) in ast_vhub_init_dev()
582 d->gadget.dev.of_node = vhub->pdev->dev.of_node; in ast_vhub_init_dev()