Lines Matching refs:max_mem
560 unsigned long max_mem; in memory_setup() local
570 max_mem = memory_end = _ramend - DMA_UNCACHED_REGION; in memory_setup()
578 if (max_mem >= 56 * 1024 * 1024) in memory_setup()
579 max_mem = 56 * 1024 * 1024; in memory_setup()
581 if (max_mem >= 60 * 1024 * 1024) in memory_setup()
582 max_mem = 60 * 1024 * 1024; in memory_setup()
619 if (memory_end > max_mem) { in memory_setup()
621 (max_mem - CONFIG_PHY_RAM_BASE_ADDRESS) >> 20); in memory_setup()
622 memory_end = max_mem; in memory_setup()
650 if (memory_end > max_mem) { in memory_setup()
652 (max_mem - CONFIG_PHY_RAM_BASE_ADDRESS) >> 20); in memory_setup()
653 memory_end = max_mem; in memory_setup()