Home
last modified time | relevance | path

Searched +full:bus +full:- +full:range (Results 1 – 25 of 1044) sorted by relevance

12345678910>>...42

/linux-5.10/drivers/pci/
Dof.c1 // SPDX-License-Identifier: GPL-2.0+
3 * PCI <-> OF mapping helpers
21 if (!dev->bus->dev.of_node) in pci_set_of_node()
23 dev->dev.of_node = of_pci_find_child_device(dev->bus->dev.of_node, in pci_set_of_node()
24 dev->devfn); in pci_set_of_node()
25 if (dev->dev.of_node) in pci_set_of_node()
26 dev->dev.fwnode = &dev->dev.of_node->fwnode; in pci_set_of_node()
31 of_node_put(dev->dev.of_node); in pci_release_of_node()
32 dev->dev.of_node = NULL; in pci_release_of_node()
33 dev->dev.fwnode = NULL; in pci_release_of_node()
[all …]
/linux-5.10/drivers/pci/hotplug/
Dibmphp_res.c1 // 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-5.10/drivers/of/
Daddress.c1 // SPDX-License-Identifier: GPL-2.0
16 #include <linux/dma-direct.h> /* for bus_dma_region */
35 while (na--) in of_dump_addr()
43 /* Callbacks for bus specific translators */
50 u64 (*map)(__be32 *addr, const __be32 *range,
58 * Default translator (generic bus)
70 static u64 of_bus_default_map(__be32 *addr, const __be32 *range, in of_bus_default_map() argument
75 cp = of_read_number(range, na); in of_bus_default_map()
76 s = of_read_number(range + na + pna, ns); in of_bus_default_map()
85 return da - cp; in of_bus_default_map()
[all …]
/linux-5.10/arch/x86/pci/
Damd_bus.c1 // 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()
58 * to the LDT Bus Number Registers found in the northbridge.
63 unsigned bus; in early_root_info_init() local
73 struct range range[RANGE_NUM]; in early_root_info_init() local
82 return -1; in early_root_info_init()
[all …]
/linux-5.10/arch/microblaze/pci/
Dpci-common.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 * Common pmac/prep/chrp pci routines. -- Cort
35 #include <asm/pci-bridge.h>
60 phb->global_number = global_phb_number++; in pcibios_alloc_controller()
61 list_add_tail(&phb->list_node, &hose_list); in pcibios_alloc_controller()
63 phb->dn = dev; in pcibios_alloc_controller()
64 phb->is_dynamic = mem_init_done; in pcibios_alloc_controller()
71 list_del(&phb->list_node); in pcibios_free_controller()
74 if (phb->is_dynamic) in pcibios_free_controller()
80 return resource_size(&hose->io_resource); in pcibios_io_size()
[all …]
/linux-5.10/arch/mips/pci/
Dpci-legacy.c1 // 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-5.10/drivers/staging/mt7621-pci/
Dmediatek,mt7621-pci.txt4 - compatible: "mediatek,mt7621-pci"
5 - device_type: Must be "pci"
6 - reg: Base addresses and lengths of the PCIe subsys and root ports.
7 - bus-range: Range of bus numbers associated with this controller.
8 - #address-cells: Address representation for root ports (must be 3)
9 - pinctrl-names : The pin control state names.
10 - pinctrl-0: The "default" pinctrl state.
11 - #size-cells: Size representation for root ports (must be 2)
12 - ranges: Ranges for the PCI memory and I/O regions.
13 - #interrupt-cells: Must be 1
[all …]
/linux-5.10/arch/powerpc/kernel/
Dpci-common.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 * Common pmac/prep/chrp pci routines. -- Cort
36 #include <asm/pci-bridge.h>
39 #include <asm/ppc-pci.h>
75 int ret, phb_id = -1; in get_phb_number()
81 * the respective device-tree properties. Firstly, try powernv by in get_phb_number()
82 * reading "ibm,opal-phbid", only present in OPAL environment. in get_phb_number()
84 ret = of_property_read_u64(dn, "ibm,opal-phbid", &prop); in get_phb_number()
91 phb_id = (int)(prop & (MAX_PHBS - 1)); in get_phb_number()
116 phb->global_number = get_phb_number(dev); in pcibios_alloc_controller()
[all …]
/linux-5.10/arch/x86/kernel/
Dmmconf-fam10h_64.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/range.h>
13 #include <asm/pci-direct.h>
22 u32 bus; member
37 const struct range *r1 = x1; in cmp_range()
38 const struct range *r2 = x2; in cmp_range()
41 start1 = r1->start >> 32; in cmp_range()
42 start2 = r2->start >> 32; in cmp_range()
44 return start1 - start2; in cmp_range()
48 #define MMCONF_MASK (~(MMCONF_UNIT - 1))
[all …]
/linux-5.10/Documentation/hwmon/
Dtmp513.rst1 .. 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-5.10/arch/sparc/kernel/
Dof_device_common.c1 // 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 …]
Dof_device_32.c1 // 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 …]
Dof_device_64.c1 // SPDX-License-Identifier: GPL-2.0
5 #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-5.10/arch/powerpc/platforms/powernv/
Dpci-cxl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2014-2016 IBM Corp.
7 #include <asm/pnv-pci.h>
14 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_phb_to_cxl_mode()
15 struct pnv_phb *phb = hose->private_data; in pnv_phb_to_cxl_mode()
21 return -ENODEV; in pnv_phb_to_cxl_mode()
25 rc = opal_pci_set_phb_cxl_mode(phb->opal_id, mode, pe->pe_number); in pnv_phb_to_cxl_mode()
27 dev_err(&dev->dev, "Required cxl mode not supported by firmware - update skiboot\n"); in pnv_phb_to_cxl_mode()
29 dev_err(&dev->dev, "opal_pci_set_phb_cxl_mode failed: %i\n", rc); in pnv_phb_to_cxl_mode()
40 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_cxl_alloc_hwirqs()
[all …]
/linux-5.10/drivers/base/regmap/
Dregmap.c1 // 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 && 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-5.10/Documentation/input/devices/
Dcma3000_d0x.rst1 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-5.10/Documentation/devicetree/bindings/pci/
Dpci-rcar-gen2.txt2 -------------------------
9 - compatible: "renesas,pci-r8a7742" for the R8A7742 SoC;
10 "renesas,pci-r8a7743" for the R8A7743 SoC;
11 "renesas,pci-r8a7744" for the R8A7744 SoC;
12 "renesas,pci-r8a7745" for the R8A7745 SoC;
13 "renesas,pci-r8a7790" for the R8A7790 SoC;
14 "renesas,pci-r8a7791" for the R8A7791 SoC;
15 "renesas,pci-r8a7793" for the R8A7793 SoC;
16 "renesas,pci-r8a7794" for the R8A7794 SoC;
17 "renesas,pci-rcar-gen2" for a generic R-Car Gen2 or
[all …]
Dhost-generic-pci.yaml1 # 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-5.10/Documentation/devicetree/bindings/hwmon/
Dti,tmp513.yaml1 # 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-5.10/arch/powerpc/platforms/maple/
Dpci.c1 // 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 != 0;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-5.10/arch/arm/boot/dts/
Darmada-xp-mv78260.dtsi1 // 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-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
26 #address-cells = <1>;
27 #size-cells = <0>;
28 enable-method = "marvell,armada-xp-smp";
32 compatible = "marvell,sheeva-v7";
35 clock-latency = <1000000>;
40 compatible = "marvell,sheeva-v7";
[all …]
Darmada-xp-mv78460.dtsi1 // 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-5.10/arch/arm64/boot/dts/hisilicon/
Dhi3798cv200.dtsi1 // 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-5.10/drivers/parisc/
Dlba_pci.c1 // 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-5.10/Documentation/devicetree/bindings/usb/
Dusb251xb.txt1 Microchip USB 2.0 Hi-Speed Hub Controller
4 Hi-Speed Controller.
7 - compatible : Should be "microchip,usb251xb" or one of the specific types:
11 - reg : I2C address on the selected bus (default is <0x2C>)
14 - reset-gpios : Should specify the gpio for hub reset
15 - vdd-supply : Should specify the phandle to the regulator supplying vdd
16 - skip-config : Skip Hub configuration, but only send the USB-Attach command
17 - vendor-id : Set USB Vendor ID of the hub (16 bit, default is 0x0424)
18 - product-id : Set USB Product ID of the hub (16 bit, default depends on type)
19 - device-id : Set USB Device ID of the hub (16 bit, default is 0x0bb3)
[all …]

12345678910>>...42