Searched refs:vhub (Results 1 – 9 of 9) sorted by relevance
/drivers/usb/gadget/udc/aspeed-vhub/ |
D | core.c | 34 struct ast_vhub *vhub = ep->vhub; in ast_vhub_done() local 45 usb_gadget_unmap_request_by_dev(&vhub->pdev->dev, in ast_vhub_done() 55 spin_unlock(&ep->vhub->lock); in ast_vhub_done() 57 spin_lock(&ep->vhub->lock); in ast_vhub_done() 96 struct ast_vhub *vhub = data; in ast_vhub_irq() local 101 if (!vhub->ep0_bufs) in ast_vhub_irq() 104 spin_lock(&vhub->lock); in ast_vhub_irq() 107 istat = readl(vhub->regs + AST_VHUB_ISR); in ast_vhub_irq() 110 writel(istat, vhub->regs + AST_VHUB_ISR); in ast_vhub_irq() 113 UDCVDBG(vhub, "irq status=%08x, ep_acks=%08x ep_nacks=%08x\n", in ast_vhub_irq() [all …]
|
D | hub.c | 186 if (ep->vhub->wakeup_en) in ast_vhub_hub_dev_status() 203 if (ep->vhub->ep1_stalled) in ast_vhub_hub_ep_status() 221 ep->vhub->wakeup_en = is_set; in ast_vhub_hub_dev_feature() 228 val = readl(ep->vhub->regs + AST_VHUB_CTRL); in ast_vhub_hub_dev_feature() 231 writel(val, ep->vhub->regs + AST_VHUB_CTRL); in ast_vhub_hub_dev_feature() 260 ep->vhub->ep1_stalled = is_set; in ast_vhub_hub_ep_feature() 261 reg = readl(ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature() 268 writel(reg, ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature() 277 struct ast_vhub *vhub = ep->vhub; in ast_vhub_rep_desc() local 293 memcpy(ep->buf, &vhub->vhub_dev_desc, dsize); in ast_vhub_rep_desc() [all …]
|
D | dev.c | 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() [all …]
|
D | epn.c | 333 struct ast_vhub *vhub = ep->vhub; in ast_vhub_epn_queue() local 340 dev_warn(&vhub->pdev->dev, "Bogus EPn request ! u_req=%p\n", u_req); in ast_vhub_epn_queue() 342 dev_warn(&vhub->pdev->dev, "complete=%p internal=%d\n", in ast_vhub_epn_queue() 374 rc = usb_gadget_map_request_by_dev(&vhub->pdev->dev, u_req, in ast_vhub_epn_queue() 377 dev_warn(&vhub->pdev->dev, in ast_vhub_epn_queue() 396 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_epn_queue() 407 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_epn_queue() 433 dev_warn(&ep->vhub->pdev->dev, "Timeout waiting for DMA\n"); in ast_vhub_stop_active_req() 468 struct ast_vhub *vhub = ep->vhub; in ast_vhub_epn_dequeue() local 473 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_epn_dequeue() [all …]
|
D | ep0.c | 54 spin_unlock(&ep->vhub->lock); in ast_vhub_reply() 59 spin_lock(&ep->vhub->lock); in ast_vhub_reply() 152 spin_unlock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup() 154 spin_lock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup() 277 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_handle_ack() local 278 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_handle_ack() 365 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_queue() local 366 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_queue() 404 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_ep0_queue() 413 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_queue() [all …]
|
D | vhub.h | 281 struct ast_vhub *vhub; member 342 struct ast_vhub *vhub; member 443 dev_dbg(&(ep)->vhub->pdev->dev, \ 450 dev_dbg(&(d)->vhub->pdev->dev, \ 465 dev_dbg(&(ep)->vhub->pdev->dev, \ 472 dev_dbg(&(d)->vhub->pdev->dev, \ 522 void ast_vhub_init_hw(struct ast_vhub *vhub); 528 void ast_vhub_init_ep0(struct ast_vhub *vhub, struct ast_vhub_ep *ep, 538 int ast_vhub_init_hub(struct ast_vhub *vhub); 543 void ast_vhub_device_connect(struct ast_vhub *vhub, unsigned int port, [all …]
|
D | Makefile | 2 obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub.o 3 aspeed-vhub-y := core.o ep0.o epn.o dev.o hub.o
|
/drivers/usb/gadget/udc/ |
D | Makefile | 42 obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub/
|
D | Kconfig | 479 source "drivers/usb/gadget/udc/aspeed-vhub/Kconfig"
|