Lines Matching refs:tboot
38 struct tboot *tboot __read_mostly;
39 EXPORT_SYMBOL(tboot);
66 tboot = (struct tboot *)fix_to_virt(FIX_TBOOT_BASE); in tboot_probe()
67 if (memcmp(&tboot_uuid, &tboot->uuid, sizeof(tboot->uuid))) { in tboot_probe()
70 tboot = NULL; in tboot_probe()
73 if (tboot->version < 5) { in tboot_probe()
74 pr_warning("tboot version is invalid: %u\n", tboot->version); in tboot_probe()
75 tboot = NULL; in tboot_probe()
81 pr_debug("version: %d\n", tboot->version); in tboot_probe()
82 pr_debug("log_addr: 0x%08x\n", tboot->log_addr); in tboot_probe()
83 pr_debug("shutdown_entry: 0x%x\n", tboot->shutdown_entry); in tboot_probe()
84 pr_debug("tboot_base: 0x%08x\n", tboot->tboot_base); in tboot_probe()
85 pr_debug("tboot_size: 0x%x\n", tboot->tboot_size); in tboot_probe()
163 map_base = PFN_DOWN(tboot->tboot_base); in tboot_create_trampoline()
164 map_size = PFN_UP(tboot->tboot_size); in tboot_create_trampoline()
177 if (tboot->num_mac_regions >= MAX_TB_MAC_REGIONS) in add_mac_region()
181 mr = &tboot->mac_regions[tboot->num_mac_regions++]; in add_mac_region()
191 tboot->num_mac_regions = 0; in tboot_setup_sleep()
201 tboot->acpi_sinfo.kernel_s3_resume_vector = in tboot_setup_sleep()
238 tboot->shutdown_type = shutdown_type; in tboot_shutdown()
242 shutdown = (void(*)(void))(unsigned long)tboot->shutdown_entry; in tboot_shutdown()
259 TB_COPY_GAS(tboot->acpi_sinfo.pm1a_cnt_blk, fadt->xpm1a_control_block); in tboot_copy_fadt()
260 TB_COPY_GAS(tboot->acpi_sinfo.pm1b_cnt_blk, fadt->xpm1b_control_block); in tboot_copy_fadt()
261 TB_COPY_GAS(tboot->acpi_sinfo.pm1a_evt_blk, fadt->xpm1a_event_block); in tboot_copy_fadt()
262 TB_COPY_GAS(tboot->acpi_sinfo.pm1b_evt_blk, fadt->xpm1b_event_block); in tboot_copy_fadt()
269 tboot->acpi_sinfo.wakeup_vector = fadt->facs + in tboot_copy_fadt()
285 tboot->acpi_sinfo.pm1a_cnt_val = pm1a_control; in tboot_sleep()
286 tboot->acpi_sinfo.pm1b_cnt_val = pm1b_control; in tboot_sleep()
288 tboot->acpi_sinfo.vector_width = 32; in tboot_sleep()
316 while (atomic_read((atomic_t *)&tboot->num_in_wfs) != num_aps && in tboot_wait_for_aps()
325 return !(atomic_read((atomic_t *)&tboot->num_in_wfs) == num_aps); in tboot_wait_for_aps()