| /Linux-v5.15/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 | 174 if (ep->vhub->wakeup_en) in ast_vhub_hub_dev_status() 191 if (ep->vhub->ep1_stalled) in ast_vhub_hub_ep_status() 209 ep->vhub->wakeup_en = is_set; in ast_vhub_hub_dev_feature() 237 ep->vhub->ep1_stalled = is_set; in ast_vhub_hub_ep_feature() 238 reg = readl(ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature() 245 writel(reg, ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature() 254 struct ast_vhub *vhub = ep->vhub; in ast_vhub_rep_desc() local 270 memcpy(ep->buf, &vhub->vhub_dev_desc, dsize); in ast_vhub_rep_desc() 271 BUILD_BUG_ON(dsize > sizeof(vhub->vhub_dev_desc)); in ast_vhub_rep_desc() 276 memcpy(ep->buf, &vhub->vhub_conf_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() 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() [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() 270 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_handle_ack() local 271 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_handle_ack() 358 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_queue() local 359 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_queue() 397 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_ep0_queue() 406 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 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 …]
|
| 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
|
| /Linux-v5.15/arch/arm/boot/dts/ |
| D | aspeed-bmc-facebook-galaxy100.dts | 51 &vhub {
|
| D | aspeed-bmc-facebook-wedge100.dts | 61 &vhub {
|
| D | ast2500-facebook-netbmc-common.dtsi | 69 &vhub {
|
| D | ast2400-facebook-netbmc-common.dtsi | 115 &vhub {
|
| D | aspeed-ast2500-evb.dts | 116 &vhub {
|
| D | ast2600-facebook-netbmc-common.dtsi | 151 &vhub {
|
| D | aspeed-g4.dtsi | 162 vhub: usb-vhub@1e6a0000 { label 163 compatible = "aspeed,ast2400-usb-vhub"; 167 aspeed,vhub-downstream-ports = <5>; 168 aspeed,vhub-generic-endpoints = <15>;
|
| D | aspeed-g6.dtsi | 289 vhub: usb-vhub@1e6a0000 { label 290 compatible = "aspeed,ast2600-usb-vhub"; 294 aspeed,vhub-downstream-ports = <7>; 295 aspeed,vhub-generic-endpoints = <21>;
|
| D | aspeed-g5.dtsi | 194 vhub: usb-vhub@1e6a0000 { label 195 compatible = "aspeed,ast2500-usb-vhub"; 199 aspeed,vhub-downstream-ports = <5>; 200 aspeed,vhub-generic-endpoints = <15>;
|
| D | aspeed-bmc-asrock-e3c246d4i.dts | 113 &vhub {
|
| D | aspeed-bmc-amd-ethanolx.dts | 317 &vhub {
|
| D | aspeed-bmc-opp-nicole.dts | 295 &vhub {
|
| D | aspeed-bmc-opp-romulus.dts | 341 &vhub {
|
| D | aspeed-bmc-inspur-nf5280m6.dts | 680 &vhub {
|
| D | aspeed-bmc-opp-mowgli.dts | 658 &vhub {
|
| D | aspeed-bmc-opp-witherspoon.dts | 690 &vhub {
|
| D | aspeed-bmc-ampere-mtjade.dts | 554 &vhub {
|
| /Linux-v5.15/drivers/usb/gadget/udc/ |
| D | Makefile | 42 obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub/
|