Home
last modified time | relevance | path

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

/Linux-v5.10/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()
100 struct ast_vhub *vhub = data; in ast_vhub_irq() local
105 if (!vhub->ep0_bufs) in ast_vhub_irq()
108 spin_lock(&vhub->lock); in ast_vhub_irq()
111 istat = readl(vhub->regs + AST_VHUB_ISR); in ast_vhub_irq()
114 writel(istat, vhub->regs + AST_VHUB_ISR); in ast_vhub_irq()
117 UDCVDBG(vhub, "irq status=%08x, ep_acks=%08x ep_nacks=%08x\n", in ast_vhub_irq()
119 readl(vhub->regs + AST_VHUB_EP_ACK_ISR), in ast_vhub_irq()
120 readl(vhub->regs + AST_VHUB_EP_NACK_ISR)); in ast_vhub_irq()
[all …]
Dhub.c179 if (ep->vhub->wakeup_en) in ast_vhub_hub_dev_status()
196 if (ep->vhub->ep1_stalled) in ast_vhub_hub_ep_status()
214 ep->vhub->wakeup_en = is_set; in ast_vhub_hub_dev_feature()
242 ep->vhub->ep1_stalled = is_set; in ast_vhub_hub_ep_feature()
243 reg = readl(ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature()
250 writel(reg, ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature()
259 struct ast_vhub *vhub = ep->vhub; in ast_vhub_rep_desc() local
275 memcpy(ep->buf, &vhub->vhub_dev_desc, dsize); in ast_vhub_rep_desc()
276 BUILD_BUG_ON(dsize > sizeof(vhub->vhub_dev_desc)); in ast_vhub_rep_desc()
281 memcpy(ep->buf, &vhub->vhub_conf_desc, dsize); in ast_vhub_rep_desc()
[all …]
Ddev.c72 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()
[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()
157 spin_unlock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup()
159 spin_lock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup()
275 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_handle_ack() local
276 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_handle_ack()
363 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_queue() local
364 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_queue()
402 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_ep0_queue()
411 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_queue()
[all …]
Dvhub.h281 struct ast_vhub *vhub; member
342 struct ast_vhub *vhub; member
442 dev_dbg(&(ep)->vhub->pdev->dev, \
449 dev_dbg(&(d)->vhub->pdev->dev, \
464 dev_dbg(&(ep)->vhub->pdev->dev, \
471 dev_dbg(&(d)->vhub->pdev->dev, \
521 void ast_vhub_init_hw(struct ast_vhub *vhub);
527 void ast_vhub_init_ep0(struct ast_vhub *vhub, struct ast_vhub_ep *ep,
537 int ast_vhub_init_hub(struct ast_vhub *vhub);
542 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-v5.10/arch/arm/boot/dts/
Dast2500-facebook-netbmc-common.dtsi69 &vhub {
Daspeed-ast2500-evb.dts116 &vhub {
Daspeed-bmc-facebook-wedge100.dts146 &vhub {
Daspeed-bmc-facebook-wedge40.dts132 &vhub {
Daspeed-g6.dtsi283 vhub: usb-vhub@1e6a0000 { label
284 compatible = "aspeed,ast2600-usb-vhub";
288 aspeed,vhub-downstream-ports = <7>;
289 aspeed,vhub-generic-endpoints = <21>;
Daspeed-g4.dtsi162 vhub: usb-vhub@1e6a0000 { label
163 compatible = "aspeed,ast2400-usb-vhub";
167 aspeed,vhub-downstream-ports = <5>;
168 aspeed,vhub-generic-endpoints = <15>;
Daspeed-g5.dtsi194 vhub: usb-vhub@1e6a0000 { label
195 compatible = "aspeed,ast2500-usb-vhub";
199 aspeed,vhub-downstream-ports = <5>;
200 aspeed,vhub-generic-endpoints = <15>;
Daspeed-bmc-opp-nicole.dts295 &vhub {
Daspeed-bmc-opp-romulus.dts341 &vhub {
Daspeed-bmc-opp-mowgli.dts653 &vhub {
Daspeed-bmc-opp-witherspoon.dts690 &vhub {
Daspeed-bmc-inspur-fp5280g2.dts813 &vhub {
Daspeed-bmc-opp-mihawk.dts1337 &vhub {
Daspeed-bmc-facebook-cmm.dts1560 &vhub {
/Linux-v5.10/drivers/usb/gadget/udc/
DMakefile43 obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub/
DKconfig465 source "drivers/usb/gadget/udc/aspeed-vhub/Kconfig"