Home
last modified time | relevance | path

Searched refs:mem_size (Results 1 – 24 of 24) sorted by relevance

/linux-2.4.37.9/arch/mips/hp-lj/
Dinit.c24 ulong mem_size = get_mem_avail(); in prom_init() local
27 printk("Total Memory: %ld bytes\n", mem_size); in prom_init()
29 reserve_buffer(CommandLine, mem_size); in prom_init()
32 mem_size -= reserve_size; in prom_init()
34 add_memory_region(0x0,mem_size, BOOT_MEM_RAM); in prom_init()
35 add_memory_region(mem_size,reserve_size, BOOT_MEM_RESERVED); in prom_init()
37 printk("Main Memory: %ld bytes\n", mem_size); in prom_init()
/linux-2.4.37.9/arch/mips/philips/nino/
Dprom.c36 unsigned long mem_size; in prom_init() local
44 mem_size = 4 << 20; in prom_init()
46 mem_size = 8 << 20; in prom_init()
48 mem_size = 16 << 20; in prom_init()
62 free_end = (mem_size - tx3912fb_size) & PAGE_MASK; in prom_init()
64 add_memory_region(free_end, (mem_size - free_end), BOOT_MEM_RESERVED); in prom_init()
74 add_memory_region(0, mem_size, BOOT_MEM_RAM); in prom_init()
/linux-2.4.37.9/arch/mips/ite-boards/ivr/
Dinit.c60 unsigned long mem_size; in prom_init() local
75 mem_size = prom_get_memsize(); in prom_init()
76 mem_size = mem_size << 20; in prom_init()
83 pcicr |= (mem_size - 1) >> 22; in prom_init()
86 it8172_init_ram_resource(mem_size); in prom_init()
87 add_memory_region(0, mem_size, BOOT_MEM_RAM); in prom_init()
/linux-2.4.37.9/arch/mips/ite-boards/qed-4n-s01b/
Dinit.c60 unsigned long mem_size; in prom_init() local
73 mem_size = prom_get_memsize(); in prom_init()
75 printk("Memory size: %dMB\n", (unsigned)mem_size); in prom_init()
77 mem_size <<= 20; /* MB */ in prom_init()
84 pcicr |= (mem_size - 1) >> 22; in prom_init()
87 it8172_init_ram_resource(mem_size); in prom_init()
88 add_memory_region(0, mem_size, BOOT_MEM_RAM); in prom_init()
/linux-2.4.37.9/arch/mips/dec/prom/
Dmemory.c63 unsigned long mem_start = 0, mem_size = 0; in rex_setup_memory_region() local
74 mem_size += (8 * bm->pagesize); in rex_setup_memory_region()
75 else if (!mem_size) in rex_setup_memory_region()
78 add_memory_region(mem_start, mem_size, BOOT_MEM_RAM); in rex_setup_memory_region()
79 mem_start += mem_size + (8 * bm->pagesize); in rex_setup_memory_region()
80 mem_size = 0; in rex_setup_memory_region()
83 if (mem_size) in rex_setup_memory_region()
84 add_memory_region(mem_start, mem_size, BOOT_MEM_RAM); in rex_setup_memory_region()
/linux-2.4.37.9/arch/ppc/platforms/
Docotea.c354 u32 mem_size = 0; in ocotea_find_end_of_memory() local
381 mem_size += PPC44x_MEM_SIZE_8M; in ocotea_find_end_of_memory()
384 mem_size += PPC44x_MEM_SIZE_16M; in ocotea_find_end_of_memory()
387 mem_size += PPC44x_MEM_SIZE_32M; in ocotea_find_end_of_memory()
390 mem_size += PPC44x_MEM_SIZE_64M; in ocotea_find_end_of_memory()
393 mem_size += PPC44x_MEM_SIZE_128M; in ocotea_find_end_of_memory()
396 mem_size += PPC44x_MEM_SIZE_256M; in ocotea_find_end_of_memory()
399 mem_size += PPC44x_MEM_SIZE_512M; in ocotea_find_end_of_memory()
403 return mem_size; in ocotea_find_end_of_memory()
Debony.c431 u32 mem_size = 0; in ebony_find_end_of_memory() local
458 mem_size += PPC44x_MEM_SIZE_8M; in ebony_find_end_of_memory()
461 mem_size += PPC44x_MEM_SIZE_16M; in ebony_find_end_of_memory()
464 mem_size += PPC44x_MEM_SIZE_32M; in ebony_find_end_of_memory()
467 mem_size += PPC44x_MEM_SIZE_64M; in ebony_find_end_of_memory()
470 mem_size += PPC44x_MEM_SIZE_128M; in ebony_find_end_of_memory()
473 mem_size += PPC44x_MEM_SIZE_256M; in ebony_find_end_of_memory()
476 mem_size += PPC44x_MEM_SIZE_512M; in ebony_find_end_of_memory()
480 return mem_size; in ebony_find_end_of_memory()
/linux-2.4.37.9/arch/alpha/boot/tools/
Dobjstrip.c52 size_t nwritten, tocopy, n, mem_size, fil_size, pad = 0; in main() local
175 mem_size = elf_phdr->p_memsz; in main()
182 mem_size -= delta; in main()
216 mem_size = fil_size + aout->ah.bsize; in main()
257 mem_size = ((mem_size + pad - 1) / pad) * pad; in main()
260 tocopy = mem_size - fil_size; in main()
/linux-2.4.37.9/arch/ppc/boot/simple/
Dmisc-spruce.c167 int mem_size = 0; in load_kernel() local
224 mem_size = mem_end - mem_start + 0x100000; in load_kernel()
242 mem_size += mem_end - mem_start + 0x100000; in load_kernel()
429 rec->data[0] = mem_size; in load_kernel()
/linux-2.4.37.9/arch/sh64/kernel/
Dsetup.c123 unsigned long mem_size; in parse_mem_cmdline() local
125 mem_size = memparse(from+4, &from); in parse_mem_cmdline()
126 memory_end = memory_start + mem_size; in parse_mem_cmdline()
/linux-2.4.37.9/arch/alpha/kernel/
Dpci_iommu.c66 unsigned long mem_size; in iommu_arena_new_node() local
69 mem_size = window_size / (PAGE_SIZE / sizeof(unsigned long)); in iommu_arena_new_node()
75 if (align < mem_size) in iommu_arena_new_node()
76 align = mem_size; in iommu_arena_new_node()
92 mem_size, in iommu_arena_new_node()
98 arena->ptes = __alloc_bootmem(mem_size, align, 0); in iommu_arena_new_node()
104 arena->ptes = __alloc_bootmem(mem_size, align, 0); in iommu_arena_new_node()
/linux-2.4.37.9/arch/arm/kernel/
Ddec21285.c290 unsigned int mem_size, mem_mask; in dc21285_init() local
293 mem_size = (unsigned int)high_memory - PAGE_OFFSET; in dc21285_init()
295 if (mem_mask >= mem_size) in dc21285_init()
/linux-2.4.37.9/arch/mips64/kernel/
Dsetup.c187 unsigned long start_at, mem_size; in parse_mem_cmdline() local
213 mem_size = memparse(from + 4, &from); in parse_mem_cmdline()
218 add_memory_region(start_at, mem_size, BOOT_MEM_RAM); in parse_mem_cmdline()
/linux-2.4.37.9/arch/x86_64/kernel/
De820.c490 unsigned long mem_size; in setup_memory_region() local
494 mem_size = EXT_MEM_K; in setup_memory_region()
497 mem_size = ALT_MEM_K; in setup_memory_region()
502 add_memory_region(HIGH_MEMORY, mem_size << 10, E820_RAM); in setup_memory_region()
/linux-2.4.37.9/arch/mips/kernel/
Dsetup.c187 unsigned long start_at, mem_size; in parse_mem_cmdline() local
213 mem_size = memparse(from + 4, &from); in parse_mem_cmdline()
218 add_memory_region(start_at, mem_size, BOOT_MEM_RAM); in parse_mem_cmdline()
/linux-2.4.37.9/arch/sh/kernel/
Dsetup.c222 unsigned long mem_size; in parse_cmdline() local
224 mem_size = memparse(from+4, &from); in parse_cmdline()
225 memory_end = memory_start + mem_size; in parse_cmdline()
/linux-2.4.37.9/arch/ppc64/kernel/
Dlmb.c81 unsigned long mem_size = 0; in lmb_analyze() local
105 mem_size += lmb_size; in lmb_analyze()
126 _lmb->memory.size = mem_size; in lmb_analyze()
/linux-2.4.37.9/arch/i386/kernel/
Dsetup.c760 unsigned long mem_size; in setup_memory_region() local
764 mem_size = EXT_MEM_K; in setup_memory_region()
767 mem_size = ALT_MEM_K; in setup_memory_region()
773 add_memory_region(HIGH_MEMORY, mem_size << 10, E820_RAM); in setup_memory_region()
818 unsigned long long start_at, mem_size; in parse_cmdline_early() local
820 mem_size = memparse(from+4, &from); in parse_cmdline_early()
823 add_memory_region(start_at, mem_size, E820_RAM); in parse_cmdline_early()
826 add_memory_region(start_at, mem_size, E820_ACPI); in parse_cmdline_early()
829 add_memory_region(start_at, mem_size, E820_RESERVED); in parse_cmdline_early()
831 limit_regions(mem_size); in parse_cmdline_early()
/linux-2.4.37.9/drivers/net/
Dsaa9730.c204 unsigned int mem_size; in lan_saa9730_allocate_buffers() local
213 mem_size = ((LAN_SAA9730_RCV_Q_SIZE + LAN_SAA9730_TXM_Q_SIZE) * in lan_saa9730_allocate_buffers()
217 (unsigned int) kmalloc(mem_size, GFP_DMA | GFP_KERNEL); in lan_saa9730_allocate_buffers()
225 dma_cache_wback_inv((unsigned long) Pa, mem_size); in lan_saa9730_allocate_buffers()
Dskge.c2136 skge->mem_size = tx_size + rx_size; in skge_up()
2137 skge->mem = pci_alloc_consistent(hw->pdev, skge->mem_size, &skge->dma); in skge_up()
2141 pr_debug(PFX "pci region (%lu) %p = %x\n", skge->mem_size, in skge_up()
2146 if ((u64)skge->dma >> 32 != ((u64) skge->dma + skge->mem_size) >> 32) { in skge_up()
2152 memset(skge->mem, 0, skge->mem_size); in skge_up()
2197 pci_free_consistent(hw->pdev, skge->mem_size, skge->mem, skge->dma); in skge_up()
2264 pci_free_consistent(hw->pdev, skge->mem_size, skge->mem, skge->dma); in skge_down()
Dskge.h2437 unsigned long mem_size; member
/linux-2.4.37.9/drivers/sound/
Dgus_wave.c2583 long mem_ptr, mem_size; in gus_audio_prepare_for_output() local
2587 mem_size = gus_mem_size / gus_audio_channels; in gus_audio_prepare_for_output()
2589 if (mem_size > (256 * 1024)) in gus_audio_prepare_for_output()
2590 mem_size = 256 * 1024; in gus_audio_prepare_for_output()
2596 if ((pcm_bsize * pcm_nblk) > mem_size) in gus_audio_prepare_for_output()
2597 pcm_nblk = mem_size / pcm_bsize; in gus_audio_prepare_for_output()
/linux-2.4.37.9/drivers/message/fusion/
Dmptbase.h571 int mem_size; /* mmap memory size */ member
Dmptbase.c1366 ioc->mem_size = msize; in mpt_adapter_install()