Home
last modified time | relevance | path

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

12345678910>>...13

/freebsd/sys/netpfil/ipfw/
H A Ddn_heap.c396 if (ht->ht != (void *)(ht + 1)) in dn_ht_init()
397 free(ht->ht, M_DN_HEAP); in dn_ht_init()
410 ht->ht = (void **)(ht + 1); in dn_ht_init()
437 if (ht->ht && ht->ht != (void *)(ht + 1)) in dn_ht_free()
438 free(ht->ht, M_DN_HEAP); in dn_ht_free()
446 return ht ? ht->entries : 0; in dn_ht_entries()
461 for (pp = &ht->ht[i]; (p = *pp); pp = (void **)((char *)p + ht->ofs)) { in dn_ht_find()
482 *(void **)((char *)p + ht->ofs) = ht->ht[i]; in dn_ht_find()
483 ht->ht[i] = p; in dn_ht_find()
502 curp = &ht->ht[i]; in dn_ht_scan()
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_hashtab.c44 ht->size = 1 << order; in drm_ht_create()
45 ht->order = order; in drm_ht_create()
46 ht->table = NULL; in drm_ht_create()
47 ht->table = hashinit_flags(ht->size, DRM_MEM_HASHTAB, &ht->mask, in drm_ht_create()
49 if (!ht->table) { in drm_ht_create()
66 h_list = &ht->table[hashed_key & ht->mask]; in drm_ht_verbose_list()
79 h_list = &ht->table[hashed_key & ht->mask]; in drm_ht_find_key()
98 h_list = &ht->table[hashed_key & ht->mask]; in drm_ht_insert_item()
180 if (ht->table) { in drm_ht_remove()
181 hashdestroy(ht->table, DRM_MEM_HASHTAB, ht->mask); in drm_ht_remove()
[all …]
H A Ddrm_hashtab.h54 extern int drm_ht_create(struct drm_open_hash *ht, unsigned int order);
55 extern int drm_ht_insert_item(struct drm_open_hash *ht, struct drm_hash_item *item);
56 extern int drm_ht_just_insert_please(struct drm_open_hash *ht, struct drm_hash_item *item,
59 extern int drm_ht_find_item(struct drm_open_hash *ht, unsigned long key, struct drm_hash_item **ite…
61 extern void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key);
62 extern int drm_ht_remove_key(struct drm_open_hash *ht, unsigned long key);
63 extern int drm_ht_remove_item(struct drm_open_hash *ht, struct drm_hash_item *item);
64 extern void drm_ht_remove(struct drm_open_hash *ht);
/freebsd/contrib/lib9p/
H A Dhashtable.h34 struct ht { struct
51 struct ht * htit_parent;
66 ht_rdlock(struct ht *h) in ht_rdlock()
76 ht_wrlock(struct ht *h) in ht_wrlock()
86 ht_unlock(struct ht *h) in ht_unlock()
96 void ht_init(struct ht *h, ssize_t size);
97 void ht_destroy(struct ht *h);
98 void *ht_find(struct ht *h, uint32_t hash);
99 void *ht_find_locked(struct ht *h, uint32_t hash);
101 int ht_remove(struct ht *h, uint32_t hash);
[all …]
H A Dhashtable.c41 ht_init(struct ht *h, ssize_t size) in ht_init()
45 memset(h, 0, sizeof(struct ht)); in ht_init()
55 ht_destroy(struct ht *h) in ht_destroy()
74 ht_find(struct ht *h, uint32_t hash) in ht_find()
85 ht_find_locked(struct ht *h, uint32_t hash) in ht_find_locked()
127 ht_remove(struct ht *h, uint32_t hash) in ht_remove()
138 ht_remove_locked(struct ht *h, uint32_t hash) in ht_remove_locked()
175 struct ht *h; in ht_iter_advance()
206 struct ht *h; in ht_remove_at_iter()
238 ht_iter(struct ht *h, struct ht_iter *iter) in ht_iter()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dhashtable.h67 __hash_init(struct lkpi_hash_head *ht, unsigned long size) in __hash_init() argument
72 CK_LIST_INIT(&ht[x].head); in __hash_init()
75 #define hash_init(ht) \ argument
76 __hash_init(ht, HASH_SIZE(ht))
92 #define hash_add_rcu(ht, node, key) do { \ argument
93 struct lkpi_hash_head *__head = &(ht)[hash_min(key, HASH_BITS(ht))]; \
106 __hash_empty(struct lkpi_hash_head *ht, unsigned long size) in __hash_empty() argument
111 if (!CK_LIST_EMPTY(&ht[x].head)) in __hash_empty()
117 #define hash_empty(ht) \ argument
118 __hash_empty(ht, HASH_SIZE(ht))
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76x02_phy.c104 mt76x02_tx_power_mask(t->ofdm[4], t->ofdm[6], t->ht[0], in mt76x02_phy_set_txpower()
105 t->ht[2])); in mt76x02_phy_set_txpower()
107 mt76x02_tx_power_mask(t->ht[4], t->ht[6], t->ht[8], in mt76x02_phy_set_txpower()
108 t->ht[10])); in mt76x02_phy_set_txpower()
110 mt76x02_tx_power_mask(t->ht[12], t->ht[14], t->ht[0], in mt76x02_phy_set_txpower()
111 t->ht[2])); in mt76x02_phy_set_txpower()
113 mt76x02_tx_power_mask(t->ht[4], t->ht[6], 0, 0)); in mt76x02_phy_set_txpower()
115 mt76x02_tx_power_mask(t->ofdm[7], t->vht[0], t->ht[7], in mt76x02_phy_set_txpower()
118 mt76x02_tx_power_mask(t->ht[14], 0, t->vht[0], t->vht[1])); in mt76x02_phy_set_txpower()
120 mt76x02_tx_power_mask(t->ht[7], 0, t->vht[0], t->vht[1])); in mt76x02_phy_set_txpower()
/freebsd/contrib/ofed/libibnetdisc/
H A Dg_hash_table.cpp72 HashTable *ht = (HashTable *)ght; in GHashTableInsert() local
73 ht->map[key] = value; in GHashTableInsert()
79 HashTable *ht = (HashTable *)ght; in GHashTableLookup() local
81 if (ht->map.find(key) == ht->map.end()) in GHashTableLookup()
83 return (ht->map[key]); in GHashTableLookup()
/freebsd/lib/libc/tests/nss/
H A Dgethostby_test.c193 ATF_REQUIRE(ht != NULL); in free_hostent()
195 free(ht->h_name); in free_hostent()
200 free(ht->h_aliases); in free_hostent()
206 free(ht->h_addr_list); in free_hostent()
408 ht->h_name, ht->h_addrtype, ht->h_length); in sdump_hostent()
618 ht->h_length); in hostent_read_snapshot_func()
652 free_hostent(ht); in hostent_read_snapshot_func()
680 dump_hostent(ht); in hostent_test_correctness()
683 if (ht == NULL) in hostent_test_correctness()
686 if (ht->h_name == NULL) in hostent_test_correctness()
[all …]
/freebsd/sys/netinet/tcp_stacks/
H A Dtailq_hash.c146 if (TAILQ_EMPTY(&hs->ht[bindex])) { in tqhash_find()
149 TAILQ_FOREACH(e, &hs->ht[bindex], next) { in tqhash_find()
176 TAILQ_FOREACH_REVERSE(e, &hs->ht[pbucket], rack_head, next) { in tqhash_find()
201 e = TAILQ_FIRST(&hs->ht[nxt]); in tqhash_next()
219 e = TAILQ_LAST(&hs->ht[prev], rack_head); in tqhash_prev()
239 TAILQ_REMOVE(&hs->ht[rsm->bindex], rsm, next); in tqhash_remove()
287 l = TAILQ_LAST(&hs->ht[rsm->bindex], rack_head); in tqhash_insert()
289 TAILQ_INSERT_TAIL(&hs->ht[rsm->bindex], rsm, next); in tqhash_insert()
292 TAILQ_FOREACH(e, &hs->ht[rsm->bindex], next) { in tqhash_insert()
300 TAILQ_INSERT_TAIL(&hs->ht[rsm->bindex], rsm, next); in tqhash_insert()
[all …]
/freebsd/crypto/openssh/regress/
H A Dkeytype.sh55 for ht in $htypes; do
56 host_type=`kname_to_ktype "$ht"`
57 trace "ssh connect, userkey $ut, hostkey $ht"
60 echo HostKey $OBJ/key.$ht
72 cat $OBJ/key.$ht.pub
76 verbose "userkey $ut, hostkey ${ht}"
79 fail "ssh userkey $ut, hostkey $ht failed"
/freebsd/tools/tools/iwn/iwnstats/
H A Dmain.c191 iwn_stats_ht_phy_print(struct iwn_rx_ht_phy_stats *ht) in iwn_stats_ht_phy_print() argument
196 le32toh(ht->bad_plcp), in iwn_stats_ht_phy_print()
197 le32toh(ht->overrun), in iwn_stats_ht_phy_print()
198 le32toh(ht->eoverrun), in iwn_stats_ht_phy_print()
199 le32toh(ht->good_crc32), in iwn_stats_ht_phy_print()
200 le32toh(ht->bad_crc32)); in iwn_stats_ht_phy_print()
204 le32toh(ht->bad_plcp), in iwn_stats_ht_phy_print()
205 le32toh(ht->good_ampdu_crc32), in iwn_stats_ht_phy_print()
206 le32toh(ht->ampdu), in iwn_stats_ht_phy_print()
207 le32toh(ht->fragment)); in iwn_stats_ht_phy_print()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrRef.td14 multiclass REF_I<WebAssemblyRegClass rc, ValueType vt, string ht> {
17 [(set rc:$dst, (!cast<Intrinsic>("int_wasm_ref_null_" # ht)))],
18 "ref.null_" # ht # "$dst",
19 "ref.null_" # ht,
20 !cond(!eq(ht, "func") : 0xd070,
21 !eq(ht, "extern") : 0xd06f)>,
32 [(set I32:$dst, (!cast<Intrinsic>("int_wasm_ref_is_null_" # ht) rc:$ref))],
/freebsd/lib/libc/net/
H A Dgethostnamadr.c262 struct hostent *ht; in host_marshal_func() local
282 ht = va_arg(ap, struct hostent *); in host_marshal_func()
285 if (ht->h_name != NULL) in host_marshal_func()
286 desired_size += strlen(ht->h_name) + 1; in host_marshal_func()
288 if (ht->h_aliases != NULL) { in host_marshal_func()
299 if (ht->h_addr_list != NULL) { in host_marshal_func()
368 struct hostent *ht; in host_unmarshal_func() local
390 ht = va_arg(ap, struct hostent *); in host_unmarshal_func()
411 if (ht->h_aliases != NULL) { in host_unmarshal_func()
418 if (ht->h_addr_list != NULL) { in host_unmarshal_func()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Deeprom.c312 t->ht[0] = t->ht[1] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
313 t->ht[2] = t->ht[3] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
316 t->ht[4] = t->ht[5] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
317 t->ht[6] = t->ht[7] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
320 t->ht[8] = t->ht[9] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
321 t->ht[10] = t->ht[11] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
324 t->ht[12] = t->ht[13] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
325 t->ht[14] = t->ht[15] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
/freebsd/contrib/bearssl/test/
H A Dtest_x509.c208 HT *ht; in HT_new() local
211 ht = xmalloc(sizeof *ht); in HT_new()
212 ht->size = 0; in HT_new()
214 ht->buckets = xmalloc(ht->num_buckets * sizeof(ht_elt *)); in HT_new()
218 return ht; in HT_new()
265 HT_expand(HT *ht) in HT_expand() argument
316 ht->size --; in HT_put()
331 ht->size ++; in HT_put()
332 if (ht->size > ht->num_buckets) { in HT_put()
383 ht->size = 0; in HT_clear()
[all …]
/freebsd/sys/dev/drm2/ttm/
H A Dttm_object.c259 struct drm_open_hash *ht = &tfile->ref_hash[ref_type]; in ttm_ref_object_add() local
270 ret = drm_ht_find_item(ht, base->hash.key, &hash); in ttm_ref_object_add()
297 ret = drm_ht_insert_item(ht, &ref->hash); in ttm_ref_object_add()
322 struct drm_open_hash *ht; in ttm_ref_object_release() local
325 ht = &tfile->ref_hash[ref->ref_type]; in ttm_ref_object_release()
326 (void)drm_ht_remove_item(ht, &ref->hash); in ttm_ref_object_release()
342 struct drm_open_hash *ht = &tfile->ref_hash[ref_type]; in ttm_ref_object_base_unref() local
348 ret = drm_ht_find_item(ht, key, &hash); in ttm_ref_object_base_unref()
/freebsd/contrib/wpa/src/ap/
H A Dneighbor_db.c200 int ht, int vht, int he) in hostapd_get_nr_chan_width() argument
204 if (!ht && !vht && !he) in hostapd_get_nr_chan_width()
225 int ht = hapd->iconf->ieee80211n && !hapd->conf->disable_11n; in hostapd_neighbor_set_own_report() local
256 if (ht) { in hostapd_neighbor_set_own_report()
275 width = hostapd_get_nr_chan_width(hapd, ht, vht, he); in hostapd_neighbor_set_own_report()
283 } else if (ht) { in hostapd_neighbor_set_own_report()
304 wpabuf_put_u8(nr, ieee80211_get_phy_type(hapd->iface->freq, ht, vht)); in hostapd_neighbor_set_own_report()
/freebsd/share/syscons/keymaps/
H A Ddanish.iso.macbook.kbd23 015 ht btab ht ht ht btab ht ht O
31 023 'i' 'I' ht ht '|' nop nop nop C
H A Dus.emacs.kbd20 015 ht ht ht ht 137 137 137 137 O
28 023 'i' 'I' ht ht 233 201 137 137 C
H A Dby.cp1131.kbd20 015 ht btab nop nop ht btab nop nop O
28 023 'i' 'I' ht ht 'i' 'I' ht ht C
130 143 ht btab nop nop ht btab nop nop O
138 151 '�' '�' ht ht 'i' 'I' ht ht C
H A Dby.cp1251.kbd20 015 ht btab nop nop ht btab nop nop O
28 023 'i' 'I' ht ht 'i' 'I' ht ht C
130 143 ht btab nop nop ht btab nop nop O
138 151 '�' '�' ht ht 'i' 'I' ht ht C
/freebsd/share/vt/keymaps/
H A Ddk.macbook.kbd23 015 ht btab ht ht ht btab ht ht O
31 023 'i' 'I' ht ht '|' nop nop nop C
/freebsd/libexec/bootpd/
H A Dbootptab.cmu19 # ht -- hardware type
70 carnegie:tc=.subnet13:ht=ieee802:ha=7FF8100000AF:
77 gastonville:tc=.subnet232:ht=ieee802:ha=7FFF81000A47:
78 hahntown:tc=.subnet13:ht=ieee802:ha=7FFF81000434:
79 hickman:tc=.subnet19:ht=ieee802:ha=7FFF810001BA:
94 hollidaysburg: tc=.subnet19:ht=ieee802:ha=7FFF810002C8:
/freebsd/sys/dev/usb/net/
H A Duhso.c552 struct uhso_tty *ht; in uhso_attach() local
629 ht = &sc->sc_tty[i]; in uhso_attach()
642 ht->ht_name[0] = 0; in uhso_attach()
1153 struct uhso_tty *ht; in uhso_mux_read_callback() local
1160 ht = usbd_xfer_get_priv(xfer); in uhso_mux_read_callback()
1161 UHSO_DPRINTF(3, "ht=%p open=%d\n", ht, ht->ht_open); in uhso_mux_read_callback()
1170 ht->ht_muxport); in uhso_mux_read_callback()
1177 if (ht->ht_open) in uhso_mux_read_callback()
1210 struct uhso_tty *ht; in uhso_mux_write_callback() local
1218 ht = usbd_xfer_get_priv(xfer); in uhso_mux_write_callback()
[all …]

12345678910>>...13