Home
last modified time | relevance | path

Searched full:ec (Results 1 – 25 of 540) sorted by relevance

12345678910>>...22

/openbmc/u-boot/drivers/misc/
H A Dcros_ec_sandbox.c23 * Ultimately it shold be possible to connect an Chrome OS EC emulation
31 * into key scan data, passed back from the EC as key scan messages. The
36 * 3. Save/restore of EC state, so that the vboot context, flash memory
38 * since the EC is supposed to continue running even if the AP resets.
41 * to enter recovery mode. The EC passes this to U-Boot through the normal
47 * 6. Hashing of the EC image, again to support software sync.
50 * the EC image in with U-Boot (Vic has demonstrated a prototype for this).
64 * struct ec_state - Information about the EC state
66 * @vbnv_context: Vboot context data stored by EC
67 * @ec_config: FDT config information about the EC (e.g. flashmap)
[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/u-boot/include/
H A Dcros_ec.h20 struct gpio_desc ec_int; /* GPIO used as EC interrupt line */
51 /* Holds information about the Chrome EC */
53 struct fmap_entry flash; /* Address and size of EC flash */
63 * Read the ID of the CROS-EC device
65 * The ID is a string identifying the CROS-EC device.
67 * @param dev CROS-EC device
75 * Read a keyboard scan from the CROS-EC device
79 * @param dev CROS-EC device
86 * Read which image is currently running on the CROS-EC device.
88 * @param dev CROS-EC device
[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/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/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 Dfabric_adapters.hpp48 [asyncResp](const boost::system::error_code& ec, in getFabricAdapterLocation() argument
50 if (ec) in getFabricAdapterLocation()
52 if (ec.value() != EBADR) in getFabricAdapterLocation()
73 [asyncResp](const boost::system::error_code& ec, const bool present) { in getFabricAdapterAsset()
74 if (ec) in getFabricAdapterAsset() argument
76 if (ec.value() != EBADR) in getFabricAdapterAsset()
99 [asyncResp](const boost::system::error_code& ec, in getFabricAdapterAsset()
101 if (ec) in getFabricAdapterAsset()
103 if (ec.value() != EBADR) in getFabricAdapterAsset()
154 const boost::system::error_code& ec, in getFabricAdapterHealth()
130 __anona410c4d10302(const boost::system::error_code& ec, const bool present) getFabricAdapterState() argument
157 __anona410c4d10402(const boost::system::error_code& ec, const bool functional) getFabricAdapterHealth() argument
210 afterGetValidFabricAdapterPath(const std::string & adapterId,std::function<void (const boost::system::error_code &,const std::string & fabricAdapterPath,const std::string & serviceName)> & callback,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree) afterGetValidFabricAdapterPath() argument
237 getValidFabricAdapterPath(const std::string & adapterId,std::function<void (const boost::system::error_code & ec,const std::string & fabricAdapterPath,const std::string & serviceName)> && callback) getValidFabricAdapterPath() argument
251 afterHandleFabricAdapterGet(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & systemName,const std::string & adapterId,const boost::system::error_code & ec,const std::string & fabricAdapterPath,const std::string & serviceName) afterHandleFabricAdapterGet() argument
307 afterHandleFabricAdapterPatch(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & adapterId,std::optional<bool> locationIndicatorActive,const boost::system::error_code & ec,const std::string & fabricAdapterPath,const std::string & serviceName) afterHandleFabricAdapterPatch() argument
444 afterHandleFabricAdapterHead(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & adapterId,const boost::system::error_code & ec,const std::string & fabricAdapterPath,const std::string & serviceName) afterHandleFabricAdapterHead() argument
[all...]
/openbmc/u-boot/tools/binman/etype/
H A Dcros_ec_rw.py5 # Entry-type module for a Chromium OS EC image (read-write section)
12 """A blob entry which contains a Chromium OS read-write EC image
15 - cros-ec-rw-path: Filename containing the EC image
17 This entry holds a Chromium OS EC (embedded controller) image, for use in
18 updating the EC on startup via software sync.
22 'cros-ec-rw')
/openbmc/u-boot/doc/device-tree-bindings/misc/
H A Dcros-ec.txt8 - compatible = "google,cros-ec"
15 - ec-interrupt : Selects the EC interrupt, defined as a GPIO according
18 containing all 0xff will not be written, since we assume that the EC
22 to the EC (e.g. i2c, spi, lpc). The reg property (as usual) will indicate
30 cros-ec@0 {
32 compatible = "google,cros-ec";
34 ec-interrupt = <&gpio 174 1>;
/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.cpp24 boost::system::error_code ec = ipmi::getDbusObject( in ipmiGlobalReset() local
26 if (!ec) in ipmiGlobalReset()
29 ec = ipmi::getService(ctx, bmcStateIntf, bmcStateObj.first, service); in ipmiGlobalReset()
30 if (!ec) in ipmiGlobalReset()
32 ec = ipmi::setDbusProperty( in ipmiGlobalReset()
37 if (ec) in ipmiGlobalReset()
39 lg2::error("Exception in Global Reset: {ERROR}", "ERROR", ec.message()); in ipmiGlobalReset()
/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/u-boot/drivers/input/
H A DKconfig42 bool "Enable Chrome OS EC keyboard support"
45 Most ARM Chromebooks use an EC to provide access to the keyboard.
46 Messages are used to request key scans from the EC and these are
50 bool "Enable Chrome OS EC keyboard support in SPL"
53 Most ARM Chromebooks use an EC to provide access to the keyboard.
54 Messages are used to request key scans from the EC and these are
58 bool "Enable Chrome OS EC keyboard support in TPL"
61 Most ARM Chromebooks use an EC to provide access to the keyboard.
62 Messages are used to request key scans from the EC and these are
/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()
84 BMCWEB_LOG_ERROR("D-Bus error setting Redfish Property {} 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()
[all …]
/openbmc/bmcweb/src/
H A Ddbus_utility.cpp37 void logError(const boost::system::error_code& ec) in logError() argument
39 if (ec) in logError()
41 BMCWEB_LOG_ERROR("DBus error: {}, cannot call method", ec); in logError()
68 [callback = std::move(callback)](const boost::system::error_code& ec, in checkDbusPathExists()
70 callback(!ec && !objectNames.empty()); in checkDbusPathExists()
85 const boost::system::error_code& ec, in getSubTree() argument
86 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getSubTree()
101 const boost::system::error_code& ec, in getSubTreePaths() argument
103 callback(ec, subtreePaths); in getSubTreePaths()
120 const boost::system::error_code& ec, in getAssociatedSubTree() argument
[all …]
/openbmc/u-boot/doc/
H A DREADME.i2c12 AP (Application Processor, meaning the main CPU) and one driven by the EC
19 meaning the AP's, and 'their' claim GPIO, meaning the EC's. This terminology
25 GPIO lines are shared between the AP and EC to manage the bus. The AP and EC
28 - AP_CLAIM: output from AP, signalling to the EC that the AP wants the bus
29 - EC_CLAIM: output from EC, signalling to the AP that the EC wants the bus
48 The same algorithm applies on the EC.
57 In general the traffic is fairly light, and in particular the EC wants access
/openbmc/google-misc/subprojects/ncsid/doc/
H A Dncsid_internals.md15 - **EC**. This is the code borrowed from EC. The three state machines are pretty
16 much copied from EC code.
29 ## EC State Machines
31 NC-SId reuses the state machines from EC. They are treated like black boxes.
55 not a part of EC state machines' state:
57 - State Parameters. These structures are allocated outside of EC State Machines,
58 but their content is fully managed by EC State Machines.
79 This component coordinates the interaction between EC State Machines and is also
80 heavily based on EC code. It uses `net::SockIO` interface to interact with the
101 To allow some fairly sophisticated unit-tests, EC State Machines as well as
/openbmc/u-boot/doc/device-tree-bindings/input/
H A Dcros-ec-keyb.txt1 ChromeOS EC Keyboard
3 Google's ChromeOS EC Keyboard is a simple matrix keyboard implemented on
4 a separate EC (Embedded Controller) device. It provides a message for reading
5 key scans from the EC. These are then converted into keycodes for processing
11 - compatible: "google,cros-ec-keyb"
15 keyboard. This is recommended if the EC does not have its own logic or
21 cros-ec-keyb {
22 compatible = "google,cros-ec-keyb";
/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 …]
/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/dbus-sensors/src/nvidia-gpu/
H A DMctpRequester.cpp42 const boost::system::error_code& ec, const size_t /*length*/) in processRecvMsg() argument
69 if (ec) in processRecvMsg()
72 … "MctpRequester failed to receive data from the MCTP socket - ErrorCode={EC}, Error={ER}.", in processRecvMsg()
73 "EC", ec.value(), "ER", ec.message()); in processRecvMsg()
111 std::span<uint8_t> respMsg, const boost::system::error_code& ec, in handleSendMsgCompletion() argument
124 if (ec) in handleSendMsgCompletion()
127 "MctpRequester failed to send data from the MCTP socket - ErrorCode={EC}, Error={ER}.", in handleSendMsgCompletion()
128 "EC", ec.value(), "ER", ec.message()); in handleSendMsgCompletion()
135 expiryTimer.async_wait([this, eid](const boost::system::error_code& ec) { in handleSendMsgCompletion() argument
136 if (ec != boost::asio::error::operation_aborted) in handleSendMsgCompletion()

12345678910>>...22