Lines Matching refs:memory
897 int64_t memory; in plat_mem_setup() local
935 memory = cvmx_bootmem_phy_alloc(mem_alloc_size, in plat_mem_setup()
939 if (memory >= 0) { in plat_mem_setup()
952 &memory, &size); in plat_mem_setup()
955 &memory, &size); in plat_mem_setup()
957 end = memory + mem_alloc_size; in plat_mem_setup()
964 if (memory < crashk_base && end > crashk_end) { in plat_mem_setup()
966 add_memory_region(memory, in plat_mem_setup()
967 crashk_base - memory, in plat_mem_setup()
969 total += crashk_base - memory; in plat_mem_setup()
977 if (memory >= crashk_base && end <= crashk_end) in plat_mem_setup()
984 if (memory > crashk_base && memory < crashk_end && in plat_mem_setup()
990 mem_alloc_size -= crashk_end - memory; in plat_mem_setup()
991 memory = crashk_end; in plat_mem_setup()
992 } else if (memory < crashk_base && end > crashk_base && in plat_mem_setup()
1000 add_memory_region(memory, mem_alloc_size, BOOT_MEM_RAM); in plat_mem_setup()