Lines Matching refs:swsusp_header
105 struct swsusp_header { struct
116 static struct swsusp_header *swsusp_header; argument
318 hib_submit_io(REQ_OP_READ, swsusp_resume_block, swsusp_header, NULL); in mark_swapfiles()
319 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) || in mark_swapfiles()
320 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) { in mark_swapfiles()
321 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10); in mark_swapfiles()
322 memcpy(swsusp_header->sig, HIBERNATE_SIG, 10); in mark_swapfiles()
323 swsusp_header->image = handle->first_sector; in mark_swapfiles()
325 swsusp_header->hw_sig = swsusp_hardware_signature; in mark_swapfiles()
328 swsusp_header->flags = flags; in mark_swapfiles()
330 swsusp_header->crc32 = handle->crc32; in mark_swapfiles()
332 swsusp_resume_block, swsusp_header, NULL); in mark_swapfiles()
1007 *flags_p = swsusp_header->flags; in get_swap_reader()
1009 if (!swsusp_header->image) /* how can this happen? */ in get_swap_reader()
1014 offset = swsusp_header->image; in get_swap_reader()
1488 if (swsusp_header->flags & SF_CRC32_MODE) { in load_compressed_image()
1489 if(handle->crc32 != swsusp_header->crc32) { in load_compressed_image()
1572 clear_page(swsusp_header); in swsusp_check()
1574 swsusp_header, NULL); in swsusp_check()
1578 if (!memcmp(HIBERNATE_SIG, swsusp_header->sig, 10)) { in swsusp_check()
1579 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10); in swsusp_check()
1580 swsusp_header_flags = swsusp_header->flags; in swsusp_check()
1584 swsusp_header, NULL); in swsusp_check()
1588 if (!error && swsusp_header->flags & SF_HW_SIG && in swsusp_check()
1589 swsusp_header->hw_sig != swsusp_hardware_signature) { in swsusp_check()
1591 swsusp_header->hw_sig, swsusp_hardware_signature); in swsusp_check()
1634 swsusp_header, NULL); in swsusp_unmark()
1635 if (!memcmp(HIBERNATE_SIG,swsusp_header->sig, 10)) { in swsusp_unmark()
1636 memcpy(swsusp_header->sig,swsusp_header->orig_sig, 10); in swsusp_unmark()
1639 swsusp_header, NULL); in swsusp_unmark()
1656 swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL); in swsusp_header_init()
1657 if (!swsusp_header) in swsusp_header_init()