• Home
  • Raw
  • Download

Lines Matching refs:handle

2129 int snapshot_read_next(struct snapshot_handle *handle)  in snapshot_read_next()  argument
2131 if (handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_read_next()
2140 if (!handle->cur) { in snapshot_read_next()
2146 handle->buffer = buffer; in snapshot_read_next()
2149 } else if (handle->cur <= nr_meta_pages) { in snapshot_read_next()
2167 handle->buffer = buffer; in snapshot_read_next()
2169 handle->buffer = page_address(page); in snapshot_read_next()
2172 handle->cur++; in snapshot_read_next()
2624 int snapshot_write_next(struct snapshot_handle *handle) in snapshot_write_next() argument
2630 if (handle->cur > 1 && handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_write_next()
2633 if (!handle->cur) { in snapshot_write_next()
2641 handle->buffer = buffer; in snapshot_write_next()
2642 } else if (handle->cur == 1) { in snapshot_write_next()
2654 } else if (handle->cur <= nr_meta_pages + 1) { in snapshot_write_next()
2659 if (handle->cur == nr_meta_pages + 1) { in snapshot_write_next()
2667 handle->buffer = get_buffer(&orig_bm, &ca); in snapshot_write_next()
2668 if (IS_ERR(handle->buffer)) in snapshot_write_next()
2669 return PTR_ERR(handle->buffer); in snapshot_write_next()
2673 hibernate_restore_protect_page(handle->buffer); in snapshot_write_next()
2674 handle->buffer = get_buffer(&orig_bm, &ca); in snapshot_write_next()
2675 if (IS_ERR(handle->buffer)) in snapshot_write_next()
2676 return PTR_ERR(handle->buffer); in snapshot_write_next()
2678 handle->sync_read = (handle->buffer == buffer); in snapshot_write_next()
2679 handle->cur++; in snapshot_write_next()
2691 void snapshot_write_finalize(struct snapshot_handle *handle) in snapshot_write_finalize() argument
2694 hibernate_restore_protect_page(handle->buffer); in snapshot_write_finalize()
2696 if (handle->cur > 1 && handle->cur > nr_meta_pages + nr_copy_pages) { in snapshot_write_finalize()
2702 int snapshot_image_loaded(struct snapshot_handle *handle) in snapshot_image_loaded() argument
2705 handle->cur <= nr_meta_pages + nr_copy_pages); in snapshot_image_loaded()