Lines Matching refs:copy_bm
1475 static unsigned long copy_data_pages(struct memory_bitmap *copy_bm, in copy_data_pages() argument
1493 memory_bm_position_reset(copy_bm); in copy_data_pages()
1494 copy_pfn = memory_bm_next_pfn(copy_bm); in copy_data_pages()
1505 copy_pfn = memory_bm_next_pfn(copy_bm); in copy_data_pages()
1535 static struct memory_bitmap copy_bm; variable
1613 memory_bm_set_bit(©_bm, page_to_pfn(page)); in preallocate_image_pages()
1704 memory_bm_position_reset(©_bm); in free_unnecessary_pages()
1707 unsigned long pfn = memory_bm_next_pfn(©_bm); in free_unnecessary_pages()
1721 memory_bm_clear_bit(©_bm, pfn); in free_unnecessary_pages()
1797 error = memory_bm_create(©_bm, GFP_IMAGE, PG_ANY); in hibernate_preallocate_memory()
2035 static int swsusp_alloc(struct memory_bitmap *copy_bm, in swsusp_alloc() argument
2043 nr_pages += alloc_highmem_pages(copy_bm, nr_highmem); in swsusp_alloc()
2054 memory_bm_set_bit(copy_bm, page_to_pfn(page)); in swsusp_alloc()
2081 if (swsusp_alloc(©_bm, nr_pages, nr_highmem)) { in swsusp_save()
2091 nr_copy_pages = copy_data_pages(©_bm, &orig_bm, &zero_bm); in swsusp_save()
2212 memory_bm_position_reset(©_bm); in snapshot_read_next()
2219 page = pfn_to_page(memory_bm_next_pfn(©_bm)); in snapshot_read_next()
2753 error = memory_bm_create(©_bm, GFP_ATOMIC, PG_ANY); in snapshot_write_next()
2765 error = unpack_orig_pfns(buffer, ©_bm, &zero_bm); in snapshot_write_next()
2770 error = prepare_image(&orig_bm, ©_bm, &zero_bm); in snapshot_write_next()