Home
last modified time | relevance | path

Searched full:handler (Results 1 – 25 of 1072) sorted by relevance

12345678910>>...43

/openbmc/phosphor-fan-presence/control/
H A Dfunctor.hpp19 * @brief Create a zone handler function object
21 * @param[in] handler - The handler being created
23 * @return - The created zone handler function object
26 auto make_zoneHandler(T&& handler) in make_zoneHandler() argument
28 return ZoneHandler(std::forward<T>(handler)); in make_zoneHandler()
45 * @brief Create a handler function object
47 * @param[in] handler - The handler being created
49 * @return - The created handler function object
52 auto make_handler(U&& handler) in make_handler() argument
54 return T(std::forward<U>(handler)); in make_handler()
[all …]
/openbmc/google-ipmi-sys/
H A Dipmi.cpp27 #include "handler.hpp"
51 Resp handleSysCommand(HandlerInterface* handler, ::ipmi::Context::ptr ctx, in handleSysCommand() argument
57 return getBmcMode(data, handler); in handleSysCommand()
59 return cableCheck(data, handler); in handleSysCommand()
61 return cpldVersion(data, handler); in handleSysCommand()
63 return getEthDevice(data, handler); in handleSysCommand()
65 return psuHardReset(data, handler); in handleSysCommand()
67 return pcieSlotCount(data, handler); in handleSysCommand()
69 return pcieSlotI2cBusMapping(data, handler); in handleSysCommand()
71 return getEntityName(data, handler); in handleSysCommand()
[all …]
/openbmc/openpower-hw-diags/attn/
H A DAttention_Handler.md1 # Attention Handler
6 service from an Attention Handler via an attention signal (e.g. a GPIO). An
7 attention handler is, in this case, a stateless service that handles attention
8 requests. The attention handler in combination with a hardware analyzer
12 attention handler or attention handler service. When operating in application
15 of the attention handler service, per attention signal.
19 The main role of the attention handler is a long running process monitoring the
21 handling attention requests. The attention handler is loaded into memory when
23 When an attention (signal) is detected by the attention handler (monitor) the
24 attention handler will query the state of the host to determine the nature of
[all …]
/openbmc/phosphor-ipmi-blobs/
H A Dmanager.cpp28 bool BlobManager::registerHandler(std::unique_ptr<GenericBlobInterface> handler) in registerHandler() argument
30 if (!handler) in registerHandler()
35 handlers.push_back(std::move(handler)); in registerHandler()
41 /* Clear out the current list (IPMI handler is presently single-threaded). in buildBlobList()
69 GenericBlobInterface* handler = getHandler(path); in open() local
71 /* No handler found. */ in open()
72 if (!handler) in open()
92 * handler */ in open()
93 cleanUpStaleSessions(handler); in open()
95 if (!handler->open(*session, flags, path)) in open()
[all …]
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/
H A Dfirmware_state_verificationpending_unittest.cpp56 EXPECT_FALSE(handler->canHandleBlob(verifyBlobId)); in TEST_F()
60 EXPECT_TRUE(handler->canHandleBlob(verifyBlobId)); in TEST_F()
61 EXPECT_TRUE(handler->canHandleBlob(activeImageBlobId)); in TEST_F()
62 EXPECT_FALSE(handler->canHandleBlob(updateBlobId)); in TEST_F()
77 ASSERT_TRUE(handler->canHandleBlob(verifyBlobId)); in TEST_F()
78 EXPECT_TRUE(handler->deleteBlob(verifyBlobId)); in TEST_F()
81 EXPECT_THAT(handler->getBlobIds(), in TEST_F()
92 ASSERT_TRUE(handler->canHandleBlob(activeImageBlobId)); in TEST_F()
93 EXPECT_TRUE(handler->deleteBlob(activeImageBlobId)); in TEST_F()
96 EXPECT_THAT(handler->getBlobIds(), in TEST_F()
[all …]
H A Dfirmware_state_updatepending_unittest.cpp55 EXPECT_THAT(handler->getBlobIds(), in TEST_F()
73 EXPECT_TRUE(handler->open(session, flags, updateBlobId)); in TEST_F()
81 auto blobs = handler->getBlobIds(); in TEST_F()
88 EXPECT_FALSE(handler->open(session, flags, blob)); in TEST_F()
101 EXPECT_TRUE(handler->open(session, flags, updateBlobId)); in TEST_F()
103 handler->close(session); in TEST_F()
106 EXPECT_TRUE(handler->canHandleBlob(updateBlobId)); in TEST_F()
116 EXPECT_TRUE(handler->open(session, flags, updateBlobId)); in TEST_F()
117 EXPECT_FALSE(handler->writeMeta(session, 0, {0x01})); in TEST_F()
127 EXPECT_TRUE(handler->open(session, flags, updateBlobId)); in TEST_F()
[all …]
H A Dfile_handler_unittest.cpp28 FileHandler handler(TESTPATH); in TEST_F() local
29 EXPECT_TRUE(handler.open("")); in TEST_F()
30 EXPECT_TRUE(handler.open("")); in TEST_F()
35 FileHandler handler(TESTPATH); in TEST_F() local
36 EXPECT_EQ(handler.getSize(), 0); in TEST_F()
37 EXPECT_FALSE(handler.open("", std::ios::in)); in TEST_F()
38 EXPECT_EQ(handler.getSize(), 0); in TEST_F()
46 FileHandler handler(TESTPATH); in TEST_F() local
47 EXPECT_TRUE(handler.open("", std::ios::in)); in TEST_F()
55 FileHandler handler(TESTPATH); in TEST_F() local
[all …]
H A Dfirmware_state_verificationcompleted_unittest.cpp58 auto blobs = handler->getBlobIds(); in TEST_F()
61 EXPECT_FALSE(handler->deleteBlob(b)); in TEST_F()
76 EXPECT_FALSE(handler->canHandleBlob(updateBlobId)); in TEST_F()
83 EXPECT_FALSE(handler->canHandleBlob(updateBlobId)); in TEST_F()
93 handler->getBlobIds(), in TEST_F()
105 ASSERT_TRUE(handler->canHandleBlob(activeImageBlobId)); in TEST_F()
108 EXPECT_FALSE(handler->stat(activeImageBlobId, &meta)); in TEST_F()
118 EXPECT_FALSE(handler->canHandleBlob(activeHashBlobId)); in TEST_F()
131 ASSERT_TRUE(handler->canHandleBlob(verifyBlobId)); in TEST_F()
134 EXPECT_FALSE(handler->stat(verifyBlobId, &meta)); in TEST_F()
[all …]
H A Dfirmware_state_uploadinprogress_unittest.cpp4 * or hash blob is opened and the handler is expected to receive bytes.
51 EXPECT_THAT(handler->getBlobIds(), in TEST_F()
61 EXPECT_THAT(handler->getBlobIds(), in TEST_F()
75 ASSERT_TRUE(handler->canHandleBlob(activeImageBlobId)); in TEST_F()
78 EXPECT_FALSE(handler->stat(activeImageBlobId, &meta)); in TEST_F()
87 ASSERT_TRUE(handler->canHandleBlob(activeHashBlobId)); in TEST_F()
90 EXPECT_FALSE(handler->stat(activeHashBlobId, &meta)); in TEST_F()
104 EXPECT_TRUE(handler->stat(blob, &meta)); in TEST_F()
115 /* This test will verify that the underlying image handler is called with in TEST_F()
127 EXPECT_TRUE(handler->stat(session, &meta)); in TEST_F()
[all …]
H A Dfirmware_state_verificationstarted_unittest.cpp54 auto blobs = handler->getBlobIds(); in TEST_F()
61 EXPECT_TRUE(handler->canHandleBlob(blob)); in TEST_F()
81 EXPECT_TRUE(handler->stat(session, &meta)); in TEST_F()
98 EXPECT_TRUE(handler->stat(session, &meta)); in TEST_F()
105 /* If the returned state from the verification handler is failed, it sets in TEST_F()
118 EXPECT_TRUE(handler->stat(session, &meta)); in TEST_F()
126 /* If the returned state from the verification handler is success, it sets in TEST_F()
139 EXPECT_TRUE(handler->stat(session, &meta)); in TEST_F()
154 auto blobs = handler->getBlobIds(); in TEST_F()
157 EXPECT_FALSE(handler->deleteBlob(b)); in TEST_F()
[all …]
H A Dfirmware_state_updatecompleted_unittest.cpp53 auto blobsToOpen = handler->getBlobIds(); in TEST_F()
56 EXPECT_FALSE(handler->open(session + 1, flags, blob)); in TEST_F()
75 EXPECT_TRUE(handler->stat(session, &meta)); in TEST_F()
92 EXPECT_TRUE(handler->stat(session, &meta)); in TEST_F()
104 ASSERT_TRUE(handler->canHandleBlob(activeImageBlobId)); in TEST_F()
107 EXPECT_FALSE(handler->stat(activeImageBlobId, &meta)); in TEST_F()
114 ASSERT_TRUE(handler->canHandleBlob(updateBlobId)); in TEST_F()
117 EXPECT_FALSE(handler->stat(updateBlobId, &meta)); in TEST_F()
127 ASSERT_TRUE(handler->canHandleBlob(blob)); in TEST_F()
130 EXPECT_TRUE(handler->stat(blob, &meta)); in TEST_F()
[all …]
H A Dfirmware_state_updatestarted_unittest.cpp51 auto blobsToOpen = handler->getBlobIds(); in TEST_F()
54 EXPECT_FALSE(handler->open(session + 1, flags, blob)); in TEST_F()
66 handler->getBlobIds(), in TEST_F()
81 auto blobs = handler->getBlobIds(); in TEST_F()
84 EXPECT_FALSE(handler->deleteBlob(b)); in TEST_F()
95 ASSERT_TRUE(handler->canHandleBlob(activeImageBlobId)); in TEST_F()
98 EXPECT_FALSE(handler->stat(activeImageBlobId, &meta)); in TEST_F()
105 ASSERT_TRUE(handler->canHandleBlob(updateBlobId)); in TEST_F()
108 EXPECT_FALSE(handler->stat(updateBlobId, &meta)); in TEST_F()
118 ASSERT_TRUE(handler->canHandleBlob(blob)); in TEST_F()
[all …]
/openbmc/phosphor-host-ipmid/include/ipmid/
H A Dhandler.hpp98 * @brief Handler base class for dealing with IPMI request/response
110 /** @brief wrap the call to the registered handler with the request
132 /** @brief call the registered handler with the request
149 * @brief Main IPMI handler class
156 template <typename Handler>
160 explicit IpmiHandler(Handler&& handler) : in IpmiHandler() argument
161 handler_(std::forward<Handler>(handler)) in IpmiHandler()
165 Handler handler_;
167 /** @brief call the registered handler with the request
175 * Because this is the new variety of IPMI handler, this is the function
[all …]
/openbmc/smbios-mdr/src/smbios-ipmi-blobs/test/
H A Dhandler_readwrite_unittest.cpp21 // Verify the handler checks for a valid session. in TEST_F()
24 EXPECT_FALSE(handler.write(session, 0, data)); in TEST_F()
29 // Verify the handler checks the write flag; in TEST_F()
31 EXPECT_TRUE(handler.open(session, 0, expectedBlobId)); in TEST_F()
34 EXPECT_FALSE(handler.write(session, 0, data)); in TEST_F()
42 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F()
43 EXPECT_FALSE(handler.write(session, 0, data)); in TEST_F()
50 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F()
51 EXPECT_FALSE(handler.write(session, 1, data)); in TEST_F()
58 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F()
[all …]
/openbmc/phosphor-webui/app/common/directives/
H A Dvt100plus.js62 term.handler(EscapeSequences.C0.BS); // Backspace
64 term.handler(EscapeSequences.C0.DEL); // Delete
68 term.handler(EscapeSequences.C0.ESC + '?');
71 term.handler(EscapeSequences.C0.ESC + '/');
74 term.handler(EscapeSequences.C0.ESC + 'k');
77 term.handler(EscapeSequences.C0.ESC + 'h');
80 term.handler(EscapeSequences.C0.ESC + '+');
83 term.handler(EscapeSequences.C0.ESC + '-');
86 term.handler(EscapeSequences.C0.ESC + '1');
89 term.handler(EscapeSequences.C0.ESC + '2');
[all …]
/openbmc/pldm/pldmd/
H A Doem_ibm.hpp44 * @param[in] dBusIntf - D-Bus handler
49 * @param[in] event - sd_event handler
50 * @param[in] invoker - invoker handler
51 * @param[in] hostPDRHandler - hostPDRHandler handler
52 * @param[in] platformHandler - platformHandler handler
53 * @param[in] fruHandler - fruHandler handler
54 * @param[in] baseHandler - baseHandler handler
55 * @param[in] biosHandler - biosHandler handler
56 * @param[in] reqHandler - reqHandler handler
63 responder::platform::Handler* platformHandle in OemIBM()
[all...]
/openbmc/sdbusplus/include/sdbusplus/asio/
H A Dproperty.hpp16 const std::vector<std::pair<std::string, VariantType>>&)>&& handler) in getAllProperties() argument
21 [handler = std::move(handler)]( in getAllProperties()
24 data) mutable { handler(ec, data); }, in getAllProperties()
28 template <typename Handler>
31 const std::string& path, const std::string& interface, Handler&& handler) in getAllProperties() argument
34 std::tuple_element_t<1, boost::callable_traits::args_t<Handler>>; in getAllProperties()
38 std::forward<Handler>(handler)); in getAllProperties()
46 std::function<void(boost::system::error_code, PropertyType)>&& handler) in getProperty() argument
51 [handler = std::move(handler)]( in getProperty()
56 handler(ec, {}); in getProperty()
[all …]
/openbmc/phosphor-ipmi-flash/cleanup/test/
H A Dcleanup_handler_unittest.cpp28 handler = std::make_unique<FileCleanupHandler>(cleanupBlobId, blobs, in CleanupHandlerTest()
35 std::unique_ptr<FileCleanupHandler> handler; member in ipmi_flash::__anon00c611860111::CleanupHandlerTest
40 EXPECT_TRUE(handler->canHandleBlob(cleanupBlobId)); in TEST_F()
41 EXPECT_THAT(handler->getBlobIds(), in TEST_F()
50 EXPECT_TRUE(handler->commit(1, {})); in TEST_F()
55 // Test each of the blob handler commands. in TEST_F()
56 EXPECT_TRUE(handler->open(/*session*/ 0, /*flags*/ 0, "abcd")); in TEST_F()
57 EXPECT_TRUE(handler->close(/*session*/ 0)); in TEST_F()
58 EXPECT_TRUE(handler->expire(/*session*/ 0)); in TEST_F()
59 EXPECT_FALSE(handler->deleteBlob("abcd")); in TEST_F()
[all …]
/openbmc/pldm/libpldmresponder/
H A Dbase.hpp20 class Handler : public CmdHandler class
23 Handler(sdeventplus::Event& event) : event(event) in Handler() function in pldm::responder::base::Handler
47 /** @brief Handler for getPLDMTypes
55 /** @brief Handler for getPLDMCommands
63 /** @brief Handler for getPLDMCommands
79 /** @brief Handler for getTID
87 /* @brief Method to set the oem platform handler in base handler class
89 * @param[in] handler - oem platform handler
92 pldm::responder::oem_platform::Handler* handler) in setOemPlatformHandler() argument
94 oemPlatformHandler = handler; in setOemPlatformHandler()
[all …]
/openbmc/qemu/include/hw/
H A Dirq.h14 qemu_irq_handler handler; member
38 * Init a single IRQ. The irq is assigned with a handler, an opaque data
41 void qemu_init_irq(IRQState *irq, qemu_irq_handler handler, void *opaque,
49 * @handler: handler to assign to each IRQ
50 * @opaque: opaque data to pass to @handler
53 qemu_irq_handler handler, void *opaque);
55 /* Returns an array of N IRQs. Each IRQ is assigned the argument handler and
58 qemu_irq *qemu_allocate_irqs(qemu_irq_handler handler, void *opaque, int n);
61 * Allocates a single IRQ. The irq is assigned with a handler, an opaque
64 qemu_irq qemu_allocate_irq(qemu_irq_handler handler, void *opaque, int n);
[all …]
/openbmc/qemu/hw/core/
H A Dirq.c34 irq->handler(irq->opaque, irq->n, level); in qemu_set_irq()
37 static void init_irq_fields(IRQState *irq, qemu_irq_handler handler, in init_irq_fields() argument
40 irq->handler = handler; in init_irq_fields()
45 void qemu_init_irq(IRQState *irq, qemu_irq_handler handler, void *opaque, in qemu_init_irq() argument
49 init_irq_fields(irq, handler, opaque, n); in qemu_init_irq()
53 qemu_irq_handler handler, void *opaque) in qemu_init_irqs() argument
56 qemu_init_irq(&irq[i], handler, opaque, i); in qemu_init_irqs()
60 qemu_irq *qemu_extend_irqs(qemu_irq *old, int n_old, qemu_irq_handler handler, in qemu_extend_irqs() argument
71 s[i] = qemu_allocate_irq(handler, opaque, i); in qemu_extend_irqs()
76 qemu_irq *qemu_allocate_irqs(qemu_irq_handler handler, void *opaque, int n) in qemu_allocate_irqs() argument
[all …]
/openbmc/pldm/libpldmresponder/test/
H A Dlibpldmresponder_base_test.cpp31 base::Handler handler(event); in TEST_F() local
32 auto response = handler.getPLDMTypes(request, requestPayloadLength); in TEST_F()
48 base::Handler handler(event); in TEST_F() local
49 auto response = handler.getPLDMCommands(request, requestPayloadLength); in TEST_F()
65 base::Handler handler(event); in TEST_F() local
66 auto response = handler.getPLDMCommands(request, requestPayloadLength); in TEST_F()
90 base::Handler handler(event); in TEST_F() local
91 auto response = handler.getPLDMVersion(request, requestPayloadLength); in TEST_F()
121 base::Handler handler(event); in TEST_F() local
122 auto response = handler.getPLDMVersion(request, requestPayloadLength - 1); in TEST_F()
[all …]
/openbmc/phosphor-ipmi-flash/bmc/
H A DREADME.md4 version and firmware handler. The config file is a .json file.
11 2. handler
19 "handler": {
44 ### handler subsection
46 A blob must have a handler with a type. Currently only "file" type is supported.
47 With file type, a path of the handler file must be provided.
56 ## Workflow of log handler
61 "handler": {
78 In this example the blob handler is the log file that will store the blackbox
81 Here log_blob supports 2 actions. These actions are performed on the handler
[all …]
/openbmc/pldm/oem/ibm/test/
H A Dlibpldmresponder_fileio_test.cpp228 std::unique_ptr<oem_platform::Handler> oemPlatformHandler{}; in TEST()
229 oem_ibm::Handler handler(oemPlatformHandler.get(), hostSocketFd, host_eid, in TEST() local
231 auto response = handler.readFileIntoMemory(request, 0); in TEST()
262 std::unique_ptr<oem_platform::Handler> oemPlatformHandler{}; in TEST_F()
263 oem_ibm::Handler handler(oemPlatformHandler.get(), hostSocketFd, host_eid, in TEST_F() local
265 auto response = handler.readFileIntoMemory(request, requestPayloadLength); in TEST_F()
297 std::unique_ptr<oem_platform::Handler> oemPlatformHandler{}; in TEST_F()
298 oem_ibm::Handler handler(oemPlatformHandler.get(), hostSocketFd, host_eid, in TEST_F() local
300 auto response = handler.readFileIntoMemory(request, requestPayloadLength); in TEST_F()
332 std::unique_ptr<oem_platform::Handler> oemPlatformHandler{}; in TEST_F()
[all …]
/openbmc/phosphor-net-ipmid/
H A Dmessage_handler.hpp14 class Handler : public std::enable_shared_from_this<Handler> class
18 * @brief Create a Handler intended for a full transaction
21 Handler(std::shared_ptr<udpsocket::Channel> channel, in Handler() function in message::Handler
33 * @brief Create a Handler intended for a send only (SOL)
35 Handler(std::shared_ptr<udpsocket::Channel> channel, in Handler() function in message::Handler
45 ~Handler();
46 Handler() = delete;
47 Handler(const Handler&) = delete;
48 Handler& operator=(const Handler&) = delete;
49 Handler(Handler&&) = delete;
[all …]

12345678910>>...43