Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 4519) sorted by relevance

12345678910>>...181

/openbmc/bios-settings-mgr/src/
H A Dmanager.cpp42 std::get<1>(iter->second) = value; in setAttribute()
50 std::get<0>(attributeValue) = AttributeType::Integer; in setAttribute()
54 std::get<0>(attributeValue) = AttributeType::String; in setAttribute()
57 std::get<1>(attributeValue) = value; in setAttribute()
73 std::get<0>(value) = in getAttribute()
74 std::get<static_cast<uint8_t>(Index::attributeType)>(iter->second); in getAttribute()
75 std::get<1>(value) = in getAttribute()
76 std::get<static_cast<uint8_t>(Index::currentValue)>(iter->second); in getAttribute()
82 std::get<2>(value) = std::get<1>(pendingIter->second); in getAttribute()
84 else if (std::get_if<std::string>(&std::get<1>(value))) in getAttribute()
[all …]
/openbmc/phosphor-dbus-monitor/src/templates/
H A Dgenerated.mako.hpp36 static auto& get() in get() function
52 static auto& get() in get() function
68 static auto& get() in get() function
84 static auto& get() in get() function
100 static auto& get() in get() function
116 static auto& get() in get() function
127 static auto& get() in get() function
151 static auto& get() in get() function
162 ConfigPaths::get()[${i[0]}], in get()
163 ConfigInterfaces::get()[${i[2]}], in get()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_dma.c104 uint32_t get = nvif_rd32(chan->userd, 0x88); in nv50_dma_push_wait() local
105 if (get != prev_get) { in nv50_dma_push_wait()
106 prev_get = get; in nv50_dma_push_wait()
116 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait()
135 int get = READ_GET(chan, &prev_get, &cnt); in nv50_dma_wait() local
136 if (unlikely(get < 0)) { in nv50_dma_wait()
137 if (get == -EINVAL) in nv50_dma_wait()
140 return get; in nv50_dma_wait()
143 if (get <= chan->dma.cur) { in nv50_dma_wait()
150 get = READ_GET(chan, &prev_get, &cnt); in nv50_dma_wait()
[all …]
/openbmc/phosphor-hwmon/test/
H A Dsensor_unittest.cpp18 const char* EnvImpl::get(const char* key) const in get() function in env::EnvImpl
20 return mockEnv.get(key); in get()
55 EXPECT_CALL(env::mockEnv, get(StrEq("GPIOCHIP_temp5"))) in TEST_F()
57 EXPECT_CALL(env::mockEnv, get(StrEq("GPIO_temp5"))).WillOnce(Return("")); in TEST_F()
60 EXPECT_CALL(env::mockEnv, get(StrEq("GAIN_temp5"))).WillOnce(Return("")); in TEST_F()
61 EXPECT_CALL(env::mockEnv, get(StrEq("OFFSET_temp5"))).WillOnce(Return("")); in TEST_F()
62 EXPECT_CALL(env::mockEnv, get(StrEq("REMOVERCS_temp5"))) in TEST_F()
66 std::make_unique<sensor::Sensor>(sensorKey, hwmonio_mock.get(), path); in TEST_F()
87 EXPECT_CALL(env::mockEnv, get(StrEq("GPIOCHIP_temp5"))) in TEST_F()
89 EXPECT_CALL(env::mockEnv, get(StrEq("GPIO_temp5"))).WillOnce(Return("5")); in TEST_F()
[all …]
/openbmc/qemu/tests/functional/
H A Dtest_x86_cpu_model_versions.py121 self.assertEqual(cpus['Cascadelake-Server'].get('alias-of'),
129 self.assertEqual(cpus['qemu64'].get('alias-of'), 'qemu64-v1',
137 self.assertEqual(cpus["Haswell"].get('alias-of'),
140 self.assertEqual(cpus["Haswell-noTSX"].get('alias-of'),
143 self.assertEqual(cpus["Haswell-IBRS"].get('alias-of'),
146 self.assertEqual(cpus["Haswell-noTSX-IBRS"].get('alias-of'),
150 self.assertEqual(cpus["Broadwell"].get('alias-of'),
153 self.assertEqual(cpus["Broadwell-noTSX"].get('alias-of'),
156 self.assertEqual(cpus["Broadwell-IBRS"].get('alias-of'),
159 self.assertEqual(cpus["Broadwell-noTSX-IBRS"].get('alias-of'),
[all …]
/openbmc/openpower-hw-diags/analyzer/ras-data/
H A Dras-data-parser.cpp61 auto type = a.at("type").get<std::string>(); in __checkActionForFlag()
66 auto name = a.at("name").get<std::string>(); in __checkActionForFlag()
76 auto name = a.at("name").get<std::string>(); in __checkActionForFlag()
142 .get<std::vector<std::string>>(); in isFlagSet()
196 o_version = data.at("version").get<unsigned int>(); in getVersion()
230 auto version = schema.at("version").get<unsigned int>(); in initDataFiles()
265 auto version = data.at("version").get<unsigned int>(); in initDataFiles()
278 std::stoul(data.at("model_ec").get<std::string>(), 0, 16); in initDataFiles()
313 i_data.at("signatures").at(id).at(bit).at(inst).get<std::string>(); in parseSignature()
343 auto busType = m.at(bus.at("type").get<std::string>()); in parseBus()
[all …]
/openbmc/phosphor-net-ipmid/sol/
H A Dsol_manager.cpp48 readSize = cmd.get(); in consoleInputHandler()
154 progress = std::get<uint8_t>(properties["Progress"]); in updateSOLParameter()
156 enable = std::get<bool>(properties["Enable"]); in updateSOLParameter()
158 forceEncrypt = std::get<bool>(properties["ForceEncryption"]); in updateSOLParameter()
160 forceAuth = std::get<bool>(properties["ForceAuthentication"]); in updateSOLParameter()
163 std::get<uint8_t>(properties["Privilege"])); in updateSOLParameter()
166 std::get<uint8_t>((properties["AccumulateIntervalMS"])) * in updateSOLParameter()
169 sendThreshold = std::get<uint8_t>(properties["Threshold"]); in updateSOLParameter()
171 retryCount = std::get<uint8_t>(properties["RetryCount"]); in updateSOLParameter()
173 retryInterval = std::get<uint8_t>(properties["RetryIntervalMS"]) * in updateSOLParameter()
[all …]
/openbmc/openbmc-test-automation/lib/
H A Dipmi_utils.robot19 #### raw cmd for get device ID.
27 ## Waiting time to get KCS interface enabled.
31 #### raw cmd for get device GUID.
34 #### raw cmd for get IP addr.
37 #### raw cmd for get IP addr src.
40 #### raw cmd for get Dot1Q details.
43 #### raw cmd for get SDR Info.
44 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['SDR_Info']['get'][0]}
46 #### raw cmd for get Chassis status.
47 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['Chassis_status']['get'][0]}
[all …]
/openbmc/ibm-logging/test/
H A Dtest_policy.cpp243 ASSERT_EQ((*details).get().ceid, "XYZ222"); in TEST_F()
244 ASSERT_EQ((*details).get().msg, "Error XYZ222"); in TEST_F()
262 ASSERT_EQ((*details).get().ceid, "CCCCCC"); in TEST_F()
263 ASSERT_EQ((*details).get().msg, "Error CCCCCC"); in TEST_F()
284 ASSERT_EQ(std::get<policy::EIDField>(values), "ABCD1234"); in TEST_F()
285 ASSERT_EQ(std::get<policy::MsgField>(values), "Error ABCD1234"); in TEST_F()
296 ASSERT_EQ(std::get<policy::EIDField>(values), "BBBBBB"); in TEST_F()
297 ASSERT_EQ(std::get<policy::MsgField>(values), "Error BBBBBB"); in TEST_F()
309 ASSERT_EQ(std::get<policy::EIDField>(values), "DDDDDDDD"); in TEST_F()
310 ASSERT_EQ(std::get<policy::MsgField>(values), "Error DDDDDDDD"); in TEST_F()
[all …]
/openbmc/phosphor-fan-presence/control/
H A Dzone.cpp55 _fullSpeed(std::get<fullSpeedPos>(def)),
56 _zoneNum(std::get<zoneNumPos>(def)),
57 _defFloorSpeed(std::get<floorSpeedPos>(def)),
58 _defCeilingSpeed(std::get<fullSpeedPos>(def)),
59 _incDelay(std::get<incDelayPos>(def)),
60 _decInterval(std::get<decIntervalPos>(def)),
64 auto& fanDefs = std::get<fanListPos>(def);
75 for (auto& hand : std::get<handlerPos>(def))
92 for (auto& ssEvent : std::get<setSpeedEventsPos>(def))
147 return name == std::get<namePos>(entry); in removeService()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-raspberrypi-exp.c57 struct gpio_get_config get; in rpi_exp_gpio_get_polarity() local
62 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_get_polarity()
65 &get, sizeof(get)); in rpi_exp_gpio_get_polarity()
66 if (ret || get.gpio != 0) { in rpi_exp_gpio_get_polarity()
68 off, ret, get.gpio); in rpi_exp_gpio_get_polarity()
71 return get.polarity; in rpi_exp_gpio_get_polarity()
135 struct gpio_get_config get; in rpi_exp_gpio_get_direction() local
140 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_get_direction()
143 &get, sizeof(get)); in rpi_exp_gpio_get_direction()
144 if (ret || get.gpio != 0) { in rpi_exp_gpio_get_direction()
[all …]
/openbmc/sdbusplus/include/sdbusplus/
H A Dbus.hpp178 int r = _intf->sd_bus_flush(_bus.get()); in flush()
188 _intf->sd_bus_close(_bus.get()); in close()
194 int r = _intf->sd_bus_is_open(_bus.get()); in is_open()
208 int r = _intf->sd_bus_wait(_bus.get(), timeout_us); in wait()
225 int r = _intf->sd_bus_process(_bus.get(), &m); in process()
243 int r = _intf->sd_bus_process(_bus.get(), nullptr); in process_discard()
275 _bus.get(), service, in request_name()
296 int r = _intf->sd_bus_message_new_method_call(_bus.get(), &m, service, in new_method_call()
317 int r = _intf->sd_bus_message_new_signal(_bus.get(), &m, objpath, in new_signal()
343 _intf->sd_bus_call(_bus.get(), m.get(), timeout_us, &error, &reply); in call()
[all …]
H A Dmessage.hpp110 _intf(other._intf), _msg(sd_bus_message_ref(other._msg.get())) in message()
119 _msg.reset(sd_bus_message_ref(other._msg.get())); in operator =()
144 sdbusplus::message::append(_intf, _msg.get(), in append()
156 sdbusplus::message::read(_intf, _msg.get(), in read()
204 return _intf->sd_bus_message_get_signature(_msg.get(), true); in get_signature()
213 return _intf->sd_bus_message_get_path(_msg.get()); in get_path()
222 return _intf->sd_bus_message_get_interface(_msg.get()); in get_interface()
231 return _intf->sd_bus_message_get_member(_msg.get()); in get_member()
240 return _intf->sd_bus_message_get_destination(_msg.get()); in get_destination()
249 return _intf->sd_bus_message_get_sender(_msg.get()); in get_sender()
[all …]
/openbmc/phosphor-fan-presence/presence/
H A Danyof.cpp51 std::get<1>(fan) + "-anyOf", in AnyOf()
67 return std::get<sensorPos>(s).get() == sensor; in stateChanged()
73 [](const auto& s) { return std::get<presentPos>(s); }); in stateChanged()
76 std::get<presentPos>(*sit) = present; in stateChanged()
79 [](const auto& s) { return std::get<presentPos>(s); }); in stateChanged()
101 std::get<conflictPos>(s) = false; in stateChanged()
116 auto& sensor = std::get<sensorPos>(s); in monitor()
117 std::get<presentPos>(s) = sensor.get().start(); in monitor()
121 return std::get<presentPos>(s); in monitor()
144 return std::get<presentPos>(s); in checkSensorConflicts()
[all …]
/openbmc/phosphor-networkd/src/
H A Ddhcp_configuration.cpp26 parent.get().manager.get().getConfDir(), parent.get().interfaceName())); in Configuration()
45 parent.get().writeConfigurationFile(); in sendHostNameEnabled()
46 parent.get().reloadConfigs(); in sendHostNameEnabled()
58 parent.get().writeConfigurationFile(); in hostNameEnabled()
59 parent.get().reloadConfigs(); in hostNameEnabled()
72 parent.get().writeConfigurationFile(); in ntpEnabled()
73 parent.get().reloadConfigs(); in ntpEnabled()
86 parent.get().writeConfigurationFile(); in dnsEnabled()
87 parent.get().reloadConfigs(); in dnsEnabled()
100 parent.get().writeConfigurationFile(); in domainEnabled()
[all …]
/openbmc/u-boot/test/py/tests/
H A Dtest_net.py69 init_usb = u_boot_console.config.env.get('env__net_uses_usb', False)
73 init_pci = u_boot_console.config.env.get('env__net_uses_pci', False)
85 test_dhcp = u_boot_console.config.env.get('env__net_dhcp_server', False)
104 env_vars = u_boot_console.config.env.get('env__net_static_env_vars', None)
143 f = u_boot_console.config.env.get('env__net_tftp_readable_file', None)
147 addr = f.get('addr', None)
155 sz = f.get('size', None)
160 expected_crc = f.get('crc32', None)
164 if u_boot_console.config.buildconfig.get('config_cmd_crc32', 'n') != 'y':
184 f = u_boot_console.config.env.get('env__net_nfs_readable_file', None)
[all …]
/openbmc/phosphor-fan-presence/control/json/triggers/
H A Dhandlers.hpp33 if (intf != std::get<Intf>(obj)) in propertiesChanged()
41 auto itProp = props.find(std::get<Prop>(obj)); in propertiesChanged()
48 mgr.setProperty(std::get<Path>(obj), std::get<Intf>(obj), in propertiesChanged()
49 std::get<Prop>(obj), itProp->second); in propertiesChanged()
66 if (static_cast<const std::string&>(op) != std::get<Path>(obj)) in interfacesAdded()
75 auto itIntf = intfProps.find(std::get<Intf>(obj)); in interfacesAdded()
82 auto itProp = itIntf->second.find(std::get<Prop>(obj)); in interfacesAdded()
89 mgr.setProperty(std::get<Path>(obj), std::get<Intf>(obj), in interfacesAdded()
90 std::get<Prop>(obj), itProp->second); in interfacesAdded()
107 if (static_cast<const std::string&>(op) != std::get<Path>(obj)) in interfacesRemoved()
[all …]
/openbmc/sdeventplus/src/sdeventplus/source/
H A Dbase.cpp14 sd_event_source* Base::get() const in get() function in sdeventplus::source::Base
29 get(), &description)); in get_description()
37 get(), description)); in set_description()
46 get(), callback ? prepareCallback : nullptr)); in set_prepare()
60 event.getSdEvent()->sd_event_source_get_pending(get())); in get_pending()
68 event.getSdEvent()->sd_event_source_get_priority(get(), &priority)); in get_priority()
76 event.getSdEvent()->sd_event_source_set_priority(get(), priority)); in set_priority()
84 event.getSdEvent()->sd_event_source_get_enabled(get(), &enabled)); in get_enabled()
92 get(), static_cast<int>(enabled))); in set_enabled()
99 event.getSdEvent()->sd_event_source_get_floating(get())); in get_floating()
[all …]
/openbmc/openbmc/poky/scripts/esdk-tools/
H A Drunqemu311 def get(self, key): member in BaseConfig
313 return self.d.get(key)
423 if self.get('MACHINE') == arg:
425 elif self.get('MACHINE') and self.get('MACHINE') != arg:
426 raise RunQemuError("Maybe conflicted MACHINE: %s vs %s" % (self.get('MACHINE'), arg))
438 deploy = self.get('DEPLOY_DIR_IMAGE')
439 image_link_name = self.get('IMAGE_LINK_NAME')
440 bbchild = deploy and self.get('OE_TMPDIR')
446 if self.get('OECORE_NATIVE_SYSROOT'):
569 if unknown_arg and self.get('MACHINE') != unknown_arg:
[all …]
/openbmc/openbmc/poky/scripts/
H A Drunqemu311 def get(self, key): member in BaseConfig
313 return self.d.get(key)
423 if self.get('MACHINE') == arg:
425 elif self.get('MACHINE') and self.get('MACHINE') != arg:
426 raise RunQemuError("Maybe conflicted MACHINE: %s vs %s" % (self.get('MACHINE'), arg))
438 deploy = self.get('DEPLOY_DIR_IMAGE')
439 image_link_name = self.get('IMAGE_LINK_NAME')
440 bbchild = deploy and self.get('OE_TMPDIR')
446 if self.get('OECORE_NATIVE_SYSROOT'):
569 if unknown_arg and self.get('MACHINE') != unknown_arg:
[all …]
/openbmc/phosphor-fan-presence/monitor/
H A Djson_parser.cpp80 auto tgClass = stg["class"].get<std::string>(); in getTrustGrps()
97 in_trust = member["in_trust"].get<bool>(); in getTrustGrps()
100 member["name"].get<std::string>(), in_trust}); in getTrustGrps()
146 targetIntf = sensor["target_interface"].get<std::string>(); in getSensorDefs()
152 targetPath = sensor["target_path"].get<std::string>(); in getSensorDefs()
158 factor = sensor["factor"].get<double>(); in getSensorDefs()
164 offset = sensor["offset"].get<int64_t>(); in getSensorDefs()
170 threshold = sensor["threshold"].get<size_t>(); in getSensorDefs()
176 ignoreAboveMax = sensor["ignore_above_max"].get<bool>(); in getSensorDefs()
180 .name = sensor["name"].get<std::string>(), in getSensorDefs()
[all …]
/openbmc/pldm/pldmd/
H A Dpldmd.cpp226 &instanceIdDb, pldmTransport.getEventSource(), pdrRepo.get(), in main()
258 pldmTransport.getEventSource(), hostEID, event, pdrRepo.get(), in main()
259 EVENTS_JSONS_DIR, entityTree.get(), bmcEntityTree.get(), in main()
271 FRU_JSONS_DIR, FRU_MASTER_JSON, pdrRepo.get(), entityTree.get(), in main()
272 bmcEntityTree.get()); in main()
305 &dbusHandler, hostEID, &instanceIdDb, PDR_JSONS_DIR, pdrRepo.get(), in main()
306 hostPDRHandler.get(), dbusToPLDMEventHandler.get(), fruHandler.get(), in main()
307 platformConfigHandler.get(), &reqHandler, event, true, in main()
312 platformConfigHandler.get(), requestPLDMServiceName); in main()
318 &dbusHandler, pldmTransport.getEventSource(), pdrRepo.get(), in main()
[all …]
/openbmc/google-ipmi-sys/test/
H A Dgoogle_accel_oob_unittest.cpp49 const auto response = std::get<0>(r); in TEST()
52 const auto payload = std::get<1>(r); in TEST()
55 const auto reply_cmd = std::get<0>(payload_tuple); in TEST()
57 const auto reply_buff = std::get<1>(payload_tuple); in TEST()
91 const auto response = std::get<0>(r); in TEST()
94 const auto payload = std::get<1>(r); in TEST()
97 const auto reply_cmd = std::get<0>(payload_tuple); in TEST()
99 const auto reply_buff = std::get<1>(payload_tuple); in TEST()
152 const auto response = std::get<0>(r); in TEST()
155 const auto payload = std::get<1>(r); in TEST()
[all …]
/openbmc/bmcweb/test/redfish-core/include/
H A Dprivileges_test.cpp32 OperationMap entityPrivileges{{boost::beast::http::verb::get, {{"Login"}}}}; in TEST()
35 boost::beast::http::verb::get, entityPrivileges, userPrivileges)); in TEST()
41 OperationMap entityPrivileges{{boost::beast::http::verb::get, {}}}; in TEST()
44 boost::beast::http::verb::get, entityPrivileges, userPrivileges)); in TEST()
51 {boost::beast::http::verb::get, {{"ConfigureManager"}}}}; in TEST()
54 boost::beast::http::verb::get, entityPrivileges, userPrivileges)); in TEST()
62 {boost::beast::http::verb::get, in TEST()
66 boost::beast::http::verb::get, entityPrivileges, userPrivileges)); in TEST()
73 {boost::beast::http::verb::get, in TEST()
77 boost::beast::http::verb::get, entityPrivileges, userPrivileges)); in TEST()
[all …]
/openbmc/phosphor-power/phosphor-regulators/tools/
H A Dvalidate-regulators-config.py51 for rule in config_json.get("rules", {}):
62 for chassis in config_json.get("chassis", {}):
63 for device in chassis.get("devices", {}):
80 if len(object.get("masks", [])) != len(object.get("values", [])):
85 + str(object.get("masks", []))
87 + str(object.get("values", []))
94 if len(object.get("masks", [])) != len(object.get("values", [])):
99 + str(object.get("masks", []))
101 + str(object.get("values", []))
193 for action in rule_json.get("actions", {}):
[all …]

12345678910>>...181