Home
last modified time | relevance | path

Searched refs:sensorType (Results 1 – 25 of 48) sorted by relevance

12

/openbmc/bmcweb/redfish-core/include/utils/
H A Dsensor_utils.hpp143 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 Dgen_ipmi_sel.pl56 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 Dgen_ipmi_sensor.pl55 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 DvirtualSensor.cpp184 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 Dsensorcommands.cpp114 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 Dipmi_to_redfish_hooks.cpp866 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 Dinventorysensor.cpp.mako17 sensorType = objectPath["sensorType"]
21 ${sensorID},${sensorType},${eventReadingType},${offset}
H A Dwritesensor.cpp.mako44 sensorType = sensor["sensorType"]
84 .sensorType = ${sensorType},
/openbmc/openpower-host-ipmi-oem/scripts/
H A Dinventorysensor.mako.cpp16 sensorType = objectPath["sensorType"]
20 ${sensorID},${sensorType},${eventReadingType},${offset}
/openbmc/dbus-sensors/src/external/
H A DExternalSensorMain.cpp60 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 Doemhandler.hpp66 uint8_t sensorType; //!< Sensor Type. member
83 Type sensorType; member
/openbmc/dbus-sensors/src/
H A DPwmSensor.cpp43 const std::string& sensorType, bool isValueMutable) : in PwmSensor() argument
53 if (sensorType == "PSU") in PwmSensor()
182 if (sensorType == "PSU") in PwmSensor()
H A DPwmSensor.hpp17 const std::string& sensorType, bool isValueMutable = false);
/openbmc/intel-ipmi-oem/include/
H A Dipmi_to_redfish_hooks.hpp26 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 Dthresholds.hpp121 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 Dselutility.cpp120 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 Dipmisensor.cpp280 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 DHwmonTempMain.cpp370 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 DMCUTempSensor.cpp58 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 Dsensorutils.hpp150 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 DNVMeSensorMain.cpp169 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 DNVMeSensor.hpp18 static constexpr const char* sensorType = "NVME1000"; member in NVMeSensor
/openbmc/bmcweb/redfish-core/lib/
H A Dsensors.hpp504 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 DIntrusionSensorMain.cpp50 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 Dlog-controller.js33 var sensorType = $routeParams.type;
40 if (sensorType == 'high') {

12