| /openbmc/bmcweb/redfish-core/include/utils/ |
| H A D | sensor_utils.hpp | 157 std::string_view sensorType) in getSensorId() argument 159 std::string normalizedType(sensorType); in getSensorId() 174 std::string sensorType{sensorId.substr(0, index)}; in splitSensorNameAndType() local 177 if (sensorType == "fantach" || sensorType == "fanpwm") in splitSensorNameAndType() 179 sensorType.insert(3, 1, '_'); in splitSensorNameAndType() 181 return std::make_pair(sensorType, sensorName); in splitSensorNameAndType() 186 inline std::string_view toReadingUnits(std::string_view sensorType) in toReadingUnits() argument 188 if (sensorType == "voltage") in toReadingUnits() 192 if (sensorType in toReadingUnits() 236 toReadingType(std::string_view sensorType) toReadingType() argument 529 fillSensorIdentity(std::string_view sensorName,std::string_view sensorType,const dbus::utility::DBusPropertiesMap & propertiesDict,nlohmann::json & sensorJson) fillSensorIdentity() argument 601 fillPowerThermalIdentity(std::string_view sensorName,std::string_view sensorType,nlohmann::json & sensorJson,InventoryItem * inventoryItem,nlohmann::json::json_pointer & unit,bool & forceToInt) fillPowerThermalIdentity() argument 692 mapPropertiesBySubnode(std::string_view sensorType,ChassisSubNode chassisSubNode,SensorPropertyList & properties,nlohmann::json::json_pointer & unit,bool isExcerpt) mapPropertiesBySubnode() argument 789 objectPropertiesToJson(std::string_view sensorName,std::string_view sensorType,ChassisSubNode chassisSubNode,const dbus::utility::DBusPropertiesMap & propertiesDict,nlohmann::json & sensorJson,InventoryItem * inventoryItem) objectPropertiesToJson() argument 914 std::string sensorType = sensorPath.parent_path().filename(); objectExcerptToJson() local [all...] |
| /openbmc/phosphor-mrw-tools/ |
| H A D | gen_ipmi_sel.pl | 56 my $sensorType = ''; 66 $sensorType = getNumeric($targetObj, $target, "IPMI_SENSOR_TYPE"); 74 next if ($sensorType ne $metaDataConfig->{$entityID}->{SensorType}); 99 print $fh " sensorType: ".$sensorType."\n"; 103 …printDebug("$sensorID : $sensorType : $eventReadingType : $entityID : $metaDataConfig->{$entityID}…
|
| H A D | gen_ipmi_sensor.pl | 55 my $sensorType = ''; 82 $sensorType = hex($targetObj->getAttribute($target, 129 $data{'SENSOR_TYPE'} = $sensorType; 138 my $debug = "$sensorID : $sensorName : $sensorType : "; 143 if($sensorType == 0x01) { 256 my $sensorType = $data{'SENSOR_TYPE'}; 269 if ($sensorType == 0x01) {
|
| /openbmc/intel-ipmi-oem/src/ |
| H A D | sensorcommands.cpp | 114 uint8_t sensorType = 0; in ipmiSenPlatformEvent() local 134 p.unpack(sysgeneratorID, evmRev, sensorType, sensorNum, eventType, in ipmiSenPlatformEvent() 149 p.unpack(evmRev, sensorType, sensorNum, eventType, eventData1, in ipmiSenPlatformEvent() 168 if ((sensorType > 0x2C) && (sensorType < 0xC0)) in ipmiSenPlatformEvent() 176 generatorID, evmRev, sensorType, sensorNum, eventType, eventData1, in ipmiSenPlatformEvent()
|
| /openbmc/phosphor-virtual-sensor/src/ |
| H A D | virtualSensor.cpp | 197 const std::string& sensorType, in parseConfigInterface() argument 207 auto sensorObjPath = sensorDbusPath + sensorType + "/" + sensor; in parseConfigInterface() 328 std::string sensorType = desc.value("SensorType", ""); in initVirtualSensor() local 331 if (!sensorType.empty() && !name.empty()) in initVirtualSensor() 333 auto path = sensorDbusPath + sensorType + "/" + name; in initVirtualSensor() 391 const std::string& sensorType, const std::string& calculationIface) in initVirtualSensor() argument 397 units = unitMap.at(sensorType); in initVirtualSensor() 409 parseConfigInterface(propertyMap, sensorType, interface); in initVirtualSensor() 791 std::string sensorType, sensorUnit; in createVirtualSensorsFromDBus() local 798 sensorType = getSensorTypeFromUnit(sensorUnit); in createVirtualSensorsFromDBus() [all …]
|
| /openbmc/phosphor-host-ipmid/scripts/ |
| H A D | inventorysensor.cpp.mako | 17 sensorType = objectPath["sensorType"] 21 ${sensorID},${sensorType},${eventReadingType},${offset}
|
| H A D | writesensor.cpp.mako | 44 sensorType = sensor["sensorType"] 84 .sensorType = ${sensorType},
|
| /openbmc/openpower-host-ipmi-oem/scripts/ |
| H A D | inventorysensor.mako.cpp | 16 sensorType = objectPath["sensorType"] 20 ${sensorID},${sensorType},${eventReadingType},${offset}
|
| /openbmc/dbus-sensors/src/smbpbi/ |
| H A D | SmbpbiSensor.cpp | 67 sensorType = sensor_paths::getPathForUnits(sensorUnits); in SmbpbiSensor() 68 std::string sensorPath = sensorRootPath + sensorType + "/"; in SmbpbiSensor() 82 if (sensorType == "temperature") in SmbpbiSensor() 86 else if (sensorType == "power") in SmbpbiSensor() 90 else if (sensorType == "energy") in SmbpbiSensor() 94 else if (sensorType == "voltage") in SmbpbiSensor() 288 if (sensorType == "temperature") in readRawEEPROMData() 293 else if (sensorType == "power") in readRawEEPROMData() 298 else if (sensorType == "energy") in readRawEEPROMData()
|
| /openbmc/openpower-host-ipmi-oem/ |
| H A D | oemhandler.hpp | 66 uint8_t sensorType; //!< Sensor Type. member 83 Type sensorType; member
|
| /openbmc/dbus-sensors/src/external/ |
| H A D | ExternalSensorMain.cpp | 58 static const char* sensorType = "ExternalSensor"; variable 170 sensorData.find(configInterfaceName(sensorType)); in createSensors() 308 sensorType, objectServer, dbusConnection, sensorName, in createSensors() 322 getter->getConfiguration(std::vector<std::string>{sensorType}); in createSensors() 379 *systemBus, std::to_array<const char*>({sensorType}), eventHandler); in main()
|
| /openbmc/intel-ipmi-oem/include/ |
| H A D | ipmi_to_redfish_hooks.hpp | 26 uint8_t sensorType, uint8_t sensorNum, uint8_t eventType, 29 bool checkRedfishHooks(uint16_t generatorID, uint8_t evmRev, uint8_t sensorType,
|
| /openbmc/dbus-sensors/src/ |
| H A D | PwmSensor.cpp | 43 const std::string& sensorType, bool isValueMutable) : in PwmSensor() argument 53 if (sensorType == "PSU") in PwmSensor() 181 if (sensorType == "PSU") in PwmSensor()
|
| H A D | PwmSensor.hpp | 17 const std::string& sensorType, bool isValueMutable = false);
|
| /openbmc/phosphor-hwmon/ |
| H A D | thresholds.hpp | 121 auto addThreshold(const std::string& sensorType, const std::string& sensorID, in addThreshold() argument 128 auto tLo = env::getEnv(Thresholds<T>::envLo, sensorType, sensorID); in addThreshold() 129 auto tHi = env::getEnv(Thresholds<T>::envHi, sensorType, sensorID); in addThreshold()
|
| /openbmc/phosphor-host-ipmid/ |
| H A D | ipmisensor.cpp | 280 bool shouldReport(uint8_t sensorType, int offset, int* index) in shouldReport() argument 284 if (findindex(sensorType, offset, index)) in shouldReport() 293 SENSORTYPE, lg2::hex, sensorType, "OFFSET", lg2::hex, in shouldReport()
|
| H A D | selutility.cpp | 123 record.event.eventRecord.sensorType = 0; in constructSEL() 135 record.event.eventRecord.sensorType = sensorIter->second.sensorType; in constructSEL() 266 record.event.eventRecord.sensorType = iter->second.sensorType; in prepareSELEntry()
|
| H A D | sensorhandler.hpp | 54 uint8_t sensorType; member 228 uint8_t sensorType; member 273 uint8_t sensorType; member 298 uint8_t sensorType; member
|
| /openbmc/fb-ipmi-oem/include/ |
| H A D | sensorutils.hpp | 150 uint8_t sensorType = 0; in getSensorTypeFromPath() local 155 sensorType = static_cast<uint8_t>(findSensor->second); in getSensorTypeFromPath() 158 return sensorType; in getSensorTypeFromPath()
|
| /openbmc/dbus-sensors/src/mcu/ |
| H A D | MCUTempSensor.cpp | 56 constexpr const char* sensorType = "MCUTempSensor"; variable 220 if (intf != configInterfaceName(sensorType)) in createSensors() 303 *systemBus, std::to_array<const char*>({sensorType}), eventHandler); in main()
|
| /openbmc/dbus-sensors/src/hwmon-temp/ |
| H A D | HwmonTempMain.cpp | 375 std::string sensorType = findSensorCfg->second.interface; in createSensors() local 376 auto pos = sensorType.find_last_of('.'); in createSensors() 379 sensorType = sensorType.substr(pos + 1); in createSensors() 466 *hwmonFile, sensorType, objectServer, in createSensors() 528 *hwmonFile, sensorType, objectServer, in createSensors()
|
| /openbmc/dbus-sensors/src/nvme/ |
| H A D | NVMeSensor.hpp | 18 static constexpr const char* sensorType = "NVME1000"; member in NVMeSensor
|
| H A D | NVMeSensorMain.cpp | 170 sensorData.find(configInterfaceName(NVMeSensor::sensorType)); in handleSensorConfigurations() 234 getter->getConfiguration(std::vector<std::string>{NVMeSensor::sensorType}); in createSensors() 300 *systemBus, std::to_array<const char*>({NVMeSensor::sensorType}), in main()
|
| /openbmc/dbus-sensors/src/intrusion/ |
| H A D | IntrusionSensorMain.cpp | 48 static constexpr const char* sensorType = "ChassisIntrusionSensor"; variable 68 if (!getSensorConfiguration(sensorType, dbusConnection, in createSensorsFromConfig() 85 auto sensorBase = sensorData->find(configInterfaceName(sensorType)); in createSensorsFromConfig() 496 *systemBus, std::to_array<const char*>({sensorType}), eventHandler); in main()
|
| /openbmc/phosphor-webui/app/server-health/controllers/ |
| H A D | log-controller.js | 33 var sensorType = $routeParams.type; 40 if (sensorType == 'high') {
|