/qemu/util/ |
H A D | qht.c | 110 static inline void qht_lock(struct qht *ht) in qht_lock() argument 112 if (ht->mode & QHT_MODE_RAW_MUTEXES) { in qht_lock() 113 qemu_mutex_lock__raw(&ht->lock); in qht_lock() 115 qemu_mutex_lock(&ht->lock); in qht_lock() 119 static inline int qht_trylock(struct qht *ht) in qht_trylock() argument 121 if (ht->mode & QHT_MODE_RAW_MUTEXES) { in qht_trylock() 122 return qemu_mutex_trylock__raw(&(ht)->lock); in qht_trylock() 124 return qemu_mutex_trylock(&(ht)->lock); in qht_trylock() 128 static inline void qht_unlock(struct qht *ht) in qht_unlock() argument 130 qemu_mutex_unlock(&ht->lock); in qht_unlock() [all …]
|
H A D | qsp.c | 94 struct qht ht; member 289 qsp_entry_create(struct qht *ht, const QSPEntry *entry, uint32_t hash) in qsp_entry_create() argument 298 qht_insert(ht, e, hash, &existing); in qsp_entry_create() 307 qsp_entry_find(struct qht *ht, const QSPEntry *entry, uint32_t hash) in qsp_entry_find() argument 311 e = qht_lookup(ht, entry, hash); in qsp_entry_find() 313 e = qsp_entry_create(ht, entry, hash); in qsp_entry_find() 530 struct qht *ht = up; in qsp_aggregate() local 536 agg = qsp_entry_find(ht, e, hash); in qsp_aggregate() 547 struct qht *ht = htp; in qsp_iter_diff() local 551 new = qht_lookup(ht, old, hash); in qsp_iter_diff() [all …]
|
/qemu/include/qemu/ |
H A D | qht.h | 59 void qht_init(struct qht *ht, qht_cmp_func_t cmp, size_t n_elems, 68 void qht_destroy(struct qht *ht); 88 bool qht_insert(struct qht *ht, void *p, uint32_t hash, void **existing); 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); 136 bool qht_remove(struct qht *ht, const void *p, uint32_t hash); 148 void qht_reset(struct qht *ht); 162 bool qht_reset_size(struct qht *ht, size_t n_elems); 173 bool qht_resize(struct qht *ht, size_t n_elems); 187 void qht_iter(struct qht *ht, qht_iter_func_t func, void *userp); [all …]
|
/qemu/tests/unit/ |
H A D | test-qht.c | 13 static struct qht ht; variable 36 inserted = qht_insert(&ht, &arr[i], hash, NULL); in insert() 38 inserted = qht_insert(&ht, &arr[i], hash, &existing); in insert() 53 g_assert_true(qht_remove(&ht, &arr[i], hash)); in do_rm() 55 g_assert_false(qht_remove(&ht, &arr[i], hash)); in do_rm() 85 p = qht_lookup(&ht, &val, hash); in check() 87 p = qht_lookup_custom(&ht, &val, hash, is_equal); in check() 93 qht_statistics_init(&ht, &stats); in check() 112 qht_statistics_init(&ht, &stats); in check_n() 121 qht_iter(&ht, count_func, &curr); in iter_check() [all …]
|
/qemu/tests/bench/ |
H A D | qht-bench.c | 40 static struct qht ht; variable 147 resized = qht_resize(&ht, size); in do_rz() 171 read = qht_lookup(&ht, p, hash); in do_rw() 183 if (qht_lookup(&ht, p, hash) == NULL) { in do_rw() 184 written = qht_insert(&ht, p, hash, NULL); in do_rw() 194 if (qht_lookup(&ht, p, hash)) { in do_rw() 195 removed = qht_remove(&ht, p, hash); in do_rw() 346 qht_init(&ht, is_equal, qht_n_elems, qht_mode); in htable_init() 360 if (qht_insert(&ht, p, hash, NULL)) { in htable_init()
|
/qemu/target/i386/ |
H A D | sev.c | 72 SevHashTable ht; member 1866 SevHashTable *ht; in build_kernel_loader_hashes() local 1908 ht = &padded_ht->ht; in build_kernel_loader_hashes() 1910 ht->guid = sev_hash_table_header_guid; in build_kernel_loader_hashes() 1911 ht->len = sizeof(*ht); in build_kernel_loader_hashes() 1913 ht->cmdline.guid = sev_cmdline_entry_guid; in build_kernel_loader_hashes() 1914 ht->cmdline.len = sizeof(ht->cmdline); in build_kernel_loader_hashes() 1915 memcpy(ht->cmdline.hash, cmdline_hash, sizeof(ht->cmdline.hash)); in build_kernel_loader_hashes() 1917 ht->initrd.guid = sev_initrd_entry_guid; in build_kernel_loader_hashes() 1918 ht->initrd.len = sizeof(ht->initrd); in build_kernel_loader_hashes() [all …]
|
/qemu/hw/9pfs/ |
H A D | 9p.c | 797 static void qp_table_destroy(struct qht *ht) in qp_table_destroy() argument 799 if (!ht || !ht->map) { in qp_table_destroy() 802 qht_iter(ht, qp_table_remove, NULL); in qp_table_destroy() 803 qht_destroy(ht); in qp_table_destroy() 806 static void qpd_table_init(struct qht *ht) in qpd_table_init() argument 808 qht_init(ht, qpd_cmp_func, 1, QHT_MODE_AUTO_RESIZE); in qpd_table_init() 811 static void qpp_table_init(struct qht *ht) in qpp_table_init() argument 813 qht_init(ht, qpp_cmp_func, 1, QHT_MODE_AUTO_RESIZE); in qpp_table_init() 816 static void qpf_table_init(struct qht *ht) in qpf_table_init() argument 818 qht_init(ht, qpf_cmp_func, 1 << 16, QHT_MODE_AUTO_RESIZE); in qpf_table_init()
|
/qemu/docs/devel/ |
H A D | submitting-a-patch.rst | 274 keys <https://meta.sr.ht/keys>`__. 275 #. Publish your git branch using **git push git@git.sr.ht:~USERNAME/qemu 278 ``git-send-email`` UI at https://git.sr.ht/~USERNAME/qemu/send-email 281 <https://man.sr.ht/git.sr.ht/#sending-patches-upstream>`__.
|
/qemu/pc-bios/ |
H A D | qemu.rsrc | 251 $"2836 434E 5356 5655 5352 5151 545D 6874" /* (6CNSVVUSRQQT]ht */
|