Lines Matching +full:build +full:- +full:user +full:- +full:static
4 * Copyright (C) 2009 Hewlett-Packard Development Company, L.P.
12 * the COPYING file in the top-level directory.
14 * Contributions after 2012-01-13 are licensed under the terms of the
44 static uint8_t *smbios_entries;
45 static size_t smbios_entries_len;
56 static void smbios_add_field(int type, int offset, const void *data, size_t len) in smbios_add_field()
67 field->header.type = SMBIOS_FIELD_ENTRY; in smbios_add_field()
68 field->header.length = cpu_to_le16(sizeof(*field) + len); in smbios_add_field()
70 field->type = type; in smbios_add_field()
71 field->offset = cpu_to_le16(offset); in smbios_add_field()
72 memcpy(field->data, data, len); in smbios_add_field()
79 static void smbios_maybe_add_str(int type, int offset, const char *data) in smbios_maybe_add_str()
86 static void smbios_build_type_0_fields(void) in smbios_build_type_0_fields()
105 static void smbios_build_type_1_fields(void) in smbios_build_type_1_fields()
155 * build a set of legacy smbios_table entries using user provided blobs in smbios_get_table_legacy()
157 for (i = 0, usr_offset = 0; usr_blobs_sizes && i < usr_blobs_sizes->len; in smbios_get_table_legacy()
168 table->header.type = SMBIOS_TABLE_ENTRY; in smbios_get_table_legacy()
169 table->header.length = cpu_to_le16(sizeof(*table) + size); in smbios_get_table_legacy()
170 memcpy(table->data, header, size); in smbios_get_table_legacy()