Lines Matching refs:t

568     t->bios_starting_address_segment = cpu_to_le16(0xE800); /* from SeaBIOS */  in smbios_build_type_0_table()
572 t->bios_rom_size = 0; /* hardcoded in SeaBIOS with FIXME comment */ in smbios_build_type_0_table()
574 t->bios_characteristics = cpu_to_le64(0x08); /* Not supported */ in smbios_build_type_0_table()
575 t->bios_characteristics_extension_bytes[0] = 0; in smbios_build_type_0_table()
576 t->bios_characteristics_extension_bytes[1] = 0x14; /* TCD/SVVP | VM */ in smbios_build_type_0_table()
578 t->bios_characteristics_extension_bytes[1] |= 0x08; /* |= UEFI */ in smbios_build_type_0_table()
582 t->system_bios_major_release = smbios_type0.major; in smbios_build_type_0_table()
583 t->system_bios_minor_release = smbios_type0.minor; in smbios_build_type_0_table()
585 t->system_bios_major_release = 0; in smbios_build_type_0_table()
586 t->system_bios_minor_release = 0; in smbios_build_type_0_table()
590 t->embedded_controller_major_release = 0xFF; in smbios_build_type_0_table()
591 t->embedded_controller_minor_release = 0xFF; in smbios_build_type_0_table()
616 smbios_encode_uuid(&t->uuid, &qemu_uuid); in smbios_build_type_1_table()
618 memset(&t->uuid, 0, 16); in smbios_build_type_1_table()
620 t->wake_up_type = 0x06; /* power switch */ in smbios_build_type_1_table()
636 t->feature_flags = 0x01; /* Motherboard */ in smbios_build_type_2_table()
638 t->chassis_handle = cpu_to_le16(0x300); /* Type 3 (System enclosure) */ in smbios_build_type_2_table()
639 t->board_type = 0x0A; /* Motherboard */ in smbios_build_type_2_table()
640 t->contained_element_count = 0; in smbios_build_type_2_table()
650 t->type = 0x01; /* Other */ in smbios_build_type_3_table()
654 t->boot_up_state = 0x03; /* Safe */ in smbios_build_type_3_table()
655 t->power_supply_state = 0x03; /* Safe */ in smbios_build_type_3_table()
656 t->thermal_state = 0x03; /* Safe */ in smbios_build_type_3_table()
657 t->security_status = 0x02; /* Unknown */ in smbios_build_type_3_table()
658 t->oem_defined = cpu_to_le32(0); in smbios_build_type_3_table()
659 t->height = 0; in smbios_build_type_3_table()
660 t->number_of_power_cords = 0; in smbios_build_type_3_table()
661 t->contained_element_count = 0; in smbios_build_type_3_table()
662 t->contained_element_record_length = 0; in smbios_build_type_3_table()
686 t->processor_type = 0x03; /* CPU */ in smbios_build_type_4_table()
687 t->processor_family = 0xfe; /* use Processor Family 2 field */ in smbios_build_type_4_table()
690 t->processor_id[0] = cpu_to_le32(smbios_cpuid_version); in smbios_build_type_4_table()
691 t->processor_id[1] = cpu_to_le32(smbios_cpuid_features); in smbios_build_type_4_table()
693 t->processor_id[0] = cpu_to_le32((uint32_t)type4.processor_id); in smbios_build_type_4_table()
694 t->processor_id[1] = cpu_to_le32(type4.processor_id >> 32); in smbios_build_type_4_table()
697 t->voltage = 0; in smbios_build_type_4_table()
698 t->external_clock = cpu_to_le16(0); /* Unknown */ in smbios_build_type_4_table()
699 t->max_speed = cpu_to_le16(type4.max_speed); in smbios_build_type_4_table()
700 t->current_speed = cpu_to_le16(type4.current_speed); in smbios_build_type_4_table()
701 t->status = 0x41; /* Socket populated, CPU enabled */ in smbios_build_type_4_table()
702 t->processor_upgrade = 0x01; /* Other */ in smbios_build_type_4_table()
703 t->l1_cache_handle = cpu_to_le16(0xFFFF); /* N/A */ in smbios_build_type_4_table()
704 t->l2_cache_handle = cpu_to_le16(0xFFFF); /* N/A */ in smbios_build_type_4_table()
705 t->l3_cache_handle = cpu_to_le16(0xFFFF); /* N/A */ in smbios_build_type_4_table()
713 t->core_count = (cores_per_socket > 255) ? 0xFF : cores_per_socket; in smbios_build_type_4_table()
714 t->core_enabled = t->core_count; in smbios_build_type_4_table()
716 t->thread_count = (threads_per_socket > 255) ? 0xFF : threads_per_socket; in smbios_build_type_4_table()
718 t->processor_characteristics = cpu_to_le16(0x02); /* Unknown */ in smbios_build_type_4_table()
719 t->processor_family2 = cpu_to_le16(type4.processor_family); in smbios_build_type_4_table()
722 t->core_count2 = t->core_enabled2 = cpu_to_le16(cores_per_socket); in smbios_build_type_4_table()
723 t->thread_count2 = cpu_to_le16(threads_per_socket); in smbios_build_type_4_table()
724 } else if (t->core_count == 0xFF || t->thread_count == 0xFF) { in smbios_build_type_4_table()
747 t->internal_connector_type = 0x0; in smbios_build_type_8_table()
748 t->external_connector_type = t8->connector_type; in smbios_build_type_8_table()
749 t->port_type = t8->port_type; in smbios_build_type_8_table()
765 t->slot_type = t9->slot_type; in smbios_build_type_9_table()
766 t->slot_data_bus_width = t9->slot_data_bus_width; in smbios_build_type_9_table()
767 t->current_usage = t9->current_usage; in smbios_build_type_9_table()
768 t->slot_length = t9->slot_length; in smbios_build_type_9_table()
769 t->slot_id = t9->slot_id; in smbios_build_type_9_table()
770 t->slot_characteristics1 = t9->slot_characteristics1; in smbios_build_type_9_table()
771 t->slot_characteristics2 = t9->slot_characteristics2; in smbios_build_type_9_table()
795 t->segment_group_number = cpu_to_le16(0); in smbios_build_type_9_table()
796 t->bus_number = pci_dev_bus_num(pdev); in smbios_build_type_9_table()
797 t->device_number = pdev->devfn; in smbios_build_type_9_table()
805 t->segment_group_number = 0xff; in smbios_build_type_9_table()
806 t->bus_number = 0xff; in smbios_build_type_9_table()
807 t->device_number = 0xff; in smbios_build_type_9_table()
827 t->count = type11.nvalues; in smbios_build_type_11_table()
846 t->location = 0x01; /* Other */ in smbios_build_type_16_table()
847 t->use = 0x03; /* System memory */ in smbios_build_type_16_table()
848 t->error_correction = 0x06; /* Multi-bit ECC (for Microsoft, per SeaBIOS) */ in smbios_build_type_16_table()
851 t->maximum_capacity = cpu_to_le32(size_kb); in smbios_build_type_16_table()
852 t->extended_maximum_capacity = cpu_to_le64(0); in smbios_build_type_16_table()
854 t->maximum_capacity = cpu_to_le32(MAX_T16_STD_SZ); in smbios_build_type_16_table()
855 t->extended_maximum_capacity = cpu_to_le64(current_machine->ram_size); in smbios_build_type_16_table()
857 t->memory_error_information_handle = cpu_to_le16(0xFFFE); /* Not provided */ in smbios_build_type_16_table()
858 t->number_of_memory_devices = cpu_to_le16(dimm_cnt); in smbios_build_type_16_table()
873 t->physical_memory_array_handle = cpu_to_le16(0x1000); /* Type 16 above */ in smbios_build_type_17_table()
874 t->memory_error_information_handle = cpu_to_le16(0xFFFE); /* Not provided */ in smbios_build_type_17_table()
875 t->total_width = cpu_to_le16(0xFFFF); /* Unknown */ in smbios_build_type_17_table()
876 t->data_width = cpu_to_le16(0xFFFF); /* Unknown */ in smbios_build_type_17_table()
879 t->size = cpu_to_le16(size_mb); in smbios_build_type_17_table()
880 t->extended_size = cpu_to_le32(0); in smbios_build_type_17_table()
883 t->size = cpu_to_le16(MAX_T17_STD_SZ); in smbios_build_type_17_table()
884 t->extended_size = cpu_to_le32(size_mb); in smbios_build_type_17_table()
886 t->form_factor = 0x09; /* DIMM */ in smbios_build_type_17_table()
887 t->device_set = 0; /* Not in a set */ in smbios_build_type_17_table()
891 t->memory_type = 0x07; /* RAM */ in smbios_build_type_17_table()
892 t->type_detail = cpu_to_le16(0x02); /* Other */ in smbios_build_type_17_table()
893 t->speed = cpu_to_le16(type17.speed); in smbios_build_type_17_table()
898 t->attributes = 0; /* Unknown */ in smbios_build_type_17_table()
899 t->configured_clock_speed = t->speed; /* reuse value for max speed */ in smbios_build_type_17_table()
900 t->minimum_voltage = cpu_to_le16(0); /* Unknown */ in smbios_build_type_17_table()
901 t->maximum_voltage = cpu_to_le16(0); /* Unknown */ in smbios_build_type_17_table()
902 t->configured_voltage = cpu_to_le16(0); /* Unknown */ in smbios_build_type_17_table()
920 t->starting_address = cpu_to_le32(start_kb); in smbios_build_type_19_table()
921 t->ending_address = cpu_to_le32(end_kb); in smbios_build_type_19_table()
922 t->extended_starting_address = in smbios_build_type_19_table()
923 t->extended_ending_address = cpu_to_le64(0); in smbios_build_type_19_table()
925 t->starting_address = t->ending_address = cpu_to_le32(UINT32_MAX); in smbios_build_type_19_table()
926 t->extended_starting_address = cpu_to_le64(start); in smbios_build_type_19_table()
927 t->extended_ending_address = cpu_to_le64(end); in smbios_build_type_19_table()
929 t->memory_array_handle = cpu_to_le16(0x1000); /* Type 16 above */ in smbios_build_type_19_table()
930 t->partition_width = 1; /* One device per row */ in smbios_build_type_19_table()
939 memset(t->reserved, 0, 6); in smbios_build_type_32_table()
940 t->boot_status = 0; /* No errors detected */ in smbios_build_type_32_table()
954 t->device_type = t41->kind; in smbios_build_type_41_table()
955 t->device_type_instance = t41->instance; in smbios_build_type_41_table()
956 t->segment_group_number = cpu_to_le16(0); in smbios_build_type_41_table()
957 t->bus_number = 0; in smbios_build_type_41_table()
958 t->device_number = 0; in smbios_build_type_41_table()
982 t->segment_group_number = cpu_to_le16(0); in smbios_build_type_41_table()
983 t->bus_number = pci_dev_bus_num(pdev); in smbios_build_type_41_table()
984 t->device_number = pdev->devfn; in smbios_build_type_41_table()
1498 struct type9_instance *t; in smbios_entry_add() local
1499 t = g_new0(struct type9_instance, 1); in smbios_entry_add()
1500 save_opt(&t->slot_designation, opts, "slot_designation"); in smbios_entry_add()
1501 t->slot_type = qemu_opt_get_number(opts, "slot_type", 0); in smbios_entry_add()
1502 t->slot_data_bus_width = in smbios_entry_add()
1504 t->current_usage = qemu_opt_get_number(opts, "current_usage", 0); in smbios_entry_add()
1505 t->slot_length = qemu_opt_get_number(opts, "slot_length", 0); in smbios_entry_add()
1506 t->slot_id = qemu_opt_get_number(opts, "slot_id", 0); in smbios_entry_add()
1507 t->slot_characteristics1 = in smbios_entry_add()
1509 t->slot_characteristics2 = in smbios_entry_add()
1511 save_opt(&t->pcidev, opts, "pcidev"); in smbios_entry_add()
1512 QTAILQ_INSERT_TAIL(&type9, t, next); in smbios_entry_add()