Lines Matching +full:max +full:- +full:len
4 * Copyright (C) 2009 Hewlett-Packard Development Company, L.P.
13 * the COPYING file in the top-level directory.
15 * Contributions after 2012-01-13 are licensed under the terms of the
51 t->header.type = tbl_type; \
52 t->header.length = tbl_len; \
53 t->header.handle = cpu_to_le16(tbl_handle); \
58 int len = (value != NULL) ? strlen(value) + 1 : 0; \
59 if (len > 1) { \
61 smbios_tables_len + len); \
62 memcpy(smbios_tables + smbios_tables_len, value, len); \
63 smbios_tables_len += len; \
64 /* update pointer post-realloc */ \
66 t->field = ++str_index; \
68 t->field = 0; \
74 int len = (value != NULL) ? strlen(value) + 1 : 0; \
75 if (len > 1) { \
77 smbios_tables_len + len); \
78 memcpy(smbios_tables + smbios_tables_len, value, len); \
79 smbios_tables_len += len; \
95 /* update smbios max. element size */ \
96 t_size = smbios_tables_len - t_off; \