Home
last modified time | relevance | path

Searched full:regions (Results 1 – 25 of 2471) sorted by relevance

12345678910>>...99

/kernel/linux/linux-5.10/arch/arm/boot/compressed/
Dkaslr.c19 struct regions { struct
93 u32 end, struct regions *regions) in intersects_reserved_region() argument
106 if (regions->reserved_mem < 0) in intersects_reserved_region()
110 for (subnode = fdt_first_subnode(fdt, regions->reserved_mem); in intersects_reserved_region()
117 while (len >= (regions->reserved_mem_addr_cells + in intersects_reserved_region()
118 regions->reserved_mem_size_cells)) { in intersects_reserved_region()
121 if (regions->reserved_mem_addr_cells == 2) in intersects_reserved_region()
124 reg += regions->reserved_mem_addr_cells; in intersects_reserved_region()
125 len -= 4 * regions->reserved_mem_addr_cells; in intersects_reserved_region()
128 if (regions->reserved_mem_size_cells == 2) in intersects_reserved_region()
[all …]
/kernel/linux/linux-6.6/mm/damon/
Dvaddr-test.h44 * discontiguous regions which cover every mapped areas. However, the three
45 * regions should not include the two biggest unmapped areas in the original
47 * heap and the mmap()-ed regions, and 2) the mmap()-ed regions and stack.
54 * three regions and returns. For more detail, refer to the comment of
60 * mapped. To cover every mappings, the three regions should start with 10,
63 * unmapped areas, and thus it should be converted to three regions of 10-25,
69 struct damon_addr_range regions[3] = {0,}; in damon_test_three_regions_in_vmas() local
84 __damon_va_three_regions(&mm, regions); in damon_test_three_regions_in_vmas()
86 KUNIT_EXPECT_EQ(test, 10ul, regions[0].start); in damon_test_three_regions_in_vmas()
87 KUNIT_EXPECT_EQ(test, 25ul, regions[0].end); in damon_test_three_regions_in_vmas()
[all …]
Dvaddr.c56 * Functions for the initial monitoring target regions construction
60 * Size-evenly split a region into 'nr_pieces' small regions
104 * Find three regions separated by two biggest unmapped regions
107 * regions an array of three address ranges that results will be saved
109 * This function receives an address space and finds three regions in it which
110 * separated by the two biggest unmapped regions in the space. Please refer to
117 struct damon_addr_range regions[3]) in __damon_va_three_regions()
160 regions[0].start = ALIGN(start, DAMON_MIN_REGION); in __damon_va_three_regions()
161 regions[0].end = ALIGN(first_gap.start, DAMON_MIN_REGION); in __damon_va_three_regions()
162 regions[1].start = ALIGN(first_gap.end, DAMON_MIN_REGION); in __damon_va_three_regions()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
Dkaslr_booke.c23 struct regions { struct
38 struct regions __initdata regions; variable
115 if (regions.reserved_mem < 0) in overlaps_reserved_region()
119 for (subnode = fdt_first_subnode(fdt, regions.reserved_mem); in overlaps_reserved_region()
127 while (len >= (regions.reserved_mem_addr_cells + in overlaps_reserved_region()
128 regions.reserved_mem_size_cells)) { in overlaps_reserved_region()
130 if (regions.reserved_mem_addr_cells == 2) in overlaps_reserved_region()
133 reg += regions.reserved_mem_addr_cells; in overlaps_reserved_region()
134 len -= 4 * regions.reserved_mem_addr_cells; in overlaps_reserved_region()
137 if (regions.reserved_mem_size_cells == 2) in overlaps_reserved_region()
[all …]
/kernel/linux/linux-6.6/arch/powerpc/mm/nohash/
Dkaslr_booke.c23 struct regions { struct
38 struct regions __initdata regions; argument
113 if (regions.reserved_mem < 0) in overlaps_reserved_region()
117 for (subnode = fdt_first_subnode(fdt, regions.reserved_mem); in overlaps_reserved_region()
125 while (len >= (regions.reserved_mem_addr_cells + in overlaps_reserved_region()
126 regions.reserved_mem_size_cells)) { in overlaps_reserved_region()
128 if (regions.reserved_mem_addr_cells == 2) in overlaps_reserved_region()
131 reg += regions.reserved_mem_addr_cells; in overlaps_reserved_region()
132 len -= 4 * regions.reserved_mem_addr_cells; in overlaps_reserved_region()
135 if (regions.reserved_mem_size_cells == 2) in overlaps_reserved_region()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/chips/
Djedec_probe.c274 const uint32_t regions[6]; member
306 .regions = {
318 .regions = {
333 .regions = {
348 .regions = {
363 .regions = {
378 .regions = {
394 .regions = {
411 .regions = {
428 .regions = {
[all …]
/kernel/linux/linux-6.6/drivers/mtd/chips/
Djedec_probe.c275 const uint32_t regions[6]; member
307 .regions = {
319 .regions = {
334 .regions = {
349 .regions = {
364 .regions = {
379 .regions = {
395 .regions = {
412 .regions = {
429 .regions = {
[all …]
/kernel/linux/linux-6.6/Documentation/admin-guide/device-mapper/
Ddm-clone.rst58 3. A small metadata device - it records which regions are already valid in the
59 destination device, i.e., which regions have already been hydrated, or have
65 Regions section in Design
68 dm-clone divides the source and destination devices in fixed sized regions.
69 Regions are the unit of hydration, i.e., the minimum amount of data copied from
77 Reads and writes from/to hydrated regions are serviced from the destination
93 as a hint to skip hydration of the regions covered by the request, i.e., it
111 A message `hydration_threshold <#regions>` can be used to set the maximum number
112 of regions being copied, the default being 1 region.
116 region size. A message `hydration_batch_size <#regions>` can be used to tune the
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/
Ddm-clone.rst58 3. A small metadata device - it records which regions are already valid in the
59 destination device, i.e., which regions have already been hydrated, or have
65 Regions section in Design
68 dm-clone divides the source and destination devices in fixed sized regions.
69 Regions are the unit of hydration, i.e., the minimum amount of data copied from
77 Reads and writes from/to hydrated regions are serviced from the destination
93 as a hint to skip hydration of the regions covered by the request, i.e., it
111 A message `hydration_threshold <#regions>` can be used to set the maximum number
112 of regions being copied, the default being 1 region.
116 region size. A message `hydration_batch_size <#regions>` can be used to tune the
[all …]
/kernel/linux/linux-6.6/drivers/vfio/cdx/
Dmain.c19 vdev->regions = kcalloc(count, sizeof(struct vfio_cdx_region), in vfio_cdx_open_device()
21 if (!vdev->regions) in vfio_cdx_open_device()
27 vdev->regions[i].addr = res->start; in vfio_cdx_open_device()
28 vdev->regions[i].size = resource_size(res); in vfio_cdx_open_device()
29 vdev->regions[i].type = res->flags; in vfio_cdx_open_device()
31 * Only regions addressed with PAGE granularity may be in vfio_cdx_open_device()
34 if (!(vdev->regions[i].addr & ~PAGE_MASK) && in vfio_cdx_open_device()
35 !(vdev->regions[i].size & ~PAGE_MASK)) in vfio_cdx_open_device()
36 vdev->regions[i].flags |= in vfio_cdx_open_device()
38 vdev->regions[i].flags |= VFIO_REGION_INFO_FLAG_READ; in vfio_cdx_open_device()
[all …]
/kernel/linux/linux-6.6/Documentation/networking/devlink/
Ddevlink-region.rst7 ``devlink`` regions enable access to driver defined address regions using
10 Each device can create and register its own supported address regions. The
15 Regions may optionally support triggering snapshots on demand.
22 address regions that are otherwise inaccessible to the user.
24 Regions may also be used to provide an additional way to debug complex error
27 Regions may optionally support capturing a snapshot on demand via the
34 Regions may optionally allow directly reading from their contents without a
54 # Show all of the exposed regions with region sizes:
81 As regions are likely very device or driver specific, no generic regions are
83 specific regions a driver supports.
/kernel/linux/linux-5.10/Documentation/networking/devlink/
Ddevlink-region.rst7 ``devlink`` regions enable access to driver defined address regions using
10 Each device can create and register its own supported address regions. The
15 Regions may optionally support triggering snapshots on demand.
22 address regions that are otherwise inaccessible to the user.
24 Regions may also be used to provide an additional way to debug complex error
27 Regions may optionally support capturing a snapshot on demand via the
45 # Show all of the exposed regions with region sizes:
68 As regions are likely very device or driver specific, no generic regions are
70 specific regions a driver supports.
/kernel/linux/linux-6.6/drivers/vfio/platform/
Dvfio_platform_common.c144 vdev->regions = kcalloc(cnt, sizeof(struct vfio_platform_region), in vfio_platform_regions_init()
146 if (!vdev->regions) in vfio_platform_regions_init()
153 vdev->regions[i].addr = res->start; in vfio_platform_regions_init()
154 vdev->regions[i].size = resource_size(res); in vfio_platform_regions_init()
155 vdev->regions[i].flags = 0; in vfio_platform_regions_init()
159 vdev->regions[i].type = VFIO_PLATFORM_REGION_TYPE_MMIO; in vfio_platform_regions_init()
160 vdev->regions[i].flags |= VFIO_REGION_INFO_FLAG_READ; in vfio_platform_regions_init()
162 vdev->regions[i].flags |= in vfio_platform_regions_init()
166 * Only regions addressed with PAGE granularity may be in vfio_platform_regions_init()
169 if (!(vdev->regions[i].addr & ~PAGE_MASK) && in vfio_platform_regions_init()
[all …]
/kernel/linux/linux-5.10/mm/
Dmemblock.c35 * Memblock is a method of managing memory regions during the early
40 * regions. There are several types of these collections:
46 * * ``reserved`` - describes the regions that were allocated
54 * which contains an array of memory regions along with
62 * arrays during addition of new regions. This feature should be used
112 .memory.regions = memblock_memory_init_regions,
117 .reserved.regions = memblock_reserved_init_regions,
128 .regions = memblock_physmem_init_regions,
144 for (i = 0, rgn = &memblock_type->regions[0]; \
146 i++, rgn = &memblock_type->regions[i])
[all …]
/kernel/linux/linux-6.6/Documentation/mm/damon/
Ddesign.rst75 address regions is just wasteful. However, because DAMON can deal with some
76 level of noise using the adaptive regions adjustment mechanism, tracking every
82 distinct regions that cover every mapped area of the address space. The two
83 gaps between the three regions are the two biggest unmapped areas in the given
93 (small mmap()-ed regions and munmap()-ed regions)
126 ``update interval``, ``minimum number of regions``, and ``maximum number of
127 regions``.
167 overhead is controllable by setting the number of regions. DAMON allows users
168 to set the minimum and the maximum number of regions for the trade-off.
174 Adaptive Regions Adjustment
[all …]
/kernel/linux/linux-6.6/drivers/virt/nitro_enclaves/
Dne_misc_dev_test.c23 * regions = {}
34 * regions = {}
45 * regions = {
58 * regions = {
72 * regions = {
87 * regions = {
102 * regions = {
117 phys_contig_mem_regions.regions = kunit_kcalloc(test, MAX_PHYS_REGIONS, in ne_misc_dev_test_merge_phys_contig_memory_regions()
118 sizeof(*phys_contig_mem_regions.regions), in ne_misc_dev_test_merge_phys_contig_memory_regions()
120 KUNIT_ASSERT_TRUE(test, phys_contig_mem_regions.regions); in ne_misc_dev_test_merge_phys_contig_memory_regions()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/nvfw/
Dacr.c89 hdr->regions.no_regions); in flcn_acr_desc_dump()
91 for (i = 0; i < ARRAY_SIZE(hdr->regions.region_props); i++) { in flcn_acr_desc_dump()
94 hdr->regions.region_props[i].start_addr); in flcn_acr_desc_dump()
96 hdr->regions.region_props[i].end_addr); in flcn_acr_desc_dump()
98 hdr->regions.region_props[i].region_id); in flcn_acr_desc_dump()
100 hdr->regions.region_props[i].read_mask); in flcn_acr_desc_dump()
102 hdr->regions.region_props[i].write_mask); in flcn_acr_desc_dump()
104 hdr->regions.region_props[i].client_mask); in flcn_acr_desc_dump()
132 hdr->regions.no_regions); in flcn_acr_desc_v1_dump()
134 for (i = 0; i < ARRAY_SIZE(hdr->regions.region_props); i++) { in flcn_acr_desc_v1_dump()
[all …]
/kernel/linux/linux-5.10/drivers/vfio/platform/
Dvfio_platform_common.c144 vdev->regions = kcalloc(cnt, sizeof(struct vfio_platform_region), in vfio_platform_regions_init()
146 if (!vdev->regions) in vfio_platform_regions_init()
156 vdev->regions[i].addr = res->start; in vfio_platform_regions_init()
157 vdev->regions[i].size = resource_size(res); in vfio_platform_regions_init()
158 vdev->regions[i].flags = 0; in vfio_platform_regions_init()
162 vdev->regions[i].type = VFIO_PLATFORM_REGION_TYPE_MMIO; in vfio_platform_regions_init()
163 vdev->regions[i].flags |= VFIO_REGION_INFO_FLAG_READ; in vfio_platform_regions_init()
165 vdev->regions[i].flags |= in vfio_platform_regions_init()
169 * Only regions addressed with PAGE granularity may be in vfio_platform_regions_init()
172 if (!(vdev->regions[i].addr & ~PAGE_MASK) && in vfio_platform_regions_init()
[all …]
/kernel/linux/linux-6.6/mm/
Dmemblock.c39 * Memblock is a method of managing memory regions during the early
44 * regions. There are several types of these collections:
50 * * ``reserved`` - describes the regions that were allocated
58 * which contains an array of memory regions along with
66 * arrays during addition of new regions. This feature should be used
116 .memory.regions = memblock_memory_init_regions,
121 .reserved.regions = memblock_reserved_init_regions,
132 .regions = memblock_physmem_init_regions,
148 for (i = 0, rgn = &memblock_type->regions[0]; \
150 i++, rgn = &memblock_type->regions[i])
[all …]
/kernel/linux/linux-6.6/Documentation/admin-guide/mm/damon/
Dlru_sort.rst31 DAMON_LRU_SORT finds hot pages (pages of memory regions that showing access
33 memory regions that showing no access for a time that longer than a
85 Access frequency threshold for hot memory regions identification in permil.
94 Time threshold for cold memory regions identification in microseconds.
179 Minimum number of monitoring regions.
181 The minimal number of monitoring regions of DAMON for the cold memory
190 Maximum number of monitoring regions.
192 The maximum number of monitoring regions of DAMON for the cold memory
225 Number of hot memory regions that tried to be LRU-sorted.
230 Total bytes of hot memory regions that tried to be LRU-sorted.
[all …]
Dusage.rst74 │ │ │ │ │ │ │ regions/nr_regions
133 DAMON-based operation scheme action tried regions directory for each
138 operating scheme action tried regions directory for each DAMON-based operation
140 tried regions directory, please refer to :ref:`tried_regions section
176 Please refer to :ref:`regions sysfs directory <sysfs_regions>` for detailed
178 regions.
200 of DAMON's monitoring regions (``min`` and ``max``, respectively), which
204 For more details about the intervals and monitoring regions range, please refer
218 (``regions``) exist.
226 targets/<N>/regions
[all …]
/kernel/linux/linux-6.6/tools/testing/memblock/tests/
Dbasic_api.c17 ASSERT_NE(memblock.memory.regions, NULL); in memblock_initialization_check()
22 ASSERT_NE(memblock.reserved.regions, NULL); in memblock_initialization_check()
37 * and size to the collection of available memory regions (memblock.memory).
45 rgn = &memblock.memory.regions[0]; in memblock_add_simple_check()
70 * NUMA node and memory flags to the collection of available memory regions.
78 rgn = &memblock.memory.regions[0]; in memblock_add_node_simple_check()
114 * available memory regions (memblock.memory). The total size and
121 rgn1 = &memblock.memory.regions[0]; in memblock_add_disjoint_check()
122 rgn2 = &memblock.memory.regions[1]; in memblock_add_disjoint_check()
167 * and has size of two regions minus their intersection. The total size of
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/nvfw/
Dacr.c130 hdr->regions.no_regions); in flcn_acr_desc_dump()
132 for (i = 0; i < ARRAY_SIZE(hdr->regions.region_props); i++) { in flcn_acr_desc_dump()
135 hdr->regions.region_props[i].start_addr); in flcn_acr_desc_dump()
137 hdr->regions.region_props[i].end_addr); in flcn_acr_desc_dump()
139 hdr->regions.region_props[i].region_id); in flcn_acr_desc_dump()
141 hdr->regions.region_props[i].read_mask); in flcn_acr_desc_dump()
143 hdr->regions.region_props[i].write_mask); in flcn_acr_desc_dump()
145 hdr->regions.region_props[i].client_mask); in flcn_acr_desc_dump()
173 hdr->regions.no_regions); in flcn_acr_desc_v1_dump()
175 for (i = 0; i < ARRAY_SIZE(hdr->regions.region_props); i++) { in flcn_acr_desc_v1_dump()
[all …]
/kernel/linux/linux-6.6/include/linux/
Ddamon.h48 * regions are merged into a new region, both @nr_accesses and @age of the new
49 * region are set as region size-weighted average of those of the two regions.
65 * @nr_regions: Number of monitoring target regions of this target.
66 * @regions_list: Head of the monitoring target regions of this target.
135 * For selecting regions within the quota, DAMON prioritizes current scheme's
136 * target memory regions using the &struct damon_operations->get_scheme_score.
191 * appropriate memory regions. Else, DAMON checks &metric of the system for at
211 * @nr_tried: Total number of regions that the scheme is tried to be applied.
212 * @sz_tried: Total size of regions that the scheme is tried to be applied.
213 * @nr_applied: Total number of regions that the scheme is applied.
[all …]
/kernel/linux/linux-6.6/drivers/vfio/fsl-mc/
Dvfio_fsl_mc.c30 vdev->regions = kcalloc(count, sizeof(struct vfio_fsl_mc_region), in vfio_fsl_mc_open_device()
32 if (!vdev->regions) in vfio_fsl_mc_open_device()
36 struct resource *res = &mc_dev->regions[i]; in vfio_fsl_mc_open_device()
39 vdev->regions[i].addr = res->start; in vfio_fsl_mc_open_device()
40 vdev->regions[i].size = resource_size(res); in vfio_fsl_mc_open_device()
41 vdev->regions[i].type = mc_dev->regions[i].flags & IORESOURCE_BITS; in vfio_fsl_mc_open_device()
43 * Only regions addressed with PAGE granularity may be in vfio_fsl_mc_open_device()
46 if (!no_mmap && !(vdev->regions[i].addr & ~PAGE_MASK) && in vfio_fsl_mc_open_device()
47 !(vdev->regions[i].size & ~PAGE_MASK)) in vfio_fsl_mc_open_device()
48 vdev->regions[i].flags |= in vfio_fsl_mc_open_device()
[all …]

12345678910>>...99