/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | mmu_rb.c | 45 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() 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() 106 spin_unlock_irqrestore(&handler->lock, flags); in hfi1_mmu_rb_unregister() [all …]
|
/openbmc/google-ipmi-sys/ |
H A D | ipmi.cpp | 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() 73 return getMachineName(data, handler); in handleSysCommand() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | tunnel4.c | 31 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 D | xfrm4_protocol.c | 40 #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/linux/net/ipv6/ |
H A D | tunnel6.c | 32 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 D | xfrm6_protocol.c | 41 #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-ipmi-flash/bmc/firmware-handler/test/ |
H A D | firmware_state_updatepending_unittest.cpp | 55 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 D | firmware_state_verificationpending_unittest.cpp | 56 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 D | firmware_state_verificationcompleted_unittest.cpp | 58 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 D | file_handler_unittest.cpp | 28 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 D | firmware_state_uploadinprogress_unittest.cpp | 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() 127 EXPECT_TRUE(handler->stat(session, &meta)); in TEST_F() 151 EXPECT_FALSE(handler->open(2, flags, blob)); in TEST_F() 161 EXPECT_FALSE(handler->open(2, flags, blob)); in TEST_F() [all …]
|
H A D | firmware_state_updatecompleted_unittest.cpp | 53 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 D | firmware_state_verificationstarted_unittest.cpp | 54 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() 118 EXPECT_TRUE(handler->stat(session, &meta)); 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() 167 ASSERT_TRUE(handler->canHandleBlob(activeImageBlobId)); in TEST_F() 170 EXPECT_FALSE(handler->stat(activeImageBlobId, &meta)); in TEST_F() [all …]
|
H A D | firmware_state_updatestarted_unittest.cpp | 51 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-ipmi-blobs/ |
H A D | manager.cpp | 28 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() 69 GenericBlobInterface* handler = getHandler(path); in open() local 72 if (!handler) in open() 93 cleanUpStaleSessions(handler); in open() 95 if (!handler->open(*session, flags, path)) in open() 101 sessions[*session] = SessionInfo(path, handler, flags); in open() 102 openSessions[handler].insert(*session); in open() 110 GenericBlobInterface* handler = getHandler(path); in stat() local [all …]
|
/openbmc/phosphor-webui/app/common/directives/ |
H A D | vt100plus.js | 62 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/soc/fsl/qbman/ |
H A D | qman_test_stash.c | 252 static inline int process_frame_data(struct hp_handler *handler, in process_frame_data() argument 255 u32 *p = handler->frame_ptr; in process_frame_data() 259 if (qm_fd_addr_get64(fd) != handler->addr) { in process_frame_data() 261 qm_fd_addr_get64(fd), handler->addr); in process_frame_data() 265 *p ^= handler->rx_mixer; in process_frame_data() 270 *p ^= handler->tx_mixer; in process_frame_data() 281 struct hp_handler *handler = (struct hp_handler *)fq; in normal_dqrr() local 283 if (process_frame_data(handler, &dqrr->fd)) { in normal_dqrr() 287 if (qman_enqueue(&handler->tx, &dqrr->fd)) { in normal_dqrr() 300 struct hp_handler *handler = (struct hp_handler *)fq; in special_dqrr() local [all …]
|
/openbmc/linux/kernel/ |
H A D | reboot.c | 320 struct sys_off_handler *handler; in sys_off_notify() local 323 handler = container_of(nb, struct sys_off_handler, nb); in sys_off_notify() 324 data.cb_data = handler->cb_data; in sys_off_notify() 328 return handler->sys_off_cb(&data); in sys_off_notify() 335 struct sys_off_handler *handler; in alloc_sys_off_handler() local 343 handler = &platform_sys_off_handler; in alloc_sys_off_handler() 344 if (handler->cb_data) in alloc_sys_off_handler() 352 handler = kzalloc(sizeof(*handler), flags); in alloc_sys_off_handler() 353 if (!handler) in alloc_sys_off_handler() 357 return handler; in alloc_sys_off_handler() [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | evxface.c | 59 acpi_notify_handler handler, void *context) in acpi_install_notify_handler() argument 72 if ((!device) || (!handler) || (!handler_type) || in acpi_install_notify_handler() 92 if (acpi_gbl_global_notify[i].handler) { in acpi_install_notify_handler() 97 acpi_gbl_global_notify[i].handler = handler; in acpi_install_notify_handler() 147 if (handler_obj->notify.handler == handler) { in acpi_install_notify_handler() 167 handler_obj->notify.handler = handler; in acpi_install_notify_handler() 212 u32 handler_type, acpi_notify_handler handler) in ACPI_EXPORT_SYMBOL() 226 if ((!device) || (!handler) || (!handler_type) || in ACPI_EXPORT_SYMBOL() 242 if (!acpi_gbl_global_notify[i].handler || in ACPI_EXPORT_SYMBOL() 243 (acpi_gbl_global_notify[i].handler != in ACPI_EXPORT_SYMBOL() [all …]
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-sifive-plic.c | 104 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/smbios-mdr/src/smbios-ipmi-blobs/test/ |
H A D | handler_readwrite_unittest.cpp | 24 EXPECT_FALSE(handler.write(session, 0, data)); 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() 59 EXPECT_FALSE(handler.write(session, handlerMaxBufferSize - 1, data)); in TEST_F() 66 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() [all …]
|
/openbmc/linux/arch/arm/probes/uprobes/ |
H A D | actions-arm.c | 195 [PROBES_PRELOAD_IMM] = {.handler = probes_simulate_nop}, 196 [PROBES_PRELOAD_REG] = {.handler = probes_simulate_nop}, 197 [PROBES_BRANCH_IMM] = {.handler = simulate_blx1}, 198 [PROBES_MRS] = {.handler = simulate_mrs}, 199 [PROBES_BRANCH_REG] = {.handler = simulate_blx2bx}, 200 [PROBES_CLZ] = {.handler = probes_simulate_nop}, 201 [PROBES_SATURATING_ARITHMETIC] = {.handler = probes_simulate_nop}, 202 [PROBES_MUL1] = {.handler = probes_simulate_nop}, 203 [PROBES_MUL2] = {.handler = probes_simulate_nop}, 204 [PROBES_SWP] = {.handler = probes_simulate_nop}, [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | wakeup.c | 114 struct acpi_wakeup_handler *handler; in acpi_register_wakeup_handler() local 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() 131 list_add(&handler->list_node, &acpi_wakeup_handler_head); in acpi_register_wakeup_handler() 146 struct acpi_wakeup_handler *handler; in acpi_unregister_wakeup_handler() local 149 list_for_each_entry(handler, &acpi_wakeup_handler_head, list_node) { in acpi_unregister_wakeup_handler() 150 if (handler->wakeup == wakeup && handler->context == context) { in acpi_unregister_wakeup_handler() 151 list_del(&handler->list_node); in acpi_unregister_wakeup_handler() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
H A D | color.py | 62 handler = CustomProgressHandler(self.d, buffer) 63 handler.write("Program output!\n") 64 handler.write("More output!\n") 65 handler.write("Progress: [01;35m[K10[m[K%\n") # 10% 66 handler.write("Even more\n") 67 handler.write("[01;35m[KProgress: 50[m[K%\n") # 50% 68 handler.write("[01;35m[KProgress: 60[m[K%\n") # 60% 69 handler.write("Pro[01;35m[Kgress: [m[K100%\n") # 100% 78 handler = bb.progress.BasicProgressHandler(self.d, outfile=buffer) 79 handler.write("[01;35m[K1[m[K%\n") # 1% [all …]
|
/openbmc/linux/arch/arm/probes/kprobes/ |
H A D | actions-arm.c | 298 [PROBES_PRELOAD_IMM] = {.handler = probes_simulate_nop}, 299 [PROBES_PRELOAD_REG] = {.handler = probes_simulate_nop}, 300 [PROBES_BRANCH_IMM] = {.handler = simulate_blx1}, 301 [PROBES_MRS] = {.handler = simulate_mrs}, 302 [PROBES_BRANCH_REG] = {.handler = simulate_blx2bx}, 303 [PROBES_CLZ] = {.handler = emulate_rd12rm0_noflags_nopc}, 305 .handler = emulate_rd12rn16rm0_rwflags_nopc}, 306 [PROBES_MUL1] = {.handler = emulate_rdlo12rdhi16rn0rm8_rwflags_nopc}, 307 [PROBES_MUL2] = {.handler = emulate_rd16rn12rm0rs8_rwflags_nopc}, 308 [PROBES_SWP] = {.handler = emulate_rd12rn16rm0_rwflags_nopc}, [all …]
|