Searched refs:tboot (Results 1 - 9 of 9) sorted by relevance

/linux-4.1.27/arch/x86/kernel/
H A Dtboot.c2 * tboot.c: main implementation of helper functions used by kernel for
33 #include <linux/tboot.h>
51 struct tboot *tboot __read_mostly;
52 EXPORT_SYMBOL(tboot); variable
58 #define pr_fmt(fmt) "tboot: " fmt
83 /* Map and check for tboot UUID. */ tboot_probe()
85 tboot = (struct tboot *)fix_to_virt(FIX_TBOOT_BASE); tboot_probe()
86 if (memcmp(&tboot_uuid, &tboot->uuid, sizeof(tboot->uuid))) { tboot_probe()
87 pr_warning("tboot at 0x%llx is invalid\n", tboot_probe()
89 tboot = NULL; tboot_probe()
92 if (tboot->version < 5) { tboot_probe()
93 pr_warning("tboot version is invalid: %u\n", tboot->version); tboot_probe()
94 tboot = NULL; tboot_probe()
100 pr_debug("version: %d\n", tboot->version); tboot_probe()
101 pr_debug("log_addr: 0x%08x\n", tboot->log_addr); tboot_probe()
102 pr_debug("shutdown_entry: 0x%x\n", tboot->shutdown_entry); tboot_probe()
103 pr_debug("tboot_base: 0x%08x\n", tboot->tboot_base); tboot_probe()
104 pr_debug("tboot_size: 0x%x\n", tboot->tboot_size); tboot_probe()
166 /* Create identity map for tboot shutdown code. */ tboot_create_trampoline()
167 map_base = PFN_DOWN(tboot->tboot_base); tboot_create_trampoline()
168 map_size = PFN_UP(tboot->tboot_size); tboot_create_trampoline()
170 panic("tboot: Error mapping tboot pages (mfns) @ 0x%x, 0x%x\n", tboot_create_trampoline()
181 if (tboot->num_mac_regions >= MAX_TB_MAC_REGIONS) add_mac_region()
182 panic("tboot: Too many MAC regions\n"); add_mac_region()
185 mr = &tboot->mac_regions[tboot->num_mac_regions++]; add_mac_region()
195 tboot->num_mac_regions = 0; tboot_setup_sleep()
205 tboot->acpi_sinfo.kernel_s3_resume_vector = tboot_setup_sleep()
242 tboot->shutdown_type = shutdown_type; tboot_shutdown()
246 shutdown = (void(*)(void))(unsigned long)tboot->shutdown_entry; tboot_shutdown()
263 TB_COPY_GAS(tboot->acpi_sinfo.pm1a_cnt_blk, fadt->xpm1a_control_block); tboot_copy_fadt()
264 TB_COPY_GAS(tboot->acpi_sinfo.pm1b_cnt_blk, fadt->xpm1b_control_block); tboot_copy_fadt()
265 TB_COPY_GAS(tboot->acpi_sinfo.pm1a_evt_blk, fadt->xpm1a_event_block); tboot_copy_fadt()
266 TB_COPY_GAS(tboot->acpi_sinfo.pm1b_evt_blk, fadt->xpm1b_event_block); tboot_copy_fadt()
273 tboot->acpi_sinfo.wakeup_vector = fadt->facs + tboot_copy_fadt()
289 tboot->acpi_sinfo.pm1a_cnt_val = pm1a_control; tboot_sleep()
290 tboot->acpi_sinfo.pm1b_cnt_val = pm1b_control; tboot_sleep()
292 tboot->acpi_sinfo.vector_width = 32; tboot_sleep()
309 pr_warning("tboot is not able to suspend on platforms with reduced hardware sleep (ACPIv5)"); tboot_extended_sleep()
320 while (atomic_read((atomic_t *)&tboot->num_in_wfs) != num_aps && tboot_wait_for_aps()
327 pr_warning("tboot wait for APs timeout\n"); tboot_wait_for_aps()
329 return !(atomic_read((atomic_t *)&tboot->num_in_wfs) == num_aps); tboot_wait_for_aps()
487 * ACPI tables may not be DMA protected by tboot, so use DMAR copy tboot_get_dmar_table()
H A DMakefile52 obj-$(CONFIG_INTEL_TXT) += tboot.o
H A Dreboot.c10 #include <linux/tboot.h>
H A Dsetup.c70 #include <linux/tboot.h>
H A Dsmpboot.c52 #include <linux/tboot.h>
/linux-4.1.27/include/linux/
H A Dtboot.h2 * tboot.h: shared data structure with tboot and kernel and functions
38 /* used to communicate between tboot and the launched kernel */
75 * shared memory page used for communication between tboot and kernel
77 struct tboot { struct
92 * physical addr of entry point for tboot shutdown and
101 /* tboot location in memory (physical) */
105 /* memory regions (phys addrs) for tboot to MAC on S3 */
130 * UUID for tboot data struct to facilitate matching
131 * defined as {663C8DFF-E8B3-4b82-AABF-19EA4D057A08} by tboot, which is
137 extern struct tboot *tboot;
141 return tboot != NULL; tboot_enabled()
/linux-4.1.27/drivers/iommu/
H A Dintel-iommu.c38 #include <linux/tboot.h>
3639 panic("tboot: IOMMU setup failed, DMAR can not resume!\n"); iommu_resume()
4180 /* VT-d is required for a TXT/tboot launch, so enforce that */ intel_iommu_init()
4185 panic("tboot: Failed to initialize iommu memory\n"); intel_iommu_init()
4192 panic("tboot: Failed to initialize DMAR table\n"); intel_iommu_init()
4205 panic("tboot: Failed to initialize DMAR device scope\n"); for_each_active_iommu()
4220 panic("tboot: Failed to reserve iommu ranges\n");
4229 panic("tboot: Failed to initialize DMARs\n");
H A Ddmar.c38 #include <linux/tboot.h>
616 * ACPI tables may not be DMA protected by tboot, so use DMAR copy parse_dmar_table()
/linux-4.1.27/arch/x86/kvm/
H A Dvmx.c33 #include <linux/tboot.h>

Completed in 424 milliseconds