| /linux-6.15/arch/mips/mti-malta/ |
| H A D | malta-dtshim.c | 30 enum mem_map { enum 71 enum mem_map map) in gen_fdt_mem_array() 137 enum mem_map mem_map; in append_memory() local 195 mem_map = config & ROCIT_CONFIG_GEN1_MEMMAP_MASK; in append_memory() 196 mem_map >>= ROCIT_CONFIG_GEN1_MEMMAP_SHIFT; in append_memory() 199 mem_map = MEM_MAP_V1; in append_memory() 201 if (mem_map > MEM_MAP_V2) in append_memory() 203 (unsigned int)mem_map); in append_memory() 214 mem_entries = gen_fdt_mem_array(mem_array, physical_memsize, mem_map); in append_memory() 220 mem_entries = gen_fdt_mem_array(mem_array, memsize, mem_map); in append_memory()
|
| /linux-6.15/Documentation/translations/zh_CN/mm/ |
| H A D | memory-model.rst | 40 在FLATMEM内存模型中,有一个全局的 `mem_map` 数组来映射整个物理内存。对 41 于大多数架构,孔隙在 `mem_map` 数组中都有条目。与孔洞相对应的 `struct page` 44 为了分配 `mem_map` 数组,架构特定的设置代码应该调用free_area_init()函数。 48 一个架构可能会释放 `mem_map` 数组中不包括实际物理页的部分。在这种情况下,特 49 定架构的 :c:func:`pfn_valid` 实现应该考虑到 `mem_map` 中的孔隙。 52 是 `mem_map` 数组的一个索引。 112 围提供 `struct page` `mem_map` 服务。 `ZONE_DEVICE` 的 "设备" 方面与以下 121 `ZONE_DEVICE` 用户需要更小的颗粒度来填充 `mem_map` 。鉴于 `ZONE_DEVICE`
|
| /linux-6.15/arch/m68k/include/asm/ |
| H A D | page_no.h | 32 #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)) 33 #define page_to_virt(page) __va(((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET))
|
| H A D | motorola_pgtable.h | 138 #define pud_page(pud) (mem_map + ((unsigned long)(__va(pud_val(pud)) - PAGE_OFFSET) >> PAGE_SHIFT))
|
| /linux-6.15/include/asm-generic/ |
| H A D | memory_model.h | 18 #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) 19 #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
|
| /linux-6.15/arch/nios2/include/asm/ |
| H A D | page.h | 72 extern struct page *mem_map; 80 ((void *)(((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
|
| /linux-6.15/Documentation/mm/ |
| H A D | memory-model.rst | 38 In the FLATMEM memory model, there is a global `mem_map` array that 40 have entries in the `mem_map` array. The `struct page` objects 43 To allocate the `mem_map` array, architecture specific setup code should 48 An architecture may free parts of the `mem_map` array that do not cover the 51 `mem_map` into account. 55 `mem_map` array. 140 `struct page` `mem_map` services for device driver identified physical 154 for smaller granularity of populating the `mem_map`. Given that
|
| /linux-6.15/arch/openrisc/include/asm/ |
| H A D | page.h | 72 (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
|
| H A D | pgtable.h | 336 #define __page_address(page) (PAGE_OFFSET + (((page) - mem_map) << PAGE_SHIFT)) 337 #define pte_page(pte) (mem_map+pte_pagenr(pte))
|
| /linux-6.15/arch/powerpc/platforms/embedded6xx/ |
| H A D | mpc10x.h | 152 unsigned long mpc10x_get_mem_size(uint mem_map);
|
| /linux-6.15/arch/csky/include/asm/ |
| H A D | page.h | 80 #define virt_to_page(x) (mem_map + MAP_NR(x))
|
| /linux-6.15/mm/ |
| H A D | sparse.c | 268 static unsigned long sparse_encode_mem_map(struct page *mem_map, unsigned long pnum) in sparse_encode_mem_map() argument 271 (unsigned long)(mem_map - (section_nr_to_pfn(pnum))); in sparse_encode_mem_map() 290 unsigned long pnum, struct page *mem_map, in sparse_init_one_section() argument 294 ms->section_mem_map |= sparse_encode_mem_map(mem_map, pnum) in sparse_init_one_section()
|
| H A D | mm_init.c | 44 struct page *mem_map; variable 45 EXPORT_SYMBOL(mem_map); 1677 mem_map = pgdat->node_mem_map; in alloc_node_mem_map() 1678 if (page_to_pfn(mem_map) != pgdat->node_start_pfn) in alloc_node_mem_map() 1679 mem_map -= offset; in alloc_node_mem_map()
|
| /linux-6.15/arch/microblaze/include/asm/ |
| H A D | pgtable.h | 231 #define pte_page(x) (mem_map + (unsigned long) \ 291 pte_val(pte) = (((page - mem_map) << PAGE_SHIFT) + memory_start) | \
|
| /linux-6.15/arch/mips/include/asm/mach-loongson64/ |
| H A D | boot_param.h | 28 struct mem_map { struct
|
| /linux-6.15/arch/openrisc/mm/ |
| H A D | init.c | 195 BUG_ON(!mem_map); in mem_init()
|
| /linux-6.15/kernel/ |
| H A D | vmcore_info.c | 152 VMCOREINFO_SYMBOL(mem_map); in crash_save_vmcoreinfo_init()
|
| /linux-6.15/Documentation/admin-guide/kdump/ |
| H A D | vmcoreinfo.rst | 74 mem_map section in Common variables 78 an index into the mem_map array. Right-shifting a physical address 80 into that mem_map array. 99 similar to the mem_map variable, both of them are used to translate an
|
| /linux-6.15/drivers/net/wireless/ti/wl1251/ |
| H A D | acx.c | 221 int wl1251_acx_mem_map(struct wl1251 *wl, struct acx_header *mem_map, in wl1251_acx_mem_map() argument 228 ret = wl1251_cmd_interrogate(wl, ACX_MEM_MAP, mem_map, len); in wl1251_acx_mem_map()
|
| H A D | acx.h | 1445 struct acx_header *mem_map, size_t len);
|
| /linux-6.15/arch/x86/mm/ |
| H A D | init_32.c | 698 BUG_ON(!mem_map); in arch_mm_preinit()
|
| /linux-6.15/drivers/staging/media/atomisp/pci/ |
| H A D | sh_css_internal.h | 228 mem_map;/** pointers to Parameters in ISP format IMPT: member
|
| /linux-6.15/drivers/staging/media/ipu3/ |
| H A D | ipu3-css.c | 2236 param_set->mem_map.acc_cluster_params_for_sp = map->daddr; in imgu_css_set_parameters() 2239 param_set->mem_map.dvs_6axis_params_y = map->daddr; in imgu_css_set_parameters() 2243 param_set->mem_map.obgrid_tbl[i] = in imgu_css_set_parameters() 2249 param_set->mem_map.isp_mem_param[stage][m] = map->daddr; in imgu_css_set_parameters()
|
| /linux-6.15/drivers/net/wireless/ti/wlcore/ |
| H A D | acx.h | 1037 struct acx_header *mem_map, size_t len);
|
| H A D | acx.c | 143 int wl1271_acx_mem_map(struct wl1271 *wl, struct acx_header *mem_map, in wl1271_acx_mem_map() argument 150 ret = wl1271_cmd_interrogate(wl, ACX_MEM_MAP, mem_map, in wl1271_acx_mem_map()
|