Home
last modified time | relevance | path

Searched refs:userp (Results 1 – 9 of 9) sorted by relevance

/openbmc/qemu/include/qemu/
H A Dqht.h45 typedef bool (*qht_lookup_func_t)(const void *obj, const void *userp);
107 void *qht_lookup_custom(const struct qht *ht, const void *userp, uint32_t hash,
118 void *qht_lookup(const struct qht *ht, const void *userp, uint32_t hash);
187 void qht_iter(struct qht *ht, qht_iter_func_t func, void *userp);
201 void qht_iter_remove(struct qht *ht, qht_iter_bool_func_t func, void *userp);
H A Dplugin.h80 void *userp; member
93 void *userp; member
/openbmc/qemu/util/
H A Dqht.c556 const void *userp, uint32_t hash) in qht_do_lookup() argument
570 if (likely(p) && likely(func(p, userp))) { in qht_do_lookup()
583 const void *userp, uint32_t hash) in qht_lookup__slowpath() argument
590 ret = qht_do_lookup(b, func, userp, hash); in qht_lookup__slowpath()
595 void *qht_lookup_custom(const struct qht *ht, const void *userp, uint32_t hash, in qht_lookup_custom() argument
607 ret = qht_do_lookup(b, func, userp, hash); in qht_lookup_custom()
615 return qht_lookup__slowpath(b, func, userp, hash); in qht_lookup_custom()
618 void *qht_lookup(const struct qht *ht, const void *userp, uint32_t hash) in qht_lookup() argument
620 return qht_lookup_custom(ht, userp, hash, ht->cmp); in qht_lookup()
823 const struct qht_iter *iter, void *userp) in qht_bucket_iter() argument
[all …]
H A Dqsp.c520 static void qsp_sort(void *p, uint32_t h, void *userp) in qsp_sort() argument
523 GTree *tree = userp; in qsp_sort()
/openbmc/qemu/tests/unit/
H A Dtest-qht.c101 static void count_func(void *p, uint32_t hash, void *userp) in count_func() argument
103 unsigned int *curr = userp; in count_func()
125 static void sum_func(void *p, uint32_t hash, void *userp) in sum_func() argument
127 uint32_t *sum = userp; in sum_func()
141 static bool rm_mod_func(void *p, uint32_t hash, void *userp) in rm_mod_func() argument
144 unsigned int mod = *(unsigned int *)userp; in rm_mod_func()
/openbmc/qemu/plugins/
H A Dcore.c388 .userp = udata, in plugin_register_dyn_cb__udata()
417 struct qemu_plugin_conditional_cb cond_cb = { .userp = udata, in plugin_register_dyn_cond_cb__udata()
460 struct qemu_plugin_regular_cb regular_cb = { .userp = udata, in plugin_register_vcpu_mem_cb()
578 static bool free_dyn_cb_arr(void *p, uint32_t h, void *userp) in free_dyn_cb_arr() argument
641 vaddr, cb->regular.userp); in qemu_plugin_vcpu_mem_cb()
/openbmc/qemu/accel/tcg/
H A Dplugin-gen.c128 tcgv_ptr_temp(tcg_constant_ptr(cb->userp))); in gen_udata_cb()
194 tcgv_ptr_temp(tcg_constant_ptr(cb->userp))); in gen_udata_cond_cb()
243 tcgv_ptr_temp(tcg_constant_ptr(cb->userp))); in gen_mem_cb()
/openbmc/qemu/block/
H A Dcurl.c163 void *userp, void *sp) in curl_sock_cb() argument
165 BDRVCURLState *s = userp; in curl_sock_cb()
/openbmc/qemu/hw/9pfs/
H A D9p.c773 static bool qpd_cmp_func(const void *obj, const void *userp) in qpd_cmp_func() argument
775 const QpdEntry *e1 = obj, *e2 = userp; in qpd_cmp_func()
779 static bool qpp_cmp_func(const void *obj, const void *userp) in qpp_cmp_func() argument
781 const QppEntry *e1 = obj, *e2 = userp; in qpp_cmp_func()
785 static bool qpf_cmp_func(const void *obj, const void *userp) in qpf_cmp_func() argument
787 const QpfEntry *e1 = obj, *e2 = userp; in qpf_cmp_func()