Home
last modified time | relevance | path

Searched full:zone (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/
H A DZone_v1.xml4 <!--# Redfish Schema: Zone v1.6.3 -->
42 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Zone">
46 <EntityType Name="Zone" BaseType="Resource.v1_0_0.Resource" Abstract="true">
47 …<Annotation Term="OData.Description" String="The `Zone` schema describes a simple fabric zone for …
48 …ta.LongDescription" String="This resource shall represent a simple fabric zone for a Redfish imple…
73 <Annotation Term="OData.Description" String="This action adds an endpoint to a zone."/>
74 … <Annotation Term="OData.LongDescription" String="This action shall add an endpoint to a zone."/>
75 <Parameter Name="Zone" Type="Zone.v1_1_0.Actions"/>
77 <Annotation Term="OData.Description" String="The endpoint to add to the zone."/>
78 …ption" String="This parameter shall contain a link to the specified endpoint to add to the zone."/>
[all …]
/openbmc/phosphor-fan-presence/control/
H A Dactions.cpp18 control::Zone& zone, const Group& group) { in call_actions_based_on_timer() argument
21 auto it = zone.getTimerEvents().find(__func__); in call_actions_based_on_timer()
22 if (it != zone.getTimerEvents().end()) in call_actions_based_on_timer()
25 auto timerIter = zone.findTimer(group, actions, timers); in call_actions_based_on_timer()
29 zone.addTimer(__func__, group, actions, tConf); in call_actions_based_on_timer()
37 zone.getTimerEvents().erase(it); in call_actions_based_on_timer()
44 zone.addTimer(__func__, group, actions, tConf); in call_actions_based_on_timer()
54 void default_floor_on_missing_owner(Zone& zone, const Group& group) in default_floor_on_missing_owner() argument
57 zone.setServices(&group); in default_floor_on_missing_owner()
58 auto services = zone.getGroupServices(&group); in default_floor_on_missing_owner()
[all …]
H A Dtriggers.cpp17 control::Zone& zone, const std::string& name, const Group& group, in timer()
19 zone.addTimer(name, group, actions, tConf); in timer()
26 control::Zone& zone, const std::string& name, const Group& group, in signal() argument
36 zone.getBus(), match.c_str(), in signal()
37 std::bind(std::mem_fn(&Zone::handleEvent), &zone, in signal()
42 // When match is empty, handle if zone object member in signal()
46 if (std::get<pathPos>(entry) == zone.getPath()) in signal()
48 auto ifaces = zone.getIfaces(); in signal()
49 // Group member interface in list owned by zone in signal()
54 zone.setObjectData( in signal()
[all …]
H A Dactions.hpp5 #include "zone.hpp"
40 * @param[in] zone - Zone containing fans
43 void default_floor_on_missing_owner(Zone& zone, const Group& group);
51 * @param[in] speed - Speed to set the zone to
54 * An Action function that sets the zone to the given speed if any service
67 * @param[in] zone - Zone containing fans
70 void set_request_speed_base_with_max(Zone& zone, const Group& group);
73 * @brief An action to set the speed on a zone
74 * @details The zone is held at the given speed when a defined number of
79 * @param[in] speed - Speed to set the zone to
[all …]
H A Dpreconditions.cpp3 #include "zone.hpp"
23 return [pg = std::move(pg), sse = std::move(sse)](auto& zone, auto& group) { in property_states_match() argument
26 std::all_of(pg.begin(), pg.end(), [&zone](const auto& entry) { in property_states_match()
29 return zone.getPropValueVariant( in property_states_match()
48 std::for_each(sse.begin(), sse.end(), [&zone](const auto& entry) { in property_states_match()
49 zone.initEvent(entry); in property_states_match()
58 std::for_each(sse.begin(), sse.end(), [&zone](const auto& entry) { in property_states_match()
59 zone.removeEvent(entry); in property_states_match()
61 zone.setFullSpeed(); in property_states_match()
64 zone.setActiveAllow(&group, precondState); in property_states_match()
[all …]
H A Dhandlers.hpp4 #include "zone.hpp"
18 * @brief A handler function to set/update a property on a zone
19 * @details Sets or updates a zone property to the given value using the
20 * provided zone dbus object's set property function
22 * @param[in] intf - Interface on zone object
24 * @param[in] func - Zone set property function pointer
29 * A lambda function to set/update the zone property
32 auto setZoneProperty(const char* intf, const char* prop, T (Zone::*func)(T), in setZoneProperty()
35 return [=, value = std::forward<T>(value)](auto& zone) { in setZoneProperty() argument
36 (zone.*func)(value); in setZoneProperty()
[all …]
H A Dfunctor.hpp5 #include "zone.hpp"
13 class Zone;
19 * @brief Create a zone handler function object
23 * @return - The created zone handler function object
103 Zone& zone) const in operator ()()
126 zone.getPropertyValueVisitor<T>(_intf, _prop, it->second); in operator ()()
128 _handler(zone, _path, _intf, _prop, std::forward<T>(value)); in operator ()()
134 auto val = zone.getPropertyByName<T>(_path, _intf, _prop); in operator ()()
135 _handler(zone, _path, _intf, _prop, std::forward<T>(val)); in operator ()()
155 void operator()(Zone& zone, const Group& group) const in operator ()()
[all …]
/openbmc/phosphor-fan-presence/control/json/
H A Dzone.hpp44 * @class Zone - Represents a configured fan control zone
46 * A zone object contains the configured attributes for a zone that groups
49 * of the fans within the zone, a default floor, the delay between increases, a
50 * decrease interval, and any profiles(OPTIONAL) the zone should be included in.
52 * (When no profile for a zone is given, the zone defaults to always exist)
55 class Zone : public ConfigBase class
61 Zone() = delete;
62 Zone(const Zone&) = delete;
63 Zone(Zone&&) = delete;
64 Zone& operator=(const Zone&) = delete;
[all …]
H A Dzone.cpp16 #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()
[all …]
H A Ddbus_zone.hpp27 class Zone;
46 * Creates a thermal control dbus object associated with the given zone
48 * @param[in] zone - Zone object
50 explicit DBusZone(const Zone& zone);
68 /* Zone object associated with this thermal control dbus object */
69 const Zone& _zone;
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/
H A DZone.v1_6_3.json2 "$id": "http://redfish.dmtf.org/schemas/v1/Zone.v1_6_3.json",
3 "$ref": "#/definitions/Zone",
26 "#Zone.AddEndpoint": {
29 "#Zone.RemoveEndpoint": {
43 "description": "This action adds an endpoint to a zone.",
44 "longDescription": "This action shall add an endpoint to a zone.",
48 "description": "The endpoint to add to the zone.",
49 …gDescription": "This parameter shall contain a link to the specified endpoint to add to the zone.",
53 "description": "The current ETag of the endpoint to add to the zone.",
54 …is parameter shall contain the current ETag of the endpoint to add to the zone. If the client-pro…
[all …]
/openbmc/phosphor-pid-control/test/
H A Dpid_zone_unittest.cpp6 #include "pid/zone.hpp"
43 static std::string debugZoneInterface = "xyz.openbmc_project.Debug.Pid.Zone";
53 // Build a PID Zone. in TEST()
72 int64_t zone = 1; in TEST() local
93 DbusPidZone p(zone, minThermalOutput, failSafePercent, cycleTime, m, in TEST()
128 zone = std::make_unique<DbusPidZone>( in PidZoneTest()
158 std::unique_ptr<DbusPidZone> zone; member in pid_control::__anon416c5d230111::PidZoneTest
165 EXPECT_EQ(zoneId, zone->getZoneID()); in TEST_F()
170 // Verifies that the zone starts in manual mode. Verifies that one can set in TEST_F()
172 EXPECT_FALSE(zone->getManualMode()); in TEST_F()
[all …]
/openbmc/entity-manager/configurations/
H A Dr2000_chassis.json
H A Dr1000_chassis.json
/openbmc/phosphor-pid-control/pid/
H A Dbuilder.cpp25 #include "pid/zone.hpp"
45 static constexpr auto objectPath = "/xyz/openbmc_project/settings/fanctrl/zone";
47 static std::string getControlPath(int64_t zone) in getControlPath() argument
49 return std::string(objectPath) + std::to_string(zone); in getControlPath()
52 static std::string getPidControlPath(int64_t zone, const std::string& pidname) in getPidControlPath() argument
54 return std::string(objectPath) + std::to_string(zone) + "/" + pidname; in getPidControlPath()
73 /* The Zone doesn't have a configuration, bail. */ in buildZones()
75 "Bailing during load, missing Zone Configuration"; in buildZones()
80 auto zone = std::make_shared<DbusPidZone>( in buildZones() local
86 std::cerr << "Zone Id: " << zone->getZoneID() << "\n"; in buildZones()
[all …]
H A Dpidloop.cpp35 static void processThermals(const std::shared_ptr<ZoneInterface>& zone) in processThermals() argument
38 zone->updateSensors(); in processThermals()
40 zone->clearSetPoints(); in processThermals()
41 zone->clearRPMCeilings(); in processThermals()
43 zone->processThermals(); in processThermals()
45 zone->determineMaxSetPointRequest(); in processThermals()
48 void pidControlLoop(const std::shared_ptr<ZoneInterface>& zone, in pidControlLoop() argument
63 zone->initializeLog(); in pidControlLoop()
66 zone->initializeCache(); in pidControlLoop()
67 processThermals(zone); in pidControlLoop()
[all …]
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dzoned3 # Test zone management operations.
38 echo "(1) report the first zone:"
44 echo "report the last zone:"
48 echo "(2) opening the first zone"
53 echo "opening the second zone"
58 echo "opening the last zone"
64 echo "(3) closing the first zone"
69 echo "closing the last zone"
75 echo "(4) finishing the second zone"
77 echo "After finishing a zone:"
[all …]
H A Dzoned.out4 (1) report the first zone:
19 report the last zone:
23 (2) opening the first zone
27 opening the second zone
31 opening the last zone
36 (3) closing the first zone
40 closing the last zone
45 (4) finishing the second zone
46 After finishing a zone:
50 (5) resetting the second zone
[all …]
/openbmc/phosphor-fan-presence/control/example/
H A Dzones.yaml1 #Example fan zone definitions for phosphor-fan-control
13 #The cooling_profile is used along with the zone number to know
14 #which fans in the fan yaml belong in this zone instance. For
15 #example, a fan may only be in zone 0 if it's the air cooled version
18 #the zone cooling profile.
30 # - zone: [zone number]
33 # full_speed: [Full speed for the zone.]
34 # default_floor: [Default floor speed for the zone that fan speeds can
52 # - zone: 0
65 # - zone: 0
/openbmc/phosphor-fan-presence/control/json/actions/
H A Doverride_fan_target.cpp19 #include "../zone.hpp"
42 void OverrideFanTarget::run(Zone& zone) in run() argument
70 lockFans(zone); in run()
77 unlockFans(zone); in run()
81 void OverrideFanTarget::lockFans(Zone& zone) in lockFans() argument
94 record(std::format("Adding fan target lock of {} on fans [{}] zone {}", in lockFans()
95 _target, fanList, zone.getName())); in lockFans()
99 zone.lockFanTarget(fan, _target); in lockFans()
106 void OverrideFanTarget::unlockFans(Zone& zone) in unlockFans() argument
116 record(std::format("Un-locking fan target {} on fans [{}] zone {}", _target, in unlockFans()
[all …]
H A Doverride_fan_target.hpp18 #include "../zone.hpp"
38 * The following config will set all fans in the zone to a target of 9999 if
98 * @param[in] zone - Zone to run the action on
100 void run(Zone& zone) override;
121 * @param[in] Zone - zone in which _fans are found
124 void lockFans(Zone& zone);
129 * @param[in] Zone - zone which _fans are found
132 void unlockFans(Zone& zone);
H A Daction.hpp19 #include "../zone.hpp"
86 std::vector<std::reference_wrapper<Zone>>& zones) in createAction()
142 virtual void setZones(std::vector<std::reference_wrapper<Zone>>& zones) in setZones()
148 * @brief Add a zone to the list of zones the action is run against if its
151 * @param[in] zone - Zone to add
153 virtual void addZone(Zone& zone) in addZone() argument
157 [&zone](std::reference_wrapper<Zone>& z) { in addZone()
158 return z.get().getName() == zone.getName(); in addZone()
162 _zones.emplace_back(std::reference_wrapper<Zone>(zone)); in addZone()
170 * that performs a specific tasks on a zone configured by a user.
[all …]
/openbmc/phosphor-fan-presence/control/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier/
H A Dfans.json4 "zone": "0", string
10 "zone": "0", string
16 "zone": "0", string
22 "zone": "0", string
28 "zone": "0", string
34 "zone": "0", string
/openbmc/phosphor-fan-presence/control/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.BlueRidge/
H A Dfans.json4 "zone": "0", string
10 "zone": "0", string
16 "zone": "0", string
22 "zone": "0", string
28 "zone": "0", string
34 "zone": "0", string
/openbmc/qemu/hw/nvme/
H A Dns.c201 error_setg(errp, "zone capacity %"PRIu64"B exceeds " in nvme_ns_zoned_check_calc_geometry()
202 "zone size %"PRIu64"B", zone_cap, zone_size); in nvme_ns_zoned_check_calc_geometry()
206 error_setg(errp, "zone size %"PRIu64"B too small, " in nvme_ns_zoned_check_calc_geometry()
211 error_setg(errp, "zone capacity %"PRIu64"B too small, " in nvme_ns_zoned_check_calc_geometry()
217 * Save the main zone geometry values to avoid in nvme_ns_zoned_check_calc_geometry()
228 "of one zone (%"PRIu64"B)", zone_size); in nvme_ns_zoned_check_calc_geometry()
239 NvmeZone *zone; in nvme_ns_zoned_init_state() local
253 zone = ns->zone_array; in nvme_ns_zoned_init_state()
254 for (i = 0; i < ns->num_zones; i++, zone++) { in nvme_ns_zoned_init_state()
258 zone->d.zt = NVME_ZONE_TYPE_SEQ_WRITE; in nvme_ns_zoned_init_state()
[all …]

12345678910>>...13