Lines Matching refs:header
38 struct wakeup_header *header; in acpi_save_state_mem() local
47 header = (struct wakeup_header *)(acpi_realmode + HEADER_OFFSET); in acpi_save_state_mem()
48 if (header->signature != 0x51ee1111) { in acpi_save_state_mem()
53 header->video_mode = saved_video_mode; in acpi_save_state_mem()
55 header->wakeup_jmp_seg = acpi_wakeup_address >> 4; in acpi_save_state_mem()
66 header->wakeup_gdt[0] = in acpi_save_state_mem()
67 (u64)(sizeof(header->wakeup_gdt) - 1) + in acpi_save_state_mem()
69 ((char *)&header->wakeup_gdt - (char *)acpi_realmode)) in acpi_save_state_mem()
72 header->wakeup_gdt[1] = in acpi_save_state_mem()
75 header->wakeup_gdt[2] = in acpi_save_state_mem()
79 store_gdt((struct desc_ptr *)&header->pmode_gdt); in acpi_save_state_mem()
81 header->pmode_efer_low = nx_enabled; in acpi_save_state_mem()
82 if (header->pmode_efer_low & 1) { in acpi_save_state_mem()
84 rdmsr(MSR_EFER, header->pmode_efer_low, in acpi_save_state_mem()
85 header->pmode_efer_high); in acpi_save_state_mem()
89 header->pmode_cr0 = read_cr0(); in acpi_save_state_mem()
90 header->pmode_cr4 = read_cr4_safe(); in acpi_save_state_mem()
91 header->realmode_flags = acpi_realmode_flags; in acpi_save_state_mem()
92 header->real_magic = 0x12345678; in acpi_save_state_mem()
95 header->pmode_entry = (u32)&wakeup_pmode_return; in acpi_save_state_mem()
96 header->pmode_cr3 = (u32)(swsusp_pg_dir - __PAGE_OFFSET); in acpi_save_state_mem()
99 header->trampoline_segment = setup_trampoline() >> 4; in acpi_save_state_mem()