Lines Matching refs:copy_bm

1524 static unsigned long copy_data_pages(struct memory_bitmap *copy_bm,  in copy_data_pages()  argument
1542 memory_bm_position_reset(copy_bm); in copy_data_pages()
1543 copy_pfn = memory_bm_next_pfn(copy_bm); in copy_data_pages()
1554 copy_pfn = memory_bm_next_pfn(copy_bm); in copy_data_pages()
1584 static struct memory_bitmap copy_bm; variable
1662 memory_bm_set_bit(&copy_bm, page_to_pfn(page)); in preallocate_image_pages()
1753 memory_bm_position_reset(&copy_bm); in free_unnecessary_pages()
1756 unsigned long pfn = memory_bm_next_pfn(&copy_bm); in free_unnecessary_pages()
1770 memory_bm_clear_bit(&copy_bm, pfn); in free_unnecessary_pages()
1846 error = memory_bm_create(&copy_bm, GFP_IMAGE, PG_ANY); in hibernate_preallocate_memory()
2084 static int swsusp_alloc(struct memory_bitmap *copy_bm, in swsusp_alloc() argument
2092 nr_pages += alloc_highmem_pages(copy_bm, nr_highmem); in swsusp_alloc()
2103 memory_bm_set_bit(copy_bm, page_to_pfn(page)); in swsusp_alloc()
2130 if (swsusp_alloc(&copy_bm, nr_pages, nr_highmem)) { in swsusp_save()
2140 nr_copy_pages = copy_data_pages(&copy_bm, &orig_bm, &zero_bm); in swsusp_save()
2260 memory_bm_position_reset(&copy_bm); in snapshot_read_next()
2267 page = pfn_to_page(memory_bm_next_pfn(&copy_bm)); in snapshot_read_next()
2801 error = memory_bm_create(&copy_bm, GFP_ATOMIC, PG_ANY); in snapshot_write_next()
2813 error = unpack_orig_pfns(buffer, &copy_bm, &zero_bm); in snapshot_write_next()
2818 error = prepare_image(&orig_bm, &copy_bm, &zero_bm); in snapshot_write_next()