Home
last modified time | relevance | path

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

12345678910>>...174

/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dmmu_rb.c45 struct mmu_rb_handler **handler) in hfi1_mmu_rb_register() argument
74 *handler = h; in hfi1_mmu_rb_register()
78 void hfi1_mmu_rb_unregister(struct mmu_rb_handler *handler) in hfi1_mmu_rb_unregister() argument
86 mmgrab(handler->mn.mm); in hfi1_mmu_rb_unregister()
89 mmu_notifier_unregister(&handler->mn, handler->mn.mm); in hfi1_mmu_rb_unregister()
92 * Make sure the wq delete handler is finished running. It will not in hfi1_mmu_rb_unregister()
95 flush_work(&handler->del_work); in hfi1_mmu_rb_unregister()
99 spin_lock_irqsave(&handler->lock, flags); in hfi1_mmu_rb_unregister()
100 while ((node = rb_first_cached(&handler->root))) { in hfi1_mmu_rb_unregister()
102 rb_erase_cached(node, &handler->root); in hfi1_mmu_rb_unregister()
[all …]
/openbmc/phosphor-fan-presence/control/
H A Dfunctor.hpp22 * @brief Create a zone handler function object
24 * @param[in] handler - The handler being created
26 * @return - The created zone handler function object
29 auto make_zoneHandler(T&& handler) in make_zoneHandler() argument
31 return ZoneHandler(std::forward<T>(handler)); in make_zoneHandler()
48 * @brief Create a handler function object
50 * @param[in] handler - The handler being created
52 * @return - The created handler function object
55 auto make_handler(U&& handler) in make_handler() argument
57 return T(std::forward<U>(handler)); in make_handler()
[all …]
/openbmc/linux/net/ipv4/
H A Dtunnel4.c31 int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family) in xfrm4_tunnel_register() argument
37 int priority = handler->priority; in xfrm4_tunnel_register()
51 handler->next = *pprev; in xfrm4_tunnel_register()
52 rcu_assign_pointer(*pprev, handler); in xfrm4_tunnel_register()
63 int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family) in xfrm4_tunnel_deregister() argument
75 if (t == handler) { in xfrm4_tunnel_deregister()
76 *pprev = handler->next; in xfrm4_tunnel_deregister()
90 #define for_each_tunnel_rcu(head, handler) \ argument
91 for (handler = rcu_dereference(head); \
92 handler != NULL; \
[all …]
H A Dxfrm4_protocol.c40 #define for_each_protocol_rcu(head, handler) \ argument
41 for (handler = rcu_dereference(head); \
42 handler != NULL; \
43 handler = rcu_dereference(handler->next)) \
48 struct xfrm4_protocol *handler; in xfrm4_rcv_cb() local
54 for_each_protocol_rcu(*head, handler) in xfrm4_rcv_cb()
55 if ((ret = handler->cb_handler(skb, err)) <= 0) in xfrm4_rcv_cb()
65 struct xfrm4_protocol *handler; in xfrm4_rcv_encap() local
83 for_each_protocol_rcu(*head, handler) in xfrm4_rcv_encap()
84 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
[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/linux/net/ipv6/
H A Dtunnel6.c32 int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family) in xfrm6_tunnel_register() argument
37 int priority = handler->priority; in xfrm6_tunnel_register()
64 handler->next = *pprev; in xfrm6_tunnel_register()
65 rcu_assign_pointer(*pprev, handler); in xfrm6_tunnel_register()
76 int xfrm6_tunnel_deregister(struct xfrm6_tunnel *handler, unsigned short family) in xfrm6_tunnel_deregister() argument
101 if (t == handler) { in xfrm6_tunnel_deregister()
102 *pprev = handler->next; in xfrm6_tunnel_deregister()
117 #define for_each_tunnel_rcu(head, handler) \ argument
118 for (handler = rcu_dereference(head); \
119 handler != NULL; \
[all …]
H A Dxfrm6_protocol.c41 #define for_each_protocol_rcu(head, handler) \ argument
42 for (handler = rcu_dereference(head); \
43 handler != NULL; \
44 handler = rcu_dereference(handler->next)) \
49 struct xfrm6_protocol *handler; in xfrm6_rcv_cb() local
55 for_each_protocol_rcu(*proto_handlers(protocol), handler) in xfrm6_rcv_cb()
56 if ((ret = handler->cb_handler(skb, err)) <= 0) in xfrm6_rcv_cb()
66 struct xfrm6_protocol *handler; in xfrm6_rcv_encap() local
96 for_each_protocol_rcu(*head, handler) in xfrm6_rcv_encap()
97 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm6_rcv_encap()
[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/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/linux/drivers/acpi/acpica/
H A Devxface.c37 * handler_type - The type of handler:
38 * ACPI_SYSTEM_NOTIFY: System Handler (00-7F)
39 * ACPI_DEVICE_NOTIFY: Device Handler (80-FF)
41 * handler - Address of the handler
42 * context - Value passed to the handler on each GPE
46 * DESCRIPTION: Install a handler for notifications on an ACPI Device,
49 * NOTES: The Root namespace object may have only one handler for each
51 * may have one device notify handler, and multiple system notify
59 acpi_notify_handler handler, void *context) in acpi_install_notify_handler() argument
72 if ((!device) || (!handler) || (!handler_type) || in acpi_install_notify_handler()
[all …]
H A Devhandler.c65 * We install the default PCI config space handler at the root so that in acpi_ev_install_region_handlers()
72 * NOTE: We ignore AE_ALREADY_EXISTS because this means that a handler in acpi_ev_install_region_handlers()
110 * RETURN: TRUE if default handler is installed, FALSE otherwise
112 * DESCRIPTION: Check if the default handler is installed for the requested
128 handler_obj = obj_desc->common_notify.handler; in acpi_ev_has_default_handler()
153 * DESCRIPTION: This routine installs an address handler into objects that are
156 * If the Object is a Device, and the device has a handler of
159 * This is because the existing handler is closer in proximity
214 /* Check if this Device already has a handler for this address space */ in acpi_ev_install_handler()
220 handler); in acpi_ev_install_handler()
[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 …]
/openbmc/linux/kernel/
H A Dreboot.c157 * @nb: Info about handler function to be called
158 * @nb->priority: Handler priority. Handlers should follow the
160 * 0: Restart handler of last resort,
162 * 128: Default restart handler; use if no other
163 * restart handler is expected to be available,
166 * 255: Highest priority restart handler, will
177 * If more than one function is registered, the restart handler priority
183 * restart handlers may exist; for example, one restart handler might
185 * In such cases, the restart handler which only restarts part of the
200 * restart handler
[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/pldm/pldmd/
H A Doem_ibm.hpp45 * @param[in] dBusIntf - D-Bus handler
50 * @param[in] event - sd_event handler
51 * @param[in] invoker - invoker handler
52 * @param[in] hostPDRHandler - hostPDRHandler handler
53 * @param[in] platformHandler - platformHandler handler
54 * @param[in] fruHandler - fruHandler handler
55 * @param[in] baseHandler - baseHandler handler
56 * @param[in] reqHandler - reqHandler handler
63 responder::platform::Handler* platformHandler, in OemIBM()
64 responder::fru::Handler* fruHandler, in OemIBM()
[all …]
/openbmc/linux/drivers/soc/fsl/qbman/
H A Dqman_test_stash.c43 * moves it from one cpu to another. (The use of more than one handler per cpu
49 * each forwarding action. To achieve this, each handler will be assigned a
51 * received by a handler, the mixer of the expected sender is XOR'd into all
54 * the current handler. Apart from validating that the frame is taking the
57 * conditional branching. There is a "special" handler designated to act as the
65 * handlers and link-list them (but do no other handler setup).
68 * hp_cpu's 'iterator' to point to its first handler. With each loop,
69 * allocate rx/tx FQIDs and mixer values to the hp_cpu's iterator handler
71 * which connects the last handler to the first (and which is why phase 2
75 * hp_cpu's 'iterator' to point to its first handler. With each loop,
[all …]
/openbmc/linux/drivers/irqchip/
H A Dirq-sifive-plic.c104 static void plic_toggle(struct plic_handler *handler, int hwirq, int enable) in plic_toggle() argument
106 raw_spin_lock(&handler->enable_lock); in plic_toggle()
107 __plic_toggle(handler->enable_base, hwirq, enable); in plic_toggle()
108 raw_spin_unlock(&handler->enable_lock); in plic_toggle()
117 struct plic_handler *handler = per_cpu_ptr(&plic_handlers, cpu); in plic_irq_toggle() local
119 plic_toggle(handler, d->hwirq, enable); in plic_irq_toggle()
150 struct plic_handler *handler = this_cpu_ptr(&plic_handlers); in plic_irq_eoi() local
153 plic_toggle(handler, d->hwirq, 1); in plic_irq_eoi()
154 writel(d->hwirq, handler->hart_base + CONTEXT_CLAIM); in plic_irq_eoi()
155 plic_toggle(handler, d->hwirq, 0); in plic_irq_eoi()
[all …]
/openbmc/linux/drivers/acpi/
H A Dwakeup.c102 * acpi_register_wakeup_handler - Register wakeup handler
104 * @wakeup: Wakeup-handler to call when the SCI has triggered a wakeup
105 * @context: Context to pass to the handler when calling it
108 * a handler which returns true when the device they are managing wants
114 struct acpi_wakeup_handler *handler; in acpi_register_wakeup_handler() local
118 * need to register the handler. in acpi_register_wakeup_handler()
123 handler = kmalloc(sizeof(*handler), GFP_KERNEL); in acpi_register_wakeup_handler()
124 if (!handler) in acpi_register_wakeup_handler()
127 handler->wakeup = wakeup; in acpi_register_wakeup_handler()
128 handler->context = context; in acpi_register_wakeup_handler()
[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/linux/drivers/scsi/
H A Dscsi_dh.c3 * SCSI device handler infrastructure.
120 * scsi_dh_handler_attach - Attach a device handler to a device
121 * @sdev - SCSI device the device handler should attach to
122 * @scsi_dh - The device handler to attach
154 sdev->handler = scsi_dh; in scsi_dh_handler_attach()
160 * scsi_dh_handler_detach - Detach a device handler from a device
161 * @sdev - SCSI device the device handler should be detached from
165 sdev->handler->detach(sdev); in scsi_dh_handler_detach()
166 sdev_printk(KERN_NOTICE, sdev, "%s: Detached\n", sdev->handler->name); in scsi_dh_handler_detach()
167 module_put(sdev->handler->module); in scsi_dh_handler_detach()
[all …]

12345678910>>...174