/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/arch/x86/pci/ |
H A D | amd_bus.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/range.h> 11 #include <asm/pci-direct.h> 23 u32 bus; member 31 * It only supports K8, Fam10h, Fam11h, and Fam15h_00h-0fh . 48 if (info->node == node && info->link == link) in find_pci_root_info() 66 * to the LDT Bus Number Registers found in the northbridge. 71 unsigned bus; in early_root_info_init() local 81 struct range range[RANGE_NUM]; in early_root_info_init() local 90 return -1; in early_root_info_init() [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/arch/x86/kernel/ |
H A D | mmconf-fam10h_64.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/range.h> 14 #include <asm/pci-direct.h> 23 u32 bus; member 38 const struct range *r1 = x1; in cmp_range() 39 const struct range *r2 = x2; in cmp_range() 42 start1 = r1->start >> 32; in cmp_range() 43 start2 = r2->start >> 32; in cmp_range() 45 return start1 - start2; in cmp_range() 49 #define MMCONF_MASK (~(MMCONF_UNIT - 1)) [all …]
|
/linux/arch/mips/pci/ |
H A D | pci-legacy.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2003, 04, 11 Ralf Baechle (ralf@linux-mips.org) 6 * written by Ralf Baechle (ralf@linux-mips.org) 18 #include <asm/cpu-info.h> 35 return (unsigned long)-1; 43 * addresses to be allocated in the 0x000- 77 struct pci_bus *bus; pcibios_scanbus() local 139 struct of_pci_range range; pci_load_of_ranges() local 171 pcibios_get_phb_of_node(struct pci_bus * bus) pcibios_get_phb_of_node() argument 289 pcibios_fixup_bus(struct pci_bus * bus) pcibios_fixup_bus() argument [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 19 #include <linux/pci-acpi.h> 20 #include <linux/pci-ecam.h> 74 return readl(port->csr_base + reg); in xgene_pcie_readl() 79 writel(val, port->csr_base + reg); in xgene_pcie_writel() 87 static inline struct xgene_pcie *pcie_bus_to_port(struct pci_bus *bus) in pcie_bus_to_port() argument 92 return (struct xgene_pcie *)(bus->sysdata); in pcie_bus_to_port() 94 cfg = bus->sysdata; in pcie_bus_to_port() 95 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/powerpc/platforms/powernv/ |
H A D | pci-cxl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2014-2016 IBM Corp. 7 #include <misc/cxl-base.h> 8 #include <asm/pnv-pci.h> 15 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_phb_to_cxl_mode() 16 struct pnv_phb *phb = hose->private_data; in pnv_phb_to_cxl_mode() 22 return -ENODEV; in pnv_phb_to_cxl_mode() 26 rc = opal_pci_set_phb_cxl_mode(phb->opal_id, mode, pe->pe_number); in pnv_phb_to_cxl_mode() 28 dev_err(&dev->dev, "Required cxl mode not supported by firmware - update skiboot\n"); in pnv_phb_to_cxl_mode() 30 dev_err(&dev->dev, "opal_pci_set_phb_cxl_mode failed: %i\n", rc); in pnv_phb_to_cxl_mode() [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/ram/size 24 Contact: linux-cxl@vger.kernel.org 28 Payload in the CXL-2.0 specification. 31 What: /sys/bus/cxl/devices/memX/ram/qos_class 34 Contact: linux-cxl@vger.kernel.org [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 | 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 …]
|
/linux/drivers/base/regmap/ |
H A D | regmap.c | 1 // SPDX-License-Identifier: GPL-2.0 38 return (map->dev && strcmp(dev_name(map->dev), LOG_DEVICE) == 0); in regmap_should_log() 78 if (regmap_reg_in_ranges(reg, table->no_ranges, table->n_no_ranges)) in regmap_check_range_table() 82 if (!table->n_yes_ranges) in regmap_check_range_table() 85 return regmap_reg_in_ranges(reg, table->yes_ranges, in regmap_check_range_table() 86 table->n_yes_ranges); in regmap_check_range_table() 92 if (map->max_register_is_set && reg > map->max_register) in regmap_writeable() 95 if (map->writeable_reg) in regmap_writeable() 96 return map->writeable_reg(map->dev, reg); in regmap_writeable() 98 if (map->wr_table) in regmap_writeable() [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/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/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/Documentation/devicetree/bindings/hwmon/ |
H A D | ti,tmp513.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Eric Tremblay <etremblay@distech-controls.com> 14 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors 15 that include remote sensors, a local temperature sensor, and a high-side 17 remote temperatures, on-chip temperatures, and system voltage/power/current 28 - ti,tmp512 29 - ti,tmp513 34 shunt-resistor-micro-ohms: [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/driver-api/nvdimm/ |
H A D | nvdimm.rst | 2 LIBNVDIMM: Non-Volatile Devices 5 libnvdimm - kernel / libndctl - userspace helper library 18 PMEM-REGIONs, Atomic Sectors, and DAX 23 LIBNVDIMM/LIBNDCTL: Bus 25 libnvdimm: bus 26 libndctl: bus enumeration example 50 A system-physical-address range where writes are persistent. A 51 block device composed of PMEM is capable of DAX. A PMEM address range 55 DIMM Physical Address, is a DIMM-relative offset. With one DIMM in 56 the system there would be a 1:1 system-physical-address:DPA association. [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 …]
|