Home
last modified time | relevance | path

Searched refs:next (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/qemu/monitor/
H A Dfds.c39 QLIST_ENTRY(mon_fd_t) next;
48 QLIST_ENTRY(MonFdsetFd) next;
57 QLIST_ENTRY(MonFdset) next;
77 QLIST_FOREACH(monfd, &mon->fds, next) { in monitor_add_fd()
96 QLIST_INSERT_HEAD(&mon->fds, monfd, next); in monitor_add_fd()
124 QLIST_FOREACH(monfd, &cur_mon->fds, next) { in qmp_closefd()
129 QLIST_REMOVE(monfd, next); in qmp_closefd()
148 QLIST_FOREACH(monfd, &mon->fds, next) { in monitor_get_fd()
159 QLIST_REMOVE(monfd, next); in monitor_get_fd()
181 QLIST_REMOVE(mon_fdset_fd, next); in monitor_fdset_cleanup()
[all …]
H A Dqemu-config-qmp.c50 while (cur->next) { in cleanup_infolist()
52 while (pre_entry != cur->next) { in cleanup_infolist()
53 if (!strcmp(pre_entry->value->name, cur->next->value->name)) { in cleanup_infolist()
54 del_entry = cur->next; in cleanup_infolist()
55 cur->next = cur->next->next; in cleanup_infolist()
56 del_entry->next = NULL; in cleanup_infolist()
60 pre_entry = pre_entry->next; in cleanup_infolist()
62 cur = cur->next; in cleanup_infolist()
73 while (cur->next) { in connect_infolist()
74 cur = cur->next; in connect_infolist()
[all …]
/qemu/tests/unit/
H A Dptimer-test-stubs.c58 while (t->next != NULL) { in timer_mod()
59 if (t->next == ts) { in timer_mod()
63 t = t->next; in timer_mod()
67 ts->next = NULL; in timer_mod()
68 t->next = ts; in timer_mod()
76 while (t->next != NULL) { in timer_del()
77 if (t->next == ts) { in timer_del()
78 t->next = ts->next; in timer_del()
82 t = t->next; in timer_del()
94 QEMUTimer *t = timer_list->active_timers.next; in qemu_clock_deadline_ns_all()
[all …]
H A Dtest-aio-multithread.c293 int next, locked; member
303 nodes[id].next = -1; in mcs_mutex_lock()
307 qatomic_set(&nodes[prev].next, id); in mcs_mutex_lock()
314 int next; in mcs_mutex_unlock() local
315 if (qatomic_read(&nodes[id].next) == -1) { in mcs_mutex_unlock()
321 while (qatomic_read(&nodes[id].next) == -1) { in mcs_mutex_unlock()
329 next = qatomic_read(&nodes[id].next); in mcs_mutex_unlock()
330 nodes[next].locked = 0; in mcs_mutex_unlock()
331 qemu_futex_wake(&nodes[next].locked, 1); in mcs_mutex_unlock()
/qemu/util/
H A Dyank.c23 QLIST_ENTRY(YankFuncAndParam) next;
29 QLIST_ENTRY(YankInstanceEntry) next;
72 QLIST_FOREACH(entry, &yank_instance_list, next) { in yank_find_entry()
94 QLIST_INSERT_HEAD(&yank_instance_list, entry, next); in yank_register_instance()
108 QLIST_REMOVE(entry, next); in yank_unregister_instance()
142 QLIST_FOREACH(func_entry, &entry->yankfns, next) { in yank_unregister_function()
144 QLIST_REMOVE(func_entry, next); in yank_unregister_function()
161 for (tail = instances; tail; tail = tail->next) { in qmp_yank()
168 for (tail = instances; tail; tail = tail->next) { in qmp_yank()
185 QLIST_FOREACH(entry, &yank_instance_list, next) { in qmp_query_yank()
[all …]
H A Drange.c45 for (l = list; l && range_compare(l->data, data) < 0; l = l->next) { in range_list_insert()
58 while (l->next && range_compare(l->data, l->next->data) == 0) { in range_list_insert()
61 range_extend(l->data, l->next->data); in range_list_insert()
62 g_free(l->next->data); in range_list_insert()
63 new_l = g_list_delete_link(list, l->next); in range_list_insert()
86 for (l = in; l && range_upb(l->data) < low; l = l->next) { in range_inverse_array()
102 for (; l->next; l = l->next) { in range_inverse_array()
104 rn = (Range *)l->next->data; in range_inverse_array()
H A Dqemu-coroutine.c50 QSLIST_ENTRY(CoroutinePoolBatch) next;
97 QSLIST_FOREACH_SAFE(batch, local_pool, next, tmp) { in local_pool_cleanup()
98 QSLIST_REMOVE_HEAD(local_pool, next); in local_pool_cleanup()
129 QSLIST_REMOVE_HEAD(local_pool, next); in coroutine_pool_get_local()
145 QSLIST_REMOVE_HEAD(&global_pool, next); in coroutine_pool_refill_local()
151 QSLIST_INSERT_HEAD(local_pool, batch, next); in coroutine_pool_refill_local()
196 QSLIST_INSERT_HEAD(local_pool, batch, next); in coroutine_pool_put()
201 CoroutinePoolBatch *next = QSLIST_NEXT(batch, next); in coroutine_pool_put() local
204 if (next) { in coroutine_pool_put()
205 QSLIST_REMOVE_HEAD(local_pool, next); in coroutine_pool_put()
[all …]
H A Dqemu-coroutine-lock.c76 Coroutine *next; in qemu_co_enter_next_impl() local
78 next = QSIMPLEQ_FIRST(&queue->entries); in qemu_co_enter_next_impl()
79 if (!next) { in qemu_co_enter_next_impl()
87 aio_co_wake(next); in qemu_co_enter_next_impl()
139 QSLIST_ENTRY(CoWaitRecord) next;
145 QSLIST_INSERT_HEAD_ATOMIC(&mutex->from_push, w, next); in push_waiter()
154 QSLIST_REMOVE_HEAD(&reversed, next); in move_waiters()
155 QSLIST_INSERT_HEAD(&mutex->to_pop, w, next); in move_waiters()
170 QSLIST_REMOVE_HEAD(&mutex->to_pop, next); in pop_waiter()
335 QSIMPLEQ_ENTRY(CoRwTicket) next;
[all …]
H A Drcu.c183 static struct rcu_head *head = &dummy, **tail = &dummy.next;
191 node->next = NULL; in enqueue()
198 old_tail = qatomic_xchg(&tail, &node->next); in enqueue()
212 struct rcu_head *node, *next; in try_dequeue() local
222 next = qatomic_load_acquire(&node->next); in try_dequeue()
223 if (!next) { in try_dequeue()
234 if (head == &dummy && qatomic_read(&tail) == &dummy.next) { in try_dequeue()
244 head = next; in try_dequeue()
H A Dqemu-option.c286 ret = QTAILQ_NEXT(ret, next); in qemu_opt_iter_next()
583 QTAILQ_FOREACH(opt, &opts->head, next) { in qemu_opt_foreach()
597 QTAILQ_FOREACH(opts, &list->head, next) { in qemu_opts_find()
1019 const QDictEntry *entry, *next; in qemu_opts_absorb_qdict() local
1024 next = qdict_next(qdict, entry); in qemu_opts_absorb_qdict()
1034 entry = next; in qemu_opts_absorb_qdict()
1057 QemuOpt *opt, *next; in qemu_opts_to_qdict_filtered() local
1065 QTAILQ_FOREACH_SAFE(opt, &opts->head, next, next) { in qemu_opts_to_qdict_filtered()
1103 QTAILQ_FOREACH(opt, &opts->head, next) { in qemu_opts_validate()
1129 QemuOpts *opts, *next; in qemu_opts_foreach() local
[all …]
H A Dqtree.c317 QTreeNode *next; in q_tree_remove_all() local
324 next = q_tree_node_next(node); in q_tree_remove_all()
339 node = next; in q_tree_remove_all()
829 next = next->left; in q_tree_remove_internal()
832 path[old_idx] = next; in q_tree_remove_internal()
854 prev->right = next; in q_tree_remove_internal()
857 next->left_child = TRUE; in q_tree_remove_internal()
858 next->left = node->left; in q_tree_remove_internal()
862 tree->root = next; in q_tree_remove_internal()
864 parent->left = next; in q_tree_remove_internal()
[all …]
/qemu/authz/
H A Dlist.c57 rules = rules->next; in qauthz_list_is_allowed()
171 while (rules->next) { in qauthz_list_append_rule()
173 rules = rules->next; in qauthz_list_append_rule()
175 rules->next = tmp; in qauthz_list_append_rule()
208 rules = rules->next; in qauthz_list_insert_rule()
210 tmp->next = rules->next; in qauthz_list_insert_rule()
211 rules->next = tmp; in qauthz_list_insert_rule()
214 tmp->next = auth->rules; in qauthz_list_insert_rule()
233 prev->next = rules->next; in qauthz_list_delete_rule()
237 rules->next = NULL; in qauthz_list_delete_rule()
[all …]
/qemu/net/
H A Dfilter.c51 NetFilterState *next; in netfilter_next() local
55 next = QTAILQ_NEXT(nf, next); in netfilter_next()
58 next = QTAILQ_PREV(nf, next); in netfilter_next()
61 return next; in netfilter_next()
73 NetFilterState *next = NULL; in qemu_netfilter_pass_to_next() local
91 next = netfilter_next(nf, direction); in qemu_netfilter_pass_to_next()
92 while (next) { in qemu_netfilter_pass_to_next()
104 next = netfilter_next(next, direction); in qemu_netfilter_pass_to_next()
295 QTAILQ_INSERT_BEFORE(position, nf, next); in netfilter_complete()
316 QTAILQ_IN_USE(nf, next)) { in netfilter_finalize()
[all …]
H A Dhub.c34 QLIST_ENTRY(NetHubPort) next;
41 QLIST_ENTRY(NetHub) next;
53 QLIST_FOREACH(port, &hub->ports, next) { in net_hub_receive()
69 QLIST_FOREACH(port, &hub->ports, next) { in net_hub_receive_iov()
88 QLIST_INSERT_HEAD(&hubs, hub, next); in net_hub_new()
99 QLIST_FOREACH(port, &hub->ports, next) { in net_hub_port_can_receive()
132 QLIST_REMOVE(port, next); in net_hub_port_cleanup()
182 QLIST_FOREACH(hub, &hubs, next) { in net_hub_add_port()
205 QLIST_FOREACH(hub, &hubs, next) { in net_hub_port_find()
229 QLIST_FOREACH(hub, &hubs, next) { in net_hub_info()
[all …]
/qemu/
H A Dreplication.c47 ReplicationState *rs, *next; in replication_start_all() local
50 QLIST_FOREACH_SAFE(rs, &replication_states, node, next) { in replication_start_all()
63 ReplicationState *rs, *next; in replication_do_checkpoint_all() local
66 QLIST_FOREACH_SAFE(rs, &replication_states, node, next) { in replication_do_checkpoint_all()
79 ReplicationState *rs, *next; in replication_get_error_all() local
82 QLIST_FOREACH_SAFE(rs, &replication_states, node, next) { in replication_get_error_all()
95 ReplicationState *rs, *next; in replication_stop_all() local
98 QLIST_FOREACH_SAFE(rs, &replication_states, node, next) { in replication_stop_all()
/qemu/system/
H A Dmemory_mapping.c29 QTAILQ_FOREACH(p, &list->head, next) { in memory_mapping_list_add_mapping_sorted()
31 QTAILQ_INSERT_BEFORE(p, mapping, next); in memory_mapping_list_add_mapping_sorted()
35 QTAILQ_INSERT_TAIL(&list->head, mapping, next); in memory_mapping_list_add_mapping_sorted()
126 QTAILQ_FOREACH(memory_mapping, &list->head, next) { in memory_mapping_list_add_merge_sorted()
158 QTAILQ_FOREACH_SAFE(p, &list->head, next, q) { in memory_mapping_list_free()
159 QTAILQ_REMOVE(&list->head, p, next); in memory_mapping_list_free()
178 QTAILQ_FOREACH_SAFE(p, &list->head, next, q) { in guest_phys_blocks_free()
179 QTAILQ_REMOVE(&list->head, p, next); in guest_phys_blocks_free()
353 MemoryMapping *cur, *next; in memory_mapping_filter() local
355 QTAILQ_FOREACH_SAFE(cur, &list->head, next, next) { in memory_mapping_filter()
[all …]
/qemu/target/loongarch/tcg/
H A Dconstant_timer.c37 uint64_t now, next; in cpu_loongarch_store_constant_timer_config() local
42 next = now + (value & CONSTANT_TIMER_TICK_MASK) * TIMER_PERIOD; in cpu_loongarch_store_constant_timer_config()
43 timer_mod(&cpu->timer, next); in cpu_loongarch_store_constant_timer_config()
53 uint64_t now, next; in loongarch_constant_timer_cb() local
57 next = now + (env->CSR_TCFG & CONSTANT_TIMER_TICK_MASK) * TIMER_PERIOD; in loongarch_constant_timer_cb()
58 timer_mod(&cpu->timer, next); in loongarch_constant_timer_cb()
/qemu/target/riscv/
H A Dtime_helper.c47 uint64_t diff, ns_diff, next; in riscv_timer_write_timecmp() local
109 next = INT64_MAX; in riscv_timer_write_timecmp()
116 next = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + ns_diff; in riscv_timer_write_timecmp()
121 next = MIN(next, INT64_MAX); in riscv_timer_write_timecmp()
124 timer_mod(timer, next); in riscv_timer_write_timecmp()
/qemu/hw/ppc/
H A Dppc_booke.c131 uint64_t *next, in booke_update_fixed_timer() argument
166 *next = now + muldiv64(ticks, NANOSECONDS_PER_SECOND, tb_env->tb_freq); in booke_update_fixed_timer()
167 if ((*next < now) || (*next > INT64_MAX)) { in booke_update_fixed_timer()
169 *next = INT64_MAX; in booke_update_fixed_timer()
176 if (*next == now) { in booke_update_fixed_timer()
177 (*next)++; in booke_update_fixed_timer()
183 *next = MAX(*next, now + SCALE_MS); in booke_update_fixed_timer()
187 timer_mod(timer, *next); in booke_update_fixed_timer()
H A Dppc.c848 uint64_t next; in __cpu_ppc_store_decr() local
1188 uint64_t now, next; in cpu_4xx_fit_cb() local
1195 next = 1 << 9; in cpu_4xx_fit_cb()
1198 next = 1 << 13; in cpu_4xx_fit_cb()
1201 next = 1 << 17; in cpu_4xx_fit_cb()
1204 next = 1 << 21; in cpu_4xx_fit_cb()
1210 next = now + tb_to_ns_round_up(tb_env->tb_freq, next); in cpu_4xx_fit_cb()
1224 uint64_t now, next; in start_stop_pit() local
1275 uint64_t now, next; in cpu_4xx_wdt_cb() local
1282 next = 1 << 17; in cpu_4xx_wdt_cb()
[all …]
/qemu/hw/xen/
H A Dxen-mapcache.c49 struct MapCacheEntry *next; member
56 QTAILQ_ENTRY(MapCacheRev) next;
306 entry = entry->next; in xen_map_cache_unlocked()
314 pentry->next = entry; in xen_map_cache_unlocked()
388 QTAILQ_FOREACH(reventry, &mapcache->locked_entries, next) { in xen_ram_addr_from_mapcache()
408 entry = entry->next; in xen_ram_addr_from_mapcache()
429 QTAILQ_FOREACH(reventry, &mapcache->locked_entries, next) { in xen_invalidate_map_cache_entry_unlocked()
447 QTAILQ_REMOVE(&mapcache->locked_entries, reventry, next); in xen_invalidate_map_cache_entry_unlocked()
458 entry = entry->next; in xen_invalidate_map_cache_entry_unlocked()
469 pentry->next = entry->next; in xen_invalidate_map_cache_entry_unlocked()
[all …]
/qemu/target/m68k/
H A Dhelper.c733 uint32_t next; in get_physical_address() local
760 next = env->mmu.srp; in get_physical_address()
762 next = env->mmu.urp; in get_physical_address()
772 if (!M68K_UDT_VALID(next)) { in get_physical_address()
782 if (next & M68K_DESC_WRITEPROT) { in get_physical_address()
799 if (!M68K_UDT_VALID(next)) { in get_physical_address()
809 if (next & M68K_DESC_WRITEPROT) { in get_physical_address()
831 if (!M68K_PDT_VALID(next)) { in get_physical_address()
834 if (M68K_PDT_INDIRECT(next)) { in get_physical_address()
835 next = address_space_ldl(cs->as, M68K_INDIRECT_POINTER(next), in get_physical_address()
[all …]
/qemu/stats/
H A Dstats-qmp-cmds.c18 QTAILQ_ENTRY(StatsCallbacks) next;
33 QTAILQ_INSERT_TAIL(&stats_callbacks, entry, next); in add_stats_callbacks()
88 QTAILQ_FOREACH(entry, &stats_callbacks, next) { in qmp_query_stats()
90 for (request = filter->providers; request; request = request->next) { in qmp_query_stats()
114 QTAILQ_FOREACH(entry, &stats_callbacks, next) { in qmp_query_stats_schemas()
158 for (str_list = list; str_list; str_list = str_list->next) { in apply_str_list_filter()
/qemu/tests/qtest/
H A Drtl8139-test.c74 unsigned prev, curr, next; in test_timer() local
151 next = curr + 5.0 * CLK; in test_timer()
152 out_TimerInt(next); in test_timer()
161 if (cnt < 3 && curr > next) { in test_timer()
166 next = curr + 5.0 * CLK; in test_timer()
167 out_TimerInt(next); in test_timer()
/qemu/ui/
H A Dconsole.c91 QLIST_FOREACH(dcl, &ds->listeners, next) { in gui_update()
111 QLIST_FOREACH(dcl, &ds->listeners, next) { in gui_setup_refresh()
373 it = QTAILQ_NEXT(it, next); in qemu_console_register()
746 QLIST_REMOVE(dcl, next); in unregister_displaychangelistener()
1192 QTAILQ_FOREACH(con, &consoles, next) { in init_displaystate()
1274 QTAILQ_FOREACH(con, &consoles, next) { in qemu_console_lookup_default()
1286 QTAILQ_FOREACH(con, &consoles, next) { in qemu_console_lookup_by_index()
1300 QTAILQ_FOREACH(con, &consoles, next) { in qemu_console_lookup_by_device()
1344 QTAILQ_FOREACH(con, &consoles, next) { in qemu_graphic_console_lookup_unused()
1388 QTAILQ_FOREACH(con, &consoles, next) { in qemu_graphic_console_is_multihead()
[all …]

12345678910>>...22