Lines Matching refs:memsize
28 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()
112 memsize = banktop; in ibm440spe_fixup_memsize()
114 if (banktop > memsize) in ibm440spe_fixup_memsize()
115 memsize = banktop; in ibm440spe_fixup_memsize()
117 if (banktop > memsize) in ibm440spe_fixup_memsize()
118 memsize = banktop; in ibm440spe_fixup_memsize()
120 if (banktop > memsize) in ibm440spe_fixup_memsize()
121 memsize = banktop; in ibm440spe_fixup_memsize()
123 dt_fixup_memory(0, memsize); in ibm440spe_fixup_memsize()
209 unsigned long memsize; in ibm4xx_denali_fixup_memsize() local
255 memsize = cs * (1 << (col+row)) * bank * dpath; in ibm4xx_denali_fixup_memsize()
256 memsize = chip_11_errata(memsize); in ibm4xx_denali_fixup_memsize()
257 dt_fixup_memory(0, memsize); in ibm4xx_denali_fixup_memsize()