/openbmc/linux/drivers/dax/ |
H A D | bus.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2017-2018 Intel Corporation. All rights reserved. */ 10 #include "dax-private.h" 24 * We only ever expect to handle device-dax instances, i.e. the in dax_bus_uevent() 42 list_for_each_entry(dax_id, &dax_drv->ids, list) in __dax_match_id() 43 if (sysfs_streq(dax_id->dev_name, dev_name)) in __dax_match_id() 64 if (dev_dax->region->res.flags & IORESOURCE_DAX_KMEM) in dax_match_type() 67 if (dax_drv->type == type) in dax_match_type() 71 if (dax_drv->type == DAXDRV_DEVICE_TYPE && in dax_match_type() 95 return -EINVAL; in do_id_store() [all …]
|
/openbmc/linux/arch/powerpc/boot/dts/fsl/ |
H A D | p1023si-post.dtsi | 4 * Copyright 2011 - 2014 Freescale Semiconductor Inc. 36 compatible = "fsl,bman-fbpr"; 37 alloc-ranges = <0 0 0x10 0>; 41 compatible = "fsl,qman-fqd"; 42 alloc-ranges = <0 0 0x10 0>; 46 compatible = "fsl,qman-pfdr"; 47 alloc-ranges = <0 0 0x10 0>; 51 #address-cells = <2>; 52 #size-cells = <1>; 53 compatible = "fsl,p1023-elbc", "fsl,elbc", "simple-bus"; [all …]
|
H A D | p4080si-post.dtsi | 4 * Copyright 2011 - 2015 Freescale Semiconductor Inc. 36 compatible = "fsl,bman-fbpr"; 37 alloc-ranges = <0 0 0x10 0>; 41 compatible = "fsl,qman-fqd"; 42 alloc-ranges = <0 0 0x10 0>; 46 compatible = "fsl,qman-pfdr"; 47 alloc-ranges = <0 0 0x10 0>; 51 compatible = "fsl,p4080-elbc", "fsl,elbc", "simple-bus"; 53 #address-cells = <2>; 54 #size-cells = <1>; [all …]
|
H A D | p3041si-post.dtsi | 4 * Copyright 2011 - 2015 Freescale Semiconductor Inc. 36 compatible = "fsl,bman-fbpr"; 37 alloc-ranges = <0 0 0x10 0>; 41 compatible = "fsl,qman-fqd"; 42 alloc-ranges = <0 0 0x10 0>; 46 compatible = "fsl,qman-pfdr"; 47 alloc-ranges = <0 0 0x10 0>; 51 compatible = "fsl,p3041-elbc", "fsl,elbc", "simple-bus"; 53 #address-cells = <2>; 54 #size-cells = <1>; [all …]
|
H A D | p2041si-post.dtsi | 4 * Copyright 2011 - 2015 Freescale Semiconductor Inc. 36 compatible = "fsl,bman-fbpr"; 37 alloc-ranges = <0 0 0x10 0>; 41 compatible = "fsl,qman-fqd"; 42 alloc-ranges = <0 0 0x10 0>; 46 compatible = "fsl,qman-pfdr"; 47 alloc-ranges = <0 0 0x10 0>; 51 compatible = "fsl,p2041-elbc", "fsl,elbc", "simple-bus"; 53 #address-cells = <2>; 54 #size-cells = <1>; [all …]
|
H A D | p5020si-post.dtsi | 4 * Copyright 2011 - 2015 Freescale Semiconductor Inc. 36 compatible = "fsl,bman-fbpr"; 37 alloc-ranges = <0 0 0x10000 0>; 41 compatible = "fsl,qman-fqd"; 42 alloc-ranges = <0 0 0x10000 0>; 46 compatible = "fsl,qman-pfdr"; 47 alloc-ranges = <0 0 0x10000 0>; 51 compatible = "fsl,p5020-elbc", "fsl,elbc", "simple-bus"; 53 #address-cells = <2>; 54 #size-cells = <1>; [all …]
|
H A D | p5040si-post.dtsi | 4 * Copyright 2012 - 2015 Freescale Semiconductor Inc. 36 compatible = "fsl,bman-fbpr"; 37 alloc-ranges = <0 0 0x10000 0>; 41 compatible = "fsl,qman-fqd"; 42 alloc-ranges = <0 0 0x10000 0>; 46 compatible = "fsl,qman-pfdr"; 47 alloc-ranges = <0 0 0x10000 0>; 51 compatible = "fsl,p5040-elbc", "fsl,elbc", "simple-bus"; 53 #address-cells = <2>; 54 #size-cells = <1>; [all …]
|
H A D | t1023si-post.dtsi | 35 #include <dt-bindings/thermal/thermal.h> 38 compatible = "fsl,bman-fbpr"; 39 alloc-ranges = <0 0 0x10000 0>; 43 compatible = "fsl,qman-fqd"; 44 alloc-ranges = <0 0 0x10000 0>; 48 compatible = "fsl,qman-pfdr"; 49 alloc-ranges = <0 0 0x10000 0>; 53 #address-cells = <2>; 54 #size-cells = <1>; 55 compatible = "fsl,ifc", "simple-bus"; [all …]
|
/openbmc/linux/arch/xtensa/boot/dts/ |
H A D | kc705.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 /include/ "xtfpga-flash-128m.dtsi" 7 compatible = "cdns,xtensa-kc705"; 16 reserved-memory { 17 #address-cells = <1>; 18 #size-cells = <1>; 19 ranges; 23 compatible = "shared-dma-pool"; 27 alloc-ranges = <0x00000000 0x20000000>; [all …]
|
/openbmc/linux/include/linux/ |
H A D | memremap.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 #include <linux/percpu-refcount.h> 14 * struct vmem_altmap - pre-allocated storage for vmemmap_populate 19 * @alloc: track pages consumed, private to vmemmap_populate() 27 unsigned long alloc; member 65 * Device memory residing in a PCI BAR intended for use with Peer-to-Peer 86 * Used for private (un-addressable) device memory only. Must migrate 97 * When this is not implemented, or it returns -EOPNOTSUPP, the caller 107 * struct dev_pagemap - metadata for ZONE_DEVICE mappings 108 * @altmap: pre-allocated/reserved memory for vmemmap allocations [all …]
|
H A D | maple_tree.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Maple Tree - An RCU-safe adaptive tree for storing ranges 6 * Copyright (c) 2018-2022 Oracle 21 * Removed nodes have their ->parent set to point to themselves. RCU readers 22 * check ->parent before relying on the value that they loaded from the 29 #define MAPLE_NODE_SLOTS 31 /* 256 bytes including ->parent */ 32 #define MAPLE_ALLOC_SLOTS (MAPLE_NODE_SLOTS - 1) 35 #define MAPLE_NODE_SLOTS 63 /* 256 bytes including ->parent */ 38 #define MAPLE_ALLOC_SLOTS (MAPLE_NODE_SLOTS - 2) 44 * The node->parent of the root node has bit 0 set and the rest of the pointer [all …]
|
/openbmc/linux/drivers/of/ |
H A D | of_reserved_mem.c | 1 // SPDX-License-Identifier: GPL-2.0+ 44 return -ENOMEM; in early_init_dt_alloc_reserved_memory_arch() 60 * fdt_reserved_mem_save_node() - save fdt node for second pass initialization 72 rmem->fdt_node = node; in fdt_reserved_mem_save_node() 73 rmem->name = uname; in fdt_reserved_mem_save_node() 74 rmem->base = base; in fdt_reserved_mem_save_node() 75 rmem->size = size; in fdt_reserved_mem_save_node() 82 * __reserved_mem_alloc_in_range() - allocate reserved memory described with 83 * 'alloc-ranges'. Choose bottom-up/top-down depending on nearby existing 98 if (rmem->size == 0) in __reserved_mem_alloc_in_range() [all …]
|
/openbmc/linux/Documentation/core-api/ |
H A D | maple_tree.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 13 The Maple Tree is a B-Tree data type which is optimized for storing 14 non-overlapping ranges, including ranges of size 1. The tree was designed to 17 entry in a cache-efficient manner. The tree can also be put into an RCU-safe 24 use the normal API. An :ref:`maple-tree-advanced-api` exists for more complex 34 :ref:`maple-tree-advanced-api`, but are blocked by the normal API. 39 Pre-allocating of nodes is also supported using the 40 :ref:`maple-tree-advanced-api`. This is useful for users who must guarantee a 45 .. _maple-tree-normal-api: 52 freshly-initialised maple tree contains a ``NULL`` pointer for the range ``0`` [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/reserved-memory/ |
H A D | reserved-memory.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/reserved-memory/reserved-memory.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: /reserved-memory Child Node Common 10 - devicetree-spec@vger.kernel.org 13 Reserved memory is specified as a node under the /reserved-memory node. The 19 Each child of the reserved-memory node specifies one or more regions 25 Following the generic-names recommended practice, node names should 26 reflect the purpose of the node (ie. "framebuffer" or "dma-pool"). [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | time-utils.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "time-utils.h" 25 return -1; in parse_nsec_time() 32 return -1; in parse_nsec_time() 43 return -1; in parse_nsec_time() 55 (parse_nsec_time(start_str, &ptime->start) != 0)) { in parse_timestr_sec_nsec() 56 return -1; in parse_timestr_sec_nsec() 60 (parse_nsec_time(end_str, &ptime->end) != 0)) { in parse_timestr_sec_nsec() 61 return -1; in parse_timestr_sec_nsec() 78 return -ENOMEM; in split_start_end() [all …]
|
/openbmc/linux/mm/ |
H A D | memremap.c | 1 // SPDX-License-Identifier: GPL-2.0 47 if (pgmap->type == MEMORY_DEVICE_FS_DAX) in devmap_managed_enable_put() 53 if (pgmap->type == MEMORY_DEVICE_FS_DAX) in devmap_managed_enable_get() 67 xa_store_range(&pgmap_array, PHYS_PFN(range->start), PHYS_PFN(range->end), in pgmap_array_delete() 74 struct range *range = &pgmap->ranges[range_id]; in pfn_first() 75 unsigned long pfn = PHYS_PFN(range->start); in pfn_first() 86 for (i = 0; i < pgmap->nr_range; i++) { in pgmap_pfn_valid() 87 struct range *range = &pgmap->ranges[i]; in pgmap_pfn_valid() 89 if (pfn >= PHYS_PFN(range->start) && in pgmap_pfn_valid() 90 pfn <= PHYS_PFN(range->end)) in pgmap_pfn_valid() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_preempt_mgr.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 3 * Copyright 2016-2021 Advanced Micro Devices, Inc. 42 struct ttm_resource_manager *man = &adev->mman.preempt_mgr; in mem_info_preempt_used_show() 50 * amdgpu_preempt_mgr_new - allocate a new node 66 return -ENOMEM; in amdgpu_preempt_mgr_new() 69 (*res)->start = AMDGPU_BO_INVALID_OFFSET; in amdgpu_preempt_mgr_new() 74 * amdgpu_preempt_mgr_del - free ranges 89 .alloc = amdgpu_preempt_mgr_new, 94 * amdgpu_preempt_mgr_init - init PREEMPT manager and DRM MM 102 struct ttm_resource_manager *man = &adev->mman.preempt_mgr; in amdgpu_preempt_mgr_init() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc7280-herobrine-lte-sku.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 10 reserved-memory { 13 no-map; 18 no-map; 21 mdata_mem: mpss-metadata { 22 alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>; 24 no-map; 30 qcom,gsi-loader = "modem"; 35 compatible = "qcom,sc7280-mss-pil"; 42 clock-names = "iface", "offline", "snoc_axi", "pka", "xo"; [all …]
|
/openbmc/linux/drivers/vfio/pci/pds/ |
H A D | dirty.c | 1 // SPDX-License-Identifier: GPL-2.0 20 return pds_vfio->dirty.is_enabled; in pds_vfio_dirty_is_enabled() 25 pds_vfio->dirty.is_enabled = true; in pds_vfio_dirty_set_enabled() 30 pds_vfio->dirty.is_enabled = false; in pds_vfio_dirty_set_disabled() 38 struct pci_dev *pdev = pds_vfio->vfio_coredev.pdev; in pds_vfio_print_guest_region_info() 39 struct device *pdsc_dev = &pci_physfn(pdev)->dev; in pds_vfio_print_guest_region_info() 63 dev_dbg(&pdev->dev, in pds_vfio_print_guest_region_info() 80 return -ENOMEM; in pds_vfio_dirty_alloc_bitmaps() 85 return -ENOMEM; in pds_vfio_dirty_alloc_bitmaps() 88 dirty->host_seq.bmp = host_seq_bmp; in pds_vfio_dirty_alloc_bitmaps() [all …]
|
/openbmc/linux/kernel/ |
H A D | resource.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 .end = -1, 61 if (p->child) in next_resource() 62 return p->child; in next_resource() 63 while (!p->sibling && p->parent) in next_resource() 64 p = p->parent; in next_resource() 65 return p->sibling; in next_resource() 70 while (!p->sibling && p->parent) in next_resource_skip_children() 71 p = p->parent; in next_resource_skip_children() 72 return p->sibling; in next_resource_skip_children() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx93-11x11-evk.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 12 compatible = "fsl,imx93-11x11-evk", "fsl,imx93"; 15 stdout-path = &lpuart1; 18 reserved-memory { 19 #address-cells = <2>; 20 #size-cells = <2>; 21 ranges; 24 compatible = "shared-dma-pool"; 26 alloc-ranges = <0 0x80000000 0 0x40000000>; [all …]
|
H A D | imx93-tqma9352.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Copyright (c) 2022 TQ-Systems GmbH <linux@ew.tq-group.com>, 4 * D-82229 Seefeld, Germany. 11 model = "TQ-Systems i.MX93 TQMa93xxLA/TQMa93xxCA SOM"; 12 compatible = "tq,imx93-tqma9352", "fsl,imx93"; 14 reserved-memory { 15 #address-cells = <2>; 16 #size-cells = <2>; 17 ranges; 20 compatible = "shared-dma-pool"; [all …]
|
/openbmc/linux/lib/zstd/compress/ |
H A D | zstd_cwksp.h | 5 * This source code is licensed under both the BSD-style license (found in the 8 * You may select, at your option, one of the above-listed licenses. 14 /*-************************************* 20 /*-************************************* 39 /*-************************************* 51 * expect a well-formed caller to free this. 64 * Several optimizations complicate that process of allocating memory ranges 67 * - These different internal datastructures have different setup requirements: 69 * - The static objects need to be cleared once and can then be trivially 72 * - Various buffers don't need to be initialized at all--they are always [all …]
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-mvebu-gicp.c | 4 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 20 #include <dt-bindings/interrupt-controller/arm-gic.h> 44 for (i = 0; i < gicp->spi_ranges_cnt; i++) { in gicp_idx_to_spi() 45 struct mvebu_gicp_spi_range *r = &gicp->spi_ranges[i]; in gicp_idx_to_spi() 47 if (idx < r->count) in gicp_idx_to_spi() 48 return r->start + idx; in gicp_idx_to_spi() 50 idx -= r->count; in gicp_idx_to_spi() 53 return -EINVAL; in gicp_idx_to_spi() 58 struct mvebu_gicp *gicp = data->chip_data; in gicp_compose_msi_msg() 59 phys_addr_t setspi = gicp->res->start + GICP_SETSPI_NSR_OFFSET; in gicp_compose_msi_msg() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | of_platform.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 #include <asm/pci-bridge.h> 22 #include <asm/ppc-pci.h> 39 return -ENODEV; in of_pci_phb_probe() 41 pr_info("Setting up PCI bus %pOF\n", dev->dev.of_node); in of_pci_phb_probe() 43 /* Alloc and setup PHB data structure */ in of_pci_phb_probe() 44 phb = pcibios_alloc_controller(dev->dev.of_node); in of_pci_phb_probe() 46 return -ENODEV; in of_pci_phb_probe() 49 phb->parent = &dev->dev; in of_pci_phb_probe() 54 return -ENODEV; in of_pci_phb_probe() [all …]
|