• Home
  • Raw
  • Download

Lines Matching refs:handle

2128 int snapshot_read_next(struct snapshot_handle *handle)  in snapshot_read_next()  argument
2130 if (handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_read_next()
2139 if (!handle->cur) { in snapshot_read_next()
2145 handle->buffer = buffer; in snapshot_read_next()
2148 } else if (handle->cur <= nr_meta_pages) { in snapshot_read_next()
2166 handle->buffer = buffer; in snapshot_read_next()
2168 handle->buffer = page_address(page); in snapshot_read_next()
2171 handle->cur++; in snapshot_read_next()
2623 int snapshot_write_next(struct snapshot_handle *handle) in snapshot_write_next() argument
2629 if (handle->cur > 1 && handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_write_next()
2632 if (!handle->cur) { in snapshot_write_next()
2640 handle->buffer = buffer; in snapshot_write_next()
2641 } else if (handle->cur == 1) { in snapshot_write_next()
2653 } else if (handle->cur <= nr_meta_pages + 1) { in snapshot_write_next()
2658 if (handle->cur == nr_meta_pages + 1) { in snapshot_write_next()
2666 handle->buffer = get_buffer(&orig_bm, &ca); in snapshot_write_next()
2667 if (IS_ERR(handle->buffer)) in snapshot_write_next()
2668 return PTR_ERR(handle->buffer); in snapshot_write_next()
2672 hibernate_restore_protect_page(handle->buffer); in snapshot_write_next()
2673 handle->buffer = get_buffer(&orig_bm, &ca); in snapshot_write_next()
2674 if (IS_ERR(handle->buffer)) in snapshot_write_next()
2675 return PTR_ERR(handle->buffer); in snapshot_write_next()
2677 handle->sync_read = (handle->buffer == buffer); in snapshot_write_next()
2678 handle->cur++; in snapshot_write_next()
2690 void snapshot_write_finalize(struct snapshot_handle *handle) in snapshot_write_finalize() argument
2693 hibernate_restore_protect_page(handle->buffer); in snapshot_write_finalize()
2695 if (handle->cur > 1 && handle->cur > nr_meta_pages + nr_copy_pages) { in snapshot_write_finalize()
2701 int snapshot_image_loaded(struct snapshot_handle *handle) in snapshot_image_loaded() argument
2704 handle->cur <= nr_meta_pages + nr_copy_pages); in snapshot_image_loaded()