Home
last modified time | relevance | path

Searched refs:ec (Results 1 – 25 of 430) sorted by relevance

12345678910>>...18

/openbmc/u-boot/drivers/misc/
H A Dcros_ec_sandbox.c99 struct ec_state *ec = &s_state; in cros_ec_read_state() local
104 ec->current_image = EC_IMAGE_RO; in cros_ec_read_state()
109 ec->current_image = fdtdec_get_int(blob, node, "current-image", in cros_ec_read_state()
112 if (prop && len == sizeof(ec->vbnv_context)) in cros_ec_read_state()
113 memcpy(ec->vbnv_context, prop, len); in cros_ec_read_state()
117 ec->flash_data_len = len; in cros_ec_read_state()
118 ec->flash_data = os_malloc(len); in cros_ec_read_state()
119 if (!ec->flash_data) in cros_ec_read_state()
121 memcpy(ec->flash_data, prop, len); in cros_ec_read_state()
139 struct ec_state *ec = g_state; in cros_ec_write_state() local
[all …]
/openbmc/service-config-manager/src/
H A Dutils.cpp18 void checkAndThrowInternalFailure(boost::system::error_code& ec, in checkAndThrowInternalFailure() argument
21 if (ec) in checkAndThrowInternalFailure()
23 std::string msgToLog = ec.message() + (msg.empty() ? "" : " - " + msg); in checkAndThrowInternalFailure()
35 boost::system::error_code ec; in systemdDaemonReload() local
36 conn->yield_method_call<>(yield, ec, sysdService, sysdObjPath, sysdMgrIntf, in systemdDaemonReload()
38 checkAndThrowInternalFailure(ec, "daemon-reload operation failed"); in systemdDaemonReload()
59 boost::system::error_code ec; in systemdUnitAction() local
61 yield, ec, sysdService, sysdObjPath, sysdMgrIntf, actionMethod, in systemdUnitAction()
63 checkAndThrowInternalFailure(ec, in systemdUnitAction()
71 ec.clear(); in systemdUnitAction()
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Dled.hpp47 [asyncResp](const boost::system::error_code& ec, const bool blinking) { in getIndicatorLedState() argument
50 if (ec == boost::system::errc::invalid_argument) in getIndicatorLedState()
59 if (!ec && blinking) in getIndicatorLedState()
136 ledBlinkng](const boost::system::error_code& ec) mutable { in setIndicatorLedState() argument
137 if (ec) in setIndicatorLedState()
171 [asyncResp](const boost::system::error_code& ec, const bool blinking) { in getSystemLocationIndicatorActive() argument
174 if (ec == boost::system::errc::invalid_argument) in getSystemLocationIndicatorActive()
183 if (!ec && blinking) in getSystemLocationIndicatorActive()
230 [asyncResp, ledState](const boost::system::error_code& ec) { in setSystemLocationIndicatorActive() argument
231 if (ec) in setSystemLocationIndicatorActive()
[all …]
H A Dpower_supply.hpp72 const std::string& chassisId, const boost::system::error_code& ec, in doPowerSupplyCollection()
75 if (ec) in doPowerSupplyCollection()
77 if (ec.value() == boost::system::errc::io_error) in doPowerSupplyCollection()
83 if (ec.value() != EBADR) in doPowerSupplyCollection()
85 BMCWEB_LOG_ERROR("DBUS response error{}", ec.value()); in doPowerSupplyCollection()
149 const boost::system::error_code& ec, in handlePowerSupplyCollectionGet()
151 doPowerSupplyCollection(asyncResp, chassisId, ec, subtreePaths); in handlePowerSupplyCollectionGet()
170 const std::string& powerSupplyId, const boost::system::error_code& ec, in afterGetValidPowerSupplyPath()
175 if (ec) in afterGetValidPowerSupplyPath()
177 if (ec in afterGetValidPowerSupplyPath()
71 doPowerSupplyCollection(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreePathsResponse & subtreePaths) doPowerSupplyCollection() argument
169 afterGetValidPowerSupplyPath(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & powerSupplyId,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree,const std::function<void (const std::string & powerSupplyPath,const std::string & service)> & callback) afterGetValidPowerSupplyPath() argument
230 __anonc983e6900402(const boost::system::error_code& ec, const bool value) getPowerSupplyState() argument
257 __anonc983e6900502(const boost::system::error_code& ec, const bool value) getPowerSupplyHealth() argument
284 __anonc983e6900602(const boost::system::error_code& ec, const dbus::utility::DBusPropertiesMap& propertiesList) getPowerSupplyAsset() argument
378 __anonc983e6900702(const boost::system::error_code& ec, const std::string& value) getPowerSupplyLocation() argument
397 handleGetEfficiencyResponse(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const boost::system::error_code & ec,uint32_t value) handleGetEfficiencyResponse() argument
425 handlePowerSupplyAttributesSubTreeResponse(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree) handlePowerSupplyAttributesSubTreeResponse() argument
473 __anonc983e6900a02(const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) getEfficiencyPercent() argument
[all...]
H A Dassembly.hpp60 const boost::system::error_code& ec, const std::string& value) { in getAssemblyLocationCode() argument
61 if (ec) in getAssemblyLocationCode()
63 if (ec.value() != EBADR) in getAssemblyLocationCode()
66 ec.value(), assembly); in getAssemblyLocationCode()
88 assembly](const boost::system::error_code& ec, const bool value) { in getAssemblyState() argument
89 if (ec) in getAssemblyState()
91 if (ec.value() != EBADR) in getAssemblyState()
93 BMCWEB_LOG_ERROR("DBUS response error: {}", ec.value()); in getAssemblyState()
117 [asyncResp, assemblyJsonPtr](const boost::system::error_code& ec, in getAssemblyHealth()
119 if (ec) in getAssemblyHealth()
[all …]
/openbmc/sdbusplus/example/
H A Dasio-example.cpp30 boost::system::error_code ec; in fooYield() local
33 yield, ec, "xyz.openbmc_project.asio-test", "/xyz/openbmc_project/test", in fooYield()
35 if (ec || testCount != (test + 1)) in fooYield()
37 std::cout << "call to foo failed: ec = " << ec << '\n'; in fooYield()
61 boost::system::error_code ec; in do_start_async_method_call_one() local
64 yield, ec, "xyz.openbmc_project.asio-test", "/xyz/openbmc_project/test", in do_start_async_method_call_one()
68 yield, ec, "xyz.openbmc_project.asio-test", "/xyz/openbmc_project/test", in do_start_async_method_call_one()
71 if (!ec && std::get<int>(testValue) == 24) in do_start_async_method_call_one()
77 std::cout << "ec = " << ec << ": " << std::get<int>(testValue) << "\n"; in do_start_async_method_call_one()
80 yield, ec, "xyz.openbmc_project.asio-test", "/xyz/openbmc_project/test", in do_start_async_method_call_one()
[all …]
H A Dregister-property.cpp59 [this](boost::system::error_code ec, uint32_t) { in asyncReadPropertyWithIncorrectType() argument
60 if (ec) in asyncReadPropertyWithIncorrectType()
64 << ec << "\n"; in asyncReadPropertyWithIncorrectType()
79 [this](boost::system::error_code ec, std::string value) { in asyncReadProperties() argument
80 if (ec) in asyncReadProperties()
91 [this](boost::system::error_code ec, std::string value) { in asyncReadProperties() argument
92 if (ec) in asyncReadProperties()
106 [this](const boost::system::error_code& ec) { in asyncChangeProperty() argument
107 if (ec) in asyncChangeProperty()
111 << ec << "\n"; in asyncChangeProperty()
[all …]
/openbmc/phosphor-bmc-code-mgmt/bmc/
H A Dserialize.cpp28 std::error_code ec; in storePriority() local
30 if (!fs::is_directory(path, ec)) in storePriority()
32 if (fs::exists(path, ec)) in storePriority()
36 fs::remove_all(path, ec); in storePriority()
38 fs::create_directories(path, ec); in storePriority()
49 std::error_code ec; in storePurpose() local
51 if (!fs::is_directory(path, ec)) in storePurpose()
53 if (fs::exists(path, ec)) in storePurpose()
57 fs::remove_all(path, ec); in storePurpose()
59 fs::create_directories(path, ec); in storePurpose()
[all …]
/openbmc/telemetry/tests/src/
H A Dtest_trigger_manager.cpp39 [&addTriggerPromise](boost::system::error_code ec, in addTrigger()
41 addTriggerPromise.set_value({ec, path}); in addTrigger()
84 auto [ec, path] = addTrigger(TriggerParams()); in TEST_F()
85 EXPECT_THAT(ec.value(), Eq(boost::system::errc::success)); in TEST_F()
99 auto [ec, path] = addTrigger(triggerParamsDiscrete); in TEST_F()
100 EXPECT_THAT(ec.value(), Eq(boost::system::errc::success)); in TEST_F()
111 auto [ec, path] = addTrigger(triggerParamsDiscrete); in TEST_F()
112 EXPECT_THAT(ec.value(), Eq(boost::system::errc::success)); in TEST_F()
123 auto [ec, path] = addTrigger(TriggerParams()); in TEST_F()
124 EXPECT_THAT(ec.value(), Eq(boost::system::errc::file_exists)); in TEST_F()
[all …]
H A Dtest_report_manager.cpp66 [&addReportPromise](boost::system::error_code ec, in addReport()
68 addReportPromise.set_value({ec, path}); in addReport()
127 auto [ec, path] = addReport(reportParams); in TEST_F()
128 EXPECT_THAT(ec.value(), Eq(boost::system::errc::success)); in TEST_F()
140 auto [ec, path] = addReport(reportParams); in TEST_F()
141 EXPECT_THAT(ec.value(), Eq(boost::system::errc::success)); in TEST_F()
155 auto [ec, path] = addReport( in TEST_F()
160 EXPECT_THAT(ec.value(), Eq(boost::system::errc::success)); in TEST_F()
172 auto [ec, path] = addReport(reportParams); in TEST_F()
173 EXPECT_THAT(ec.value(), Eq(boost::system::errc::success)); in TEST_F()
[all …]
/openbmc/phosphor-host-ipmid/
H A Dsbmrhandler.cpp98 boost::system::error_code ec = in updateBootProgressProperty() local
100 if (ec.value()) in updateBootProgressProperty()
103 ec.message()); in updateBootProgressProperty()
108 ec = ipmi::setDbusProperty(ctx, sbmrHostStateObject.second, in updateBootProgressProperty()
111 if (ec.value()) in updateBootProgressProperty()
115 "ERROR", ec.message()); in updateBootProgressProperty()
128 boost::system::error_code ec = in updateBootProgressLastUpdateProperty() local
130 if (ec.value()) in updateBootProgressLastUpdateProperty()
133 ec.message()); in updateBootProgressLastUpdateProperty()
138 ec = ipmi::setDbusProperty(ctx, sbmrHostStateObject.second, in updateBootProgressLastUpdateProperty()
[all …]
H A Dglobalhandler.cpp19 boost::system::error_code ec = ipmi::getDbusObject( in ipmiGlobalReset() local
22 if (!ec) in ipmiGlobalReset()
25 ec = ipmi::getService(ctx, BMCState::interface, bmcStateObj.first, in ipmiGlobalReset()
27 if (!ec) in ipmiGlobalReset()
29 ec = ipmi::setDbusProperty( in ipmiGlobalReset()
35 if (ec) in ipmiGlobalReset()
37 lg2::error("Exception in Global Reset: {ERROR}", "ERROR", ec.message()); in ipmiGlobalReset()
/openbmc/bmcweb/http/
H A Dwebsocket_impl.hpp150 const boost::beast::error_code& ec, size_t) { in sendEx() argument
162 if (ec) in sendEx()
165 ec); in sendEx()
183 [self(shared_from_this())](const boost::system::error_code& ec) { in close() argument
184 if (ec == boost::asio::error::operation_aborted) in close()
188 if (ec) in close()
190 BMCWEB_LOG_ERROR("Error closing websocket {}", ec); in close()
204 const boost::system::error_code& ec) in acceptDone() argument
206 if (ec) in acceptDone()
208 BMCWEB_LOG_ERROR("Error in ws.async_accept {}", ec); in acceptDone()
[all …]
H A Dserver_sent_event_impl.hpp90 const boost::system::error_code& ec, in sendSSEHeaderCallback() argument
94 if (ec) in sendSSEHeaderCallback()
96 BMCWEB_LOG_ERROR("Error sending header{}", ec); in sendSSEHeaderCallback()
116 const boost::system::error_code& ec, size_t bytesRead) in afterReadError() argument
119 if (ec == boost::asio::error::operation_aborted) in afterReadError()
123 if (ec) in afterReadError()
125 BMCWEB_LOG_ERROR("Read error: {}", ec); in afterReadError()
152 const boost::beast::error_code& ec, in doWriteCallback() argument
159 if (ec == boost::asio::error::eof) in doWriteCallback()
166 if (ec) in doWriteCallback()
[all …]
/openbmc/bmcweb/src/
H A Ddbus_utility.cpp36 void logError(const boost::system::error_code& ec) in logError() argument
38 if (ec) in logError()
40 BMCWEB_LOG_ERROR("DBus error: {}, cannot call method", ec); in logError()
67 [callback = std::move(callback)](const boost::system::error_code& ec, in checkDbusPathExists()
69 callback(!ec && !objectNames.empty()); in checkDbusPathExists()
84 const boost::system::error_code& ec, in getSubTree() argument
85 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getSubTree()
100 const boost::system::error_code& ec, in getSubTreePaths() argument
102 callback(ec, subtreePaths); in getSubTreePaths()
119 const boost::system::error_code& ec, in getAssociatedSubTree() argument
[all …]
/openbmc/bmcweb/test/http/
H A Dhttp_body_test.cpp74 boost::system::error_code ec; in TEST() local
76 ec); in TEST()
77 ASSERT_FALSE(ec); in TEST()
81 size_t out = value2.file().read(buffer.data(), buffer.size(), ec); in TEST()
82 ASSERT_FALSE(ec); in TEST()
99 boost::system::error_code ec; in TEST() local
101 ec); in TEST()
102 ASSERT_FALSE(ec); in TEST()
106 size_t out = value2.file().read(buffer.data(), buffer.size(), ec); in TEST()
107 ASSERT_FALSE(ec); in TEST()
[all …]
/openbmc/bmcweb/redfish-core/src/utils/
H A Ddbus_utils.cpp30 const boost::system::error_code& ec, const sdbusplus::message_t& msg) in afterSetProperty() argument
32 if (ec) in afterSetProperty()
34 if (ec.value() == boost::system::errc::permission_denied) in afterSetProperty()
38 if (ec.value() == boost::asio::error::host_unreachable) in afterSetProperty()
51 BMCWEB_LOG_WARNING("DBUS response error: {}", ec); in afterSetProperty()
85 redfishPropertyName, ec); in afterSetProperty()
99 const boost::system::error_code& ec, in afterSetPropertyAction() argument
102 if (ec) in afterSetPropertyAction()
104 if (ec.value() == boost::asio::error::invalid_argument) in afterSetPropertyAction()
121 if (ec.value() == boost::asio::error::host_unreachable) in afterSetPropertyAction()
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Dassembly_utils.hpp43 const boost::system::error_code& ec, in afterGetChassisAssembly() argument
46 if (ec) in afterGetChassisAssembly()
48 if (ec.value() == boost::system::errc::io_error || ec.value() == EBADR) in afterGetChassisAssembly()
51 callback(ec, std::vector<std::string>()); in afterGetChassisAssembly()
55 BMCWEB_LOG_ERROR("DBUS response error {}", ec); in afterGetChassisAssembly()
63 callback(ec, sortedAssemblyList); in afterGetChassisAssembly()
78 std::function<void(const boost::system::error_code& ec, in getChassisAssembly() argument
H A Dsw_utils.hpp87 const boost::system::error_code& ec, in afterGetProperties() argument
90 if (ec) in afterGetProperties()
97 if (ec.value() != EBADR) in afterGetProperties()
99 BMCWEB_LOG_ERROR("error_code = {}", ec); in afterGetProperties()
177 const boost::system::error_code& ec, in afterGetSubtree() argument
180 if (ec) in afterGetSubtree()
182 if (ec.value() != EBADR) in afterGetSubtree()
184 BMCWEB_LOG_ERROR("error_code = {}", ec); in afterGetSubtree()
237 const boost::system::error_code& ec, in afterAssociatedEndpoints() argument
241 if (ec) in afterAssociatedEndpoints()
[all …]
/openbmc/bmcweb/features/virtual_media/
H A Dvm_websocket.hpp88 std::error_code ec; in connect() local
89 if (ec) in connect()
91 BMCWEB_LOG_ERROR("Couldn't connect to nbd-proxy: {}", ec.message()); in connect()
119 [this, self(shared_from_this())](const boost::beast::error_code& ec, in doWrite()
129 if (ec == boost::asio::error::eof) in doWrite()
134 if (ec) in doWrite()
137 BMCWEB_LOG_ERROR("Error in VM socket write {}", ec); in doWrite()
151 const boost::system::error_code& ec, std::size_t bytesRead) { in doRead() argument
153 if (ec) in doRead()
155 BMCWEB_LOG_ERROR("Couldn't read from VM port: {}", ec); in doRead()
[all …]
/openbmc/bmcweb/test/include/
H A Dmultipart_test.cpp21 std::error_code ec; member in __anonca1e12850111::MultipartTest
38 crow::Request reqIn(body, ec); in TEST_F()
73 crow::Request reqIn(body, ec); in TEST_F()
91 crow::Request reqIn(body, ec); in TEST_F()
113 crow::Request reqIn(body, ec); in TEST_F()
132 crow::Request reqIn(body, ec); in TEST_F()
152 crow::Request reqIn(body, ec); in TEST_F()
172 crow::Request reqIn(body, ec); in TEST_F()
191 crow::Request reqIn(body, ec); in TEST_F()
210 crow::Request reqIn(body, ec); in TEST_F()
[all …]
/openbmc/dbus-sensors/src/nvidia-gpu/
H A DMctpRequester.cpp87 void MctpRequester::processRecvMsg(const boost::system::error_code& ec, in processRecvMsg() argument
112 if (ec) in processRecvMsg()
116 "EC", ec.value(), "ER", ec.message()); in processRecvMsg()
117 handleResult(eid, static_cast<std::error_code>(ec), {}); in processRecvMsg()
172 uint8_t eid, const boost::system::error_code& ec, size_t /* length */) in handleSendMsgCompletion() argument
174 if (ec) in handleSendMsgCompletion()
178 "EC", ec.value(), "ER", ec.message()); in handleSendMsgCompletion()
179 handleResult(eid, static_cast<std::error_code>(ec), {}); in handleSendMsgCompletion()
197 expiryTimer.async_wait([this, eid](const boost::system::error_code& ec) { in handleSendMsgCompletion() argument
198 if (ec != boost::asio::error::operation_aborted) in handleSendMsgCompletion()
[all …]
/openbmc/bmcweb/features/serial/
H A Dobmc_console.hpp71 [weak(weak_from_this())](const boost::beast::error_code& ec, in doWrite()
82 if (ec == boost::asio::error::eof) in doWrite()
87 if (ec) in doWrite()
90 ec.message()); in doWrite()
113 const boost::system::error_code& ec, std::size_t bytesRead) { in doRead() argument
120 if (ec) in doRead()
123 ec.message()); in doRead()
136 boost::system::error_code ec; in connect() local
139 hostSocket.assign(proto, fd, ec); in connect()
141 if (ec) in connect()
[all …]
/openbmc/bmcweb/redfish-core/include/
H A Dsnmp_trap_event_clients.hpp35 const boost::system::error_code& ec, in afterGetSnmpTrapClientdata() argument
38 if (ec) in afterGetSnmpTrapClientdata()
40 BMCWEB_LOG_ERROR("D-Bus response error on GetSubTree {}", ec); in afterGetSnmpTrapClientdata()
89 [asyncResp](const boost::system::error_code& ec, in getSnmpTrapClientdata()
91 afterGetSnmpTrapClientdata(asyncResp, ec, properties); in getSnmpTrapClientdata()
100 [asyncResp, id](const boost::system::error_code& ec, in getSnmpTrapClient() argument
102 if (ec) in getSnmpTrapClient()
105 ec); in getSnmpTrapClient()
140 const boost::system::error_code& ec, const sdbusplus::message_t& msg, in afterSnmpClientCreate() argument
143 if (ec) in afterSnmpClientCreate()
[all …]
/openbmc/bmcweb/features/kvm/
H A Dkvm_websocket.hpp38 endpoint, [this, &connIn](const boost::system::error_code& ec) { in KvmSession() argument
39 if (ec) in KvmSession()
43 logPtr(&conn), ec); in KvmSession()
44 if (ec != boost::asio::error::operation_aborted) in KvmSession()
86 [this, weak(weak_from_this())](const boost::system::error_code& ec, in doRead()
95 if (ec) in doRead()
99 logPtr(&conn), ec); in doRead()
100 if (ec != boost::asio::error::operation_aborted) in doRead()
138 [this, weak(weak_from_this())](const boost::system::error_code& ec, in doWrite()
150 if (ec == boost::asio::error::eof) in doWrite()
[all …]

12345678910>>...18