/linux-6.12.1/drivers/pci/hotplug/ |
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-6.12.1/arch/x86/pci/ |
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-6.12.1/drivers/of/ |
D | address.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/dma-direct.h> /* for bus_dma_region */ 31 while (na--) in of_dump_addr() 39 /* Callbacks for bus specific translators */ 46 u64 (*map)(__be32 *addr, const __be32 *range, 54 * Default translator (generic bus) 66 static u64 of_bus_default_map(__be32 *addr, const __be32 *range, in of_bus_default_map() argument 71 cp = of_read_number(range + fna, na - fna); in of_bus_default_map() 72 s = of_read_number(range + na + pna, ns); in of_bus_default_map() 73 da = of_read_number(addr + fna, na - fna); in of_bus_default_map() [all …]
|
/linux-6.12.1/drivers/pci/ |
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-6.12.1/arch/powerpc/kernel/ |
D | pci-common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 * Common pmac/prep/chrp pci routines. -- Cort 37 #include <asm/pci-bridge.h> 40 #include <asm/ppc-pci.h> 73 int ret, phb_id = -1; in get_phb_number() 78 * the respective device-tree properties. Firstly, try reading in get_phb_number() 79 * standard "linux,pci-domain", then try reading "ibm,opal-phbid" in get_phb_number() 80 * (only present in powernv OPAL environment), then try device-tree in get_phb_number() 89 ret = of_property_read_u64(dn, "ibm,opal-phbid", &prop); in get_phb_number() 105 phb_id = (int)(prop & (MAX_PHBS - 1)); in get_phb_number() [all …]
|
/linux-6.12.1/arch/x86/kernel/ |
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-6.12.1/arch/mips/pci/ |
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 * addresses to be allocated in the 0x000-0x0ff region 39 * the low 10 bits of the IO address. The 0x00-0xff region 41 * bits, so it's ok to allocate at, say, 0x2800-0x28ff, 42 * but we want to try to avoid allocating at 0x2900-0x2bff 43 * which might have be mirrored at 0x0100-0x03ff.. 50 struct pci_controller *hose = dev->sysdata; in pcibios_align_resource() [all …]
|
/linux-6.12.1/Documentation/hwmon/ |
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-6.12.1/drivers/cdx/controller/ |
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-6.12.1/arch/sparc/kernel/ |
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 …]
|
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 …]
|
D | of_device_64.c | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <linux/dma-mapping.h> 20 unsigned long ret = res->start + offset; in of_ioremap() 23 if (res->flags & IORESOURCE_MEM) in of_ioremap() 36 if (res->flags & IORESOURCE_MEM) in of_iounmap() 44 * PCI bus specific translator 58 * parent as-is, not with the PCI translate in of_bus_pci_match() 88 static int of_bus_simba_map(u32 *addr, const u32 *range, in of_bus_simba_map() argument 103 static int of_bus_pci_map(u32 *addr, const u32 *range, in of_bus_pci_map() argument 110 if (!((addr[0] ^ range[0]) & 0x03000000)) in of_bus_pci_map() [all …]
|
/linux-6.12.1/drivers/pci/controller/ |
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-6.12.1/arch/powerpc/platforms/powernv/ |
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-6.12.1/Documentation/devicetree/bindings/pci/ |
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 …]
|
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-6.12.1/drivers/base/regmap/ |
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-6.12.1/Documentation/ABI/testing/ |
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 …]
|
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 …]
|
D | sysfs-bus-event_source-devices-hisi_ptt | 1 What: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune 9 See Documentation/trace/hisi-ptt.rst for more information. 11 What: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_cpl 18 will return an error, and out of range values will be converted 21 What: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_np 25 Description: (RW) Controls the weight of Tx non-posted TLPs, which influence 26 the proportion of outbound non-posted TLPs on the PCIe link. 28 will return an error, and out of range values will be converted 31 What: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_p 38 will return an error, and out of range values will be converted [all …]
|
/linux-6.12.1/drivers/bus/ |
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-6.12.1/Documentation/input/devices/ |
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-6.12.1/arch/powerpc/platforms/maple/ |
D | pci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include <asm/pci-bridge.h> 22 #include <asm/ppc-pci.h> 23 #include <asm/isa-bridge.h> 37 for (; node; node = node->sibling) { in fixup_one_level_bus_range() 42 /* For PCI<->PCI bridges or CardBus bridges, we go down */ in fixup_one_level_bus_range() 43 class_code = of_get_property(node, "class-code", NULL); in fixup_one_level_bus_range() 47 bus_range = of_get_property(node, "bus-range", &len); in fixup_one_level_bus_range() 52 higher = fixup_one_level_bus_range(node->child, higher); in fixup_one_level_bus_range() 57 /* This routine fixes the "bus-range" property of all bridges in the [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/apple/ |
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-6.12.1/Documentation/devicetree/bindings/hwmon/ |
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 …]
|