| /openbmc/libpldm/src/dsp/ |
| H A D | pdr.c | 40 pldm_pdr_record *record); 43 static int pldm_pdr_remove_record(pldm_pdr *repo, pldm_pdr_record *record, 48 const pldm_pdr_record *record) in get_next_record_handle() argument 50 if (record == repo->last) { in get_next_record_handle() 53 return record->next->record_handle; in get_next_record_handle() 79 pldm_pdr_record *record = malloc(sizeof(pldm_pdr_record)); in pldm_pdr_add() local 80 if (!record) { in pldm_pdr_add() 85 record->data = malloc(size); in pldm_pdr_add() 86 if (!record->data) { in pldm_pdr_add() 87 free(record); in pldm_pdr_add() [all …]
|
| /openbmc/ipmitool/lib/ |
| H A D | ipmi_ekanalyzer.c | 214 static void ipmi_ek_add_record2list( struct ipmi_ek_multi_header ** record, 218 static void ipmi_ek_display_record( struct ipmi_ek_multi_header * record, 223 struct ipmi_ek_multi_header * record, 242 struct ipmi_ek_multi_header * record ); 244 static int ipmi_ek_create_amc_p2p_record( struct ipmi_ek_multi_header * record, 270 struct ipmi_ek_multi_header * record, 295 struct ipmi_ek_multi_header * record ); 305 struct ipmi_ek_multi_header * record ); 308 struct ipmi_ek_multi_header * record ); 311 struct ipmi_ek_multi_header * record ); [all …]
|
| H A D | ipmi_sensor.c | 625 if (!IS_THRESHOLD_SENSOR(sdr->record.common)) { in ipmi_sensor_set_threshold() 626 lprintf(LOG_ERR, "Invalid sensor event type %02x", sdr->record.common->event_type); in ipmi_sensor_set_threshold() 634 sdr->record.full->id_string, in ipmi_sensor_set_threshold() 637 sdr->record.common->keys. in ipmi_sensor_set_threshold() 639 __ipmi_sensor_threshold_value_to_raw(sdr->record.full, setting1), in ipmi_sensor_set_threshold() 640 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold() 641 sdr->record.common->keys.lun, in ipmi_sensor_set_threshold() 642 sdr->record.common->keys.channel); in ipmi_sensor_set_threshold() 646 sdr->record.full->id_string, in ipmi_sensor_set_threshold() 649 sdr->record.common->keys. in ipmi_sensor_set_threshold() [all …]
|
| H A D | ipmi_sdr.c | 2517 } record; in ipmi_sdr_print_name_from_rawentry() local 2525 record.full = (struct sdr_record_full_sensor *) raw; in ipmi_sdr_print_name_from_rawentry() 2526 snprintf(desc, (record.full->id_code & 0x1f) +1, "%s", in ipmi_sdr_print_name_from_rawentry() 2527 (const char *)record.full->id_string); in ipmi_sdr_print_name_from_rawentry() 2530 record.compact = (struct sdr_record_compact_sensor *) raw ; in ipmi_sdr_print_name_from_rawentry() 2531 snprintf(desc, (record.compact->id_code & 0x1f) +1, "%s", in ipmi_sdr_print_name_from_rawentry() 2532 (const char *)record.compact->id_string); in ipmi_sdr_print_name_from_rawentry() 2535 record.eventonly = (struct sdr_record_eventonly_sensor *) raw ; in ipmi_sdr_print_name_from_rawentry() 2536 snprintf(desc, (record.eventonly->id_code & 0x1f) +1, "%s", in ipmi_sdr_print_name_from_rawentry() 2537 (const char *)record.eventonly->id_string); in ipmi_sdr_print_name_from_rawentry() [all …]
|
| /openbmc/entity-manager/src/entity_manager/ |
| H A D | log_device_inventory.cpp | 14 const nlohmann::json& record, bool dump = false) in setStringIfFound() argument 16 const nlohmann::json::const_iterator find = record.find(key); in setStringIfFound() 18 if (find == record.end()) in setStringIfFound() 34 InvAddRemoveInfo queryInvInfo(const nlohmann::json& record) in queryInvInfo() argument 38 setStringIfFound(ret.type, "Type", record); in queryInvInfo() 39 setStringIfFound(ret.name, "Name", record); in queryInvInfo() 41 const nlohmann::json::const_iterator findAsset = record.find( in queryInvInfo() 45 if (findAsset != record.end()) in queryInvInfo() 54 void logDeviceAdded(const nlohmann::json& record) in logDeviceAdded() argument 60 if (!deviceHasLogging(record)) in logDeviceAdded() [all …]
|
| H A D | perform_scan.cpp | 193 static void pruneRecordExposes(nlohmann::json& record) in pruneRecordExposes() argument 195 auto findExposes = record.find("Exposes"); in pruneRecordExposes() 196 if (findExposes == record.end()) in pruneRecordExposes() 214 const std::string& probeName, const nlohmann::json& record) in recordDiscoveredIdentifiers() argument 222 auto nameIt = record.find("Name"); in recordDiscoveredIdentifiers() 223 if (nameIt == record.end()) in recordDiscoveredIdentifiers() 282 std::vector<std::string>& matches, const nlohmann::json& record) in findExposeActionRecord() argument 284 const auto& name = (record)["Name"].get_ref<const std::string&>(); in findExposeActionRecord() 466 auto record = _em.systemConfiguration.find(recordName); in updateSystemConfiguration() local 467 if (record == _em.systemConfiguration.end()) in updateSystemConfiguration() [all …]
|
| /openbmc/qemu/tests/migration-stress/guestperf/ |
| H A D | plot.py | 93 for record in report._guest_timings._records: 94 if record._value > maxvalue: 95 maxvalue = record._value 102 for record in report._qemu_timings._records: 104 cpudelta = (record._value - oldvalue) / 1000.0 105 timedelta = record._timestamp - oldtime 111 oldvalue = record._value 112 oldtime = record._timestamp 123 for record in report._guest_timings._records: 125 report._progress_history[progress_idx + 1]._now < record._timestamp): [all …]
|
| H A D | timings.py | 51 return [record.serialize() for record in self._records] 55 return Timings([TimingRecord.deserialize(record) for record in data])
|
| /openbmc/openbmc/poky/bitbake/lib/bb/ |
| H A D | msg.py | 82 def format(self, record): argument 83 record.levelname = self.getLevelName(record.levelno) 84 if record.levelno == self.PLAIN: 85 msg = record.getMessage() 88 record = self.colorize(record) 89 msg = logging.Formatter.format(self, record) 90 if hasattr(record, 'bb_exc_formatted'): 91 msg += '\n' + ''.join(record.bb_exc_formatted) 94 def colorize(self, record): argument 95 color = self.COLORS[record.levelno] [all …]
|
| /openbmc/phosphor-host-ipmid/scripts/ |
| H A D | entity-example.md | 29 # This record has: 39 # A record can have contained entities as a four entry list or as upto 40 # two ranges of entity instances; this record has contained entities 44 # entities within a container entity; this record is not linked 63 # This record has contained entities as a four entry list 65 # This record is linked with the below record; this record and the 66 # below record have the same container entity Id and container entity 81 # This record has contained entities as a four entry list 83 # This record is linked with the above record; this record and the 84 # above record have the same container entity Id and container entity [all …]
|
| /openbmc/pldm/libpldmresponder/ |
| H A D | pdr.cpp | 19 auto record = pldm_pdr_find_record_by_type(inRepo.getPdr(), pdrType, in getRepoByType() local 21 while (record) in getRepoByType() 26 pdrEntry.handle.recordHandle = inRepo.getRecordHandle(record); in getRepoByType() 31 record = pldm_pdr_find_record_by_type(inRepo.getPdr(), pdrType, record, in getRepoByType() 40 auto record = in getRecordByHandle() local 43 if (record) in getRecordByHandle() 48 return record; in getRecordByHandle()
|
| H A D | pdr_utils.cpp | 51 auto record = in getFirstRecord() local 54 if (record) in getFirstRecord() 59 return record; in getFirstRecord() 66 auto record = in getNextRecord() local 69 if (record) in getNextRecord() 74 return record; in getNextRecord() 77 uint32_t Repo::getRecordHandle(const pldm_pdr_record* record) const in getRecordHandle() 79 return pldm_pdr_get_record_handle(getPdr(), record); in getRecordHandle() 233 auto record = reinterpret_cast<const pldm_fru_record_data_format*>( in parseFruRecordTable() local 235 fru.fruRSI = (int)le16toh(record->record_set_id); in parseFruRecordTable() [all …]
|
| /openbmc/phosphor-host-ipmid/app/ |
| H A D | channel.cpp | 66 for (const auto& record : data) in getCipherRecords() local 68 if (record.find(oem) != record.end()) in getCipherRecords() 73 cipherRecords.push_back(record.value(cipher, 0)); in getCipherRecords() 75 cipherRecords.push_back(record.value(oem, 0)); in getCipherRecords() 76 cipherRecords.push_back(record.value(oem, 0) >> 8); in getCipherRecords() 77 cipherRecords.push_back(record.value(oem, 0) >> 16); in getCipherRecords() 84 cipherRecords.push_back(record.value(cipher, 0)); in getCipherRecords() 88 cipherRecords.push_back(record.value(auth, 0)); in getCipherRecords() 89 supportedAlgorithmSet.insert(record.value(auth, 0)); in getCipherRecords() 92 cipherRecords.push_back(record.value(integrity, 0) | integrityTag); in getCipherRecords() [all …]
|
| /openbmc/phosphor-host-ipmid/ |
| H A D | selutility.cpp | 87 const AdditionalData& data, GetSELEntryResponse& record) in constructOEMSEL() argument 94 record.event.oemCD.timeStamp = static_cast<uint32_t>( in constructOEMSEL() 97 record.event.oemCD.recordType = recordType; in constructOEMSEL() 100 memcpy(&record.event.oemCD.manufacturerID, sensorData.data(), in constructOEMSEL() 105 record.event.oemEF.recordType = recordType; in constructOEMSEL() 107 memcpy(&record.event.oemEF.oemDefined, sensorData.data(), in constructOEMSEL() 114 GetSELEntryResponse& record) in constructSEL() argument 123 record.event.eventRecord.sensorType = 0; in constructSEL() 124 record.event.eventRecord.sensorNum = 0xFF; in constructSEL() 125 record.event.eventRecord.eventType = 0; in constructSEL() [all …]
|
| H A D | sensorhandler.cpp | 1191 get_sdr::SensorDataFruRecord record{}; in ipmiFruGetSdr() local 1193 record.header.recordId = recordID; in ipmiFruGetSdr() 1194 record.header.sdrVersion = SDR_VERSION; // Based on IPMI Spec v2.0 rev 1.1 in ipmiFruGetSdr() 1195 record.header.recordType = get_sdr::SENSOR_DATA_FRU_RECORD; in ipmiFruGetSdr() 1196 record.header.recordLength = sizeof(record.key) + sizeof(record.body); in ipmiFruGetSdr() 1199 record.key.fruID = fruID; in ipmiFruGetSdr() 1200 record.key.accessLun |= IPMI_LOGICAL_FRU; in ipmiFruGetSdr() 1201 record.key.deviceAddress = BMCTargetAddress; in ipmiFruGetSdr() 1204 record.body.entityID = fru->second[0].entityID; in ipmiFruGetSdr() 1205 record.body.entityInstance = fru->second[0].entityInstance; in ipmiFruGetSdr() [all …]
|
| /openbmc/qemu/tests/tcg/plugins/ |
| H A D | insn.c | 54 Instruction *record; in get_insn_record() local 62 record = g_hash_table_lookup(match_insn_records, str_hash); in get_insn_record() 64 if (!record) { in get_insn_record() 67 record = g_new0(Instruction, 1); in get_insn_record() 68 record->disas = g_strdup(disas); in get_insn_record() 69 record->vaddr = vaddr; in get_insn_record() 70 record->match = m; in get_insn_record() 72 g_hash_table_insert(match_insn_records, str_hash, record); in get_insn_record() 81 return record; in get_insn_record() 222 Instruction *record; in plugin_exit() local [all …]
|
| /openbmc/phosphor-host-ipmid/dbus-sdr/ |
| H A D | sensorcommands.cpp | 1806 get_sdr::SensorDataFullRecord& record) in constructSensorSdrHeaderKey() argument 1811 record.header.recordId = recordID; in constructSensorSdrHeaderKey() 1812 record.header.sdrVersion = ipmiSdrVersion; in constructSensorSdrHeaderKey() 1813 record.header.recordType = get_sdr::SENSOR_DATA_FULL_RECORD; in constructSensorSdrHeaderKey() 1814 record.header.recordLength = sizeof(get_sdr::SensorDataFullRecord) - in constructSensorSdrHeaderKey() 1816 record.key.ownerId = bmcI2CAddr; in constructSensorSdrHeaderKey() 1817 record.key.ownerLun = lun; in constructSensorSdrHeaderKey() 1818 record.key.sensorNumber = sensornumber; in constructSensorSdrHeaderKey() 1824 const std::string& path, get_sdr::SensorDataFullRecord& record) in constructSensorSdr() argument 1826 constructSensorSdrHeaderKey(sensorNum, recordID, record); in constructSensorSdr() [all …]
|
| /openbmc/phosphor-net-ipmid/command/ |
| H A D | channel_auth.cpp | 137 for (const auto& record : data) in getCipherRecords() local 139 if (record.find(oem) != record.end()) in getCipherRecords() 144 cipherRecords.push_back(record.value(cipher, 0)); in getCipherRecords() 146 cipherRecords.push_back(record.value(oem, 0)); in getCipherRecords() 147 cipherRecords.push_back(record.value(oem, 0) >> 8); in getCipherRecords() 148 cipherRecords.push_back(record.value(oem, 0) >> 16); in getCipherRecords() 155 cipherRecords.push_back(record.value(cipher, 0)); in getCipherRecords() 159 cipherRecords.push_back(record.value(auth, 0)); in getCipherRecords() 160 supportedAlgorithmSet.insert(record.value(auth, 0)); in getCipherRecords() 163 cipherRecords.push_back(record.value(integrity, 0) | integrityTag); in getCipherRecords() [all …]
|
| /openbmc/libcper/tests/ |
| H A D | ir-tests.c | 92 FILE *record = NULL; in cper_create_examples() local 99 record = generate_record_memstream(§ion_name, 1, &buf, &size, 0, in cper_create_examples() 110 fseek(record, 0, SEEK_END); in cper_create_examples() 111 file_size = ftell(record); in cper_create_examples() 112 rewind(record); in cper_create_examples() 114 if (fread(file_data, 1, file_size, record) != file_size) { in cper_create_examples() 139 rewind(record); in cper_create_examples() 140 ir = cper_to_ir(record); in cper_create_examples() 153 if (record != NULL) { in cper_create_examples() 154 fclose(record); in cper_create_examples() [all …]
|
| /openbmc/smbios-mdr/src/ |
| H A D | mdrv2.cpp | 871 boost::container::flat_map<std::string, RecordVariant>& record = in getRecordType() local 876 record["Type"] = memoryInfo->type; in getRecordType() 877 record["Length"] = memoryInfo->length; in getRecordType() 878 record["Handle"] = uint16_t(memoryInfo->handle); in getRecordType() 879 record["Physical Memory Array Handle"] = in getRecordType() 881 record["Memory Error Information Handle"] = 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() [all …]
|
| /openbmc/phosphor-bmc-code-mgmt/common/pldm/ |
| H A D | pldm_package_util.cpp | 122 bool fwDeviceIDRecordMatchesCompatible(const FirmwareDeviceIDRecord& record, in fwDeviceIDRecordMatchesCompatible() argument 125 Descriptors desc = std::get<3>(record); in fwDeviceIDRecordMatchesCompatible() 151 bool fwDeviceIDRecordMatchesIANA(const FirmwareDeviceIDRecord& record, in fwDeviceIDRecordMatchesIANA() argument 154 Descriptors desc = std::get<3>(record); in fwDeviceIDRecordMatchesIANA() 188 bool fwDeviceIDRecordMatches(const FirmwareDeviceIDRecord& record, in fwDeviceIDRecordMatches() argument 191 return fwDeviceIDRecordMatchesIANA(record, vendorIANA) && in fwDeviceIDRecordMatches() 192 fwDeviceIDRecordMatchesCompatible(record, compatible); in fwDeviceIDRecordMatches() 201 const FirmwareDeviceIDRecord& record = records[i]; in findMatchingDeviceDescriptorIndex() local 202 if (fwDeviceIDRecordMatches(record, vendorIANA, compatible)) in findMatchingDeviceDescriptorIndex()
|
| /openbmc/phosphor-power/power-supply/test/ |
| H A D | test_records.cpp | 84 std::vector<uint8_t> record; in makeRawRecord() local 86 record.push_back(sequenceID); in makeRawRecord() 87 record.push_back(avgPower & 0xFF); in makeRawRecord() 88 record.push_back(avgPower >> 8); in makeRawRecord() 89 record.push_back(maxPower & 0xFF); in makeRawRecord() 90 record.push_back(maxPower >> 8); in makeRawRecord() 92 return record; in makeRawRecord()
|
| /openbmc/witherspoon-pfault-analysis/power-supply/test/ |
| H A D | test_records.cpp | 84 std::vector<uint8_t> record; in makeRawRecord() local 86 record.push_back(sequenceID); in makeRawRecord() 87 record.push_back(avgPower & 0xFF); in makeRawRecord() 88 record.push_back(avgPower >> 8); in makeRawRecord() 89 record.push_back(maxPower & 0xFF); in makeRawRecord() 90 record.push_back(maxPower >> 8); in makeRawRecord() 92 return record; in makeRawRecord()
|
| /openbmc/u-boot/drivers/rtc/ |
| H A D | ftrtc010.c | 22 unsigned int record; /* 0x1c */ member 80 __func__, readl(&rtc->record)); in rtc_get() 83 now = (ftrtc010_time() + readl(&rtc->record)) / RTC_DIV_COUNT; in rtc_get() 85 now = ftrtc010_time() + readl(&rtc->record); in rtc_get() 112 writel(new - now, &rtc->record); in rtc_set()
|
| /openbmc/qemu/tests/tcg/arm/ |
| H A D | Makefile.softmmu-target | 61 .PHONY: memory-record 62 run-memory-record: memory-record memory 66 -icount shift=5$(COMMA)rr=record$(COMMA)rrfile=record.bin \ 70 run-memory-replay: memory-replay run-memory-record 74 -icount shift=5$(COMMA)rr=replay$(COMMA)rrfile=record.bin \
|