Home
last modified time | relevance | path

Searched refs:ht (Results 1 – 2 of 2) sorted by relevance

/xnu-12377.1.9/osfmk/kern/
H A Depoch_sync.c79 typedef struct ht { struct
132 ht_startup_init(ht_t *ht) in ht_startup_init() argument
134 for (uint32_t i = 0; i < ht->ht_size; i++) { in ht_startup_init()
135 queue_init(&ht->ht_bucket[i].htb_head); in ht_startup_init()
136 lck_spin_init(&ht->ht_bucket[i].htb_lock, &ht_lck_grp, NULL); in ht_startup_init()
143 ht_get_bucket(ht_t *ht, const uint64_t key) in ht_get_bucket() argument
145 assert3u((ht->ht_size & (ht->ht_size - 1)), ==, 0); in ht_get_bucket()
147 const uint32_t idx = os_hash_jenkins(&key, sizeof(key)) & (ht->ht_size - 1); in ht_get_bucket()
148 return &ht->ht_bucket[idx]; in ht_get_bucket()
152 ht_put(ht_t *ht, const uint64_t key, esync_t *new_value) in ht_put() argument
[all …]
/xnu-12377.1.9/bsd/skywalk/lib/
H A Dcuckoo_hashtable.h81 void cuckoo_hashtable_free(struct cuckoo_hashtable *ht);
100 void cuckoo_hashtable_foreach(struct cuckoo_hashtable *ht,