/openbmc/qemu/docs/devel/ |
H A D | multiple-iothreads.rst | 14 The main loop and ``IOThread``\ s 17 event loop. The VNC server and the QMP monitor are both processed from the 18 same event loop, which monitors their file descriptors until they become 21 The default event loop is called the main loop (see ``main-loop.c``). It is 22 possible to create additional event loop threads using 25 Side note: The main loop and ``IOThread`` are both event loops but their code is 31 ``IOThread``\ s allow the user to control the placement of work. The main loop is a 33 several ``IOThread``\ s instead of just one main loop. When set up correctly this 36 The main loop is also deeply associated with the BQL, which is a 37 scalability bottleneck in itself. vCPU threads and the main loop use the BQL [all …]
|
/openbmc/u-boot/include/ |
H A D | mpc8xx.h | 284 #define MCR_MLCF(n) (((n)&0xF)<<8) /* Memory Command Loop Count Field */ 315 #define MAMR_RLFA_MSK 0x00000F00 /* Read Loop Field A mask */ 316 #define MAMR_RLFA_1X 0x00000100 /* The Read Loop is executed 1 time */ 317 #define MAMR_RLFA_2X 0x00000200 /* The Read Loop is executed 2 times */ 318 #define MAMR_RLFA_3X 0x00000300 /* The Read Loop is executed 3 times */ 319 #define MAMR_RLFA_4X 0x00000400 /* The Read Loop is executed 4 times */ 320 #define MAMR_RLFA_5X 0x00000500 /* The Read Loop is executed 5 times */ 321 #define MAMR_RLFA_6X 0x00000600 /* The Read Loop is executed 6 times */ 322 #define MAMR_RLFA_7X 0x00000700 /* The Read Loop is executed 7 times */ 323 #define MAMR_RLFA_8X 0x00000800 /* The Read Loop is executed 8 times */ [all …]
|
/openbmc/phosphor-objmgr/libmapper/ |
H A D | app.c | 25 static void quit(int r, void* loop) in quit() argument 27 sd_event_exit((sd_event*)loop, r); in quit() 34 sd_event* loop = NULL; in wait_main() local 47 * GetObject call may fail with a timeout and cause the event loop to exit. in wait_main() 62 r = sd_event_default(&loop); in wait_main() 65 fprintf(stderr, "Error obtaining event loop: %s\n", strerror(-r)); in wait_main() 70 r = sd_bus_attach_event(conn, loop, SD_EVENT_PRIORITY_NORMAL); in wait_main() 75 "bus to event loop: %s\n", in wait_main() 80 r = mapper_wait_async(conn, loop, argv + 2, quit, loop, &wait); in wait_main() 87 r = sd_event_loop(loop); in wait_main() [all …]
|
/openbmc/phosphor-bmc-code-mgmt/bmc/ |
H A D | sync_manager_main.cpp | 18 sd_event* loop = nullptr; in main() local 19 sd_event_default(&loop); in main() 28 phosphor::software::manager::SyncWatch watch(*loop, syncCallback); in main() 29 bus.attach_event(loop, SD_EVENT_PRIORITY_NORMAL); in main() 30 sd_event_loop(loop); in main() 34 lg2::error("Error in event loop: {ERROR}", "ERROR", e); in main() 35 sd_event_unref(loop); in main() 39 sd_event_unref(loop); in main()
|
H A D | image_manager_main.cpp | 17 sd_event* loop = nullptr; in main() local 18 sd_event_default(&loop); in main() 27 loop, std::bind(std::mem_fn(&Manager::processImage), &imageManager, in main() 29 bus.attach_event(loop, SD_EVENT_PRIORITY_NORMAL); in main() 30 sd_event_loop(loop); in main() 34 lg2::error("Error in event loop: {ERROR}", "ERROR", e); in main() 38 sd_event_unref(loop); in main()
|
/openbmc/openbmc/poky/bitbake/lib/bb/asyncrpc/ |
H A D | serv.py | 147 def start(self, loop): argument 148 self.server = loop.run_until_complete( 192 def start(self, loop): argument 197 self.server = loop.run_until_complete( 225 def start(self, loop): argument 228 self.server = loop.run_until_complete( 270 self.loop = None 319 tasks = self.server.start(self.loop) 325 self.loop.create_task(self.stop()) 329 self.loop.add_signal_handler(signal.SIGTERM, self.signal_handler) [all …]
|
H A D | client.py | 215 self.loop = asyncio.new_event_loop() 217 # Override any pre-existing loop. 225 asyncio.set_event_loop(self.loop) 235 return self.loop.run_until_complete(downcall(*args, **kwargs)) 245 self.loop.run_until_complete(self.client.connect_unix(path)) 246 self.loop.run_until_complete(self.client.connect()) 257 self.loop.run_until_complete(self.client.close()) 260 if self.loop: 261 self.loop.run_until_complete(self.client.close()) 262 self.loop.run_until_complete(self.loop.shutdown_asyncgens()) [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | main-loop.h | 30 #include "system/event-loop-base.h" 34 #define TYPE_MAIN_LOOP "main-loop" 43 * qemu_init_main_loop: Set up the process so that it can run the main loop. 47 * main one should block signals that are trapped by the main loop. 58 * main_loop_wait: Run one iteration of the main loop. 61 * one actually occurs. The main loop usually consists of a loop that 64 * Main loop services include file descriptor callbacks, bottom halves 70 * case, the coroutine actually should be started from within the main loop, 71 * so that the main loop can run whenever the coroutine yields. To do this, 72 * you can use a bottom half to enter the coroutine as soon as the main loop [all …]
|
/openbmc/skeleton/op-pwrctl/pgood_wait/ |
H A D | pgood_wait.c | 28 static void quit(int r, void *loop) in quit() argument 30 sd_event_exit((sd_event *)loop, r); in quit() 37 sd_event *loop = user; in callback() local 46 quit(r, loop); in callback() 55 quit(r, loop); in callback() 69 quit(r, loop); in callback() 76 quit(0, loop); in callback() 171 sd_event *loop = NULL; in main() local 211 r = sd_event_default(&loop); in main() 214 fprintf(stderr, "Error obtaining event loop: %s\n", in main() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/cpulimit/cpulimit/ |
H A D | 0002-busy.c-Fix-incompatible-pointer-type-error.patch | 9 20 | if ((ret = pthread_create(&thread, NULL, loop, NULL)) != 0) 17 busy.c:6:7: note: 'loop' declared here 18 6 | void *loop() 21 Set loop parameter to void* since it requires void* type argument. 38 -void *loop() 39 +void *loop(void *arg) 47 - loop(); 48 + loop(NULL);
|
/openbmc/sdeventplus/src/sdeventplus/ |
H A D | event.hpp | 108 * @return Positive value if the event loop should continue 109 * 0 value if the event loop should exit 113 /** @brief Runs a single iteration of the event loop 122 /** @brief Run the event loop to completion 125 * @return Exit status of the event loop from exit() 127 int loop() const; 129 /** @brief Sets the exit code for the loop and notifies 130 * the event loop it should terminate 137 /** @brief Gets the exit code for the event loop 144 /** @brief Get the status of the event loop watchdog [all …]
|
/openbmc/openpower-pnor-code-mgmt/ |
H A D | item_updater_main.cpp | 56 auto loop = sdeventplus::Event::get_default(); in main() local 58 bus.attach_event(loop.get(), SD_EVENT_PRIORITY_NORMAL); in main() 83 // subcommandContext allows program subcommand callbacks to add loop event in main() 85 // without the loop event callback being destroyed until the loop event in main() 86 // callback has a chance to run and instruct the loop to exit. in main() 91 ->callback([&bus, &loop, &subcommandContext, extensionMap]() { in main() 99 std::move(logCallback), loop)); in main() 105 ->callback([&bus, &loop, &subcommandContext, extensionMap]() { in main() 110 loop); in main() 126 auto rc = loop.loop(); in main()
|
/openbmc/qemu/tests/tcg/xtensa/ |
H A D | test_loop.S | 3 test_suite loop 7 test loop 10 loop a3, 1f 18 loop a2, 1f 28 loop a3, 1f 38 loop a3, 1f 70 loop a3, 1f
|
/openbmc/qemu/python/qemu/qmp/ |
H A D | util.py | 26 Return this thread's current event loop, or create a new one. 29 Python<=3.13, where if there is no event loop currently associated 36 # event loop is set, but will create and set a new loop. 38 loop = asyncio.get_event_loop() 40 # Python 3.14+: No event loop set for this thread, 42 loop = asyncio.new_event_loop() 43 # Set this loop as the current thread's loop, to be returned 45 asyncio.set_event_loop(loop) [all...] |
/openbmc/qemu/tests/tcg/multiarch/system/ |
H A D | interrupt.c | 4 * infinite loop from GDB. 12 void loop(void) in loop() function 16 * Loop forever. Just make sure the condition is always a constant in loop() 17 * expression, so that this loop is not UB, as per the C in loop()
|
/openbmc/openbmc/poky/meta/recipes-bsp/libacpi/files/ |
H A D | 0001-libacpi-Fix-build-witth-fno-commom.patch | 23 + * Array for existing batteries, loop until 28 + * Array for existing thermal zones, loop until 33 + * Array for existing fans, loop until 46 * Array for existing batteries, loop until 52 * Array for existing thermal zones, loop until 58 * Array for existing fans, loop until
|
/openbmc/qemu/include/block/ |
H A D | aio-wait.h | 29 #include "qemu/main-loop.h" 37 * The main loop can wait on an operation running in an IOThread as follows: 44 * The IOThread must call aio_wait_kick() to notify the main loop when 68 * operations that require event loop activity. 73 * The caller's thread must be the IOThread that owns @ctx or the main loop 76 * go via the main loop instead. 113 * IOThread's event loop run, waiting for the operation to complete. A 126 * Must be called from the main loop thread without @ctx acquired. 127 * Note that main loop event processing may occur.
|
/openbmc/qemu/tests/unit/ |
H A D | test-io-task.c | 142 GMainLoop *loop; member 170 g_main_loop_quit(data->loop); in test_task_thread_callback() 181 data.loop = g_main_loop_new(g_main_context_default(), in test_task_thread_complete() 195 g_main_loop_run(data.loop); in test_task_thread_complete() 197 g_main_loop_unref(data.loop); in test_task_thread_complete() 210 * the main loop thread (ie this one) */ in test_task_thread_complete() 222 data.loop = g_main_loop_new(g_main_context_default(), in test_task_thread_failure() 237 g_main_loop_run(data.loop); in test_task_thread_failure() 239 g_main_loop_unref(data.loop); in test_task_thread_failure() 252 * the main loop thread (ie this one) */ in test_task_thread_failure()
|
/openbmc/qemu/include/io/ |
H A D | channel-watch.h | 38 * Create a new main loop source that is able to 44 * Returns: the new main loop source 56 * Create a new main loop source that is able to 62 * Returns: the new main loop source 75 * Create a new main loop source that is able to 83 * Returns: the new main loop source
|
/openbmc/phosphor-pid-control/pid/ |
H A D | pidloop.hpp | 14 * Main pid control loop for a given zone. 15 * This function calls itself indefinitely in an async loop to calculate 18 * @param[in] zone - ptr to the ZoneInterface implementation for this loop. 23 * @param[in] cycleCnt - loop timer counter.
|
/openbmc/qemu/tests/qtest/ |
H A D | dbus-vmstate-test.c | 38 GMainLoop *loop; member 80 GMainLoop *loop; member 92 g_main_loop_quit(t->loop); in named_cb() 104 wait->loop = test->loop; in get_connection() 118 g_main_loop_run(wait->loop); in get_connection() 164 GMainLoop *loop = data; in dbus_vmstate_thread() local 166 g_main_loop_run(loop); in dbus_vmstate_thread() 189 g_autoptr(GMainLoop) loop = NULL; in test_dbus_vmstate() 196 loop = g_main_loop_new(NULL, FALSE); in test_dbus_vmstate() 197 test->loop = loop; in test_dbus_vmstate() [all …]
|
/openbmc/u-boot/drivers/net/fsl-mc/dpio/ |
H A D | qbman_sys.h | 166 int loop; in qbman_cena_write_complete() local 173 for (loop = 15; loop >= 0; loop--) in qbman_cena_write_complete() 175 __raw_writel(shadow[loop], s->addr_cinh + in qbman_cena_write_complete() 176 offset + loop * 4); in qbman_cena_write_complete() 178 __raw_writel(shadow[loop], s->addr_cena + in qbman_cena_write_complete() 179 offset + loop * 4); in qbman_cena_write_complete() 186 unsigned int loop; in qbman_cena_read() local 193 for (loop = 0; loop < 16; loop++) in qbman_cena_read() 195 shadow[loop] = __raw_readl(s->addr_cinh + offset in qbman_cena_read() 196 + loop * 4); in qbman_cena_read() [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | CoolingLoop.v1_0_3.json |
|
/openbmc/skeleton/bmcctl/ |
H A D | control_bmc_obj.c | 108 /* Main Event Loop */ 112 GMainLoop *loop; in main() local 118 loop = g_main_loop_new(NULL, FALSE); in main() 119 cmd.loop = loop; in main() 128 g_main_loop_run(loop); in main() 131 g_main_loop_unref(loop); in main()
|
/openbmc/sdbusplus/src/async/ |
H A D | context.cpp | 43 static auto loop(context& ctx) -> task<>; 102 auto wait_process_completion::loop(context& ctx) -> task<> in loop() function in sdbusplus::async::details::wait_process_completion 109 ctx.loop.get_scheduler()); in loop() 131 // Run the primary portion of the run-loop. in run() 142 // Finish up the loop and join the thread. in run() 144 loop.finish(); in run() 174 // Start the sdbus 'wait/process' loop; treat it as an internal task. in worker_run() 175 internal_tasks.spawn(details::wait_process_completion::loop(*this)); in worker_run() 178 loop.run(); in worker_run() 225 // We are able to run the loop until the context is requested to stop or in caller_run() [all …]
|