Lines Matching refs:swsusp_header

97 struct swsusp_header {  struct
107 static struct swsusp_header *swsusp_header; argument
298 hib_submit_io(READ_SYNC, swsusp_resume_block, swsusp_header, NULL); in mark_swapfiles()
299 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) || in mark_swapfiles()
300 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) { in mark_swapfiles()
301 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10); in mark_swapfiles()
302 memcpy(swsusp_header->sig, HIBERNATE_SIG, 10); in mark_swapfiles()
303 swsusp_header->image = handle->first_sector; in mark_swapfiles()
304 swsusp_header->flags = flags; in mark_swapfiles()
306 swsusp_header->crc32 = handle->crc32; in mark_swapfiles()
308 swsusp_header, NULL); in mark_swapfiles()
956 *flags_p = swsusp_header->flags; in get_swap_reader()
958 if (!swsusp_header->image) /* how can this happen? */ in get_swap_reader()
963 offset = swsusp_header->image; in get_swap_reader()
1431 if (swsusp_header->flags & SF_CRC32_MODE) { in load_image_lzo()
1432 if(handle->crc32 != swsusp_header->crc32) { in load_image_lzo()
1509 clear_page(swsusp_header); in swsusp_check()
1511 swsusp_header, NULL); in swsusp_check()
1515 if (!memcmp(HIBERNATE_SIG, swsusp_header->sig, 10)) { in swsusp_check()
1516 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10); in swsusp_check()
1519 swsusp_header, NULL); in swsusp_check()
1562 hib_submit_io(READ_SYNC, swsusp_resume_block, swsusp_header, NULL); in swsusp_unmark()
1563 if (!memcmp(HIBERNATE_SIG,swsusp_header->sig, 10)) { in swsusp_unmark()
1564 memcpy(swsusp_header->sig,swsusp_header->orig_sig, 10); in swsusp_unmark()
1566 swsusp_header, NULL); in swsusp_unmark()
1583 swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL); in swsusp_header_init()
1584 if (!swsusp_header) in swsusp_header_init()