Home
last modified time | relevance | path

Searched refs:properties (Results 1 – 25 of 739) sorted by relevance

12345678910>>...30

/openbmc/phosphor-modbus/rtu/port/
H A Dbase_port.hpp40 concept HasPropertiesMembers = requires(T properties) {
42 properties.name
45 properties.mode
48 properties.baud_rate
51 properties.rts_delay
64 auto updateBaseConfig(BaseConfig& config, const BaseProperties& properties) in updateBaseConfig() argument
69 config.name = properties.name; in updateBaseConfig()
70 config.baudRate = static_cast<uint32_t>(properties.baud_rate); in updateBaseConfig()
71 config.rtsDelay = static_cast<uint16_t>(properties.rts_delay); in updateBaseConfig()
75 if (modeStr == properties.mode) in updateBaseConfig()
[all …]
H A Dusb_port.cpp82 auto properties = in getConfig() local
86 .properties(); in getConfig()
88 auto res = updateBaseConfig(*config, properties); in getConfig()
94 config->address = properties.device_address; in getConfig()
95 config->port = properties.port; in getConfig()
96 config->interface = properties.device_interface; in getConfig()
/openbmc/bmcweb/test/redfish-core/lib/
H A Dchassis_test.cpp110 auto properties = dbus::utility::DBusPropertiesMap(); in TEST() local
111 properties.emplace_back( in TEST()
115 handleChassisProperties(response, properties); in TEST()
119 properties.clear(); in TEST()
120 properties.emplace_back( in TEST()
124 handleChassisProperties(response, properties); in TEST()
131 auto properties = dbus::utility::DBusPropertiesMap(); in TEST() local
132 properties.emplace_back( in TEST()
136 handleChassisProperties(response, properties); in TEST()
144 auto properties = dbus::utility::DBusPropertiesMap(); in TEST() local
[all …]
/openbmc/pyphosphor/obmc/dbuslib/
H A Dbindings.py36 self.properties = {}
69 d = self.properties[interface_name]
80 if (interface_name not in self.properties):
81 self.properties[interface_name] = {}
87 old_value = self.properties[interface_name][property_name]
89 self.properties[interface_name][property_name] = new_value
95 self.properties[interface_name][property_name] = new_value
103 if (interface_name not in self.properties):
104 self.properties[interface_name] = {}
110 old_value = self.properties[interface_name][property_name]
[all …]
H A Dpropertycacher.py35 def save(obj_path, iface_name, properties): argument
45 props = json.dumps(properties[iface_name])
54 def load(obj_path, iface_name, properties): argument
58 if iface_name in properties:
59 properties[iface_name] = {}
65 properties[iface_name][prop] = data[prop]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/
H A D0011-Remove-bionic-specific-calls.patch8 include/cutils/properties.h | 1 -
9 libcutils/properties.c | 2 +-
13 diff --git a/include/cutils/properties.h b/include/cutils/properties.h
15 --- a/include/cutils/properties.h
16 +++ b/include/cutils/properties.h
25 diff --git a/libcutils/properties.c b/libcutils/properties.c
27 --- a/libcutils/properties.c
28 +++ b/libcutils/properties.c
/openbmc/phosphor-modbus/tests/
H A Dtest_port.cpp42 static constexpr properties_t properties = {"TestPort", "RS485", 115200, 1}; member in PortTest
91 const USBPortConfigServerIntf::properties_t properties, bool shouldPass) in TestGetUSBPortConfig() argument
98 ctx, objectPath, properties); in TestGetUSBPortConfig()
109 VerifyConfig(config->name, properties.name); in TestGetUSBPortConfig()
111 VerifyConfig(config->baudRate, properties.baud_rate); in TestGetUSBPortConfig()
112 VerifyConfig(config->rtsDelay, properties.rts_delay); in TestGetUSBPortConfig()
123 auto res = PortConfigIntf::updateBaseConfig(config, properties); in TEST_F()
126 EXPECT_EQ(config.name, properties.name); in TEST_F()
128 EXPECT_EQ(config.baudRate, properties.baud_rate); in TEST_F()
129 EXPECT_EQ(config.rtsDelay, properties.rts_delay); in TEST_F()
[all …]
H A Dtest_inventory.cpp73 auto properties = co_await InventorySourceIntf(ctx) in testInventorySourceCreation() local
76 .properties(); in testInventorySourceCreation()
80 EXPECT_EQ(properties.name, in testInventorySourceCreation()
84 EXPECT_EQ(properties.address, TestIntf::testDeviceAddress) in testInventorySourceCreation()
86 EXPECT_EQ(properties.link_tty, portConfig.name) << "Link TTY mismatch"; in testInventorySourceCreation()
87 EXPECT_EQ(properties.model, TestIntf::testReadHoldingRegisterModelStr) in testInventorySourceCreation()
89 EXPECT_EQ(properties.serial_number, defaultInventoryValue) in testInventorySourceCreation()
H A Dtest_device_events.cpp161 SensorValueIntf::properties_t& properties, in verifyResult() argument
169 EXPECT_TRUE(std::isnan(properties.value)) in verifyResult()
180 verifyValue(properties.value, expectedValue, in verifyResult()
190 EXPECT_EQ(properties.unit, expectedUnit) << "Sensor unit mismatch"; in verifyResult()
191 EXPECT_TRUE(std::isnan(properties.min_value)) << "Min value mismatch"; in verifyResult()
192 EXPECT_TRUE(std::isnan(properties.max_value)) << "Max value mismatch"; in verifyResult()
236 auto properties = co_await SensorValueIntf(ctx) in testSensorCreation() local
239 .properties(); in testSensorCreation()
244 .properties(); in testSensorCreation()
249 .properties(); in testSensorCreation()
[all …]
/openbmc/phosphor-dbus-monitor/src/test/
H A Dpropertygentest.cpp39 ::Property{interfaces[0], properties[0], meta[0]},
40 ::Property{interfaces[1], properties[1], meta[1]},
43 ::Property{interfaces[0], properties[2], meta[0]},
44 ::Property{interfaces[1], properties[0], meta[1]},
47 ::Property{interfaces[2], properties[0], meta[0]},
48 ::Property{interfaces[3], properties[1], meta[1]},
51 ::Property{interfaces[0], properties[2], meta[0]},
52 ::Property{interfaces[1], properties[1], meta[1]},
53 ::Property{interfaces[2], properties[3], meta[2]},
76 ASSERT_EQ(sizeof(expectedProperties), sizeof(properties)); in TEST()
[all …]
/openbmc/phosphor-net-ipmid/sol/
H A Dsol_manager.cpp124 ipmi::PropertyMap properties; in updateSOLParameter() local
143 properties = ipmi::getAllDbusProperties( in updateSOLParameter()
152 progress = std::get<uint8_t>(properties["Progress"]); in updateSOLParameter()
154 enable = std::get<bool>(properties["Enable"]); in updateSOLParameter()
156 forceEncrypt = std::get<bool>(properties["ForceEncryption"]); in updateSOLParameter()
158 forceAuth = std::get<bool>(properties["ForceAuthentication"]); in updateSOLParameter()
161 std::get<uint8_t>(properties["Privilege"])); in updateSOLParameter()
164 std::get<uint8_t>((properties["AccumulateIntervalMS"])) * in updateSOLParameter()
167 sendThreshold = std::get<uint8_t>(properties["Threshold"]); in updateSOLParameter()
169 retryCount = std::get<uint8_t>(properties["RetryCount"]); in updateSOLParameter()
[all …]
/openbmc/phosphor-inventory-manager/
H A Dgen_serialization.mako.hpp
/openbmc/ibm-logging/
H A Dcallout.cpp93 uint64_t timestamp, const DbusPropertyMap& properties) : in Callout() argument
99 auto it = properties.find("BuildDate"); in Callout()
100 if (it != properties.end()) in Callout()
105 it = properties.find("Manufacturer"); in Callout()
106 if (it != properties.end()) in Callout()
111 it = properties.find("Model"); in Callout()
112 if (it != properties.end()) in Callout()
117 it = properties.find("PartNumber"); in Callout()
118 if (it != properties.end()) in Callout()
123 it = properties.find("SerialNumber"); in Callout()
[all …]
/openbmc/dbus-sensors/src/leakdetector/
H A DLeakDetectionManager.cpp86 auto properties = in getDetectorConfig() local
90 .properties(); in getDetectorConfig()
92 config.name = properties.name; in getDetectorConfig()
96 if (properties.type == key) in getDetectorConfig()
103 config.pinName = properties.pin_name; in getDetectorConfig()
107 if (properties.polarity == key) in getDetectorConfig()
116 properties.polarity, "NAME", config.name); in getDetectorConfig()
122 if (properties.level == key) in getDetectorConfig()
130 error("Invalid level {LEVEL} for {NAME}", "LEVEL", properties.level, in getDetectorConfig()
/openbmc/openpower-proc-control/
H A Dutil.cpp59 auto properties = bus.new_method_call( in isHostPoweringOff() local
61 properties.append(interface); in isHostPoweringOff()
62 properties.append(property); in isHostPoweringOff()
63 auto result = bus.call(properties); in isHostPoweringOff()
100 auto properties = in getChassisPowerState() local
104 properties.append("xyz.openbmc_project.State.Chassis"); in getChassisPowerState()
105 properties.append("CurrentPowerState"); in getChassisPowerState()
106 auto result = bus.call(properties); in getChassisPowerState()
/openbmc/phosphor-modbus/rtu/inventory/
H A Dmodbus_inventory.cpp201 auto properties = in getConfig() local
205 .properties(); in getConfig()
207 config.name = properties.name; in getConfig()
208 config.baudRate = properties.baud_rate; in getConfig()
212 if (parityStr == properties.data_parity) in getConfig()
221 properties.data_parity, "NAME", properties.name); in getConfig()
348 InventorySourceIntf::properties_t& properties, const std::string& regName, in fillInventorySourceProperties() argument
360 properties.part_number = strValue; in fillInventorySourceProperties()
364 properties.spare_part_number = strValue; in fillInventorySourceProperties()
368 properties.serial_number = strValue; in fillInventorySourceProperties()
[all …]
/openbmc/pldm/requester/
H A Dmctp_endpoint_discovery.cpp102 auto properties = pldm::utils::DBusHandler().getDbusPropertiesVariant( in getMctpEndpointProps() local
105 if (properties.contains(MCTPEndpoint::property_names::network_id) && in getMctpEndpointProps()
106 properties.contains(MCTPEndpoint::property_names::eid) && in getMctpEndpointProps()
107 properties.contains( in getMctpEndpointProps()
111 properties.at(MCTPEndpoint::property_names::network_id)); in getMctpEndpointProps()
113 properties.at(MCTPEndpoint::property_names::eid)); in getMctpEndpointProps()
114 auto types = std::get<std::vector<uint8_t>>(properties.at( in getMctpEndpointProps()
135 auto properties = pldm::utils::DBusHandler().getDbusPropertiesVariant( in getEndpointUUIDProp() local
138 if (properties.contains("UUID")) in getEndpointUUIDProp()
140 return std::get<UUID>(properties.at("UUID")); in getEndpointUUIDProp()
[all …]
/openbmc/openbmc/poky/meta/recipes-connectivity/connman/connman-gnome/
H A Dnull_check_for_ipv4_config.patch11 Index: git/properties/ethernet.c
13 --- git.orig/properties/ethernet.c
14 +++ git/properties/ethernet.c
24 Index: git/properties/wifi.c
26 --- git.orig/properties/wifi.c
27 +++ git/properties/wifi.c
/openbmc/openbmc/meta-yadro/meta-nicole/recipes-phosphor/vpd/
H A Dnicole-openpower-fru-properties-native.bb1 SUMMARY = "FRU properties config for openpower-vpd-parser"
9 SRC_URI += "file://properties.yaml"
11 PROVIDES += "virtual/openpower-fru-properties"
19 install properties.yaml ${DEST}/out.yaml
/openbmc/openpower-debug-collector/dump/
H A Ddump_monitor.cpp17 const sdbusplus::message::object_path& path, const PropertyMap& properties) in executeCollectionScript() argument
43 auto errorLogIdIt = properties.find("ErrorLogId"); in executeCollectionScript()
44 if (errorLogIdIt != properties.end()) in executeCollectionScript()
51 auto failingUnitIdIt = properties.find("FailingUnitId"); in executeCollectionScript()
52 if (failingUnitIdIt != properties.end()) in executeCollectionScript()
176 const PropertyMap& properties) in initiateDumpCollection() argument
183 auto systemImpactIt = properties.find("SystemImpact"); in initiateDumpCollection()
184 if (systemImpactIt != properties.end() && in initiateDumpCollection()
197 executeCollectionScript(path, properties); in initiateDumpCollection()
/openbmc/phosphor-host-ipmid/app/
H A Dwatchdog_service.cpp62 std::map<std::string, std::variant<bool, uint64_t, std::string>> properties; in getProperties() local
66 response.read(properties); in getProperties()
84 wdProp.initialized = std::get<bool>(properties.at("Initialized")); in getProperties()
85 wdProp.enabled = std::get<bool>(properties.at("Enabled")); in getProperties()
87 std::get<std::string>(properties.at("ExpireAction"))); in getProperties()
89 std::get<std::string>(properties.at("CurrentTimerUse"))); in getProperties()
91 std::get<std::string>(properties.at("ExpiredTimerUse"))); in getProperties()
93 wdProp.interval = std::get<uint64_t>(properties.at("Interval")); in getProperties()
95 std::get<uint64_t>(properties.at("TimeRemaining")); in getProperties()
/openbmc/phosphor-host-ipmid/
H A Dread_fru_data.cpp48 ipmi::PropertyMap properties; in readAllProperties() local
71 reply.read(properties); in readAllProperties()
81 return properties; in readAllProperties()
149 for (auto& properties : intf.second) in readDataFromInventory() local
151 auto iter = allProp.find(properties.first); in readDataFromInventory()
154 data[properties.second.section].emplace( in readDataFromInventory()
155 properties.second.property, in readDataFromInventory()
157 std::get<std::string>(allProp[properties.first]))); in readDataFromInventory()
/openbmc/phosphor-pid-control/test/
H A Dhelpers.hpp45 const std::vector<std::string>& properties, double* index) in SetupDbusObject() argument
54 if (!properties.empty()) in SetupDbusObject()
60 .Times(properties.size()) in SetupDbusObject()
65 EXPECT_STREQ(properties[(*index)++].c_str(), names[0]); in SetupDbusObject()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Ddbus_watcher.hpp186 DBusPropertyMap properties; in propChanged() local
188 msg.read(interface, properties); in propChanged()
190 auto prop = properties.find(_name); in propChanged()
191 if (prop != properties.end()) in propChanged()
315 auto properties = in read() local
318 _setFunc(properties); in read()
333 DBusPropertyMap properties; in propChanged() local
335 msg.read(interface, properties); in propChanged()
337 _setFunc(properties); in propChanged()
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/
H A Dphosphor-ipmi-fru-properties-native.bb1 SUMMARY = "FRU properties config for ipmi-fru-parser"
4 PROVIDES += "virtual/phosphor-ipmi-fru-properties"
7 SRC_URI += "file://extra-properties.yaml"
21 install extra-properties.yaml ${DEST}

12345678910>>...30