Lines Matching refs:swsusp_header
66 struct swsusp_header {
74 static struct swsusp_header *swsusp_header;
192 hib_bio_read_page(swsusp_resume_block, swsusp_header, NULL);
193 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) ||
194 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) {
195 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10);
196 memcpy(swsusp_header->sig,SWSUSP_SIG, 10);
197 swsusp_header->image = handle->first_sector;
198 swsusp_header->flags = flags;
200 swsusp_header, NULL);
485 *flags_p = swsusp_header->flags;
487 if (!swsusp_header->image) /* how can this happen? */
494 error = hib_bio_read_page(swsusp_header->image, handle->cur, NULL);
637 memset(swsusp_header, 0, PAGE_SIZE);
639 swsusp_header, NULL);
643 if (!memcmp(SWSUSP_SIG, swsusp_header->sig, 10)) {
644 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10);
647 swsusp_header, NULL);
683 swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL);
684 if (!swsusp_header)
685 panic("Could not allocate memory for swsusp_header\n");