Lines Matching refs:code
22 * For the avoidance of doubt the "preferred form" of this code is one which
26 * are deemed to be part of the source code.
32 const char *dmi_processor_type(uint8_t code)
44 if (code >= 0x01 && code <= 0x06)
45 return type[code - 0x01];
49 const char *dmi_processor_family(uint8_t code, char *manufacturer)
52 /* TODO : Need to implement code/value (see dmidecode) insteed of array to address large index */
312 if (code == 0xBE) {
323 if (family[code] != NULL) {
324 return family[code];
329 const char *dmi_processor_status(uint8_t code)
342 if (code <= 0x04)
343 return status[code];
344 if (code == 0x07)
349 const char *dmi_processor_upgrade(uint8_t code)
380 if (code >= 0x01 && code <= 0x19)
381 return upgrade[code - 0x01];
385 void dmi_processor_cache(uint16_t code, const char *level, uint16_t ver,
388 if (code == 0xFFFF) {
394 sprintf(cache, "0x%04X", code);