Home
last modified time | relevance | path

Searched refs:dram_ranges (Results 1 – 2 of 2) sorted by relevance

/xnu-10002.1.13/osfmk/i386/
H A Dhibernate_i386.c71 hibernate_bitmap_t dram_ranges[MAX_BANKS]; in hibernate_page_list_allocate() local
131 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 …]
/xnu-10002.1.13/osfmk/arm64/
H A Dhibernate_arm64.c98 hibernate_bitmap_t dram_ranges[1]; in hibernate_page_list_allocate() local
99 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()