/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | sensor_utils.hpp | 143 std::string_view sensorType) in getSensorId() argument 145 std::string normalizedType(sensorType); in getSensorId() 160 std::string sensorType{sensorId.substr(0, index)}; in splitSensorNameAndType() local 163 if (sensorType == "fantach" || sensorType == "fanpwm") in splitSensorNameAndType() 165 sensorType.insert(3, 1, '_'); in splitSensorNameAndType() 167 return std::make_pair(sensorType, sensorName); in splitSensorNameAndType() 172 inline std::string_view toReadingUnits(std::string_view sensorType) in toReadingUnits() argument 174 if (sensorType == "voltage") in toReadingUnits() 178 if (sensorType == "power") in toReadingUnits() 182 if (sensorType == "current") in toReadingUnits() [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/phosphor-virtual-sensor/ |
H A D | virtualSensor.cpp | 184 const std::string& sensorType, in parseConfigInterface() argument 194 auto sensorObjPath = sensorDbusPath + sensorType + "/" + sensor; in parseConfigInterface() 312 std::string sensorType = desc.value("SensorType", ""); in initVirtualSensor() local 315 if (!sensorType.empty() && !name.empty()) in initVirtualSensor() 317 auto path = sensorDbusPath + sensorType + "/" + name; in initVirtualSensor() 376 const std::string& sensorType, const std::string& calculationIface) in initVirtualSensor() argument 392 parseConfigInterface(propertyMap, sensorType, interface); in initVirtualSensor() 778 std::string sensorType, sensorUnit; in createVirtualSensorsFromDBus() local 785 sensorType = getSensorTypeFromUnit(sensorUnit); in createVirtualSensorsFromDBus() 786 if (sensorType.empty()) in createVirtualSensorsFromDBus() [all …]
|
/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()
|
H A D | ipmi_to_redfish_hooks.cpp | 866 uint8_t sensorType, uint8_t sensorNum, uint8_t eventType, in checkRedfishHooks() argument 883 sensorType, in checkRedfishHooks() 911 bool checkRedfishHooks(uint16_t generatorID, uint8_t evmRev, uint8_t sensorType, in checkRedfishHooks() argument 921 sensorType, in checkRedfishHooks()
|
/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/external/ |
H A D | ExternalSensorMain.cpp | 60 static const char* sensorType = "ExternalSensor"; variable 182 sensorData.find(configInterfaceName(sensorType)); in createSensors() 324 sensorType, objectServer, dbusConnection, sensorName, in createSensors() 341 getter->getConfiguration(std::vector<std::string>{sensorType}); in createSensors() 410 *systemBus, std::to_array<const char*>({sensorType}), eventHandler); in main()
|
/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/ |
H A D | PwmSensor.cpp | 43 const std::string& sensorType, bool isValueMutable) : in PwmSensor() argument 53 if (sensorType == "PSU") in PwmSensor() 182 if (sensorType == "PSU") in PwmSensor()
|
H A D | PwmSensor.hpp | 17 const std::string& sensorType, bool isValueMutable = false);
|
/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/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 | selutility.cpp | 120 record.event.eventRecord.sensorType = 0; in constructSEL() 132 record.event.eventRecord.sensorType = sensorIter->second.sensorType; in constructSEL() 263 record.event.eventRecord.sensorType = iter->second.sensorType; in prepareSELEntry()
|
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()
|
/openbmc/dbus-sensors/src/hwmon-temp/ |
H A D | HwmonTempMain.cpp | 370 std::string sensorType = findSensorCfg->second.interface; in createSensors() 371 auto pos = sensorType.find_last_of('.'); in createSensors() 374 sensorType = sensorType.substr(pos + 1); in createSensors() 457 *hwmonFile, sensorType, objectServer, in createSensors() 519 *hwmonFile, sensorType, objectServer, in createSensors() 369 std::string sensorType = findSensorCfg->second.interface; createSensors() local
|
/openbmc/dbus-sensors/src/mcu/ |
H A D | MCUTempSensor.cpp | 58 constexpr const char* sensorType = "MCUTempSensor"; variable 225 if (intf != configInterfaceName(sensorType)) in createSensors() 311 *systemBus, std::to_array<const char*>({sensorType}), eventHandler); in main()
|
/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/nvme/ |
H A D | NVMeSensorMain.cpp | 169 sensorData.find(configInterfaceName(NVMeSensor::sensorType)); in handleSensorConfigurations() 234 getter->getConfiguration(std::vector<std::string>{NVMeSensor::sensorType}); in createSensors() 305 *systemBus, std::to_array<const char*>({NVMeSensor::sensorType}), in main()
|
H A D | NVMeSensor.hpp | 18 static constexpr const char* sensorType = "NVME1000"; member in NVMeSensor
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | sensors.hpp | 504 const std::string& sensorName, const std::string& sensorType, in objectInterfacesToJson() argument 512 sensorName, sensorType, chassisSubNode, valuesDict, sensorJson, in objectInterfacesToJson() 1893 const std::string& sensorType = split[4]; in getSensorData() local 1896 sensorType); in getSensorData() 1917 sensorType); in getSensorData() 1934 else if (sensorType == "temperature") in getSensorData() 1938 else if (sensorType == "fan" || in getSensorData() 1939 sensorType == "fan_tach" || in getSensorData() 1940 sensorType == "fan_pwm") in getSensorData() 1944 else if (sensorType == "voltage") in getSensorData() [all …]
|
/openbmc/dbus-sensors/src/intrusion/ |
H A D | IntrusionSensorMain.cpp | 50 static constexpr const char* sensorType = "ChassisIntrusionSensor"; 70 if (!getSensorConfiguration(sensorType, dbusConnection, in createSensorsFromConfig() 87 auto sensorBase = sensorData->find(configInterfaceName(sensorType)); in createSensorsFromConfig() 526 *systemBus, std::to_array<const char*>({sensorType}), eventHandler); in main() 51 static constexpr const char* sensorType = "ChassisIntrusionSensor"; global() variable
|
/openbmc/phosphor-webui/app/server-health/controllers/ |
H A D | log-controller.js | 33 var sensorType = $routeParams.type; 40 if (sensorType == 'high') {
|