Lines Matching refs:vhub

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()
124 val = readl(d->vhub->regs + AST_VHUB_CTRL); in ast_vhub_dev_feature()
127 writel(val, d->vhub->regs + AST_VHUB_CTRL); in ast_vhub_dev_feature()
240 d->gadget.speed = ep->vhub->speed; in ast_vhub_std_dev_request()
283 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_wakeup()
290 ast_vhub_hub_wake_all(d->vhub); in ast_vhub_udc_wakeup()
293 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_wakeup()
301 return (readl(d->vhub->regs + AST_VHUB_USBSTS) >> 16) & 0x7ff; in ast_vhub_udc_get_frame()
320 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_pullup()
325 ast_vhub_device_connect(d->vhub, d->index, on); in ast_vhub_udc_pullup()
336 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_pullup()
347 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_start()
355 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_start()
450 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_stop()
462 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_stop()
479 spin_unlock(&d->vhub->lock); in ast_vhub_dev_suspend()
481 spin_lock(&d->vhub->lock); in ast_vhub_dev_suspend()
488 spin_unlock(&d->vhub->lock); in ast_vhub_dev_resume()
490 spin_lock(&d->vhub->lock); in ast_vhub_dev_resume()
508 spin_unlock(&d->vhub->lock); in ast_vhub_dev_reset()
510 spin_lock(&d->vhub->lock); in ast_vhub_dev_reset()
525 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_del_dev()
527 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_del_dev()
531 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_del_dev()
543 int ast_vhub_init_dev(struct ast_vhub *vhub, unsigned int idx) in ast_vhub_init_dev() argument
545 struct ast_vhub_dev *d = &vhub->ports[idx].dev; in ast_vhub_init_dev()
546 struct device *parent = &vhub->pdev->dev; in ast_vhub_init_dev()
549 d->vhub = vhub; in ast_vhub_init_dev()
552 d->regs = vhub->regs + 0x100 + 0x10 * idx; in ast_vhub_init_dev()
554 ast_vhub_init_ep0(vhub, &d->ep0, d); in ast_vhub_init_dev()
560 d->max_epns = min_t(u32, vhub->max_epns, 30); in ast_vhub_init_dev()
588 if (vhub->force_usb1) in ast_vhub_init_dev()
593 d->gadget.dev.of_node = vhub->pdev->dev.of_node; in ast_vhub_init_dev()