Lines Matching refs:swsusp_header
105 struct swsusp_header { struct
115 static struct swsusp_header *swsusp_header; argument
310 swsusp_header, NULL); in mark_swapfiles()
311 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) || in mark_swapfiles()
312 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) { in mark_swapfiles()
313 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10); in mark_swapfiles()
314 memcpy(swsusp_header->sig, HIBERNATE_SIG, 10); in mark_swapfiles()
315 swsusp_header->image = handle->first_sector; 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, NULL); in mark_swapfiles()
968 *flags_p = swsusp_header->flags; in get_swap_reader()
970 if (!swsusp_header->image) /* how can this happen? */ in get_swap_reader()
975 offset = swsusp_header->image; in get_swap_reader()
1440 if (swsusp_header->flags & SF_CRC32_MODE) { in load_image_lzo()
1441 if(handle->crc32 != swsusp_header->crc32) { in load_image_lzo()
1517 clear_page(swsusp_header); in swsusp_check()
1520 swsusp_header, NULL); in swsusp_check()
1524 if (!memcmp(HIBERNATE_SIG, swsusp_header->sig, 10)) { in swsusp_check()
1525 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10); in swsusp_check()
1529 swsusp_header, NULL); in swsusp_check()
1573 swsusp_header, NULL); in swsusp_unmark()
1574 if (!memcmp(HIBERNATE_SIG,swsusp_header->sig, 10)) { in swsusp_unmark()
1575 memcpy(swsusp_header->sig,swsusp_header->orig_sig, 10); in swsusp_unmark()
1578 swsusp_header, NULL); in swsusp_unmark()
1595 swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL); in swsusp_header_init()
1596 if (!swsusp_header) in swsusp_header_init()