Lines Matching full:zone
16 #include "zone.hpp"
44 std::map<std::string, std::function<std::function<void(DBusZone&, Zone&)>(
46 Zone::_intfPropHandlers = {
48 {{DBusZone::supportedProp, zone::property::supported},
49 {DBusZone::currentProp, zone::property::current}}}};
51 Zone::Zone(const json& jsonObj, const sdeventplus::Event& event, Manager* mgr) : in Zone() function in phosphor::fan::control::json::Zone
55 _incTimer(event, std::bind(&Zone::incTimerExpired, this)),
56 _decTimer(event, std::bind(&Zone::decTimerExpired, this))
108 void Zone::enable() in enable()
127 // Emit object added for this zone's associated dbus object in enable()
138 void Zone::addFan(std::unique_ptr<Fan> fan) in addFan()
143 void Zone::setTarget(uint64_t target) in setTarget()
150 "zone-set-target" + getName(), in setTarget()
161 void Zone::lockFanTarget(const std::string& fname, uint64_t target) in lockFanTarget()
175 "Configured fan {FAN} not found in zone {ZONE_NAME} to lock target", in lockFanTarget()
180 void Zone::unlockFanTarget(const std::string& fname, uint64_t target) in unlockFanTarget()
191 // attempt to resume Zone target on fan in unlockFanTarget()
197 "Configured fan {FAN} not found in zone {ZONE_NAME} to unlock target", in unlockFanTarget()
202 void Zone::setTargetHold(const std::string& ident, uint64_t target, bool hold) in setTargetHold()
212 "zone-target"s + getName(), in setTargetHold()
222 "zone-target"s + getName(), in setTargetHold()
242 "zone-target"s + getName(), in setTargetHold()
255 void Zone::setFloorHold(const std::string& ident, uint64_t target, bool hold) in setFloorHold()
270 "zone-floor"s + getName(), in setFloorHold()
280 "zone-floor"s + getName(), in setFloorHold()
301 "zone-floor"s + getName(), in setFloorHold()
312 "zone-floor"s + getName(), in setFloorHold()
325 void Zone::setFloor(uint64_t target) in setFloor()
340 void Zone::requestIncrease(uint64_t targetDelta) in requestIncrease()
343 // the zone and currently under ceiling in requestIncrease()
360 void Zone::incTimerExpired() in incTimerExpired()
367 void Zone::requestDecrease(uint64_t targetDelta) in requestDecrease()
376 void Zone::decTimerExpired() in decTimerExpired()
410 void Zone::setPersisted(const std::string& intf, const std::string& prop) in setPersisted()
420 bool Zone::isPersisted(const std::string& intf, const std::string& prop) const in isPersisted()
432 void Zone::setPowerOnTarget(const json& jsonObj) in setPowerOnTarget()
436 lg2::error("Missing required zone's poweron target", "JSON", in setPowerOnTarget()
438 throw std::runtime_error("Missing required zone's poweron target"); in setPowerOnTarget()
443 void Zone::setInterfaces(const json& jsonObj) in setInterfaces()
450 "Missing required zone interface attributes 'name, properties'", in setInterfaces()
453 "Missing required zone interface attributes"); in setInterfaces()
513 json Zone::dump() const in dump()
550 * Properties of interfaces supported by the zone configuration that return
551 * a handler function that sets the zone's property value(s) and persist
554 namespace zone::property namespace
558 std::function<void(DBusZone&, Zone&)> supported(const json& jsonObj, in supported()
585 return Zone::setProperty<std::vector<std::string>>( in supported()
592 std::function<void(DBusZone&, Zone&)> current(const json& jsonObj, bool persist) in current()
601 return Zone::setPropertyPersist(DBusZone::thermalModeIntf, in current()
605 return Zone::setProperty<std::string>( in current()
610 } // namespace zone::property