Searched refs:dram_ranges (Results 1 – 2 of 2) sorted by relevance
71 hibernate_bitmap_t dram_ranges[MAX_BANKS]; in hibernate_page_list_allocate() local131 if (dram_ranges[bank].first_page <= base) { in hibernate_page_list_allocate()134 if ((base + num) == dram_ranges[bank].first_page) { in hibernate_page_list_allocate()135 dram_ranges[bank].first_page = base; in hibernate_page_list_allocate()144 if (bank && (base == (1 + dram_ranges[bank - 1].last_page))) { in hibernate_page_list_allocate()151 bcopy(&dram_ranges[bank], in hibernate_page_list_allocate()152 &dram_ranges[bank + 1], in hibernate_page_list_allocate()154 dram_ranges[bank].first_page = base; in hibernate_page_list_allocate()156 dram_ranges[bank].last_page = base + num - 1; in hibernate_page_list_allocate()184 pages = dram_ranges[bank].last_page + 1 - dram_ranges[bank].first_page; in hibernate_page_list_allocate()[all …]
98 hibernate_bitmap_t dram_ranges[1]; in hibernate_page_list_allocate() local99 uint32_t num_banks = sizeof(dram_ranges) / sizeof(dram_ranges[0]); in hibernate_page_list_allocate()102 set_dram_range(&dram_ranges[0], gPhysBase, gPhysSize); in hibernate_page_list_allocate()106 qsort((void*)dram_ranges, num_banks, sizeof(dram_ranges[0]), dram_range_compare); in hibernate_page_list_allocate()113 pages = dram_ranges[bank].last_page + 1 - dram_ranges[bank].first_page; in hibernate_page_list_allocate()131 bitmap->first_page = dram_ranges[bank].first_page; in hibernate_page_list_allocate()132 bitmap->last_page = dram_ranges[bank].last_page; in hibernate_page_list_allocate()