Lines Matching refs:swsusp_header
103 struct swsusp_header { struct
114 static struct swsusp_header *swsusp_header; argument
306 hib_submit_io_sync(REQ_OP_READ, swsusp_resume_block, swsusp_header); in mark_swapfiles()
307 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) || in mark_swapfiles()
308 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) { in mark_swapfiles()
309 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10); in mark_swapfiles()
310 memcpy(swsusp_header->sig, HIBERNATE_SIG, 10); in mark_swapfiles()
311 swsusp_header->image = handle->first_sector; in mark_swapfiles()
313 swsusp_header->hw_sig = swsusp_hardware_signature; in mark_swapfiles()
316 swsusp_header->flags = flags; in mark_swapfiles()
318 swsusp_header->crc32 = handle->crc32; in mark_swapfiles()
320 swsusp_resume_block, swsusp_header); in mark_swapfiles()
1010 *flags_p = swsusp_header->flags; in get_swap_reader()
1012 if (!swsusp_header->image) /* how can this happen? */ in get_swap_reader()
1017 offset = swsusp_header->image; in get_swap_reader()
1489 if (swsusp_header->flags & SF_CRC32_MODE) { in load_compressed_image()
1490 if(handle->crc32 != swsusp_header->crc32) { in load_compressed_image()
1574 clear_page(swsusp_header); in swsusp_check()
1576 swsusp_header); in swsusp_check()
1580 if (!memcmp(HIBERNATE_SIG, swsusp_header->sig, 10)) { in swsusp_check()
1581 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10); in swsusp_check()
1582 swsusp_header_flags = swsusp_header->flags; in swsusp_check()
1586 swsusp_header); in swsusp_check()
1590 if (!error && swsusp_header->flags & SF_HW_SIG && in swsusp_check()
1591 swsusp_header->hw_sig != swsusp_hardware_signature) { in swsusp_check()
1593 swsusp_header->hw_sig, swsusp_hardware_signature); in swsusp_check()
1635 hib_submit_io_sync(REQ_OP_READ, swsusp_resume_block, swsusp_header); in swsusp_unmark()
1636 if (!memcmp(HIBERNATE_SIG,swsusp_header->sig, 10)) { in swsusp_unmark()
1637 memcpy(swsusp_header->sig,swsusp_header->orig_sig, 10); in swsusp_unmark()
1640 swsusp_header); in swsusp_unmark()
1695 swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL); in swsusp_header_init()
1696 if (!swsusp_header) in swsusp_header_init()