Lines Matching refs:snapshot
547 struct snapshot_handle *snapshot, in save_image() argument
568 ret = snapshot_read_next(snapshot); in save_image()
571 trace_android_vh_encrypt_page(data_of(*snapshot)); in save_image()
572 ret = swap_write_page(handle, data_of(*snapshot), &hb); in save_image()
686 struct snapshot_handle *snapshot, in save_image_lzo() argument
788 ret = snapshot_read_next(snapshot); in save_image_lzo()
796 data_of(*snapshot), PAGE_SIZE); in save_image_lzo()
921 struct snapshot_handle snapshot; in swsusp_write() local
940 memset(&snapshot, 0, sizeof(struct snapshot_handle)); in swsusp_write()
941 error = snapshot_read_next(&snapshot); in swsusp_write()
948 header = (struct swsusp_info *)data_of(snapshot); in swsusp_write()
952 save_image(&handle, &snapshot, pages - 1) : in swsusp_write()
953 save_image_lzo(&handle, &snapshot, pages - 1); in swsusp_write()
1068 struct snapshot_handle *snapshot, in load_image() argument
1089 ret = snapshot_write_next(snapshot); in load_image()
1092 ret = swap_read_page(handle, data_of(*snapshot), &hb); in load_image()
1095 if (snapshot->sync_read) in load_image()
1111 snapshot_write_finalize(snapshot); in load_image()
1112 if (!snapshot_image_loaded(snapshot)) in load_image()
1174 struct snapshot_handle *snapshot, in load_image_lzo() argument
1303 ret = snapshot_write_next(snapshot); in load_image_lzo()
1421 memcpy(data_of(*snapshot), in load_image_lzo()
1429 ret = snapshot_write_next(snapshot); in load_image_lzo()
1452 snapshot_write_finalize(snapshot); in load_image_lzo()
1453 if (!snapshot_image_loaded(snapshot)) in load_image_lzo()
1495 struct snapshot_handle snapshot; in swsusp_read() local
1498 memset(&snapshot, 0, sizeof(struct snapshot_handle)); in swsusp_read()
1499 error = snapshot_write_next(&snapshot); in swsusp_read()
1502 header = (struct swsusp_info *)data_of(snapshot); in swsusp_read()
1510 load_image(&handle, &snapshot, header->pages - 1) : in swsusp_read()
1511 load_image_lzo(&handle, &snapshot, header->pages - 1); in swsusp_read()