Lines Matching refs:direction

771 bool NumericSensor::checkThreshold(bool alarm, bool direction, double value,  in checkThreshold()  argument
774 if (direction) in checkThreshold()
804 for (auto direction : allThresholdDirections) in hasThresholdAlarm() local
806 alarm |= getThresholdAlarm(level, direction); in hasThresholdAlarm()
812 void NumericSensor::setWarningThresholdAlarm(pldm::utils::Direction direction, in setWarningThresholdAlarm() argument
815 if (direction == pldm::utils::Direction::HIGH) in setWarningThresholdAlarm()
841 void NumericSensor::setCriticalThresholdAlarm(pldm::utils::Direction direction, in setCriticalThresholdAlarm() argument
844 if (direction == pldm::utils::Direction::HIGH) in setCriticalThresholdAlarm()
871 pldm::utils::Direction direction, double value, bool newAlarm) in setHardShutdownThresholdAlarm() argument
873 if (direction == pldm::utils::Direction::HIGH) in setHardShutdownThresholdAlarm()
900 pldm::utils::Direction direction, in setThresholdAlarm() argument
903 if (!isThresholdValid(level, direction)) in setThresholdAlarm()
910 auto alarm = getThresholdAlarm(level, direction); in setThresholdAlarm()
918 setWarningThresholdAlarm(direction, value, newAlarm); in setThresholdAlarm()
921 setCriticalThresholdAlarm(direction, value, newAlarm); in setThresholdAlarm()
924 setHardShutdownThresholdAlarm(direction, value, newAlarm); in setThresholdAlarm()
931 createThresholdLog(level, direction, value); in setThresholdAlarm()
935 auto& log = assertedLog[{level, direction}]; in setThresholdAlarm()
997 pldm::utils::Level level, pldm::utils::Direction direction, double value) in createThresholdLog() argument
1025 double threshold = getThreshold(level, direction); in createThresholdLog()
1028 auto helper = thresholdEventMap.at({level, direction}); in createThresholdLog()
1029 assertedLog[{level, direction}] = in createThresholdLog()
1082 for (auto direction : allThresholdDirections) in updateThresholds() local
1084 auto threshold = getThreshold(level, direction); in updateThresholds()
1089 auto alarm = getThresholdAlarm(level, direction); in updateThresholds()
1091 checkThreshold(alarm, direction == pldm::utils::Direction::HIGH, in updateThresholds()
1093 setThresholdAlarm(level, direction, value, newAlarm); in updateThresholds()
1099 pldm::utils::Level eventType, pldm::utils::Direction direction, in triggerThresholdEvent() argument
1113 "TID", eventType, "SID", direction, "VAL", value, "PSTATE", newAlarm, in triggerThresholdEvent()
1116 return setThresholdAlarm(eventType, direction, value, newAlarm); in triggerThresholdEvent()