Lines Matching refs:snapshot
314 struct snapshot_handle *snapshot,
334 ret = snapshot_read_next(snapshot, PAGE_SIZE);
336 error = swap_write_page(handle, data_of(*snapshot),
382 struct snapshot_handle snapshot;
392 memset(&snapshot, 0, sizeof(struct snapshot_handle));
393 error = snapshot_read_next(&snapshot, PAGE_SIZE);
400 header = (struct swsusp_info *)data_of(snapshot);
412 error = save_image(&handle, &snapshot,
491 * @handle and the snapshot handle @snapshot
496 struct snapshot_handle *snapshot,
515 error = snapshot_write_next(snapshot, PAGE_SIZE);
518 error = swap_read_page(handle, data_of(*snapshot), &bio);
521 if (snapshot->sync_read)
535 snapshot_write_finalize(snapshot);
536 if (!snapshot_image_loaded(snapshot))
547 struct snapshot_handle snapshot;
555 memset(&snapshot, 0, sizeof(struct snapshot_handle));
556 error = snapshot_write_next(&snapshot, PAGE_SIZE);
559 header = (struct swsusp_info *)data_of(snapshot);
564 error = load_image(&handle, &snapshot, header->pages - 1);