Lines Matching refs:swsusp_header
97 struct swsusp_header { struct
107 static struct swsusp_header *swsusp_header; argument
225 hib_bio_read_page(swsusp_resume_block, swsusp_header, NULL); in mark_swapfiles()
226 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) || in mark_swapfiles()
227 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) { in mark_swapfiles()
228 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10); in mark_swapfiles()
229 memcpy(swsusp_header->sig, HIBERNATE_SIG, 10); in mark_swapfiles()
230 swsusp_header->image = handle->first_sector; in mark_swapfiles()
231 swsusp_header->flags = flags; in mark_swapfiles()
233 swsusp_header->crc32 = handle->crc32; in mark_swapfiles()
235 swsusp_header, NULL); in mark_swapfiles()
881 *flags_p = swsusp_header->flags; in get_swap_reader()
883 if (!swsusp_header->image) /* how can this happen? */ in get_swap_reader()
888 offset = swsusp_header->image; in get_swap_reader()
1354 if (swsusp_header->flags & SF_CRC32_MODE) { in load_image_lzo()
1355 if(handle->crc32 != swsusp_header->crc32) { in load_image_lzo()
1432 clear_page(swsusp_header); in swsusp_check()
1434 swsusp_header, NULL); in swsusp_check()
1438 if (!memcmp(HIBERNATE_SIG, swsusp_header->sig, 10)) { in swsusp_check()
1439 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10); in swsusp_check()
1442 swsusp_header, NULL); in swsusp_check()
1485 hib_bio_read_page(swsusp_resume_block, swsusp_header, NULL); in swsusp_unmark()
1486 if (!memcmp(HIBERNATE_SIG,swsusp_header->sig, 10)) { in swsusp_unmark()
1487 memcpy(swsusp_header->sig,swsusp_header->orig_sig, 10); in swsusp_unmark()
1489 swsusp_header, NULL); in swsusp_unmark()
1506 swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL); in swsusp_header_init()
1507 if (!swsusp_header) in swsusp_header_init()