/linux/drivers/usb/host/ |
H A D | xhci-dbgcap.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * xhci-dbgcap.c - xHCI debug capability support 11 #include <linux/dma-mapping.h> 24 #include <linux/io-64-nonatomic-lo-hi.h> 28 #include "xhci.h" 29 #include "xhci-trace.h" 30 #include "xhci-dbgcap.h" 36 dma_free_coherent(dev, ctx->size, ctx->bytes, ctx->dma); in dbc_free_ctx() 46 if (ring->first_seg) { in dbc_ring_free() 48 ring->first_seg->trbs, in dbc_ring_free() [all …]
|
H A D | xhci-debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0 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 98 INIT_LIST_HEAD(®set->list); in xhci_debugfs_alloc_regset() 99 list_add_tail(®set->list, &xhci->regset_list); in xhci_debugfs_alloc_regset() 109 list_del(®set->list); in xhci_debugfs_free_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() [all …]
|
H A D | xhci-mem.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * xHCI host controller driver 16 #include <linux/dma-mapping.h> 18 #include "xhci.h" 19 #include "xhci-trace.h" 20 #include "xhci-debugfs.h" 23 * Allocates a generic ring segment from the ring pool, sets the dma address, 29 static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci, in xhci_segment_alloc() argument 36 struct device *dev = xhci_to_hcd(xhci)->self.sysdev; in xhci_segment_alloc() 42 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc() [all …]
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | usb-xhci.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/usb/usb-xhci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Generic USB xHCI Controller 10 - Mathias Nyman <mathias.nyman@intel.com> 13 - $ref: usb-hcd.yaml# 16 usb2-lpm-disable: 20 usb3-lpm-capable: 24 quirk-broken-port-ped: [all …]
|
/linux/arch/arm64/boot/dts/broadcom/stingray/ |
H A D | stingray-usb.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 6 compatible = "simple-bus"; 7 #address-cells = <2>; 8 #size-cells = <2>; 13 * to 40-bit 15 dma-ranges = <0 0 0 0 0x100 0x0>; 17 usbphy0: usb-phy@0 { 18 compatible = "brcm,sr-usb-combo-phy"; 20 #phy-cells = <1>; 25 compatible = "generic-xhci"; [all …]
|
/linux/arch/arm/boot/dts/mediatek/ |
H A D | mt2701.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/clock/mt2701-clk.h> 9 #include <dt-bindings/phy/phy.h> 10 #include <dt-bindings/power/mt2701-power.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/memory/mt2701-larb-port.h> 14 #include <dt-bindings/reset/mt2701-resets.h> 15 #include "mt2701-pinfunc.h" 18 #address-cells = <2>; [all …]
|
H A D | mt7629.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/clock/mt7629-clk.h> 11 #include <dt-bindings/power/mt7622-power.h> 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/phy/phy.h> 14 #include <dt-bindings/reset/mt7629-resets.h> 18 interrupt-parent = <&sysirq>; 19 #address-cells = <1>; [all …]
|
/linux/arch/arm64/boot/dts/broadcom/bcmbca/ |
H A D | bcm4908.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 #include <dt-bindings/interrupt-controller/irq.h> 4 #include <dt-bindings/interrupt-controller/arm-gic.h> 5 #include <dt-bindings/phy/phy.h> 6 #include <dt-bindings/soc/bcm-pmb.h> 8 /dts-v1/; 11 interrupt-parent = <&gic>; 13 #address-cells = <2>; 14 #size-cells = <2>; 21 stdout-path = "serial0:115200n8"; [all …]
|
/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm-ns.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright 2013-2014 Hauke Mehrtens <hauke@hauke-m.de> 6 #include <dt-bindings/clock/bcm-nsp.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 interrupt-parent = <&gic>; 14 #address-cells = <1>; 15 #size-cells = <1>; [all …]
|
H A D | bcm-nsp.dtsi | 33 #include <dt-bindings/interrupt-controller/arm-gic.h> 34 #include <dt-bindings/interrupt-controller/irq.h> 35 #include <dt-bindings/clock/bcm-nsp.h> 38 #address-cells = <1>; 39 #size-cells = <1>; 42 interrupt-parent = <&gic>; 53 #address-cells = <1>; 54 #size-cells = <0>; 58 compatible = "arm,cortex-a9"; 59 next-level-cache = <&L2>; [all …]
|
/linux/drivers/usb/core/ |
H A D | hcd-pci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright David Brownell 2000-2002 23 /* PCI-based HCs are common, but plenty of non-PCI HCs are used too */ 38 return pdev->class == CL_OHCI || pdev->class == CL_UHCI; in is_ohci_or_uhci() 50 unsigned int slot = PCI_SLOT(pdev->devfn); in for_each_companion() 59 if (companion->bus != pdev->bus || in for_each_companion() 60 PCI_SLOT(companion->devfn) != slot) in for_each_companion() 67 if (companion->class != CL_UHCI && companion->class != CL_OHCI && in for_each_companion() 68 companion->class != CL_EHCI) in for_each_companion() 72 if (!companion_hcd || !companion_hcd->self.root_hub) in for_each_companion() [all …]
|
H A D | message.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * message.c - synchronous message handling 37 struct api_context *ctx = urb->context; in usb_api_blocking_completion() 39 ctx->status = urb->status; in usb_api_blocking_completion() 40 complete(&ctx->done); in usb_api_blocking_completion() 57 urb->context = &ctx; in usb_start_wait_urb() 58 urb->actual_length = 0; in usb_start_wait_urb() 66 retval = (ctx.status == -ENOENT ? -ETIMEDOUT : ctx.status); in usb_start_wait_urb() 68 dev_dbg(&urb->dev->dev, in usb_start_wait_urb() 70 current->comm, in usb_start_wait_urb() [all …]
|
H A D | hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * (C) Copyright Johannes Erdfelt 1999-2001 9 * (C) Copyright David Brownell 2000-2002 23 #include <linux/dma-mapping.h> 45 /*-------------------------------------------------------------------------*/ 51 * HCD-specific behaviors/bugs. 62 * threads releasing resources, or completing actions) is all generic. 70 * Roman Weissgaerber, Rory Bolt, Greg Kroah-Hartman, ... 73 * 2002-02-21 Pull in most of the usb_bus support from usb.c; some 75 * 2001-12-12 Initial patch version for Linux 2.5.1 kernel. [all …]
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt2712e.dtsi | 5 * SPDX-License-Identifier: (GPL-2.0 OR MIT) 8 #include <dt-bindings/clock/mt2712-clk.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/memory/mt2712-larb-port.h> 12 #include <dt-bindings/phy/phy.h> 13 #include <dt-bindings/power/mt2712-power.h> 14 #include "mt2712-pinfunc.h" 18 interrupt-parent = <&sysirq>; 19 #address-cells = <2>; [all …]
|
H A D | mt7622.dtsi | 6 * SPDX-License-Identifier: (GPL-2.0 OR MIT) 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/clock/mt7622-clk.h> 12 #include <dt-bindings/phy/phy.h> 13 #include <dt-bindings/power/mt7622-power.h> 14 #include <dt-bindings/reset/mt7622-reset.h> 15 #include <dt-bindings/thermal/thermal.h> 19 interrupt-parent = <&sysirq>; 20 #address-cells = <2>; [all …]
|
H A D | mt8365.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 10 #include <dt-bindings/clock/mediatek,mt8365-clk.h> 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 13 #include <dt-bindings/memory/mediatek,mt8365-larb-port.h> 14 #include <dt-bindings/phy/phy.h> 15 #include <dt-bindings/power/mediatek,mt8365-power.h> 19 interrupt-parent = <&sysirq>; 20 #address-cells = <2>; 21 #size-cells = <2>; [all …]
|
H A D | mt8192.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 /dts-v1/; 8 #include <dt-bindings/clock/mt8192-clk.h> 9 #include <dt-bindings/gce/mt8192-gce.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/memory/mt8192-larb-port.h> 13 #include <dt-bindings/pinctrl/mt8192-pinfunc.h> 14 #include <dt-bindings/phy/phy.h> 15 #include <dt-bindings/power/mt8192-power.h> [all …]
|
/linux/drivers/hwtracing/intel_th/ |
H A D | intel_th.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2014-2015 Intel Corporation. 26 * struct intel_th_output - descriptor INTEL_TH_OUTPUT type devices 48 * struct intel_th_drvdata - describes hardware capabilities and quirks 61 #define INTEL_TH_CAP(_th, _cap) ((_th)->drvdata ? (_th)->drvdata->_cap : 0) 64 * struct intel_th_device - device on the intel_th bus 70 * @id: device instance or -1 96 * intel_th_device_get_resource() - obtain @num'th resource of type @type 107 for (i = 0; i < thdev->num_resources; i++) in intel_th_device_get_resource() 108 if (resource_type(&thdev->resource[i]) == type && !num--) in intel_th_device_get_resource() [all …]
|
/linux/include/linux/usb/ |
H A D | hcd.h | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (c) 2001-2002 by David Brownell 42 /*-------------------------------------------------------------------------*/ 51 /*-------------------------------------------------------------------------*/ 73 struct usb_bus self; /* hcd is-a bus */ 79 * hcd->driver->flags & HCD_MASK 83 struct timer_list rh_timer; /* drives root-hub polling */ 93 const struct hc_driver *driver; /* hw-specific hooks */ 97 * other external phys should be software-transparent 119 #define HCD_HW_ACCESSIBLE(hcd) ((hcd)->flags & (1U << HCD_FLAG_HW_ACCESSIBLE)) [all …]
|
/linux/drivers/pci/ |
H A D | quirks.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file contains work-arounds for many known PCI hardware bugs. 5 * should be handled in arch-specific code. 22 #include <linux/isa-dma.h> /* isa_dma_bridge_buggy */ 41 if (test_bit(PCI_LINK_LBMS_SEEN, &dev->priv_flags)) in pcie_lbms_seen() 102 int ret = -ENOTTY; in pcie_failed_link_retrain() 105 !pcie_cap_has_lnkctl2(dev) || !dev->link_active_reporting) in pcie_failed_link_retrain() 112 pci_info(dev, "broken device, retraining non-functional downstream link at 2.5GT/s\n"); in pcie_failed_link_retrain() 173 if ((f->class == (u32) (dev->class >> f->class_shift) || in pci_do_fixups() 174 f->class == (u32) PCI_ANY_ID) && in pci_do_fixups() [all …]
|
/linux/drivers/usb/cdns3/ |
H A D | cdnsp-ring.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Code based on Linux XHCI driver. 28 * until you reach a non-link TRB. 59 #include <linux/dma-mapping.h> 64 #include "cdnsp-trace.h" 65 #include "cdnsp-gadget.h" 74 unsigned long segment_offset = trb - seg->trbs; in cdnsp_trb_virt_to_dma() 76 if (trb < seg->trbs || segment_offset >= TRBS_PER_SEGMENT) in cdnsp_trb_virt_to_dma() 79 return seg->dma + (segment_offset * sizeof(*trb)); in cdnsp_trb_virt_to_dma() 84 return TRB_TYPE_NOOP_LE32(trb->generic.field[3]); in cdnsp_trb_is_noop() [all …]
|
H A D | cdnsp-mem.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Code based on Linux XHCI driver. 13 #include <linux/dma-mapping.h> 18 #include "cdnsp-gadget.h" 19 #include "cdnsp-trace.h" 24 * Allocates a generic ring segment from the ring pool, sets the dma address, 42 seg->trbs = dma_pool_zalloc(pdev->segment_pool, flags, &dma); in cdnsp_segment_alloc() 43 if (!seg->trbs) { in cdnsp_segment_alloc() 49 seg->bounce_buf = kzalloc(max_packet, flags | GFP_DMA); in cdnsp_segment_alloc() 50 if (!seg->bounce_buf) in cdnsp_segment_alloc() [all …]
|
H A D | cdnsp-gadget.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * Code based on Linux XHCI driver. 15 #include <linux/io-64-nonatomic-lo-hi.h> 19 /* Max number slots - only 1 is allowed. */ 43 * struct cdnsp_cap_regs - CDNSP Registers. 46 * @hcs_params1: HCSPARAMS1 - Structural Parameters 1 47 * @hcs_params2: HCSPARAMS2 - Structural Parameters 2 48 * @hcs_params3: HCSPARAMS3 - Structural Parameters 3 49 * @hcc_params: HCCPARAMS - Capability Parameters 50 * @db_off: DBOFF - Doorbell array offset [all …]
|
/linux/include/linux/ |
H A D | usb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 #include <linux/errno.h> /* for -ENODEV */ 29 /*------ [all...] |
/linux/Documentation/hid/ |
H A D | intel-ish-hid.rst | 6 processing to a dedicated low power co-processor. This allows the core 11 Sensor usage tables. These may be found in tablets, 2-in-1 convertible laptops 27 ----------------- ---------------------- 28 | USB HID | --> | ISH HID | 29 ----------------- ---------------------- 30 ----------------- ---------------------- 31 | USB protocol | --> | ISH Transport | 32 ----------------- ---------------------- 33 ----------------- ---------------------- 34 | EHCI/XHCI | --> | ISH IPC | [all …]
|