Lines Matching refs:tboot
37 static struct tboot *tboot __read_mostly;
49 return tboot != NULL; in tboot_enabled()
55 if (memcmp(&tboot_uuid, &tboot->uuid, sizeof(tboot->uuid))) { in check_tboot_version()
60 if (tboot->version < 5) { in check_tboot_version()
61 pr_warn("tboot version is invalid: %u\n", tboot->version); in check_tboot_version()
67 pr_debug("version: %d\n", tboot->version); in check_tboot_version()
68 pr_debug("log_addr: 0x%08x\n", tboot->log_addr); in check_tboot_version()
69 pr_debug("shutdown_entry: 0x%x\n", tboot->shutdown_entry); in check_tboot_version()
70 pr_debug("tboot_base: 0x%08x\n", tboot->tboot_base); in check_tboot_version()
71 pr_debug("tboot_size: 0x%x\n", tboot->tboot_size); in check_tboot_version()
93 tboot = (void *)fix_to_virt(FIX_TBOOT_BASE); in tboot_probe()
95 tboot = NULL; in tboot_probe()
174 map_base = PFN_DOWN(tboot->tboot_base); in tboot_create_trampoline()
175 map_size = PFN_UP(tboot->tboot_size); in tboot_create_trampoline()
188 if (tboot->num_mac_regions >= MAX_TB_MAC_REGIONS) in add_mac_region()
192 mr = &tboot->mac_regions[tboot->num_mac_regions++]; in add_mac_region()
202 tboot->num_mac_regions = 0; in tboot_setup_sleep()
212 tboot->acpi_sinfo.kernel_s3_resume_vector = in tboot_setup_sleep()
249 tboot->shutdown_type = shutdown_type; in tboot_shutdown()
253 shutdown = (void(*)(void))(unsigned long)tboot->shutdown_entry; in tboot_shutdown()
270 TB_COPY_GAS(tboot->acpi_sinfo.pm1a_cnt_blk, fadt->xpm1a_control_block); in tboot_copy_fadt()
271 TB_COPY_GAS(tboot->acpi_sinfo.pm1b_cnt_blk, fadt->xpm1b_control_block); in tboot_copy_fadt()
272 TB_COPY_GAS(tboot->acpi_sinfo.pm1a_evt_blk, fadt->xpm1a_event_block); in tboot_copy_fadt()
273 TB_COPY_GAS(tboot->acpi_sinfo.pm1b_evt_blk, fadt->xpm1b_event_block); in tboot_copy_fadt()
280 tboot->acpi_sinfo.wakeup_vector = fadt->facs + in tboot_copy_fadt()
296 tboot->acpi_sinfo.pm1a_cnt_val = pm1a_control; in tboot_sleep()
297 tboot->acpi_sinfo.pm1b_cnt_val = pm1b_control; in tboot_sleep()
299 tboot->acpi_sinfo.vector_width = 32; in tboot_sleep()
327 while (atomic_read((atomic_t *)&tboot->num_in_wfs) != num_aps && in tboot_wait_for_aps()
336 return !(atomic_read((atomic_t *)&tboot->num_in_wfs) == num_aps); in tboot_wait_for_aps()