Home
last modified time | relevance | path

Searched refs:memsize (Results 1 – 25 of 73) sorted by relevance

123

/linux-2.6.39/arch/s390/kernel/
Dmem_detect.c17 unsigned long long memsize, rnmax, rzm; in find_memory_chunks() local
23 memsize = rzm * rnmax; in find_memory_chunks()
28 memsize = memsize ? min(ADDR2G, memsize) : ADDR2G; in find_memory_chunks()
35 if (memsize && addr + size >= memsize) in find_memory_chunks()
45 } while (addr < memsize && i < MEMORY_CHUNKS); in find_memory_chunks()
/linux-2.6.39/arch/mips/powertv/
Dmemory.c165 phys_addr_t memsize = 0; in get_memsize() local
176 memsize = memparse(ptr + 8, &ptr); in get_memsize()
183 memsize = simple_strtol(memsize_str, NULL, 0); in get_memsize()
186 if (memsize == 0) { in get_memsize()
188 memsize = _prom_memsize; in get_memsize()
189 pr_info("_prom_memsize = 0x%x\n", memsize); in get_memsize()
192 memsize += BLDR_SIZE; in get_memsize()
194 memsize = DEFAULT_MEMSIZE; in get_memsize()
196 "defaulting to 0x%x\n", memsize); in get_memsize()
201 return memsize; in get_memsize()
[all …]
/linux-2.6.39/arch/powerpc/boot/
D4xx.c28 static unsigned long chip_11_errata(unsigned long memsize) in chip_11_errata() argument
38 memsize -= 4096; in chip_11_errata()
44 return memsize; in chip_11_errata()
51 unsigned long memsize, bank_config; in ibm4xx_sdram_fixup_memsize() local
53 memsize = 0; in ibm4xx_sdram_fixup_memsize()
57 memsize += SDRAM_CONFIG_BANK_SIZE(bank_config); in ibm4xx_sdram_fixup_memsize()
60 memsize = chip_11_errata(memsize); in ibm4xx_sdram_fixup_memsize()
61 dt_fixup_memory(0, memsize); in ibm4xx_sdram_fixup_memsize()
105 u64 banktop, memsize = 0; in ibm440spe_fixup_memsize() local
111 if (banktop > memsize) in ibm440spe_fixup_memsize()
[all …]
Dmain.c54 printf("Allocating 0x%lx bytes for kernel ...\n\r", ei.memsize); in prep_kernel()
57 addr = platform_ops.vmlinux_alloc(ei.memsize); in prep_kernel()
69 if ((unsigned long)_end < ei.memsize) in prep_kernel()
87 return (struct addr_range){addr, ei.memsize}; in prep_kernel()
/linux-2.6.39/arch/mips/loongson/common/
Denv.c28 unsigned long memsize, highmemsize; variable
53 parse_even_earlier(memsize, "memsize", l); in prom_init_env()
58 if (memsize == 0) in prom_init_env()
59 memsize = 256; in prom_init_env()
78 bus_clock, cpu_clock_freq, memsize, highmemsize); in prom_init_env()
Dmem.c19 add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM); in prom_init_memory()
21 add_memory_region(memsize << 20, LOONGSON_PCI_MEM_START - (memsize << in prom_init_memory()
28 bit = fls(memsize + highmemsize); in prom_init_memory()
29 if (bit != ffs(memsize + highmemsize)) in prom_init_memory()
/linux-2.6.39/arch/mips/alchemy/gpr/
Dinit.c44 unsigned long memsize; in prom_init() local
54 memsize = 0x04000000; in prom_init()
56 strict_strtoul(memsize_str, 0, &memsize); in prom_init()
57 add_memory_region(0, memsize, BOOT_MEM_RAM); in prom_init()
/linux-2.6.39/arch/mips/alchemy/xxs1500/
Dinit.c45 unsigned long memsize; in prom_init() local
54 if (!memsize_str || strict_strtoul(memsize_str, 0, &memsize)) in prom_init()
55 memsize = 0x04000000; in prom_init()
57 add_memory_region(0, memsize, BOOT_MEM_RAM); in prom_init()
/linux-2.6.39/arch/mips/alchemy/mtx-1/
Dinit.c47 unsigned long memsize; in prom_init() local
57 memsize = 0x04000000; in prom_init()
59 strict_strtoul(memsize_str, 0, &memsize); in prom_init()
60 add_memory_region(0, memsize, BOOT_MEM_RAM); in prom_init()
/linux-2.6.39/arch/mips/alchemy/devboards/
Dprom.c49 unsigned long memsize; in prom_init() local
57 if (!memsize_str || strict_strtoul(memsize_str, 0, &memsize)) in prom_init()
58 memsize = ALCHEMY_BOARD_DEFAULT_MEMSIZE; in prom_init()
60 add_memory_region(0, memsize, BOOT_MEM_RAM); in prom_init()
/linux-2.6.39/arch/sh/mm/
Dconsistent.c127 char *name, unsigned long memsize) in platform_resource_setup_memory() argument
140 memchunk_cmdline_override(name, &memsize); in platform_resource_setup_memory()
141 if (!memsize) in platform_resource_setup_memory()
144 buf = dma_alloc_coherent(NULL, memsize, &dma_handle, GFP_KERNEL); in platform_resource_setup_memory()
150 memset(buf, 0, memsize); in platform_resource_setup_memory()
154 r->end = r->start + memsize - 1; in platform_resource_setup_memory()
/linux-2.6.39/arch/s390/kvm/
Dgaccess.h26 unsigned long memsize = kvm_s390_vcpu_get_memsize(vcpu); in __guestaddr_to_user() local
33 if (guestaddr > memsize) in __guestaddr_to_user()
163 unsigned long memsize = kvm_s390_vcpu_get_memsize(vcpu); in copy_to_guest() local
180 if (guestdest + n > memsize) in copy_to_guest()
214 unsigned long memsize = kvm_s390_vcpu_get_memsize(vcpu); in copy_from_guest() local
231 if (guestsrc + n > memsize) in copy_from_guest()
249 unsigned long memsize = kvm_s390_vcpu_get_memsize(vcpu); in copy_to_guest_absolute() local
251 if (guestdest + n > memsize) in copy_to_guest_absolute()
267 unsigned long memsize = kvm_s390_vcpu_get_memsize(vcpu); in copy_from_guest_absolute() local
269 if (guestsrc + n > memsize) in copy_from_guest_absolute()
/linux-2.6.39/arch/mips/rb532/
Dprom.c126 phys_t memsize; in prom_init() local
138 memsize = (phys_t)&ddr->ddrmask; in prom_init()
139 memsize = 0 - memsize; in prom_init()
145 add_memory_region(ddrbase + 0x400, memsize - 0x600, BOOT_MEM_RAM); in prom_init()
/linux-2.6.39/arch/mips/pnx8550/jbs/
Dinit.c48 unsigned long memsize; in prom_init() local
51 memsize = 0x08000000; /* Trimedia uses memory above */ in prom_init()
52 add_memory_region(0, memsize, BOOT_MEM_RAM); in prom_init()
/linux-2.6.39/arch/mips/pnx8550/stb810/
Dprom_init.c36 unsigned long memsize; in prom_init() local
44 memsize = 0x08000000; /* Trimedia uses memory above */ in prom_init()
45 add_memory_region(0, memsize, BOOT_MEM_RAM); in prom_init()
/linux-2.6.39/arch/mips/mipssim/
Dsim_mem.c46 unsigned int memsize; in prom_getmdesc() local
48 memsize = 0x02000000; in prom_getmdesc()
49 pr_info("Setting default memory size 0x%08x\n", memsize); in prom_getmdesc()
67 mdesc[3].size = memsize - mdesc[3].base; in prom_getmdesc()
/linux-2.6.39/arch/mips/pnx833x/stb22x/
Dboard.c60 unsigned long memsize; in prom_init() local
68 memsize = env_or_default("memsize", 0x02000000); in prom_init()
69 add_memory_region(0, memsize, BOOT_MEM_RAM); in prom_init()
/linux-2.6.39/arch/mips/pmc-sierra/msp71xx/
Dmsp_prom.c425 unsigned int memsize; in prom_getmdesc() local
433 memsize = 0x02000000; in prom_getmdesc()
435 memsize = simple_strtol(str, NULL, 0); in prom_getmdesc()
437 if (memsize == 0) { in prom_getmdesc()
439 memsize = 0x02000000; in prom_getmdesc()
443 memsize = CPHYSADDR(memsize); in prom_getmdesc()
500 mdesc[i].size = memsize - mdesc[i].base; in prom_getmdesc()
/linux-2.6.39/arch/mips/mti-malta/
Dmalta-memory.c56 unsigned int memsize; in prom_getmdesc() local
87 memsize = memparse(ptr + 8, &ptr); in prom_getmdesc()
89 memsize = physical_memsize; in prom_getmdesc()
118 mdesc[4].size = memsize - mdesc[4].base; in prom_getmdesc()
/linux-2.6.39/drivers/infiniband/hw/cxgb4/
Dcq.c72 cq->memsize, cq->queue, in destroy_cq()
96 cq->sw_queue = kzalloc(cq->memsize, GFP_KERNEL); in create_cq()
102 cq->queue = dma_alloc_coherent(&rdev->lldi.pdev->dev, cq->memsize, in create_cq()
109 memset(cq->queue, 0, cq->memsize); in create_cq()
167 dma_free_coherent(&rdev->lldi.pdev->dev, cq->memsize, cq->queue, in create_cq()
759 size_t memsize, hwentries; in c4iw_create_cq() local
796 memsize = hwentries * sizeof *chp->cq.queue; in c4iw_create_cq()
802 memsize = roundup(memsize, PAGE_SIZE); in c4iw_create_cq()
803 hwentries = memsize / sizeof *chp->cq.queue; in c4iw_create_cq()
806 chp->cq.memsize = memsize; in c4iw_create_cq()
[all …]
/linux-2.6.39/arch/sh/drivers/pci/
Dpci-sh7780.c244 size_t memsize; in sh7780_pci_init() local
296 memsize = roundup_pow_of_two(memory_end - memory_start); in sh7780_pci_init()
302 if (memsize > SZ_512M) { in sh7780_pci_init()
304 __raw_writel((((memsize - SZ_512M) - SZ_1M) & 0x1ff00000) | 1, in sh7780_pci_init()
306 memsize = SZ_512M; in sh7780_pci_init()
320 __raw_writel(((memsize - SZ_1M) & 0x1ff00000) | 1, in sh7780_pci_init()
/linux-2.6.39/arch/mips/ar7/
Dmemory.c35 static int __init memsize(void) in memsize() function
64 pages = memsize() >> PAGE_SHIFT; in prom_meminit()
/linux-2.6.39/arch/mips/fw/sni/
Dsniprom.c103 int i, memsize; in sni_mem_init() local
115 memsize = *((unsigned char *) SNI_IDPROM_MEMSIZE) * 16; in sni_mem_init()
117 pr_debug("IDProm memsize: %u MByte\n", memsize); in sni_mem_init()
/linux-2.6.39/drivers/video/
Dvgastate.c99 for (i = 0; i < state->memsize; i++) in save_vga_text()
185 for (i = 0; i < state->memsize; i++) in restore_vga_text()
400 if (state->memsize && state->memsize < 4 * 8192) { in save_vga()
404 if (!state->memsize) in save_vga()
405 state->memsize = 8 * 8192; in save_vga()
410 fbbase = ioremap(state->membase, state->memsize); in save_vga()
433 saved->vga_font1 = vmalloc(state->memsize); in save_vga()
467 void __iomem *fbbase = ioremap(state->membase, state->memsize); in restore_vga()
/linux-2.6.39/net/netfilter/ipset/
Dip_set_bitmap_port.c35 size_t memsize; /* members size */ member
309 memset(map->members, 0, map->memsize); in bitmap_port_flush()
325 htonl(sizeof(*map) + map->memsize)); in bitmap_port_head()
415 map->members = ip_set_alloc(map->memsize); in init_map_port()
454 map->memsize = (last_port - first_port + 1) in bitmap_port_create()
467 map->memsize = bitmap_bytes(0, last_port - first_port); in bitmap_port_create()
468 pr_debug("memsize: %zu\n", map->memsize); in bitmap_port_create()

123