| /kernel/linux/linux-6.6/drivers/usb/gadget/udc/aspeed-vhub/ |
| D | core.c | 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 27 #include "vhub.h" 33 struct ast_vhub *vhub = ep->vhub; in ast_vhub_done() local 44 usb_gadget_unmap_request_by_dev(&vhub->pdev->dev, in ast_vhub_done() 54 spin_unlock(&ep->vhub->lock); in ast_vhub_done() 56 spin_lock(&ep->vhub->lock); in ast_vhub_done() 95 struct ast_vhub *vhub = data; in ast_vhub_irq() local 100 if (!vhub->ep0_bufs) in ast_vhub_irq() 103 spin_lock(&vhub->lock); in ast_vhub_irq() 106 istat = readl(vhub->regs + AST_VHUB_ISR); in ast_vhub_irq() [all …]
|
| D | hub.c | 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 31 #include "vhub.h" 185 if (ep->vhub->wakeup_en) in ast_vhub_hub_dev_status() 202 if (ep->vhub->ep1_stalled) in ast_vhub_hub_ep_status() 220 ep->vhub->wakeup_en = is_set; in ast_vhub_hub_dev_feature() 227 val = readl(ep->vhub->regs + AST_VHUB_CTRL); in ast_vhub_hub_dev_feature() 230 writel(val, ep->vhub->regs + AST_VHUB_CTRL); in ast_vhub_hub_dev_feature() 259 ep->vhub->ep1_stalled = is_set; in ast_vhub_hub_ep_feature() 260 reg = readl(ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature() 267 writel(reg, ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature() [all …]
|
| D | dev.c | 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 29 #include "vhub.h" 66 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable() 68 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable() 98 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable() 100 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable() 123 val = readl(d->vhub->regs + AST_VHUB_CTRL); in ast_vhub_dev_feature() 126 writel(val, d->vhub->regs + AST_VHUB_CTRL); in ast_vhub_dev_feature() 239 d->gadget.speed = ep->vhub->speed; in ast_vhub_std_dev_request() 282 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_wakeup() [all …]
|
| D | epn.c | 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 27 #include "vhub.h" 340 struct ast_vhub *vhub = ep->vhub; in ast_vhub_epn_queue() local 347 dev_warn(&vhub->pdev->dev, "Bogus EPn request ! u_req=%p\n", u_req); in ast_vhub_epn_queue() 349 dev_warn(&vhub->pdev->dev, "complete=%p internal=%d\n", in ast_vhub_epn_queue() 381 rc = usb_gadget_map_request_by_dev(&vhub->pdev->dev, u_req, in ast_vhub_epn_queue() 384 dev_warn(&vhub->pdev->dev, in ast_vhub_epn_queue() 403 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_epn_queue() 414 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_epn_queue() 440 dev_warn(&ep->vhub->pdev->dev, "Timeout waiting for DMA\n"); in ast_vhub_stop_active_req() [all …]
|
| D | ep0.c | 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 27 #include "vhub.h" 53 spin_unlock(&ep->vhub->lock); in ast_vhub_reply() 58 spin_lock(&ep->vhub->lock); in ast_vhub_reply() 122 /* If this is the vHub, we handle requests differently */ in ast_vhub_ep0_handle_setup() 151 spin_unlock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup() 153 spin_lock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup() 276 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_handle_ack() local 277 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_handle_ack() 364 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_queue() local [all …]
|
| D | vhub.h | 10 * VHUB register definitions * 136 * matching corresponding vHub EP0 control bits 210 * existing AST2400/AST2500 platforms. AST2600 and future vhub revisions 214 #define AST_VHUB_NUM_PORTS 5 /* vHub ports */ 265 * or internal use vhub EP0. vhub EP1 doesn't have an 277 /* Dev pointer or NULL for vHub EP0 */ 280 /* vHub itself */ 281 struct ast_vhub *vhub; member 292 /* EP0 (either device or vhub) */ 296 * vHub and devices but located in [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
|
| D | Kconfig | 3 tristate "Aspeed vHub UDC driver" 8 AST2600 family SoCs supporting the "vHub" functionality and USB2.0
|
| /kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/ |
| D | core.c | 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 33 #include "vhub.h" 39 struct ast_vhub *vhub = ep->vhub; in ast_vhub_done() local 50 usb_gadget_unmap_request_by_dev(&vhub->pdev->dev, in ast_vhub_done() 60 spin_unlock(&ep->vhub->lock); in ast_vhub_done() 62 spin_lock(&ep->vhub->lock); in ast_vhub_done() 101 struct ast_vhub *vhub = data; in ast_vhub_irq() local 106 if (!vhub->ep0_bufs) in ast_vhub_irq() 109 spin_lock(&vhub->lock); in ast_vhub_irq() 112 istat = readl(vhub->regs + AST_VHUB_ISR); in ast_vhub_irq() [all …]
|
| D | hub.c | 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 37 #include "vhub.h" 179 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() [all …]
|
| D | dev.c | 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 35 #include "vhub.h" 72 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() [all …]
|
| D | epn.c | 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 33 #include "vhub.h" 338 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() 379 rc = usb_gadget_map_request_by_dev(&vhub->pdev->dev, u_req, 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() 438 dev_warn(&ep->vhub->pdev->dev, "Timeout waiting for DMA\n"); in ast_vhub_stop_active_req() [all …]
|
| D | ep0.c | 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 33 #include "vhub.h" 59 spin_unlock(&ep->vhub->lock); in ast_vhub_reply() 64 spin_lock(&ep->vhub->lock); in ast_vhub_reply() 128 /* If this is the vHub, we handle requests differently */ in ast_vhub_ep0_handle_setup() 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 [all …]
|
| D | vhub.h | 10 * VHUB register definitions * 136 * matching corresponding vHub EP0 control bits 210 * existing AST2400/AST2500 platforms. AST2600 and future vhub revisions 214 #define AST_VHUB_NUM_PORTS 5 /* vHub ports */ 265 * or internal use vhub EP0. vhub EP1 doesn't have an 277 /* Dev pointer or NULL for vHub EP0 */ 280 /* vHub itself */ 281 struct ast_vhub *vhub; member 292 /* EP0 (either device or vhub) */ 296 * vHub and devices but located in [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
|
| D | Kconfig | 3 tristate "Aspeed vHub UDC driver" 8 AST2600 family SoCs supporting the "vHub" functionality and USB2.0
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/ |
| D | aspeed,usb-vhub.yaml | 5 $id: http://devicetree.org/schemas/usb/aspeed,usb-vhub.yaml# 26 - aspeed,ast2400-usb-vhub 27 - aspeed,ast2500-usb-vhub 28 - aspeed,ast2600-usb-vhub 39 aspeed,vhub-downstream-ports: 46 aspeed,vhub-generic-endpoints: 53 vhub-vendor-id: 54 description: vhub Vendor ID 58 vhub-product-id: 59 description: vhub Product ID [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/usb/ |
| D | aspeed,usb-vhub.yaml | 5 $id: http://devicetree.org/schemas/usb/aspeed,usb-vhub.yaml# 26 - aspeed,ast2400-usb-vhub 27 - aspeed,ast2500-usb-vhub 28 - aspeed,ast2600-usb-vhub 39 aspeed,vhub-downstream-ports: 46 aspeed,vhub-generic-endpoints: 53 vhub-vendor-id: 54 description: vhub Vendor ID 58 vhub-product-id: 59 description: vhub Product ID [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/aspeed/ |
| D | aspeed-bmc-inventec-transformers.dts | 318 &vhub { 320 aspeed,vhub-downstream-ports = <7>; 321 aspeed,vhub-generic-endpoints = <21>;
|
| D | aspeed-bmc-inventec-starscream.dts | 379 &vhub { 381 aspeed,vhub-downstream-ports = <7>; 382 aspeed,vhub-generic-endpoints = <21>;
|
| D | aspeed-bmc-facebook-galaxy100.dts | 51 &vhub {
|
| D | aspeed-bmc-facebook-wedge100.dts | 61 &vhub {
|
| D | ast2500-facebook-netbmc-common.dtsi | 73 &vhub {
|
| D | ast2400-facebook-netbmc-common.dtsi | 115 &vhub {
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | ast2500-facebook-netbmc-common.dtsi | 69 &vhub {
|