Lines Matching refs:swsusp_header
106 struct swsusp_header {
117 static struct swsusp_header *swsusp_header;
310 hib_submit_io_sync(REQ_OP_READ, swsusp_resume_block, swsusp_header);
311 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) ||
312 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) {
313 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10);
314 memcpy(swsusp_header->sig, HIBERNATE_SIG, 10);
315 swsusp_header->image = handle->first_sector;
317 swsusp_header->hw_sig = swsusp_hardware_signature;
320 swsusp_header->flags = flags;
322 swsusp_header->crc32 = handle->crc32;
324 swsusp_resume_block, swsusp_header);
333 * Hold the swsusp_header flag. This is used in software_resume() in
1002 *flags_p = swsusp_header->flags;
1004 if (!swsusp_header->image) /* how can this happen? */
1009 offset = swsusp_header->image;
1496 if (swsusp_header->flags & SF_CRC32_MODE) {
1497 if(handle->crc32 != swsusp_header->crc32) {
1580 clear_page(swsusp_header);
1582 swsusp_header);
1586 if (!memcmp(HIBERNATE_SIG, swsusp_header->sig, 10)) {
1587 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10);
1588 swsusp_header_flags = swsusp_header->flags;
1592 swsusp_header);
1596 if (!error && swsusp_header->flags & SF_HW_SIG &&
1597 swsusp_header->hw_sig != swsusp_hardware_signature) {
1599 swsusp_header->hw_sig, swsusp_hardware_signature);
1641 hib_submit_io_sync(REQ_OP_READ, swsusp_resume_block, swsusp_header);
1642 if (!memcmp(HIBERNATE_SIG,swsusp_header->sig, 10)) {
1643 memcpy(swsusp_header->sig,swsusp_header->orig_sig, 10);
1646 swsusp_header);
1663 swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL);
1664 if (!swsusp_header)
1665 panic("Could not allocate memory for swsusp_header\n");