Home
last modified time | relevance | path

Searched refs:Coroutine (Results 1 – 25 of 76) sorted by relevance

1234

/openbmc/qemu/include/qemu/
H A Dcoroutine_int.h44 struct Coroutine { struct
47 Coroutine *caller; argument
50 QSLIST_ENTRY(Coroutine) pool_next;
62 QSIMPLEQ_ENTRY(Coroutine) co_queue_next; argument
67 QSIMPLEQ_HEAD(, Coroutine) co_queue_wakeup;
69 QSLIST_ENTRY(Coroutine) co_scheduled_next;
72 Coroutine *qemu_coroutine_new(void);
73 void qemu_coroutine_delete(Coroutine *co);
74 CoroutineAction qemu_coroutine_switch(Coroutine *from, Coroutine *to,
H A Dcoroutine-core.h57 typedef struct Coroutine Coroutine; typedef
77 Coroutine *qemu_coroutine_create(CoroutineEntry *entry, void *opaque);
82 void qemu_coroutine_enter(Coroutine *coroutine);
88 void qemu_coroutine_enter_if_inactive(Coroutine *co);
93 void qemu_aio_coroutine_enter(AioContext *ctx, Coroutine *co);
106 AioContext *qemu_coroutine_get_aio_context(Coroutine *co);
111 Coroutine *qemu_coroutine_self(void);
134 bool qemu_coroutine_entered(Coroutine *co);
H A Dcoroutine.h68 Coroutine *holder;
95 QSIMPLEQ_HEAD(, Coroutine) entries;
226 Coroutine *to_wake;
H A Dvhost-user-server.h54 Coroutine *co_trip; /* coroutine for processing VhostUserMsg */
/openbmc/qemu/util/
H A Dqemu-coroutine.c53 QSLIST_HEAD(, Coroutine) list;
81 Coroutine *co; in coroutine_pool_batch_delete()
82 Coroutine *tmp; in coroutine_pool_batch_delete()
114 static Coroutine *coroutine_pool_get_local(void) in coroutine_pool_get_local()
118 Coroutine *co; in coroutine_pool_get_local()
177 static Coroutine *coroutine_pool_get(void) in coroutine_pool_get()
179 Coroutine *co; in coroutine_pool_get()
189 static void coroutine_pool_put(Coroutine *co) in coroutine_pool_put()
217 Coroutine *qemu_coroutine_create(CoroutineEntry *entry, void *opaque) in qemu_coroutine_create()
219 Coroutine *co = NULL; in qemu_coroutine_create()
[all …]
H A Dcoroutine-windows.c31 Coroutine base;
38 QEMU_DEFINE_STATIC_CO_TLS(Coroutine *, current);
49 qemu_coroutine_switch(Coroutine *from_, Coroutine *to_, in qemu_coroutine_switch()
64 Coroutine *co = co_; in coroutine_trampoline()
72 Coroutine *qemu_coroutine_new(void) in qemu_coroutine_new()
82 void qemu_coroutine_delete(Coroutine *co_) in qemu_coroutine_delete()
90 Coroutine *qemu_coroutine_self(void) in qemu_coroutine_self()
92 Coroutine *current = get_current(); in qemu_coroutine_self()
106 Coroutine *current = get_current(); in qemu_in_coroutine()
H A Dcoroutine-sigaltstack.c37 Coroutine base;
48 Coroutine *current;
96 static void coroutine_bootstrap(CoroutineSigAltStack *self, Coroutine *co) in coroutine_bootstrap()
117 Coroutine *co; in coroutine_trampoline()
148 Coroutine *qemu_coroutine_new(void) in qemu_coroutine_new()
265 void qemu_coroutine_delete(Coroutine *co_) in qemu_coroutine_delete()
273 CoroutineAction qemu_coroutine_switch(Coroutine *from_, Coroutine *to_, in qemu_coroutine_switch()
290 Coroutine *qemu_coroutine_self(void) in qemu_coroutine_self()
H A Dqemu-coroutine-lock.c44 Coroutine *self = qemu_coroutine_self(); in qemu_co_queue_wait_impl()
76 Coroutine *next; in qemu_co_enter_next_impl()
138 Coroutine *co;
184 static void coroutine_fn qemu_co_mutex_wake(CoMutex *mutex, Coroutine *co) in qemu_co_mutex_wake()
197 Coroutine *self = qemu_coroutine_self(); in qemu_co_mutex_lock_slowpath()
221 Coroutine *co = to_wake->co; in qemu_co_mutex_lock_slowpath()
239 Coroutine *self = qemu_coroutine_self(); in qemu_co_mutex_lock()
278 Coroutine *self = qemu_coroutine_self(); in qemu_co_mutex_unlock()
334 Coroutine *co;
349 Coroutine *co = NULL; in qemu_co_rwlock_maybe_wake_one()
[all …]
H A Dcoroutine-ucontext.c46 Coroutine base;
70 QEMU_DEFINE_STATIC_CO_TLS(Coroutine *, current);
152 Coroutine *co; in coroutine_trampoline()
180 Coroutine *qemu_coroutine_new(void) in qemu_coroutine_new()
281 void qemu_coroutine_delete(Coroutine *co_) in qemu_coroutine_delete()
311 qemu_coroutine_switch(Coroutine *from_, Coroutine *to_, in qemu_coroutine_switch()
337 Coroutine *qemu_coroutine_self(void) in qemu_coroutine_self()
339 Coroutine *self = get_current(); in qemu_coroutine_self()
356 Coroutine *self = get_current(); in qemu_in_coroutine()
H A Dasync.c553 QSLIST_HEAD(, Coroutine) straight, reversed; in co_schedule_bh_cb()
559 Coroutine *co = QSLIST_FIRST(&reversed); in co_schedule_bh_cb()
565 Coroutine *co = QSLIST_FIRST(&straight); in co_schedule_bh_cb()
630 void aio_co_schedule(AioContext *ctx, Coroutine *co) in aio_co_schedule()
657 Coroutine *co;
686 void aio_co_wake(Coroutine *co) in aio_co_wake()
699 void aio_co_enter(AioContext *ctx, Coroutine *co) in aio_co_enter()
707 Coroutine *self = qemu_coroutine_self(); in aio_co_enter()
H A Dqemu-coroutine-sleep.c23 Coroutine *co; in qemu_co_sleep_wake()
45 Coroutine *co = qemu_coroutine_self(); in qemu_co_sleep()
H A Dqemu-co-timeout.c61 Coroutine *co; in qemu_co_timeout()
H A Dqemu-coroutine-io.c70 Coroutine *co;
/openbmc/qemu/tests/unit/
H A Dtest-coroutine.c28 Coroutine *coroutine; in test_in_coroutine()
42 Coroutine **p_co = opaque; in verify_self()
48 Coroutine *coroutine; in test_self()
60 Coroutine *caller = (Coroutine *)opaque; in verify_entered_step_2()
73 Coroutine *self = qemu_coroutine_self(); in verify_entered_step_1()
74 Coroutine *coroutine; in verify_entered_step_1()
87 Coroutine *coroutine; in test_entered()
111 Coroutine *child; in nest()
122 Coroutine *root; in test_nesting()
154 Coroutine *coroutine; in test_yield()
[all …]
H A Dtest-aio-multithread.c109 static Coroutine *to_schedule[NUM_CONTEXTS];
118 Coroutine *co; in schedule_next()
173 Coroutine *co1 = qemu_coroutine_create(test_multi_co_schedule_entry, NULL); in test_multi_co_schedule()
239 Coroutine *co1 = qemu_coroutine_create(test_multi_co_mutex_entry, NULL); in test_multi_co_mutex()
358 Coroutine *co1 = qemu_coroutine_create(test_multi_fair_mutex_entry, NULL); in test_multi_fair_mutex()
414 Coroutine *co1 = qemu_coroutine_create(test_multi_mutex_entry, NULL); in test_multi_mutex()
H A Dtest-bdrv-drain.c54 Coroutine *co = qemu_coroutine_create(sleep_in_drain_begin, bs); in bdrv_test_drain_begin()
143 Coroutine *co; in call_in_coroutine()
530 Coroutine *co; in test_iothread_common()
1039 Coroutine *co; in do_test_delete_by_drain()
1724 Coroutine *io_co;
1725 Coroutine *drain_co;
1848 Coroutine *co = qemu_coroutine_create(bdrv_replace_test_read_entry, in bdrv_replace_test_drain_end()
1915 Coroutine *io_co; in do_test_replace_child_mid_drain()
/openbmc/qemu/hw/9pfs/
H A Dcoth.c29 Coroutine *co = opaque; in coroutine_enter_cb()
36 Coroutine *co = arg; in coroutine_enter_func()
43 Coroutine *co = opaque; in co_run_in_worker_bh()
/openbmc/qemu/python/qemu/qmp/
H A Dutil.py18 Coroutine,
87 def create_task(coro: Coroutine[Any, Any, T],
152 def asyncio_run(coro: Coroutine[Any, Any, T], *, debug: bool = False) -> T:
/openbmc/qemu/include/block/
H A Daio.h202 QSLIST_HEAD(, Coroutine) scheduled_coroutines;
625 void aio_co_schedule(AioContext *ctx, Coroutine *co);
651 void aio_co_wake(Coroutine *co);
660 void aio_co_enter(AioContext *ctx, Coroutine *co);
/openbmc/qemu/block/
H A Dblkreplay.c20 Coroutine *co;
63 Coroutine *co) in block_request_create()
H A Dblock-gen.h35 Coroutine *co; /* Keep pointer here for debugging */
H A Daio_task.c30 Coroutine *main_co;
/openbmc/qemu/stubs/
H A Dmonitor-core.c10 Monitor *monitor_set_cur(Coroutine *co, Monitor *mon) in monitor_set_cur()
/openbmc/qemu/migration/
H A Dmigration.h184 Coroutine *loadvm_co;
187 Coroutine *colo_incoming_co;
/openbmc/qemu/nbd/
H A Dclient-connection.c67 Coroutine *wait_co;
413 Coroutine *wait_co = NULL; in nbd_co_establish_connection_cancel()

1234