/linux/drivers/pci/hotplug/ |
H A D | ibmphp_res.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 49 newbus->busno = busno; in alloc_error_bus() 51 newbus->busno = curr->bus_num; in alloc_error_bus() 52 list_add_tail(&newbus->bus_list, &gbuses); in alloc_error_bus() 69 rs->busno = curr->bus_num; in alloc_resources() 70 rs->devfunc = curr->dev_fun; in alloc_resources() 71 rs->start = curr->start_addr; in alloc_resources() 72 rs->end = curr->end_addr; in alloc_resources() 73 rs->len = curr->end_addr - curr->start_addr + 1; in alloc_resources() [all …]
|
/linux/drivers/of/ |
H A D | address.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/dma-direct.h> /* for bus_dma_region */ 26 /* Callbacks for bus specific translators */ 33 u64 (*map)(__be32 *addr, const __be32 *range, 41 * Default translator (generic bus) 53 static u64 of_bus_default_map(__be32 *addr, const __be32 *range, in of_bus_default_map() argument 58 cp = of_read_number(range + fna, na - fna); in of_bus_default_map() 59 s = of_read_number(range + na + pna, ns); in of_bus_default_map() 60 da = of_read_number(addr + fna, na - fna); in of_bus_default_map() 66 return da - cp; in of_bus_default_map() [all …]
|
/linux/drivers/pci/ |
H A D | of.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * PCI <-> OF mapping helpers 22 * pci_set_of_node - Find and set device's DT device_node 26 * DT. Returns -ENODEV if the device is present, but disabled in the DT. 30 if (!dev->bus->dev.of_node) in pci_set_of_node() 34 of_pci_find_child_device(dev->bus->dev.of_node, dev->devfn); in pci_set_of_node() 41 dev->bus->dev.of_node_reused = true; in pci_set_of_node() 43 device_set_node(&dev->dev, of_fwnode_handle(no_free_ptr(node))); in pci_set_of_node() 49 of_node_put(dev->dev.of_node); in pci_release_of_node() 50 device_set_node(&dev->dev, NULL); in pci_release_of_node() [all …]
|
/linux/Documentation/hwmon/ |
H A D | tmp513.rst | 1 .. SPDX-License-Identifier: GPL-2.0 22 Eric Tremblay <etremblay@distech-controls.com> 25 ----------- 28 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors 29 that include remote sensors, a local temperature sensor, and a high-side current 31 temperatures, on-chip temperatures, and system voltage/power/current 34 The temperatures are measured in degrees Celsius with a range of 35 -40 to + 125 degrees with a resolution of 0.0625 degree C. 39 hysteresis value. The hysteresis is in degrees Celsius with a range of 44 **temp[1-4]_input** [all …]
|
/linux/drivers/cdx/controller/ |
H A D | mc_cdx_pcol.h | 1 /* SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc. 22 * | | \--- Response 23 * | \------- Error 24 * \------------------------------ Resync (always set) 76 * - To advance a shared memory request if XFLAGS_EVREQ was set 77 * - As a notification (link state, i2c event), controlled 89 * - LEVEL==INFO Command succeeded 90 * - LEVEL==ERR Command failed 101 * non-existent MCDI command MC_CMD_DEBUG_LOG. [all …]
|
/linux/drivers/pci/controller/ |
H A D | pci-xgene.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * APM X-Gene PCIe Driver 20 #include <linux/pci-acpi.h> 21 #include <linux/pci-ecam.h> 73 return readl(port->csr_base + reg); in xgene_pcie_readl() 78 writel(val, port->csr_base + reg); in xgene_pcie_writel() 86 static inline struct xgene_pcie *pcie_bus_to_port(struct pci_bus *bus) in pcie_bus_to_port() argument 91 return (struct xgene_pcie *)(bus->sysdata); in pcie_bus_to_port() 93 cfg = bus->sysdata; in pcie_bus_to_port() 94 return (struct xgene_pcie *)(cfg->priv); in pcie_bus_to_port() [all …]
|
/linux/arch/sparc/kernel/ |
H A D | of_device_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 if (!op || index >= op->archdata.num_irqs) in irq_of_parse_and_map() 23 return op->archdata.irqs[index]; in irq_of_parse_and_map() 32 if (!op || index >= op->num_resources) in of_address_to_resource() 33 return -EINVAL; in of_address_to_resource() 35 memcpy(r, &op->archdata.resource[index], sizeof(*r)); in of_address_to_resource() 45 if (!op || index >= op->num_resources) in of_iomap() 48 r = &op->archdata.resource[index]; in of_iomap() 50 return of_ioremap(r, 0, resource_size(r), (char *) r->name); in of_iomap() 55 * BUS and propagate to all child platform_device objects. [all …]
|
H A D | of_device_32.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/dma-mapping.h> 20 * PCI bus specific translator 29 * parent as-is, not with the PCI translate in of_bus_pci_match() 50 static int of_bus_pci_map(u32 *addr, const u32 *range, in of_bus_pci_map() argument 57 if ((addr[0] ^ range[0]) & 0x03000000) in of_bus_pci_map() 58 return -EINVAL; in of_bus_pci_map() 60 if (of_out_of_range(addr + 1, range + 1, range + na + pna, in of_bus_pci_map() 61 na - 1, ns)) in of_bus_pci_map() 62 return -EINVAL; in of_bus_pci_map() [all …]
|
/linux/arch/riscv/boot/dts/sophgo/ |
H A D | sg2044-sophgo-srd3-10.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 11 model = "Sophgo SG2044 SRD3-10"; 12 compatible = "sophgo,srd3-10", "sophgo,sg2044"; 22 stdout-path = "serial1:115200n8"; 27 clock-frequency = <25000000>; 31 bus-width = <4>; 32 no-sdio; 33 no-sd; 34 non-removable; [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-cxl | 1 What: /sys/bus/cxl/flush 4 Contact: linux-cxl@vger.kernel.org 11 What: /sys/bus/cxl/devices/memX/firmware_version 14 Contact: linux-cxl@vger.kernel.org 17 Memory Device Output Payload in the CXL-2.0 21 What: /sys/bus/cxl/devices/memX/payload_max 24 Contact: linux-cxl@vger.kernel.org 31 What: /sys/bus/cxl/devices/memX/label_storage_size 34 Contact: linux-cxl@vger.kernel.org 39 What: /sys/bus/cxl/devices/memX/ram/size [all …]
|
H A D | sysfs-bus-dax | 1 What: /sys/bus/dax/devices/daxX.Y/align 10 What: /sys/bus/dax/devices/daxX.Y/mapping 15 (WO) Provides a way to allocate a mapping range under a dax 16 device. Specified in the format <start>-<end>. 18 What: /sys/bus/dax/devices/daxX.Y/mapping[0..N]/start 19 What: /sys/bus/dax/devices/daxX.Y/mapping[0..N]/end 20 What: /sys/bus/dax/devices/daxX.Y/mapping[0..N]/page_offset 28 start physical address for the given range. The 'end' attribute 29 indicates the end physical address for the given range. The 31 range in the dax device. [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | renesas,pci-rcar-gen2.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/renesas,pci-rcar-gen2.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marek Vasut <marek.vasut+renesas@gmail.com> 11 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> 21 - items: 22 - enum: 23 - renesas,pci-r8a7742 # RZ/G1H 24 - renesas,pci-r8a7743 # RZ/G1M [all …]
|
H A D | qcom,pcie-sa8255p.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/qcom,pcie-sa8255p.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <andersson@kernel.org> 11 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 19 const: qcom,pcie-sa8255p 24 Configuration Space, as accessed from the parent bus. The base 25 address corresponds to the first bus in the "bus-range" property. If 26 no "bus-range" is specified, this will be bus 0 (the default). [all …]
|
H A D | host-generic-pci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/host-generic-pci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Will Deacon <will@kernel.org> 13 Firmware-initialised PCI host controllers and PCI emulations, such as the 14 virtio-pci implementations found in kvmtool and other para-virtualised 21 Configuration Space is assumed to be memory-mapped (as opposed to being 23 geography of a PCI bus address by concatenating the various components to 26 For CAM, this 24-bit offset is: [all …]
|
H A D | mediatek-pcie.txt | 4 - compatible: Should contain one of the following strings: 5 "mediatek,mt2701-pcie" 6 "mediatek,mt2712-pcie" 7 "mediatek,mt7622-pcie" 8 "mediatek,mt7623-pcie" 9 "mediatek,mt7629-pcie" 10 "airoha,en7523-pcie" 11 - device_type: Must be "pci" 12 - reg: Base addresses and lengths of the root ports. 13 - reg-names: Names of the above areas to use during resource lookup. [all …]
|
/linux/drivers/bus/ |
H A D | uniphier-system-bus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 /* System Bus Controller registers */ 43 dev_dbg(priv->dev, in uniphier_system_bus_add_bank() 44 "range found: bank = %d, addr = %08x, paddr = %08llx, size = %08x\n", in uniphier_system_bus_add_bank() 47 if (bank >= ARRAY_SIZE(priv->bank)) { in uniphier_system_bus_add_bank() 48 dev_err(priv->dev, "unsupported bank number %d\n", bank); in uniphier_system_bus_add_bank() 49 return -EINVAL; in uniphier_system_bus_add_bank() 52 if (priv->bank[bank].base || priv->bank[bank].end) { in uniphier_system_bus_add_bank() 53 dev_err(priv->dev, in uniphier_system_bus_add_bank() 54 "range for bank %d has already been specified\n", bank); in uniphier_system_bus_add_bank() [all …]
|
/linux/Documentation/input/devices/ |
H A D | cma3000_d0x.rst | 1 CMA3000-D0x Accelerometer 5 * VTI CMA3000-D0x 8 CMA3000-D0X Product Family Specification 8281000A.02.pdf 15 ----------- 17 CMA3000 Tri-axis accelerometer supports Motion detect, Measurement and 38 Initial configuration for bus mode is set in non volatile memory and can later 39 be modified through bus interface command. 47 ------------- 59 G range in milli g i.e 2000 or 8000 65 Motion detect g range threshold value [all …]
|
/linux/drivers/parisc/ |
H A D | lba_pci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 ** PCI Lower Bus Adapter (LBA) manager 7 ** (c) Copyright 1999,2000 Hewlett-Packard Company 11 ** This module primarily provides access to PCI bus (config/IOport 12 ** spaces) on platforms with an SBA/LBA chipset. A/B/C/J/L/N-class 13 ** with 4 digit model numbers - eg C3000 (and A400...sigh). 20 ** (d) play nicely with both PAT and "Legacy" PA-RISC firmware (PDC). 27 ** FIXME: Add support for PCI card hot-plug (OLARD). 46 #include <asm/parisc-device.h> 53 #undef DEBUG_LBA_CFG /* debug Config Space Access (ie PCI Bus walk) */ [all …]
|
/linux/arch/arm64/boot/dts/hisilicon/ |
H A D | hi3798cv200.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd. 8 #include <dt-bindings/clock/histb-clock.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/phy/phy.h> 12 #include <dt-bindings/reset/ti-syscon.h> 16 interrupt-parent = <&gic>; 17 #address-cells = <2>; 18 #size-cells = <2>; [all …]
|
/linux/virt/kvm/ |
H A D | kvm_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Kernel-based Virtual Machine (KVM) Hypervisor 74 MODULE_DESCRIPTION("Kernel-based Virtual Machine (KVM) Hypervisor"); 82 /* Default doubles per-vcpu halt_poll_ns. */ 92 /* Default halves per-vcpu halt_poll_ns. */ 107 * kvm->lock --> kvm->slots_lock --> kvm->irq_lock 132 * - Prevent a compat task from opening /dev/kvm 133 * - If the open has been done by a 64bit task, and the KVM fd 137 unsigned long arg) { return -EINVAL; } in kvm_no_compat_ioctl() 141 return is_compat_task() ? -ENODEV : 0; in kvm_no_compat_open() [all …]
|
/linux/arch/arm64/boot/dts/apple/ |
H A D | t8112-j473.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 5 * target-type: J473 10 /dts-v1/; 13 #include "t8112-jxxx.dtsi" 16 compatible = "apple,j473", "apple,t8112", "apple,arm-platform"; 25 * Force the bus number assignments so that we can declare some of the 26 * on-board devices and properties that are populated by the bootloader 30 bus-range = <1 1>; 34 bus-range = <2 2>; 39 bus-range = <3 3>; [all …]
|
/linux/Documentation/devicetree/bindings/i2c/ |
H A D | aspeed,i2c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rayn Chen <rayn_chen@aspeedtech.com> 13 - $ref: /schemas/i2c/i2c-controller.yaml# 18 - aspeed,ast2400-i2c-bus 19 - aspeed,ast2500-i2c-bus 20 - aspeed,ast2600-i2c-bus 25 - description: address offset and range of bus 26 - description: address offset and range of bus buffer [all …]
|
/linux/Documentation/PCI/ |
H A D | acpi-info.rst | 1 .. SPDX-License-Identifier: GPL-2.0 39 If the OS is expected to manage a non-discoverable device described via 46 they forward down to the PCI bus, as well as registers of the host bridge 48 things like secondary/subordinate bus registers that determine the bus 49 range below the bridge, window registers that describe the apertures, etc. 50 These are all device-specific, non-architected things, so the only way a 52 the device-specific details. The host bridge registers also include ECAM 66 bridge registers (including ECAM space) in PNP0C02 catch-all devices [6]. 67 With the exception of ECAM, the bridge register space is device-specific 78 PNP0C02 "motherboard" devices are basically a catch-all. There's no [all …]
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | armada-xp-mv78460.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 13 #include "armada-xp.dtsi" 17 compatible = "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp"; 27 #address-cells = <1>; 28 #size-cells = <0>; 29 enable-method = "marvell,armada-xp-smp"; 33 compatible = "marvell,sheeva-v7"; 36 clock-latency = <1000000>; 41 compatible = "marvell,sheeva-v7"; [all …]
|
/linux/Documentation/devicetree/bindings/misc/ |
H A D | ifm-csi.txt | 1 IFM camera sensor interface on mpc5200 LocalPlus bus 4 - compatible: "ifm,o2d-csi" 5 - reg: specifies sensor chip select number and associated address range 6 - interrupts: external interrupt line number and interrupt sense mode 8 - gpios: three gpio-specifiers for "capture", "reset" and "master enable" 10 - ifm,csi-clk-handle: the phandle to a node in the DT describing the sensor 12 - ifm,csi-addr-bus-width: address bus width (valid values are 16, 24, 25) 13 - ifm,csi-data-bus-width: data bus width (valid values are 8 and 16) 14 - ifm,csi-wait-cycles: sensor bus wait cycles 17 - ifm,csi-byte-swap: if this property is present, the byte swapping on [all …]
|