/openbmc/qemu/hw/display/ |
H A D | framebuffer.c | 25 MemoryRegionSection *mem_section, in framebuffer_update_memory_section() argument 33 if (mem_section->mr) { in framebuffer_update_memory_section() 34 memory_region_set_log(mem_section->mr, false, DIRTY_MEMORY_VGA); in framebuffer_update_memory_section() 35 memory_region_unref(mem_section->mr); in framebuffer_update_memory_section() 36 mem_section->mr = NULL; in framebuffer_update_memory_section() 39 *mem_section = memory_region_find(root, base, src_len); in framebuffer_update_memory_section() 40 if (!mem_section->mr) { in framebuffer_update_memory_section() 44 if (int128_get64(mem_section->size) < src_len || in framebuffer_update_memory_section() 45 !memory_region_is_ram(mem_section->mr)) { in framebuffer_update_memory_section() 46 memory_region_unref(mem_section->mr); in framebuffer_update_memory_section() [all …]
|
H A D | framebuffer.h | 22 MemoryRegionSection *mem_section, 53 MemoryRegionSection *mem_section,
|
H A D | exynos4210_fimd.c | 293 MemoryRegionSection mem_section; /* RAM fragment containing framebuffer */ member 1147 if (w->mem_section.mr) { in fimd_update_memory_section() 1148 memory_region_set_log(w->mem_section.mr, false, DIRTY_MEMORY_VGA); in fimd_update_memory_section() 1149 memory_region_unref(w->mem_section.mr); in fimd_update_memory_section() 1152 w->mem_section = memory_region_find(s->fbmem, fb_start_addr, w->fb_len); in fimd_update_memory_section() 1153 assert(w->mem_section.mr); in fimd_update_memory_section() 1154 assert(w->mem_section.offset_within_address_space == fb_start_addr); in fimd_update_memory_section() 1158 if (int128_get64(w->mem_section.size) != w->fb_len || in fimd_update_memory_section() 1159 !memory_region_is_ram(w->mem_section.mr)) { in fimd_update_memory_section() 1181 memory_region_set_log(w->mem_section.mr, true, DIRTY_MEMORY_VGA); in fimd_update_memory_section() [all …]
|
/openbmc/linux/mm/ |
H A D | sparse.c | 27 struct mem_section **mem_section; variable 29 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] variable 32 EXPORT_SYMBOL(mem_section); 63 static noinline struct mem_section __ref *sparse_index_alloc(int nid) in sparse_index_alloc() 65 struct mem_section *section = NULL; in sparse_index_alloc() 67 sizeof(struct mem_section); in sparse_index_alloc() 85 struct mem_section *section; in sparse_index_init() 94 if (mem_section[root]) in sparse_index_init() 101 mem_section[root] = section; in sparse_index_init() 123 static inline int sparse_early_nid(struct mem_section *section) in sparse_early_nid() [all …]
|
H A D | page_ext.c | 237 struct mem_section *section = __pfn_to_section(pfn); in lookup_page_ext() 270 struct mem_section *section; in init_section_page_ext() 322 struct mem_section *ms; in __free_page_ext() 344 struct mem_section *ms; in __invalidate_page_ext()
|
H A D | bootmem_info.c | 46 struct mem_section *ms; in register_page_bootmem_info_section() 81 struct mem_section *ms; in register_page_bootmem_info_section()
|
H A D | memory_hotplug.c | 330 struct mem_section *ms; in pfn_to_online_page() 730 struct mem_section *ms = __pfn_to_section(pfn); in section_taint_zone_device()
|
H A D | Kconfig | 486 # statically allocating the mem_section[] array can potentially 496 # Architecture platforms which require a two level mem_section in SPARSEMEM
|
/openbmc/linux/include/linux/ |
H A D | mmzone.h | 1790 struct mem_section { struct 1821 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) 1831 extern struct mem_section **mem_section; 1833 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; 1836 static inline unsigned long *section_to_usemap(struct mem_section *ms) in section_to_usemap() 1841 static inline struct mem_section *__nr_to_section(unsigned long nr) in __nr_to_section() 1849 if (!mem_section || !mem_section[root]) in __nr_to_section() 1852 return &mem_section[root][nr & SECTION_ROOT_MASK]; in __nr_to_section() 1894 static inline struct page *__section_mem_map_addr(struct mem_section *section) in __section_mem_map_addr() 1901 static inline int present_section(struct mem_section *section) in present_section() [all …]
|
H A D | memory.h | 108 struct mem_section;
|
H A D | memory_hotplug.h | 13 struct mem_section;
|
/openbmc/linux/Documentation/translations/zh_CN/mm/ |
H A D | memory-model.rst | 63 SPARSEMEM模型将物理内存显示为一个部分的集合。一个区段用mem_section结构 77 `mem_section` 对象被安排在一个叫做 `mem_sections` 的二维数组中。这个数组的 81 `NR_MEM_SECTIONS` 行。每一行持有一个 `mem_section` 对象。 83 每一行包含价值 `PAGE_SIZE` 的 `mem_section` 对象,行数的计算是为了适应所有的
|
/openbmc/linux/scripts/gdb/linux/ |
H A D | mm.py | 130 mem_section = gdb.parse_and_eval("mem_section") 131 return mem_section[root][nr & self.SECTION_ROOT_MASK] 155 def valid_section(self, mem_section): argument 156 if mem_section != None and (mem_section['section_mem_map'] & self.SECTION_HAS_MEM_MAP): 160 def early_section(self, mem_section): argument 161 if mem_section != None and (mem_section['section_mem_map'] & self.SECTION_IS_EARLY):
|
/openbmc/linux/include/asm-generic/ |
H A D | memory_model.h | 53 struct mem_section *__sec = __pfn_to_section(__pfn); \
|
/openbmc/linux/kernel/ |
H A D | crash_core.c | 627 VMCOREINFO_SYMBOL_ARRAY(mem_section); in crash_save_vmcoreinfo_init() 628 VMCOREINFO_LENGTH(mem_section, NR_SECTION_ROOTS); in crash_save_vmcoreinfo_init() 629 VMCOREINFO_STRUCT_SIZE(mem_section); in crash_save_vmcoreinfo_init() 630 VMCOREINFO_OFFSET(mem_section, section_mem_map); in crash_save_vmcoreinfo_init()
|
/openbmc/linux/Documentation/mm/ |
H A D | memory-model.rst | 70 sections. A section is represented with struct mem_section 87 The `mem_section` objects are arranged in a two-dimensional array 94 single `mem_section` object. 97 `mem_section` objects and the number of rows is calculated to fit
|
/openbmc/linux/Documentation/admin-guide/kdump/ |
H A D | vmcoreinfo.rst | 92 mem_section|(mem_section, NR_SECTION_ROOTS)|(mem_section, section_mem_map) 95 The address of the mem_section array, its length, structure size, and
|
/openbmc/linux/arch/arm64/mm/ |
H A D | mmu.c | 1356 struct mem_section *ms; in prevent_bootmem_remove_notifier() 1417 struct mem_section *ms; in validate_bootmem_online()
|