Lines Matching refs:snapshot

541                       struct snapshot_handle *snapshot,  in save_image()  argument
562 ret = snapshot_read_next(snapshot); in save_image()
565 ret = swap_write_page(handle, data_of(*snapshot), &hb); in save_image()
678 struct snapshot_handle *snapshot, in save_image_lzo() argument
780 ret = snapshot_read_next(snapshot); in save_image_lzo()
788 data_of(*snapshot), PAGE_SIZE); in save_image_lzo()
913 struct snapshot_handle snapshot; in swsusp_write() local
931 memset(&snapshot, 0, sizeof(struct snapshot_handle)); in swsusp_write()
932 error = snapshot_read_next(&snapshot); in swsusp_write()
939 header = (struct swsusp_info *)data_of(snapshot); in swsusp_write()
943 save_image(&handle, &snapshot, pages - 1) : in swsusp_write()
944 save_image_lzo(&handle, &snapshot, pages - 1); in swsusp_write()
1059 struct snapshot_handle *snapshot, in load_image() argument
1080 ret = snapshot_write_next(snapshot); in load_image()
1083 ret = swap_read_page(handle, data_of(*snapshot), &hb); in load_image()
1086 if (snapshot->sync_read) in load_image()
1102 snapshot_write_finalize(snapshot); in load_image()
1103 if (!snapshot_image_loaded(snapshot)) in load_image()
1165 struct snapshot_handle *snapshot, in load_image_lzo() argument
1294 ret = snapshot_write_next(snapshot); in load_image_lzo()
1412 memcpy(data_of(*snapshot), in load_image_lzo()
1420 ret = snapshot_write_next(snapshot); in load_image_lzo()
1443 snapshot_write_finalize(snapshot); in load_image_lzo()
1444 if (!snapshot_image_loaded(snapshot)) in load_image_lzo()
1486 struct snapshot_handle snapshot; in swsusp_read() local
1489 memset(&snapshot, 0, sizeof(struct snapshot_handle)); in swsusp_read()
1490 error = snapshot_write_next(&snapshot); in swsusp_read()
1493 header = (struct swsusp_info *)data_of(snapshot); in swsusp_read()
1501 load_image(&handle, &snapshot, header->pages - 1) : in swsusp_read()
1502 load_image_lzo(&handle, &snapshot, header->pages - 1); in swsusp_read()