Lines Matching refs:swsusp_header

107 struct swsusp_header {  struct
117 static struct swsusp_header *swsusp_header; argument
312 swsusp_header, NULL); in mark_swapfiles()
313 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) || in mark_swapfiles()
314 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) { in mark_swapfiles()
315 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10); in mark_swapfiles()
316 memcpy(swsusp_header->sig, HIBERNATE_SIG, 10); in mark_swapfiles()
317 swsusp_header->image = handle->first_sector; in mark_swapfiles()
318 swsusp_header->flags = flags; in mark_swapfiles()
320 swsusp_header->crc32 = handle->crc32; in mark_swapfiles()
322 swsusp_resume_block, swsusp_header, NULL); in mark_swapfiles()
970 *flags_p = swsusp_header->flags; in get_swap_reader()
972 if (!swsusp_header->image) /* how can this happen? */ in get_swap_reader()
977 offset = swsusp_header->image; in get_swap_reader()
1443 if (swsusp_header->flags & SF_CRC32_MODE) { in load_image_lzo()
1444 if(handle->crc32 != swsusp_header->crc32) { in load_image_lzo()
1520 clear_page(swsusp_header); in swsusp_check()
1523 swsusp_header, NULL); in swsusp_check()
1527 if (!memcmp(HIBERNATE_SIG, swsusp_header->sig, 10)) { in swsusp_check()
1528 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10); in swsusp_check()
1532 swsusp_header, NULL); in swsusp_check()
1576 swsusp_header, NULL); in swsusp_unmark()
1577 if (!memcmp(HIBERNATE_SIG,swsusp_header->sig, 10)) { in swsusp_unmark()
1578 memcpy(swsusp_header->sig,swsusp_header->orig_sig, 10); in swsusp_unmark()
1581 swsusp_header, NULL); in swsusp_unmark()
1598 swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL); in swsusp_header_init()
1599 if (!swsusp_header) in swsusp_header_init()