Home
last modified time | relevance | path

Searched refs:sp_banks (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/arch/sparc/mm/
Dinit_32.c49 struct sparc_phys_banks sp_banks[SPARC_PHYS_BANKS+1]; variable
64 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in calc_highpages()
65 unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_highpages()
66 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages()
86 last_pfn = (sp_banks[0].base_addr + sp_banks[0].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
87 for (i = 1; sp_banks[i].num_bytes != 0; i++) { in calc_max_low_pfn()
88 curr_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_max_low_pfn()
96 last_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
143 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in bootmem_init()
144 end_of_phys_memory = sp_banks[i].base_addr + in bootmem_init()
[all …]
Dsrmmu.c235 for (i = 0; sp_banks[i].num_bytes; i++) in probe_memory()
236 total += sp_banks[i].num_bytes; in probe_memory()
859 unsigned long pstart = (sp_banks[sp_entry].base_addr & PGDIR_MASK); in map_spbank()
861 unsigned long vend = PGDIR_ALIGN(vbase + sp_banks[sp_entry].num_bytes); in map_spbank()
887 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in map_kernel()
888 map_spbank((unsigned long)__va(sp_banks[i].base_addr), i); in map_kernel()
/linux-6.1.9/arch/sparc/prom/
Dmemory.c24 sp_banks[index].base_addr = (unsigned long) p->start_adr; in prom_meminit_v0()
25 sp_banks[index].num_bytes = p->num_bytes; in prom_meminit_v0()
43 sp_banks[i].base_addr = reg[i].phys_addr; in prom_meminit_v2()
44 sp_banks[i].num_bytes = reg[i].reg_size; in prom_meminit_v2()
79 sort(sp_banks, num_ents, sizeof(struct sparc_phys_banks), in prom_meminit()
83 sp_banks[num_ents].base_addr = 0xdeadbeef; in prom_meminit()
84 sp_banks[num_ents].num_bytes = 0; in prom_meminit()
87 sp_banks[i].num_bytes &= PAGE_MASK; in prom_meminit()
/linux-6.1.9/arch/sparc/kernel/
Dsetup_32.c338 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in setup_arch()
341 if (sp_banks[i].base_addr < phys_base) in setup_arch()
342 phys_base = sp_banks[i].base_addr; in setup_arch()
343 top = sp_banks[i].base_addr + in setup_arch()
344 sp_banks[i].num_bytes; in setup_arch()
/linux-6.1.9/arch/sparc/include/asm/
Dpage_32.h45 extern struct sparc_phys_banks sp_banks[SPARC_PHYS_BANKS+1];