| /Linux-v6.6/drivers/usb/host/ |
| D | xhci.c | 3 * xHCI host controller driver 22 #include "xhci.h" 23 #include "xhci-trace.h" 24 #include "xhci-debugfs.h" 25 #include "xhci-dbgcap.h" 85 * Disable interrupts and begin the xHCI halting process. 87 void xhci_quiesce(struct xhci_hcd *xhci) in xhci_quiesce() argument 94 halted = readl(&xhci->op_regs->status) & STS_HALT; in xhci_quiesce() 98 cmd = readl(&xhci->op_regs->command); in xhci_quiesce() 100 writel(cmd, &xhci->op_regs->command); in xhci_quiesce() [all …]
|
| D | xhci-mem.c | 3 * xHCI host controller driver 18 #include "xhci.h" 19 #include "xhci-trace.h" 20 #include "xhci-debugfs.h" 29 static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci, in xhci_segment_alloc() argument 37 struct device *dev = xhci_to_hcd(xhci)->self.sysdev; in xhci_segment_alloc() 43 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc() 53 dma_pool_free(xhci->segment_pool, seg->trbs, dma); in xhci_segment_alloc() 69 static void xhci_segment_free(struct xhci_hcd *xhci, struct xhci_segment *seg) in xhci_segment_free() argument 72 dma_pool_free(xhci->segment_pool, seg->trbs, seg->dma); in xhci_segment_free() [all …]
|
| D | xhci-pci.c | 3 * xHCI host controller driver PCI Bus Glue. 18 #include "xhci.h" 19 #include "xhci-trace.h" 20 #include "xhci-pci.h" 92 static void xhci_msix_sync_irqs(struct xhci_hcd *xhci) in xhci_msix_sync_irqs() argument 94 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_msix_sync_irqs() 100 for (i = 0; i < xhci->msix_count; i++) in xhci_msix_sync_irqs() 106 static void xhci_cleanup_msix(struct xhci_hcd *xhci) in xhci_cleanup_msix() argument 108 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_cleanup_msix() 118 for (i = 0; i < xhci->msix_count; i++) in xhci_cleanup_msix() [all …]
|
| D | xhci-plat.c | 3 * xhci-plat.c - xHCI host controller driver platform Bus Glue. 8 * A lot of code borrowed from the Linux xHCI driver. 23 #include "xhci.h" 24 #include "xhci-plat.h" 25 #include "xhci-mvebu.h" 76 static void xhci_plat_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_plat_quirks() argument 78 struct xhci_plat_priv *priv = xhci_to_priv(xhci); in xhci_plat_quirks() 80 xhci->quirks |= priv->quirks; in xhci_plat_quirks() 117 .compatible = "generic-xhci", 119 .compatible = "xhci-platform", [all …]
|
| D | xhci-ring.c | 3 * xHCI host controller driver 58 #include "xhci.h" 59 #include "xhci-trace.h" 61 static int queue_command(struct xhci_hcd *xhci, struct xhci_command *cmd, 142 static void next_trb(struct xhci_hcd *xhci, in next_trb() argument 158 void inc_deq(struct xhci_hcd *xhci, struct xhci_ring *ring) in inc_deq() argument 178 xhci_warn(xhci, "Missing link TRB at end of segment\n"); in inc_deq() 188 xhci_warn(xhci, "Ring is an endless link TRB loop\n"); in inc_deq() 209 * xHCI hardware can't handle the chain bit being cleared on a link TRB. 214 static void inc_enq(struct xhci_hcd *xhci, struct xhci_ring *ring, in inc_enq() argument [all …]
|
| D | Makefile | 6 # tell define_trace.h where to find the xhci trace header 14 xhci-hcd-y := xhci.o xhci-mem.o xhci-ext-caps.o 15 xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o 16 xhci-hcd-y += xhci-trace.o 19 xhci-hcd-y += xhci-dbgcap.o xhci-dbgtty.o 22 xhci-mtk-hcd-y := xhci-mtk.o xhci-mtk-sch.o 24 xhci-plat-hcd-y := xhci-plat.o 26 xhci-plat-hcd-y += xhci-mvebu.o 29 xhci-hcd-y += xhci-debugfs.o 32 xhci-rcar-hcd-y += xhci-rcar.o [all …]
|
| D | xhci-hub.c | 3 * xHCI host controller driver 16 #include "xhci.h" 17 #include "xhci-trace.h" 35 static int xhci_create_usb3x_bos_desc(struct xhci_hcd *xhci, char *buf, in xhci_create_usb3x_bos_desc() argument 60 for (i = 0; i < xhci->num_port_caps; i++) { in xhci_create_usb3x_bos_desc() 61 u8 major = xhci->port_caps[i].maj_rev; in xhci_create_usb3x_bos_desc() 62 u8 minor = xhci->port_caps[i].min_rev; in xhci_create_usb3x_bos_desc() 67 port_cap = &xhci->port_caps[i]; in xhci_create_usb3x_bos_desc() 111 reg = readl(&xhci->cap_regs->hcc_params); in xhci_create_usb3x_bos_desc() 115 if ((xhci->quirks & XHCI_LPM_SUPPORT)) { in xhci_create_usb3x_bos_desc() [all …]
|
| D | xhci-debugfs.c | 3 * xhci-debugfs.c - xHCI debugfs interface 13 #include "xhci.h" 14 #include "xhci-debugfs.h" 86 static struct xhci_regset *xhci_debugfs_alloc_regset(struct xhci_hcd *xhci) in xhci_debugfs_alloc_regset() argument 99 list_add_tail(®set->list, &xhci->regset_list); in xhci_debugfs_alloc_regset() 114 static void xhci_debugfs_regset(struct xhci_hcd *xhci, u32 base, in xhci_debugfs_regset() argument 122 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_debugfs_regset() 124 rgs = xhci_debugfs_alloc_regset(xhci); in xhci_debugfs_regset() 141 static void xhci_debugfs_extcap_regset(struct xhci_hcd *xhci, int cap_id, in xhci_debugfs_extcap_regset() argument 148 void __iomem *base = &xhci->cap_regs->hc_capbase; in xhci_debugfs_extcap_regset() [all …]
|
| D | xhci-mtk.c | 3 * MediaTek xHCI Host Controller Driver 23 #include "xhci.h" 24 #include "xhci-mtk.h" 60 /* xHCI CSR */ 139 if (!of_device_is_compatible(dev->of_node, "mediatek,mt8195-xhci")) in xhci_mtk_set_frame_interval() 416 static void xhci_mtk_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_mtk_quirks() argument 418 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_mtk_quirks() 421 xhci->quirks |= XHCI_MTK_HOST; in xhci_mtk_quirks() 426 xhci->quirks |= XHCI_SPURIOUS_SUCCESS; in xhci_mtk_quirks() 428 xhci->quirks |= XHCI_LPM_SUPPORT; in xhci_mtk_quirks() [all …]
|
| D | xhci-histb.c | 3 * xHCI host controller driver for HiSilicon STB SoCs 19 #include "xhci.h" 69 * refer to xHCI spec in xhci_histb_config() 193 struct xhci_hcd *xhci; in xhci_histb_probe() local 252 xhci = hcd_to_xhci(hcd); in xhci_histb_probe() 256 xhci->main_hcd = hcd; in xhci_histb_probe() 257 xhci->shared_hcd = usb_create_shared_hcd(driver, dev, dev_name(dev), in xhci_histb_probe() 259 if (!xhci->shared_hcd) { in xhci_histb_probe() 265 xhci->quirks |= XHCI_HW_LPM_DISABLE; in xhci_histb_probe() 268 xhci->quirks |= XHCI_LPM_SUPPORT; in xhci_histb_probe() [all …]
|
| D | xhci-debugfs.h | 3 * xhci-debugfs.h - xHCI debugfs interface 107 void xhci_debugfs_init(struct xhci_hcd *xhci); 108 void xhci_debugfs_exit(struct xhci_hcd *xhci); 111 void xhci_debugfs_create_slot(struct xhci_hcd *xhci, int slot_id); 112 void xhci_debugfs_remove_slot(struct xhci_hcd *xhci, int slot_id); 113 void xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, 116 void xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, 119 void xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, 123 static inline void xhci_debugfs_init(struct xhci_hcd *xhci) { } in xhci_debugfs_init() argument 124 static inline void xhci_debugfs_exit(struct xhci_hcd *xhci) { } in xhci_debugfs_exit() argument [all …]
|
| D | xhci-rcar.c | 3 * xHCI host controller driver for R-Car SoCs 15 #include "xhci.h" 16 #include "xhci-plat.h" 17 #include "xhci-rzv2m.h" 93 return of_device_is_compatible(node, "renesas,xhci-r8a7790") || in xhci_rcar_is_gen2() 94 of_device_is_compatible(node, "renesas,xhci-r8a7791") || in xhci_rcar_is_gen2() 95 of_device_is_compatible(node, "renesas,xhci-r8a7793") || in xhci_rcar_is_gen2() 96 of_device_is_compatible(node, "renesas,rcar-gen2-xhci"); in xhci_rcar_is_gen2() 206 * pointers. So, this driver clears the AC64 bit of xhci->hcc_params 240 .compatible = "renesas,xhci-r8a7790", [all …]
|
| D | xhci-dbgcap.c | 3 * xhci-dbgcap.c - xHCI debug capability support 13 #include "xhci.h" 14 #include "xhci-trace.h" 15 #include "xhci-dbgcap.h" 412 /* xhci 7.6.9, all three contexts; info, ep-out and ep-in. Each 64 bytes*/ in dbc_alloc_ctx() 923 struct xhci_hcd *xhci; in dbc_show() local 925 xhci = hcd_to_xhci(dev_get_drvdata(dev)); in dbc_show() 926 dbc = xhci->dbc; in dbc_show() 958 struct xhci_hcd *xhci; in dbc_store() local 961 xhci = hcd_to_xhci(dev_get_drvdata(dev)); in dbc_store() [all …]
|
| D | xhci.h | 4 * xHCI host controller driver 21 /* Code sharing between pci-quirks and xhci hcd */ 22 #include "xhci-ext-caps.h" 28 /* xHCI PCI Configuration Registers */ 37 * xHCI register interface. 38 * This corresponds to the eXtensible Host Controller Interface (xHCI) 43 * struct xhci_cap_regs - xHCI Host Controller Capability Registers. 51 * @hcc_params2: HCCPARAMS2 Capability Parameters 2, xhci 1.1 only 61 __le32 hcc_params2; /* xhci 1.1 */ 158 * struct xhci_op_regs - xHCI Host Controller Operational Registers. [all …]
|
| D | xhci-ext-caps.c | 3 * XHCI extended capability handling 11 #include "xhci.h" 28 static int xhci_create_intel_xhci_sw_pdev(struct xhci_hcd *xhci, u32 cap_offset) in xhci_create_intel_xhci_sw_pdev() argument 30 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_create_intel_xhci_sw_pdev() 39 xhci_err(xhci, "couldn't allocate %s platform device\n", in xhci_create_intel_xhci_sw_pdev() 84 int xhci_ext_cap_init(struct xhci_hcd *xhci) in xhci_ext_cap_init() argument 86 void __iomem *base = &xhci->cap_regs->hc_capbase; in xhci_ext_cap_init() 97 if (xhci->quirks & XHCI_INTEL_USB_ROLE_SW) { in xhci_ext_cap_init() 98 ret = xhci_create_intel_xhci_sw_pdev(xhci, in xhci_ext_cap_init()
|
| D | xhci-dbgcap.h | 3 * xhci-dbgcap.h - xHCI debug capability support 124 struct xhci_hcd *xhci; member 202 int xhci_create_dbc_dev(struct xhci_hcd *xhci); 203 void xhci_remove_dbc_dev(struct xhci_hcd *xhci); 208 int xhci_dbc_tty_probe(struct device *dev, void __iomem *res, struct xhci_hcd *xhci); 219 int xhci_dbc_suspend(struct xhci_hcd *xhci); 220 int xhci_dbc_resume(struct xhci_hcd *xhci); 223 static inline int xhci_create_dbc_dev(struct xhci_hcd *xhci) in xhci_create_dbc_dev() argument 228 static inline void xhci_remove_dbc_dev(struct xhci_hcd *xhci) in xhci_remove_dbc_dev() argument 238 static inline int xhci_dbc_suspend(struct xhci_hcd *xhci) in xhci_dbc_suspend() argument [all …]
|
| D | xhci-dbg.c | 3 * xHCI host controller driver 11 #include "xhci.h" 13 char *xhci_get_slot_state(struct xhci_hcd *xhci, in xhci_get_slot_state() argument 16 struct xhci_slot_ctx *slot_ctx = xhci_get_slot_ctx(xhci, ctx); in xhci_get_slot_state() 22 void xhci_dbg_trace(struct xhci_hcd *xhci, void (*trace)(struct va_format *), in xhci_dbg_trace() argument 31 xhci_dbg(xhci, "%pV\n", &vaf); in xhci_dbg_trace()
|
| D | Kconfig | 21 tristate "xHCI HCD (USB 3.0) support" 24 The eXtensible Host Controller Interface (xHCI) is standard for USB 3.0 28 module will be called xhci-hcd. 32 bool "xHCI support for debug capability" 35 Say 'Y' to enable the support for the xHCI debug capability. Make 36 sure that your xHCI host supports the extended debug capability and 37 you want a TTY serial device based on the xHCI debug capability 47 tristate "Support for additional Renesas xHCI controller with firmware" 49 Say 'Y' to enable the support for the Renesas xHCI controller with 55 tristate "Generic xHCI driver for a platform device" [all …]
|
| /Linux-v6.6/Documentation/devicetree/bindings/usb/ |
| D | renesas,usb-xhci.yaml | 4 $id: http://devicetree.org/schemas/usb/renesas,usb-xhci.yaml# 7 title: Renesas USB xHCI controllers 18 - renesas,xhci-r8a7742 # RZ/G1H 19 - renesas,xhci-r8a7743 # RZ/G1M 20 - renesas,xhci-r8a7744 # RZ/G1N 21 - renesas,xhci-r8a7790 # R-Car H2 22 - renesas,xhci-r8a7791 # R-Car M2-W 23 - renesas,xhci-r8a7793 # R-Car M2-N 24 - const: renesas,rcar-gen2-xhci # R-Car Gen2 and RZ/G1 27 - renesas,xhci-r8a774a1 # RZ/G2M [all …]
|
| D | generic-xhci.yaml | 4 $id: http://devicetree.org/schemas/usb/generic-xhci.yaml# 7 title: USB xHCI Controller 13 - $ref: usb-xhci.yaml# 18 - description: Generic xHCI device 19 const: generic-xhci 23 - marvell,armada3700-xhci 24 - marvell,armada-375-xhci 25 - marvell,armada-380-xhci 26 - marvell,armada-8k-xhci 27 - const: generic-xhci [all …]
|
| D | mediatek,mtk-xhci.yaml | 5 $id: http://devicetree.org/schemas/usb/mediatek,mtk-xhci.yaml# 8 title: MediaTek USB3 xHCI 14 - $ref: usb-xhci.yaml 18 case 1: only supports xHCI driver; 19 case 2: supports dual-role mode, and the host is based on xHCI driver. 26 - mediatek,mt2701-xhci 27 - mediatek,mt2712-xhci 28 - mediatek,mt7622-xhci 29 - mediatek,mt7623-xhci 30 - mediatek,mt7629-xhci [all …]
|
| /Linux-v6.6/Documentation/devicetree/bindings/phy/ |
| D | realtek,usb2phy.yaml | 15 The USB 2.0 PHY driver is designed to support the XHCI controller. The SoCs 16 support multiple XHCI controllers. One PHY device node maps to one XHCI 20 The USB architecture includes three XHCI controllers. 21 Each XHCI maps to one USB 2.0 PHY and map one USB 3.0 PHY on some 23 XHCI controller#0 -- usb2phy -- phy#0 25 XHCI controller#1 -- usb2phy -- phy#0 26 XHCI controller#2 -- usb2phy -- phy#0 30 The USB architecture includes two XHCI controllers. 33 XHCI controller#0 -- usb2phy -- phy#0 34 XHCI controller#1 -- usb2phy -- phy#0 [all …]
|
| D | realtek,usb3phy.yaml | 15 The USB 3.0 PHY driver is designed to support the XHCI controller. The SoCs 16 support multiple XHCI controllers. One PHY device node maps to one XHCI 20 The USB architecture includes three XHCI controllers. 21 Each XHCI maps to one USB 2.0 PHY and map one USB 3.0 PHY on some 23 XHCI controller#0 -- usb2phy -- phy#0 25 XHCI controller#1 -- usb2phy -- phy#0 26 XHCI controller#2 -- usb2phy -- phy#0 30 The USB architecture includes three XHCI controllers. 31 Each XHCI maps to one USB 2.0 PHY and map one USB 3.0 PHY on controllers#2. 32 XHCI controller#0 -- usb2phy -- phy#0 [all …]
|
| /Linux-v6.6/drivers/usb/cdns3/ |
| D | host.c | 18 #include "../host/xhci.h" 19 #include "../host/xhci-plat.h" 29 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_cdns3_plat_start() local 33 value = readl(&xhci->op_regs->command); in xhci_cdns3_plat_start() 35 writel(value, &xhci->op_regs->command); in xhci_cdns3_plat_start() 62 struct platform_device *xhci; in __cdns_host_init() local 68 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in __cdns_host_init() 69 if (!xhci) { in __cdns_host_init() 70 dev_err(cdns->dev, "couldn't allocate xHCI device\n"); in __cdns_host_init() 74 xhci->dev.parent = cdns->dev; in __cdns_host_init() [all …]
|
| /Linux-v6.6/drivers/usb/dwc3/ |
| D | host.c | 65 struct platform_device *xhci; in dwc3_host_init() local 73 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in dwc3_host_init() 74 if (!xhci) { in dwc3_host_init() 75 dev_err(dwc->dev, "couldn't allocate xHCI device\n"); in dwc3_host_init() 79 xhci->dev.parent = dwc->dev; in dwc3_host_init() 81 dwc->xhci = xhci; in dwc3_host_init() 83 ret = platform_device_add_resources(xhci, dwc->xhci_resources, in dwc3_host_init() 86 dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); in dwc3_host_init() 105 * This following flag tells XHCI to do just that. in dwc3_host_init() 111 ret = device_create_managed_software_node(&xhci->dev, props, NULL); in dwc3_host_init() [all …]
|