Home
last modified time | relevance | path

Searched refs:rgn (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/tools/testing/memblock/tests/
Dbasic_api.c43 struct memblock_region *rgn; in memblock_add_simple_check() local
45 rgn = &memblock.memory.regions[0]; in memblock_add_simple_check()
57 ASSERT_EQ(rgn->base, r.base); in memblock_add_simple_check()
58 ASSERT_EQ(rgn->size, r.size); in memblock_add_simple_check()
76 struct memblock_region *rgn; in memblock_add_node_simple_check() local
78 rgn = &memblock.memory.regions[0]; in memblock_add_node_simple_check()
90 ASSERT_EQ(rgn->base, r.base); in memblock_add_node_simple_check()
91 ASSERT_EQ(rgn->size, r.size); in memblock_add_node_simple_check()
93 ASSERT_EQ(rgn->nid, 1); in memblock_add_node_simple_check()
95 ASSERT_EQ(rgn->flags, MEMBLOCK_HOTPLUG); in memblock_add_node_simple_check()
[all …]
Dalloc_helpers_api.c20 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_simple_generic_check() local
35 ASSERT_EQ(rgn->size, size); in alloc_from_simple_generic_check()
36 ASSERT_EQ(rgn->base, min_addr); in alloc_from_simple_generic_check()
63 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_misaligned_generic_check() local
79 ASSERT_EQ(rgn->size, size); in alloc_from_misaligned_generic_check()
80 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - SMP_CACHE_BYTES); in alloc_from_misaligned_generic_check()
110 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_top_down_high_addr_check() local
124 ASSERT_EQ(rgn->size, size); in alloc_from_top_down_high_addr_check()
125 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - SMP_CACHE_BYTES); in alloc_from_top_down_high_addr_check()
153 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_top_down_no_space_above_check() local
[all …]
Dalloc_api.c26 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_simple_check() local
41 ASSERT_EQ(rgn->size, size); in alloc_top_down_simple_check()
42 ASSERT_EQ(rgn->base, expected_start); in alloc_top_down_simple_check()
125 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_before_check() local
144 ASSERT_EQ(rgn->size, total_size); in alloc_top_down_before_check()
145 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - total_size); in alloc_top_down_before_check()
168 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_after_check() local
192 ASSERT_EQ(rgn->size, total_size); in alloc_top_down_after_check()
193 ASSERT_EQ(rgn->base, r1.base - r2_size); in alloc_top_down_after_check()
217 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_second_fit_check() local
[all …]
Dalloc_nid_api.c66 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_top_down_simple_check() local
82 rgn_end = rgn->base + rgn->size; in alloc_nid_top_down_simple_check()
87 ASSERT_EQ(rgn->size, size); in alloc_nid_top_down_simple_check()
88 ASSERT_EQ(rgn->base, max_addr - size); in alloc_nid_top_down_simple_check()
118 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_top_down_end_misaligned_check() local
135 rgn_end = rgn->base + rgn->size; in alloc_nid_top_down_end_misaligned_check()
140 ASSERT_EQ(rgn->size, size); in alloc_nid_top_down_end_misaligned_check()
141 ASSERT_EQ(rgn->base, max_addr - size - misalign); in alloc_nid_top_down_end_misaligned_check()
169 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_exact_address_generic_check() local
185 rgn_end = rgn->base + rgn->size; in alloc_nid_exact_address_generic_check()
[all …]
Dcommon.h122 static inline phys_addr_t __maybe_unused region_end(struct memblock_region *rgn) in region_end() argument
124 return rgn->base + rgn->size; in region_end()
/linux-6.6.21/arch/powerpc/platforms/powernv/
Dopal-fadump.c104 fadump_conf->boot_mem_dest_addr = be64_to_cpu(fdm->rgn[0].dest); in opal_fadump_update_config()
130 base = be64_to_cpu(fdm->rgn[i].src); in opal_fadump_get_config()
131 size = be64_to_cpu(fdm->rgn[i].size); in opal_fadump_get_config()
146 fadump_conf->reserve_dump_area_start = be64_to_cpu(fdm->rgn[0].dest); in opal_fadump_get_config()
164 i, be64_to_cpu(fdm->rgn[i].src), in opal_fadump_get_config()
165 be64_to_cpu(fdm->rgn[i].size)); in opal_fadump_get_config()
199 opal_fdm->rgn[i].src = cpu_to_be64(fadump_conf->boot_mem_addr[i]); in opal_fadump_init_mem_struct()
200 opal_fdm->rgn[i].dest = cpu_to_be64(addr); in opal_fadump_init_mem_struct()
201 opal_fdm->rgn[i].size = cpu_to_be64(fadump_conf->boot_mem_sz[i]); in opal_fadump_init_mem_struct()
212 opal_fdm->fadumphdr_addr = cpu_to_be64(be64_to_cpu(opal_fdm->rgn[0].dest) + in opal_fadump_init_mem_struct()
[all …]
Dopal-fadump.h42 struct opal_mpipl_region rgn[FADUMP_MAX_MEM_REGS]; member
/linux-6.6.21/mm/
Dmemblock.c147 #define for_each_memblock_type(i, memblock_type, rgn) \ argument
148 for (i = 0, rgn = &memblock_type->regions[0]; \
150 i++, rgn = &memblock_type->regions[i])
560 struct memblock_region *rgn = &type->regions[idx]; in memblock_insert_region() local
563 memmove(rgn + 1, rgn, (type->cnt - idx) * sizeof(*rgn)); in memblock_insert_region()
564 rgn->base = base; in memblock_insert_region()
565 rgn->size = size; in memblock_insert_region()
566 rgn->flags = flags; in memblock_insert_region()
567 memblock_set_region_node(rgn, nid); in memblock_insert_region()
596 struct memblock_region *rgn; in memblock_add_range() local
[all …]
/linux-6.6.21/drivers/mtd/nand/onenand/
Donenand_bbt.c65 int rgn; in create_bbt() local
113 rgn = flexonenand_region(mtd, from); in create_bbt()
114 from += mtd->eraseregions[rgn].erasesize; in create_bbt()
/linux-6.6.21/drivers/of/
Dfdt.c981 struct memblock_region rgn[MAX_USABLE_RANGES] = {0}; in early_init_dt_check_for_usable_mem_range() local
997 rgn[i].base = dt_mem_next_cell(dt_root_addr_cells, &prop); in early_init_dt_check_for_usable_mem_range()
998 rgn[i].size = dt_mem_next_cell(dt_root_size_cells, &prop); in early_init_dt_check_for_usable_mem_range()
1001 i, &rgn[i].base, &rgn[i].size); in early_init_dt_check_for_usable_mem_range()
1004 memblock_cap_memory_range(rgn[0].base, rgn[0].size); in early_init_dt_check_for_usable_mem_range()
1005 for (i = 1; i < MAX_USABLE_RANGES && rgn[i].size; i++) in early_init_dt_check_for_usable_mem_range()
1006 memblock_add(rgn[i].base, rgn[i].size); in early_init_dt_check_for_usable_mem_range()