Lines Matching refs:memsize
24 static unsigned long chip_11_errata(unsigned long memsize) in chip_11_errata() argument
34 memsize -= 4096; in chip_11_errata()
40 return memsize; in chip_11_errata()
47 unsigned long memsize, bank_config; in ibm4xx_sdram_fixup_memsize() local
49 memsize = 0; in ibm4xx_sdram_fixup_memsize()
53 memsize += SDRAM_CONFIG_BANK_SIZE(bank_config); in ibm4xx_sdram_fixup_memsize()
56 memsize = chip_11_errata(memsize); in ibm4xx_sdram_fixup_memsize()
57 dt_fixup_memory(0, memsize); in ibm4xx_sdram_fixup_memsize()
101 u64 banktop, memsize = 0; in ibm440spe_fixup_memsize() local
107 if (banktop > memsize) in ibm440spe_fixup_memsize()
108 memsize = banktop; in ibm440spe_fixup_memsize()
110 if (banktop > memsize) in ibm440spe_fixup_memsize()
111 memsize = banktop; in ibm440spe_fixup_memsize()
113 if (banktop > memsize) in ibm440spe_fixup_memsize()
114 memsize = banktop; in ibm440spe_fixup_memsize()
116 if (banktop > memsize) in ibm440spe_fixup_memsize()
117 memsize = banktop; in ibm440spe_fixup_memsize()
119 dt_fixup_memory(0, memsize); in ibm440spe_fixup_memsize()
205 unsigned long memsize; in ibm4xx_denali_fixup_memsize() local
251 memsize = cs * (1 << (col+row)) * bank * dpath; in ibm4xx_denali_fixup_memsize()
252 memsize = chip_11_errata(memsize); in ibm4xx_denali_fixup_memsize()
253 dt_fixup_memory(0, memsize); in ibm4xx_denali_fixup_memsize()