Home
last modified time | relevance | path

Searched refs:vhub (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/drivers/usb/gadget/udc/aspeed-vhub/
Dcore.c59 spin_unlock(&ep->vhub->lock); in ast_vhub_done()
61 spin_lock(&ep->vhub->lock); in ast_vhub_done()
98 struct ast_vhub *vhub = data; in ast_vhub_irq() local
103 if (!vhub->ep0_bufs) in ast_vhub_irq()
106 spin_lock(&vhub->lock); in ast_vhub_irq()
109 istat = readl(vhub->regs + AST_VHUB_ISR); in ast_vhub_irq()
112 writel(istat, vhub->regs + AST_VHUB_ISR); in ast_vhub_irq()
115 UDCVDBG(vhub, "irq status=%08x, ep_acks=%08x ep_nacks=%08x\n", in ast_vhub_irq()
117 readl(vhub->regs + AST_VHUB_EP_ACK_ISR), in ast_vhub_irq()
118 readl(vhub->regs + AST_VHUB_EP_NACK_ISR)); in ast_vhub_irq()
[all …]
Dhub.c189 if (ep->vhub->wakeup_en) in ast_vhub_hub_dev_status()
206 if (ep->vhub->ep1_stalled) in ast_vhub_hub_ep_status()
224 ep->vhub->wakeup_en = is_set; in ast_vhub_hub_dev_feature()
252 ep->vhub->ep1_stalled = is_set; in ast_vhub_hub_ep_feature()
253 reg = readl(ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature()
260 writel(reg, ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature()
309 if (desc_type == USB_DT_DEVICE && ep->vhub->force_usb1) in ast_vhub_rep_desc()
338 struct ast_vhub *vhub = ep->vhub; in ast_vhub_std_hub_request() local
346 if (vhub->speed == USB_SPEED_UNKNOWN) { in ast_vhub_std_hub_request()
347 u32 ustat = readl(vhub->regs + AST_VHUB_USBSTS); in ast_vhub_std_hub_request()
[all …]
Ddev.c69 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()
[all …]
Depn.c338 struct ast_vhub *vhub = ep->vhub; in ast_vhub_epn_queue() local
345 dev_warn(&vhub->pdev->dev, "Bogus EPn request ! u_req=%p\n", u_req); in ast_vhub_epn_queue()
347 dev_warn(&vhub->pdev->dev, "complete=%p internal=%d\n", in ast_vhub_epn_queue()
382 dev_warn(&vhub->pdev->dev, in ast_vhub_epn_queue()
401 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_epn_queue()
412 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_epn_queue()
435 dev_warn(&ep->vhub->pdev->dev, "Timeout waiting for DMA\n"); in ast_vhub_stop_active_req()
470 struct ast_vhub *vhub = ep->vhub; in ast_vhub_epn_dequeue() local
475 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_epn_dequeue()
492 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_epn_dequeue()
[all …]
Dep0.c59 spin_unlock(&ep->vhub->lock); in ast_vhub_reply()
64 spin_lock(&ep->vhub->lock); in ast_vhub_reply()
155 spin_unlock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup()
157 spin_lock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup()
273 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_handle_ack() local
274 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_handle_ack()
351 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_queue() local
352 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_queue()
390 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_ep0_queue()
395 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_queue()
[all …]
Dvhub.h280 struct ast_vhub *vhub; member
341 struct ast_vhub *vhub; member
426 dev_dbg(&(ep)->vhub->pdev->dev, \
433 dev_dbg(&(d)->vhub->pdev->dev, \
448 dev_dbg(&(ep)->vhub->pdev->dev, \
455 dev_dbg(&(d)->vhub->pdev->dev, \
505 void ast_vhub_init_hw(struct ast_vhub *vhub);
510 void ast_vhub_init_ep0(struct ast_vhub *vhub, struct ast_vhub_ep *ep,
520 void ast_vhub_init_hub(struct ast_vhub *vhub);
525 void ast_vhub_device_connect(struct ast_vhub *vhub, unsigned int port,
[all …]
DMakefile2 obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub.o
3 aspeed-vhub-y := core.o ep0.o epn.o dev.o hub.o
/Linux-v4.19/arch/arm/boot/dts/
Daspeed-ast2500-evb.dts89 &vhub {
Daspeed-g4.dtsi140 vhub: usb-vhub@1e6a0000 { label
141 compatible = "aspeed,ast2400-usb-vhub";
Daspeed-g5.dtsi186 vhub: usb-vhub@1e6a0000 { label
187 compatible = "aspeed,ast2500-usb-vhub";
/Linux-v4.19/drivers/usb/gadget/udc/
DMakefile42 obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub/
DKconfig442 source "drivers/usb/gadget/udc/aspeed-vhub/Kconfig"