Home
last modified time | relevance | path

Searched +full:async +full:- +full:enum (Results 1 – 25 of 108) sorted by relevance

12345

/openbmc/phosphor-bmc-code-mgmt/bios/
H A Dspi_device.hpp10 #include <sdbusplus/async/context.hpp>
28 enum FlashLayout
34 enum FlashTool
45 SPIDevice(sdbusplus::async::context& ctx, uint64_t spiControllerIndex,
49 SoftwareManager* parent, enum FlashLayout layout,
50 enum FlashTool tool,
53 sdbusplus::async::task<bool> updateDevice(const uint8_t* image,
59 /** @brief Process async changes to cable configuration */
60 auto processUpdate(std::string versionFileName) -> sdbusplus::async::task<>;
75 enum FlashLayout layout;
[all …]
H A Dbios_software_manager.cpp8 #include <phosphor-logging/lg2.hpp>
9 #include <sdbusplus/async.hpp>
17 BIOSSoftwareManager::BIOSSoftwareManager(sdbusplus::async::context& ctx, in BIOSSoftwareManager()
22 sdbusplus::async::task<bool> BIOSSoftwareManager::initDevice( in initDevice()
48 enum FlashTool tool = flashToolNone; in initDevice()
85 enum FlashLayout layout = flashLayoutFlat; in initDevice()
109 software->enableUpdate(allowedApplyTimes); in initDevice()
111 spiDevice->softwareCurrent = std::move(software); in initDevice()
113 spiDevice->softwareCurrent->setVersion( in initDevice()
/openbmc/phosphor-bmc-code-mgmt/cpld/lattice/
H A Dlattice_base_cpld.hpp4 #include <phosphor-logging/lg2.hpp>
15 enum class latticeChip
23 UNSUPPORTED = -1,
26 enum class latticeStringType
46 lg2::error("Unsupported chip enum: {CHIPENUM}", "CHIPENUM", chip); in getLatticeChipStr()
55 std::replace(chipString.begin(), chipString.end(), '_', '-'); in getLatticeChipStr()
64 enum class latticeChipFamily
101 enum cpldI2cCmd
123 LatticeBaseCPLD(sdbusplus::async::context& ctx, const uint16_t bus, in LatticeBaseCPLD()
135 sdbusplus::async::task<bool> updateFirmware(
[all …]
H A Dlattice_xo5_cpld.cpp3 #include <phosphor-logging/lg2.hpp>
11 enum class xo5Cmd : uint8_t
19 enum class xo5Status : uint8_t
45 sdbusplus::async::task<bool> LatticeXO5CPLD::waitUntilReady( in waitUntilReady()
50 auto readDummy = [this]() -> sdbusplus::async::task<bool> { in waitUntilReady()
71 co_await sdbusplus::async::sleep_for(ctx, ReadyPollInterval); in waitUntilReady()
78 sdbusplus::async::task<bool> LatticeXO5CPLD::eraseCfg() in eraseCfg()
89 auto eraseBlock = [this](uint8_t block) -> sdbusplus::async::task<bool> { in eraseCfg()
121 sdbusplus::async::task<bool> LatticeXO5CPLD::programPage( in programPage()
140 sdbusplus::async::task<bool> LatticeXO5CPLD::programCfg() in programCfg()
[all …]
H A Dlattice_cpld_factory.cpp6 #include <phosphor-logging/lg2.hpp>
16 lg2::error("Unsupported Lattice CPLD chip enum: {CHIPENUM}", "CHIPENUM", in getLatticeCPLD()
42 sdbusplus::async::task<bool> LatticeCPLDFactory::updateFirmware( in updateFirmware()
53 co_return co_await cpldManager->updateFirmware(image, imageSize, in updateFirmware()
57 sdbusplus::async::task<bool> LatticeCPLDFactory::getVersion( in getVersion()
67 co_return co_await cpldManager->getVersion(version); in getVersion()
84 typeStr, [chipEnum](sdbusplus::async::context& ctx, in __anonccff76d40202()
/openbmc/dbus-sensors/src/leakdetector/
H A DLeakGPIODetector.hpp6 #include <phosphor-logging/lg2.hpp>
7 #include <sdbusplus/async.hpp>
8 #include <sdbusplus/async/server.hpp>
28 using DetectorIntf = sdbusplus::async::server_t<
36 /** @brief Detector type to enum map */
44 enum class PinPolarity
51 /** @brief Polarity name to enum map */
57 enum class DetectorLevel
64 /** @brief Leak detector level name to enum map */
90 explicit GPIODetector(sdbusplus::async::context& ctx, Events& leakEvents,
[all …]
H A DLeakEvents.hpp3 #include <sdbusplus/async.hpp>
16 enum class DetectorLevel;
27 explicit Events(sdbusplus::async::context& ctx) : ctx(ctx) {} in Events()
32 -> sdbusplus::async::task<>;
39 sdbusplus::async::context& ctx;
/openbmc/phosphor-bmc-code-mgmt/tpm/
H A Dtpm_device.hpp6 #include <sdbusplus/async.hpp>
13 enum class TPMType
21 TPMInterface(sdbusplus::async::context& ctx, uint8_t tpmIndex) : in TPMInterface()
31 virtual sdbusplus::async::task<bool> getVersion(std::string& version) = 0;
32 virtual sdbusplus::async::task<bool> updateFirmware(const uint8_t* image,
36 sdbusplus::async::context& ctx;
45 TPMDevice(sdbusplus::async::context& ctx, enum TPMType tpmType,
49 sdbusplus::async::task<bool> updateDevice(const uint8_t* image,
52 sdbusplus::async::task<std::string> getVersion();
56 return tpmInterface ? tpmInterface->isUpdateSupported() : false; in isUpdateSupported()
[all …]
H A Dtpm_device.cpp5 #include <phosphor-logging/lg2.hpp>
6 #include <sdbusplus/async.hpp>
10 TPMDevice::TPMDevice(sdbusplus::async::context& ctx, enum TPMType tpmType, in TPMDevice()
28 sdbusplus::async::task<bool> TPMDevice::updateDevice(const uint8_t* image, in updateDevice()
39 if (!co_await tpmInterface->updateFirmware(image, imageSize)) in updateDevice()
50 sdbusplus::async::task<std::string> TPMDevice::getVersion() in getVersion()
60 if (!co_await tpmInterface->getVersion(version)) in getVersion()
/openbmc/phosphor-modbus/rtu/device/
H A Ddevice_factory.hpp11 enum class DeviceType
19 enum class DeviceModel
38 static auto getInterfaces() -> std::vector<std::string>;
40 static auto getConfig(sdbusplus::async::context& ctx,
43 -> sdbusplus::async::task<std::optional<config::DeviceFactoryConfig>>;
45 static auto create(sdbusplus::async::context& ctx,
48 -> std::unique_ptr<BaseDevice>;
H A Dbase_config.hpp18 enum class SensorFormat
39 enum class StatusType
62 enum class FirmwareRegisterType
95 auto updateBaseConfig(sdbusplus::async::context& ctx,
98 -> sdbusplus::async::task<bool>;
/openbmc/phosphor-modbus/rtu/modbus/
H A Dmodbus.hpp3 #include <sdbusplus/async.hpp>
10 enum class Parity
21 explicit Modbus(sdbusplus::async::context& ctx, int fd, uint32_t baudRate,
24 auto setProperties(uint32_t inBaudRate, Parity inParity) -> bool;
28 -> sdbusplus::async::task<bool>;
32 -> sdbusplus::async::task<bool>;
36 -> sdbusplus::async::task<bool>;
38 sdbusplus::async::context& ctx;
43 sdbusplus::async::fdio fdioInstance;
/openbmc/sdbusplus/test/async/fdio_timed/
H A Dsuite.hpp5 #include <sdbusplus/async.hpp>
18 enum class testWriteOperation
31 auto writeToFile() -> sdbusplus::async::task<>;
34 int testIterations) -> sdbusplus::async::task<>;
36 std::unique_ptr<sdbusplus::async::fdio> fdioInstance;
37 std::optional<sdbusplus::async::context> ctx{std::in_place};
40 int fd = -1;
41 int wd = -1;
/openbmc/phosphor-bmc-code-mgmt/i2c-vr/isl69269/
H A Disl69269.hpp4 #include "i2c-vr/vr.hpp"
6 #include <sdbusplus/async.hpp>
16 enum class Gen
23 ISL69269(sdbusplus::async::context& ctx, uint16_t bus, uint16_t address,
26 sdbusplus::async::task<bool> verifyImage(const uint8_t* image,
29 sdbusplus::async::task<bool> updateFirmware(bool force) final;
30 sdbusplus::async::task<bool> getCRC(uint32_t* checksum) final;
55 sdbusplus::async::task<bool> dmaReadWrite(uint8_t* reg, uint8_t* resp);
56 sdbusplus::async::task<bool> getRemainingWrites(uint8_t* remain);
57 sdbusplus::async::task<bool> getHexMode(uint8_t* mode);
[all …]
/openbmc/phosphor-modbus/common/
H A Devents.hpp3 #include <sdbusplus/async.hpp>
12 enum class EventLevel
23 explicit Events(sdbusplus::async::context& ctx) : ctx(ctx) {} in Events()
28 -> sdbusplus::async::task<>;
31 bool asserted) -> sdbusplus::async::task<>;
35 bool asserted) -> sdbusplus::async::task<>;
39 -> sdbusplus::async::task<>;
42 bool asserted) -> sdbusplus::async::task<>;
45 bool asserted) -> sdbusplus::async::task<>;
48 bool asserted) -> sdbusplus::async::task<>;
[all …]
/openbmc/dbus-sensors/src/cable-monitor/
H A DCableEvents.hpp3 #include <sdbusplus/async.hpp>
16 enum class Type
24 explicit Events(sdbusplus::async::context& ctx) : ctx(ctx) {} in Events()
28 -> sdbusplus::async::task<>;
35 sdbusplus::async::context& ctx;
/openbmc/phosphor-modbus/rtu/port/
H A Dport_factory.hpp5 #include <sdbusplus/async.hpp>
16 enum class PortType
34 static auto getInterfaces() -> std::vector<std::string>;
36 static auto getConfig(sdbusplus::async::context& ctx,
39 -> sdbusplus::async::task<std::unique_ptr<config::PortFactoryConfig>>;
41 static auto create(sdbusplus::async::context& ctx,
43 -> std::unique_ptr<BasePort>;
H A Dbase_port.hpp5 #include <phosphor-logging/lg2.hpp>
6 #include <sdbusplus/async.hpp>
19 enum class PortMode
43 } -> std::same_as<std::string&>;
46 } -> std::same_as<std::string&>;
49 } -> std::same_as<uint64_t&>;
52 } -> std::same_as<uint64_t&>;
57 { config.name } -> std::same_as<std::string&>;
58 { config.portMode } -> std::same_as<PortMode&>;
59 { config.baudRate } -> std::same_as<uint32_t&>;
[all …]
/openbmc/phosphor-bmc-code-mgmt/i2c-vr/mps/
H A Dmps.hpp4 #include "i2c-vr/vr.hpp"
6 #include <phosphor-logging/lg2.hpp>
20 * Each enumerator corresponds to a tab-separated column index.
22 enum class ATE : uint8_t
38 * type0: 7-columns ATE image without write/read command information.
40 * type1: 8-columns ATE image that includes write/read command information,
45 enum class MPSImageType : uint8_t
52 enum class MPSPage : uint8_t
117 pointer operator->() const in operator ->()
175 currentTokens.emplace_back(line.substr(start, end - start)); in next()
[all …]
/openbmc/qemu/include/ui/
H A Dspice-display.h27 #include "ui/qemu-pixman.h"
32 # include "ui/egl-helpers.h"
33 # include "ui/egl-context.h"
45 * Internal enum to differentiate between options for
53 typedef enum qxl_async_io {
58 enum {
108 /* cursor (without qxl): displaychangelistener -> spice server */
114 /* cursor (with qxl): qxl local renderer -> displaychangelistener */
177 qxl_async_io async);
182 qxl_async_io async);
[all …]
/openbmc/webui-vue/src/store/modules/Settings/
H A DPowerPolicyStore.js21 async getPowerRestorePolicies({ commit }) {
24 .then(async (response) => {
35 let powerPoliciesData = PowerRestorePolicyTypes.enum.map(
39 )} - ${
54 async getPowerRestoreCurrentPolicy({ commit }) {
62 async setPowerRestorePolicy({ dispatch }, powerPolicy) {
/openbmc/entity-manager/src/gpio-presence/
H A Ddevice_presence.hpp2 * SPDX-FileCopyrightText: Copyright (c) 2022-2024. All rights
3 * reserved. SPDX-License-Identifier: Apache-2.0
14 enum GPIO_POLARITY
29 DevicePresence(sdbusplus::async::context& ctx,
36 auto updateGPIOPresence(const std::string& gpioLine) -> void;
39 auto getObjPath() const -> sdbusplus::message::object_path;
42 auto isPresent() -> bool;
55 sdbusplus::async::context& ctx;
59 auto updateDbusInterfaces() -> void;
/openbmc/qemu/include/hw/usb/
H A Dmsd.h13 enum USBMSDMode {
29 enum USBMSDMode mode;
36 /* For async completion. */
38 /* usb-storage only */
47 #define TYPE_USB_STORAGE "usb-storage-dev"
/openbmc/qemu/replay/
H A Dreplay-internal.h5 * replay-internal.h
7 * Copyright (c) 2010-2015 Institute for System Programming
11 * See the COPYING file in the top-level directory.
17 typedef enum ReplayAsyncEventKind {
34 enum ReplayEvents {
41 /* for async events */
43 EVENT_ASYNC_LAST = EVENT_ASYNC + REPLAY_ASYNC_COUNT - 1,
61 EVENT_CLOCK_LAST = EVENT_CLOCK + REPLAY_CLOCK_COUNT - 1,
65 EVENT_CHECKPOINT_LAST = EVENT_CHECKPOINT + CHECKPOINT_COUNT - 1,
72 * typedef ReplayState - global tracking Replay state
[all …]
/openbmc/phosphor-bmc-code-mgmt/common/include/
H A Dutils.hpp3 #include <sdbusplus/async.hpp>
10 * @param ctx Async context for monitoring the pipe.
14 sdbusplus::async::task<bool> asyncSystem(
15 sdbusplus::async::context& ctx, const std::string& cmd,
24 * @param bigEndian Set true for big-endian order; false for little-endian.
41 size_t shift = bigEndian ? (size - 1 - i) * 8 : i * 8;
63 * @note Passing unsupported types will trigger a compile-time static_assert.
64 * @note Endianness: Multi-byte integers use little-endian order.
67 * enum class Command : uint8_t { Start = 0x01 };

12345