• Home
  • Raw
  • Download

Lines Matching refs:buffer

167 static void *buffer;  variable
1449 zeros_only = safe_copy_page(buffer, s_page); in copy_data_page()
1451 copy_page(dst, buffer); in copy_data_page()
1586 buffer = NULL; in swsusp_free()
1990 buffer = get_image_page(GFP_ATOMIC, safe_needed); in get_highmem_buffer()
1991 return buffer ? 0 : -ENOMEM; in get_highmem_buffer()
2198 if (!buffer) { in snapshot_read_next()
2200 buffer = get_image_page(GFP_ATOMIC, PG_ANY); in snapshot_read_next()
2201 if (!buffer) in snapshot_read_next()
2207 error = init_header((struct swsusp_info *)buffer); in snapshot_read_next()
2210 handle->buffer = buffer; in snapshot_read_next()
2214 clear_page(buffer); in snapshot_read_next()
2215 pack_pfns(buffer, &orig_bm, &zero_bm); in snapshot_read_next()
2229 copy_page(buffer, kaddr); in snapshot_read_next()
2231 handle->buffer = buffer; in snapshot_read_next()
2233 handle->buffer = page_address(page); in snapshot_read_next()
2474 return buffer; in get_highmem_page_buffer()
2490 kaddr = buffer; in get_highmem_page_buffer()
2520 copy_page(dst, buffer); in copy_last_highmem_page()
2536 if (buffer) in free_highmem_data()
2537 free_image_page(buffer, PG_UNSAFE_CLEAR); in free_highmem_data()
2586 free_image_page(buffer, PG_UNSAFE_CLEAR); in prepare_image()
2587 buffer = NULL; in prepare_image()
2738 if (!buffer) in snapshot_write_next()
2740 buffer = get_image_page(GFP_ATOMIC, PG_ANY); in snapshot_write_next()
2742 if (!buffer) in snapshot_write_next()
2745 handle->buffer = buffer; in snapshot_write_next()
2747 error = load_header(buffer); in snapshot_write_next()
2765 error = unpack_orig_pfns(buffer, &copy_bm, &zero_bm); in snapshot_write_next()
2778 handle->buffer = get_buffer(&orig_bm, &ca); in snapshot_write_next()
2779 if (IS_ERR(handle->buffer)) in snapshot_write_next()
2780 return PTR_ERR(handle->buffer); in snapshot_write_next()
2784 hibernate_restore_protect_page(handle->buffer); in snapshot_write_next()
2785 handle->buffer = get_buffer(&orig_bm, &ca); in snapshot_write_next()
2786 if (IS_ERR(handle->buffer)) in snapshot_write_next()
2787 return PTR_ERR(handle->buffer); in snapshot_write_next()
2789 handle->sync_read = (handle->buffer == buffer); in snapshot_write_next()
2795 memset(handle->buffer, 0, PAGE_SIZE); in snapshot_write_next()
2813 hibernate_restore_protect_page(handle->buffer); in snapshot_write_finalize()