/arch/x86/mm/ |
D | numa.c | 136 struct numa_meminfo *mi) in numa_add_memblk_to() argument 149 if (mi->nr_blks >= NR_NODE_MEMBLKS) { in numa_add_memblk_to() 154 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to() 155 mi->blk[mi->nr_blks].end = end; in numa_add_memblk_to() 156 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to() 157 mi->nr_blks++; in numa_add_memblk_to() 169 void __init numa_remove_memblk_from(int idx, struct numa_meminfo *mi) in numa_remove_memblk_from() argument 171 mi->nr_blks--; in numa_remove_memblk_from() 172 memmove(&mi->blk[idx], &mi->blk[idx + 1], in numa_remove_memblk_from() 173 (mi->nr_blks - idx) * sizeof(mi->blk[0])); in numa_remove_memblk_from() [all …]
|
D | numa_internal.h | 18 void __init numa_remove_memblk_from(int idx, struct numa_meminfo *mi); 19 int __init numa_cleanup_meminfo(struct numa_meminfo *mi);
|
/arch/arm/mach-msm/ |
D | board-mahimahi.c | 57 struct meminfo *mi) in mahimahi_fixup() argument 59 mi->nr_banks = 2; in mahimahi_fixup() 60 mi->bank[0].start = PHYS_OFFSET; in mahimahi_fixup() 61 mi->bank[0].node = PHYS_TO_NID(PHYS_OFFSET); in mahimahi_fixup() 62 mi->bank[0].size = (219*1024*1024); in mahimahi_fixup() 63 mi->bank[1].start = MSM_HIGHMEM_BASE; in mahimahi_fixup() 64 mi->bank[1].node = PHYS_TO_NID(MSM_HIGHMEM_BASE); in mahimahi_fixup() 65 mi->bank[1].size = MSM_HIGHMEM_SIZE; in mahimahi_fixup()
|
D | board-sapphire.c | 79 struct meminfo *mi) in sapphire_fixup() argument 83 mi->nr_banks = 1; in sapphire_fixup() 84 mi->bank[0].start = PHYS_OFFSET; in sapphire_fixup() 85 mi->bank[0].node = PHYS_TO_NID(PHYS_OFFSET); in sapphire_fixup() 87 mi->bank[0].size = (84*1024*1024); in sapphire_fixup() 89 mi->bank[0].size = (101*1024*1024); in sapphire_fixup() 93 mi->bank[0].size = (101*1024*1024); in sapphire_fixup()
|
D | board-trout.c | 58 struct meminfo *mi) in trout_fixup() argument 60 mi->nr_banks = 1; in trout_fixup() 61 mi->bank[0].start = PHYS_OFFSET; in trout_fixup() 62 mi->bank[0].size = (101*1024*1024); in trout_fixup()
|
/arch/x86/boot/ |
D | video-mode.c | 57 struct mode_info *mi; in mode_defined() local 61 mi = card->modes; in mode_defined() 62 for (i = 0; i < card->nmodes; i++, mi++) { in mode_defined() 63 if (mi->mode == mode) in mode_defined() 76 struct mode_info *mi; in raw_set_mode() local 84 mi = card->modes; in raw_set_mode() 85 for (i = 0; i < card->nmodes; i++, mi++) { in raw_set_mode() 86 int visible = mi->x || mi->y; in raw_set_mode() 89 mode == mi->mode || in raw_set_mode() 90 mode == (mi->y << 8)+mi->x) { in raw_set_mode() [all …]
|
D | video-bios.c | 26 static int bios_set_mode(struct mode_info *mi) in bios_set_mode() argument 28 return set_bios_mode(mi->mode - VIDEO_FIRST_BIOS); in bios_set_mode() 72 struct mode_info *mi; in bios_probe() local 107 mi = GET_HEAP(struct mode_info, 1); in bios_probe() 108 mi->mode = VIDEO_FIRST_BIOS+mode; in bios_probe() 109 mi->depth = 0; /* text */ in bios_probe() 110 mi->x = rdfs16(0x44a); in bios_probe() 111 mi->y = rdfs8(0x484)+1; in bios_probe()
|
D | video.c | 138 struct mode_info *mi; in display_menu() local 160 mi = card->modes; in display_menu() 161 for (i = 0; i < card->nmodes; i++, mi++) { in display_menu() 163 int visible = mi->x && mi->y; in display_menu() 164 u16 mode_id = mi->mode ? mi->mode : in display_menu() 165 (mi->y << 8)+mi->x; in display_menu() 170 if (mi->depth) in display_menu() 171 sprintf(resbuf, "%dx%d", mi->y, mi->depth); in display_menu() 173 sprintf(resbuf, "%d", mi->y); in display_menu() 176 ch, mode_id, mi->x, resbuf, card->card_name); in display_menu()
|
D | video-vesa.c | 37 struct mode_info *mi; in vesa_probe() local 77 mi = GET_HEAP(struct mode_info, 1); in vesa_probe() 78 mi->mode = mode + VIDEO_FIRST_VESA; in vesa_probe() 79 mi->depth = 0; /* text */ in vesa_probe() 80 mi->x = vminfo.h_res; in vesa_probe() 81 mi->y = vminfo.v_res; in vesa_probe() 92 mi = GET_HEAP(struct mode_info, 1); in vesa_probe() 93 mi->mode = mode + VIDEO_FIRST_VESA; in vesa_probe() 94 mi->depth = vminfo.bpp; in vesa_probe() 95 mi->x = vminfo.h_res; in vesa_probe() [all …]
|
/arch/arm/mach-clps711x/ |
D | edb7211-arch.c | 40 fixup_edb7211(struct tag *tags, char **cmdline, struct meminfo *mi) in fixup_edb7211() argument 50 mi->bank[0].start = 0xc0000000; in fixup_edb7211() 51 mi->bank[0].size = 8*1024*1024; in fixup_edb7211() 52 mi->bank[1].start = 0xc1000000; in fixup_edb7211() 53 mi->bank[1].size = 8*1024*1024; in fixup_edb7211() 54 mi->nr_banks = 2; in fixup_edb7211()
|
D | clep7312.c | 29 fixup_clep7312(struct tag *tags, char **cmdline, struct meminfo *mi) in fixup_clep7312() argument 31 mi->nr_banks=1; in fixup_clep7312() 32 mi->bank[0].start = 0xc0000000; in fixup_clep7312() 33 mi->bank[0].size = 0x01000000; in fixup_clep7312()
|
D | fortunet.c | 60 fortunet_fixup(struct tag *tags, char **cmdline, struct meminfo *mi) in fortunet_fixup() argument 72 *mi = memmap; in fortunet_fixup()
|
/arch/arm/mach-ux500/ |
D | modem-irq-db5500.c | 67 struct modem_irq *mi = (struct modem_irq *)data; in modem_cpu_irq_handler() local 70 real_irq = readl(mi->modem_intcon_base + MODEM_IRQ_REG_OFFSET) & 0xFF; in modem_cpu_irq_handler() 76 (u32)mi->modem_intcon_base + MODEM_IRQ_REG_OFFSET, in modem_cpu_irq_handler() 103 struct modem_irq *mi; in modem_irq_init() local 111 mi = kmalloc(sizeof(struct modem_irq), GFP_KERNEL); in modem_irq_init() 112 if (!mi) { in modem_irq_init() 117 mi->modem_intcon_base = in modem_irq_init() 121 (u32)mi->modem_intcon_base); in modem_irq_init() 123 setup_modem_intcon(mi->modem_intcon_base); in modem_irq_init() 135 "modem_irq", mi); in modem_irq_init()
|
/arch/xtensa/kernel/ |
D | setup.c | 115 meminfo_t *mi = (meminfo_t*)(tag->data); in parse_tag_mem() local 117 if (mi->type != MEMORY_TYPE_CONVENTIONAL) in parse_tag_mem() 123 (unsigned long)mi->start, in parse_tag_mem() 124 (unsigned long)mi->end - (unsigned long)mi->start); in parse_tag_mem() 127 sysmem.bank[sysmem.nr_banks].type = mi->type; in parse_tag_mem() 128 sysmem.bank[sysmem.nr_banks].start = PAGE_ALIGN(mi->start); in parse_tag_mem() 129 sysmem.bank[sysmem.nr_banks].end = mi->end & PAGE_SIZE; in parse_tag_mem() 141 meminfo_t* mi; in parse_tag_initrd() local 142 mi = (meminfo_t*)(tag->data); in parse_tag_initrd() 143 initrd_start = (void*)(mi->start); in parse_tag_initrd() [all …]
|
/arch/arm/mach-tegra/ |
D | board-trimslice.c | 131 struct meminfo *mi) in tegra_trimslice_fixup() argument 133 mi->nr_banks = 2; in tegra_trimslice_fixup() 134 mi->bank[0].start = PHYS_OFFSET; in tegra_trimslice_fixup() 135 mi->bank[0].size = 448 * SZ_1M; in tegra_trimslice_fixup() 136 mi->bank[1].start = SZ_512M; in tegra_trimslice_fixup() 137 mi->bank[1].size = SZ_512M; in tegra_trimslice_fixup()
|
D | board-harmony.c | 130 struct meminfo *mi) in tegra_harmony_fixup() argument 132 mi->nr_banks = 2; in tegra_harmony_fixup() 133 mi->bank[0].start = PHYS_OFFSET; in tegra_harmony_fixup() 134 mi->bank[0].size = 448 * SZ_1M; in tegra_harmony_fixup() 135 mi->bank[1].start = SZ_512M; in tegra_harmony_fixup() 136 mi->bank[1].size = SZ_512M; in tegra_harmony_fixup()
|
D | board-paz00.c | 167 struct meminfo *mi) in tegra_paz00_fixup() argument 169 mi->nr_banks = 1; in tegra_paz00_fixup() 170 mi->bank[0].start = PHYS_OFFSET; in tegra_paz00_fixup() 171 mi->bank[0].size = 448 * SZ_1M; in tegra_paz00_fixup()
|
/arch/unicore32/mm/ |
D | init.c | 64 struct meminfo *mi = &meminfo; in show_mem() local 72 for_each_bank(i, mi) { in show_mem() 73 struct membank *bank = &mi->bank[i]; in show_mem() 110 struct meminfo *mi = &meminfo; in find_limits() local 116 for_each_bank(i, mi) { in find_limits() 117 struct membank *bank = &mi->bank[i]; in find_limits() 245 void __init uc32_memblock_init(struct meminfo *mi) in uc32_memblock_init() argument 252 for (i = 0; i < mi->nr_banks; i++) in uc32_memblock_init() 253 memblock_add(mi->bank[i].start, mi->bank[i].size); in uc32_memblock_init() 367 static void __init free_unused_memmap(struct meminfo *mi) in free_unused_memmap() argument [all …]
|
/arch/arm/mach-s3c24xx/ |
D | mach-vstms.c | 133 struct meminfo *mi) in vstms_fixup() argument 136 mi->nr_banks=1; in vstms_fixup() 137 mi->bank[0].start = 0x30000000; in vstms_fixup() 138 mi->bank[0].size = SZ_64M; in vstms_fixup()
|
D | mach-smdk2413.c | 96 struct meminfo *mi) in smdk2413_fixup() argument 99 mi->nr_banks=1; in smdk2413_fixup() 100 mi->bank[0].start = 0x30000000; in smdk2413_fixup() 101 mi->bank[0].size = SZ_64M; in smdk2413_fixup()
|
/arch/arm/mm/ |
D | init.c | 96 struct meminfo * mi = &meminfo; in show_mem() local 104 for_each_bank (i, mi) { in show_mem() 105 struct membank *bank = &mi->bank[i]; in show_mem() 142 struct meminfo *mi = &meminfo; in find_limits() local 146 *min = bank_pfn_start(&mi->bank[0]); in find_limits() 147 for_each_bank (i, mi) in find_limits() 148 if (mi->bank[i].highmem) in find_limits() 150 *max_low = bank_pfn_end(&mi->bank[i - 1]); in find_limits() 151 *max_high = bank_pfn_end(&mi->bank[mi->nr_banks - 1]); in find_limits() 328 void __init arm_memblock_init(struct meminfo *mi, struct machine_desc *mdesc) in arm_memblock_init() argument [all …]
|
/arch/unicore32/kernel/ |
D | setup.c | 192 request_standard_resources(struct meminfo *mi) in request_standard_resources() argument 202 for (i = 0; i < mi->nr_banks; i++) { in request_standard_resources() 203 if (mi->bank[i].size == 0) in request_standard_resources() 208 res->start = mi->bank[i].start; in request_standard_resources() 209 res->end = mi->bank[i].start + mi->bank[i].size - 1; in request_standard_resources()
|
/arch/unicore32/include/asm/ |
D | memblock.h | 34 #define for_each_bank(iter, mi) \ argument 35 for (iter = 0; iter < (mi)->nr_banks; iter++)
|
/arch/arm/mach-sa1100/ |
D | generic.h | 16 mi->bank[__nr].start = (__start), \ 17 mi->bank[__nr].size = (__size)
|
/arch/arm/mach-pxa/ |
D | generic.h | 22 mi->bank[__nr].start = (__start), \ 23 mi->bank[__nr].size = (__size)
|