Lines Matching +full:num +full:- +full:strings
8 // http://www.apache.org/licenses/LICENSE-2.0
23 #include <phosphor-logging/elog-errors.hpp>
42 "Read data from flash error - Open MDRV2 table file failure"); in getDirectoryInformation()
54 uint8_t returnedEntries = smbiosDir.dirEntries - dirIndex; in getDirectoryInformation()
63 smbiosDir.dirEntries - dirIndex - returnedEntries); in getDirectoryInformation()
208 lg2::error("Read data from flash error - Invalid mdr header"); in readDataFromFlash()
213 lg2::error("Read data from flash error - Invalid data point"); in readDataFromFlash()
220 "Read data from flash error - Open MDRV2 table file failure"); in readDataFromFlash()
233 if (mdrHdr->dataSize > smbiosTableStorageSize) in readDataFromFlash()
239 fileLength -= sizeof(MDRSMBIOSHeader); in readDataFromFlash()
240 if (fileLength < mdrHdr->dataSize) in readDataFromFlash()
246 smbiosFile.read(reinterpret_cast<char*>(data), mdrHdr->dataSize); in readDataFromFlash()
259 lg2::error("Send Dir info failed - input parameter invalid"); in sendDirectoryInformation()
296 std::copy(data->dataInfo, data->dataInfo + sizeof(DataIdStruct), in sendDirectoryInformation()
375 "Read data from flash error - Open MDRV2 table file failure"); in directoryEntries()
405 auto method = bus->new_method_call(mapperBusName, mapperPath, in systemInfoUpdate()
421 sdbusplus::message_t reply = bus->call(method); in systemInfoUpdate()
487 // has just been created, triggering the D-Bus callback, in systemInfoUpdate()
515 std::optional<size_t> num = getTotalSmbiosEntries(processorsType); in systemInfoUpdate() local
516 if (!num) in systemInfoUpdate()
523 if (*num < cpus.size()) in systemInfoUpdate()
525 cpus.resize(*num); in systemInfoUpdate()
528 for (unsigned int index = 0; index < *num; index++) in systemInfoUpdate()
540 cpus[index]->infoUpdate(smbiosDir.dir[smbiosDirIndex].dataStorage, in systemInfoUpdate()
547 num = getTotalSmbiosEntries(memoryDeviceType); in systemInfoUpdate()
548 if (!num) in systemInfoUpdate()
555 if (*num < dimms.size()) in systemInfoUpdate()
557 dimms.resize(*num); in systemInfoUpdate()
560 for (unsigned int index = 0; index < *num; index++) in systemInfoUpdate()
572 dimms[index]->memoryInfoUpdate( in systemInfoUpdate()
579 num = getTotalSmbiosEntries(systemSlots); in systemInfoUpdate()
580 if (!num) in systemInfoUpdate()
587 if (*num < pcies.size()) in systemInfoUpdate()
589 pcies.resize(*num); in systemInfoUpdate()
592 for (unsigned int index = 0; index < *num; index++) in systemInfoUpdate()
604 pcies[index]->pcieInfoUpdate( in systemInfoUpdate()
611 num = getTotalSmbiosEntries(tpmDeviceType); in systemInfoUpdate()
612 if (!num) in systemInfoUpdate()
618 if (*num < tpms.size()) in systemInfoUpdate()
620 tpms.resize(*num); in systemInfoUpdate()
623 for (unsigned int index = 0; index < *num; index++) in systemInfoUpdate()
635 tpms[index]->tpmInfoUpdate( in systemInfoUpdate()
644 num = getTotalSmbiosEntries(firmwareInventoryInformationType); in systemInfoUpdate()
645 if (!num) in systemInfoUpdate()
653 if (*num < firmwareCollection.size()) in systemInfoUpdate()
655 firmwareCollection.resize(*num); in systemInfoUpdate()
657 for (unsigned int index = 0; index < *num; index++) in systemInfoUpdate()
682 size_t num = 0; in getTotalSmbiosEntries() local
704 num++; in getTotalSmbiosEntries()
709 num++; in getTotalSmbiosEntries()
711 if (num >= limitEntryLen) in getTotalSmbiosEntries()
721 return num; in getTotalSmbiosEntries()
741 lg2::error("SMBIOS 2.1 and 3.0 Anchor Strings not found"); in checkSMBIOSVersion()
747 size_t length = smbiosTableStorageSize - pos; in checkSMBIOSVersion()
761 foundMajorVersion = epStructure->smbiosVersion.majorVersion; in checkSMBIOSVersion()
762 foundMinorVersion = epStructure->smbiosVersion.minorVersion; in checkSMBIOSVersion()
774 foundMajorVersion = epStructure->smbiosVersion.majorVersion; in checkSMBIOSVersion()
775 foundMinorVersion = epStructure->smbiosVersion.minorVersion; in checkSMBIOSVersion()
777 lg2::info("SMBIOS VERSION - {MAJOR}.{MINOR}", "MAJOR", foundMajorVersion, in checkSMBIOSVersion()
801 lg2::error("agent data sync failed - read data from flash failed"); in agentSynchronizeData()
876 record["Type"] = memoryInfo->type; in getRecordType()
877 record["Length"] = memoryInfo->length; in getRecordType()
878 record["Handle"] = uint16_t(memoryInfo->handle); in getRecordType()
880 uint16_t(memoryInfo->phyArrayHandle); in getRecordType()
882 uint16_t(memoryInfo->errInfoHandle); in getRecordType()
883 record["Total Width"] = uint16_t(memoryInfo->totalWidth); in getRecordType()
884 record["Data Width"] = uint16_t(memoryInfo->dataWidth); in getRecordType()
885 record["Size"] = uint16_t(memoryInfo->size); in getRecordType()
886 record["Form Factor"] = memoryInfo->formFactor; in getRecordType()
887 record["Device Set"] = memoryInfo->deviceSet; in getRecordType()
889 memoryInfo->deviceLocator, memoryInfo->length, dataIn); in getRecordType()
891 memoryInfo->bankLocator, memoryInfo->length, dataIn); in getRecordType()
892 record["Memory Type"] = memoryInfo->memoryType; in getRecordType()
893 record["Type Detail"] = uint16_t(memoryInfo->typeDetail); in getRecordType()
894 record["Speed"] = uint16_t(memoryInfo->speed); in getRecordType()
896 memoryInfo->manufacturer, memoryInfo->length, dataIn); in getRecordType()
898 memoryInfo->serialNum, memoryInfo->length, dataIn); in getRecordType()
899 record["Asset Tag"] = positionToString(memoryInfo->assetTag, in getRecordType()
900 memoryInfo->length, dataIn); in getRecordType()
902 memoryInfo->partNum, memoryInfo->length, dataIn); in getRecordType()
903 record["Attributes"] = uint32_t(memoryInfo->attributes); in getRecordType()
904 record["Extended Size"] = uint32_t(memoryInfo->extendedSize); in getRecordType()
906 uint32_t(memoryInfo->confClockSpeed); in getRecordType()
907 record["Minimum voltage"] = uint16_t(memoryInfo->minimumVoltage); in getRecordType()
908 record["Maximum voltage"] = uint16_t(memoryInfo->maximumVoltage); in getRecordType()
910 uint16_t(memoryInfo->configuredVoltage); in getRecordType()
911 record["Memory Technology"] = memoryInfo->memoryTechnology; in getRecordType()
913 uint16_t(memoryInfo->memoryOperatingModeCap); in getRecordType()
914 record["Firmware Version"] = memoryInfo->firwareVersion; in getRecordType()
916 uint16_t(memoryInfo->modelManufId); in getRecordType()
917 record["Module Product ID"] = uint16_t(memoryInfo->modelProdId); in getRecordType()
919 uint16_t(memoryInfo->memSubConManufId); in getRecordType()
921 uint16_t(memoryInfo->memSubConProdId); in getRecordType()
922 record["Non-volatile Size"] = uint64_t(memoryInfo->nvSize); in getRecordType()
923 record["Volatile Size"] = uint64_t(memoryInfo->volatileSize); in getRecordType()
924 record["Cache Size"] = uint64_t(memoryInfo->cacheSize); in getRecordType()
925 record["Logical Size"] = uint64_t(memoryInfo->logicalSize); in getRecordType()