| /freebsd-12-stable/sys/netpfil/ipfw/ |
| D | dn_heap.c | 329 void **ht; /* bucket heads */ member 338 dn_ht_init(struct dn_ht *ht, int buckets, int ofs, in dn_ht_init() argument 391 if (ht) { /* see if we can reuse */ in dn_ht_init() 392 if (buckets <= ht->buckets) { in dn_ht_init() 393 ht->buckets = buckets; in dn_ht_init() 396 if (ht->ht != (void *)(ht + 1)) in dn_ht_init() 397 free(ht->ht, M_DN_HEAP); in dn_ht_init() 398 free(ht, M_DN_HEAP); in dn_ht_init() 399 ht = NULL; in dn_ht_init() 402 if (ht == NULL) { in dn_ht_init() [all …]
|
| /freebsd-12-stable/contrib/apr/tables/ |
| D | apr_hash.c | 63 apr_hash_t *ht; member 91 static apr_hash_entry_t **alloc_array(apr_hash_t *ht, unsigned int max) in alloc_array() argument 93 return apr_pcalloc(ht->pool, sizeof(*ht->array) * (max + 1)); in alloc_array() 98 apr_hash_t *ht; in apr_hash_make() local 101 ht = apr_palloc(pool, sizeof(apr_hash_t)); in apr_hash_make() 102 ht->pool = pool; in apr_hash_make() 103 ht->free = NULL; in apr_hash_make() 104 ht->count = 0; in apr_hash_make() 105 ht->max = INITIAL_MAX; in apr_hash_make() 106 ht->seed = (unsigned int)((now >> 32) ^ now ^ (apr_uintptr_t)pool ^ in apr_hash_make() [all …]
|
| /freebsd-12-stable/sys/dev/drm/ |
| D | drm_hashtab.c | 44 int drm_ht_create(struct drm_open_hash *ht, unsigned int order) in drm_ht_create() argument 46 ht->size = 1 << order; in drm_ht_create() 47 ht->order = order; in drm_ht_create() 48 ht->table = NULL; in drm_ht_create() 49 ht->table = hashinit_flags(ht->size, DRM_MEM_HASHTAB, &ht->mask, in drm_ht_create() 51 if (!ht->table) { in drm_ht_create() 58 void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key) in drm_ht_verbose_list() argument 65 hashed_key = hash32_buf(&key, sizeof(key), ht->order); in drm_ht_verbose_list() 67 h_list = &ht->table[hashed_key & ht->mask]; in drm_ht_verbose_list() 73 drm_ht_find_key(struct drm_open_hash *ht, unsigned long key) in drm_ht_find_key() argument [all …]
|
| D | drm_hashtab.h | 56 extern int drm_ht_create(struct drm_open_hash *ht, unsigned int order); 57 extern int drm_ht_insert_item(struct drm_open_hash *ht, struct drm_hash_item *item); 58 extern int drm_ht_just_insert_please(struct drm_open_hash *ht, struct drm_hash_item *item, 61 extern int drm_ht_find_item(struct drm_open_hash *ht, unsigned long key, struct drm_hash_item **ite… 63 extern void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key); 64 extern int drm_ht_remove_key(struct drm_open_hash *ht, unsigned long key); 65 extern int drm_ht_remove_item(struct drm_open_hash *ht, struct drm_hash_item *item); 66 extern void drm_ht_remove(struct drm_open_hash *ht);
|
| /freebsd-12-stable/sys/dev/drm2/ |
| D | drm_hashtab.c | 44 int drm_ht_create(struct drm_open_hash *ht, unsigned int order) in drm_ht_create() argument 46 ht->size = 1 << order; in drm_ht_create() 47 ht->order = order; in drm_ht_create() 48 ht->table = NULL; in drm_ht_create() 49 ht->table = hashinit_flags(ht->size, DRM_MEM_HASHTAB, &ht->mask, in drm_ht_create() 51 if (!ht->table) { in drm_ht_create() 59 void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key) in drm_ht_verbose_list() argument 66 hashed_key = hash32_buf(&key, sizeof(key), ht->order); in drm_ht_verbose_list() 68 h_list = &ht->table[hashed_key & ht->mask]; in drm_ht_verbose_list() 73 static struct drm_hash_item *drm_ht_find_key(struct drm_open_hash *ht, in drm_ht_find_key() argument [all …]
|
| D | drm_hashtab.h | 56 extern int drm_ht_create(struct drm_open_hash *ht, unsigned int order); 57 extern int drm_ht_insert_item(struct drm_open_hash *ht, struct drm_hash_item *item); 58 extern int drm_ht_just_insert_please(struct drm_open_hash *ht, struct drm_hash_item *item, 61 extern int drm_ht_find_item(struct drm_open_hash *ht, unsigned long key, struct drm_hash_item **ite… 63 extern void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key); 64 extern int drm_ht_remove_key(struct drm_open_hash *ht, unsigned long key); 65 extern int drm_ht_remove_item(struct drm_open_hash *ht, struct drm_hash_item *item); 66 extern void drm_ht_remove(struct drm_open_hash *ht);
|
| /freebsd-12-stable/contrib/subversion/subversion/include/ |
| D | svn_hash.h | 253 svn_hash__gets_debug(apr_hash_t *ht, const char *key); 255 #define svn_hash_gets(ht, key) \ argument 256 svn_hash__gets_debug(ht, key) 262 #define svn_hash_gets(ht, key) \ argument 263 apr_hash_get(ht, key, APR_HASH_KEY_STRING) 268 svn_hash__sets_debug(apr_hash_t *ht, const char *key, const void *value); 270 #define svn_hash_sets(ht, key, val) \ argument 271 svn_hash__sets_debug(ht, key, val) 277 #define svn_hash_sets(ht, key, val) \ argument 278 apr_hash_set(ht, key, APR_HASH_KEY_STRING, val)
|
| /freebsd-12-stable/lib/libc/tests/nss/ |
| D | gethostby_test.c | 192 free_hostent(struct hostent *ht) in free_hostent() argument 196 ATF_REQUIRE(ht != NULL); in free_hostent() 198 free(ht->h_name); in free_hostent() 200 if (ht->h_aliases != NULL) { in free_hostent() 201 for (cp = ht->h_aliases; *cp; ++cp) in free_hostent() 203 free(ht->h_aliases); in free_hostent() 206 if (ht->h_addr_list != NULL) { in free_hostent() 207 for (cp = ht->h_addr_list; *cp; ++cp) in free_hostent() 209 free(ht->h_addr_list); in free_hostent() 404 sdump_hostent(struct hostent *ht, char *buffer, size_t buflen) in sdump_hostent() argument [all …]
|
| /freebsd-12-stable/contrib/ofed/libibnetdisc/ |
| D | g_hash_table.cpp | 72 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-12-stable/contrib/gdb/gdb/ |
| D | sparc-stub.c | 468 struct hard_trap_info *ht; in set_debug_traps() local 470 for (ht = hard_trap_info; ht->tt && ht->signo; ht++) in set_debug_traps() 471 exceptionHandler(ht->tt, trap_low); in set_debug_traps() 509 struct hard_trap_info *ht; in computeSignal() local 511 for (ht = hard_trap_info; ht->tt && ht->signo; ht++) in computeSignal() 512 if (ht->tt == tt) in computeSignal() 513 return ht->signo; in computeSignal()
|
| /freebsd-12-stable/tools/tools/iwn/iwnstats/ |
| D | main.c | 193 iwn_stats_ht_phy_print(struct iwn_rx_ht_phy_stats *ht) in iwn_stats_ht_phy_print() argument 198 le32toh(ht->bad_plcp), in iwn_stats_ht_phy_print() 199 le32toh(ht->overrun), in iwn_stats_ht_phy_print() 200 le32toh(ht->eoverrun), in iwn_stats_ht_phy_print() 201 le32toh(ht->good_crc32), in iwn_stats_ht_phy_print() 202 le32toh(ht->bad_crc32)); in iwn_stats_ht_phy_print() 206 le32toh(ht->bad_plcp), in iwn_stats_ht_phy_print() 207 le32toh(ht->good_ampdu_crc32), in iwn_stats_ht_phy_print() 208 le32toh(ht->ampdu), in iwn_stats_ht_phy_print() 209 le32toh(ht->fragment)); in iwn_stats_ht_phy_print() [all …]
|
| /freebsd-12-stable/crypto/openssh/regress/ |
| D | keytype.sh | 55 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-12-stable/contrib/subversion/subversion/include/private/ |
| D | svn_element.h | 46 svn_eid__hash_get(apr_hash_t *ht, 51 svn_eid__hash_set(apr_hash_t *ht, 82 apr_hash_t *ht, 96 #define SVN_EID__HASH_ITER_SORTED(i, ht, comparison_func, pool) \ argument 97 i = (void *)svn_eid__hash_sorted_first(pool, ht, comparison_func); \ 101 #define SVN_EID__HASH_ITER_SORTED_BY_EID(i, ht, pool) \ argument 102 SVN_EID__HASH_ITER_SORTED(i, ht, svn_eid__hash_sort_compare_items_by_eid, pool)
|
| /freebsd-12-stable/lib/libc/net/ |
| D | gethostnamadr.c | 265 struct hostent *ht; in host_marshal_func() local 285 ht = va_arg(ap, struct hostent *); in host_marshal_func() 288 if (ht->h_name != NULL) in host_marshal_func() 289 desired_size += strlen(ht->h_name) + 1; in host_marshal_func() 291 if (ht->h_aliases != NULL) { in host_marshal_func() 293 for (iter = ht->h_aliases; *iter; ++iter) { in host_marshal_func() 302 if (ht->h_addr_list != NULL) { in host_marshal_func() 304 for (iter = ht->h_addr_list; *iter; ++iter) in host_marshal_func() 307 desired_size += addr_size * _ALIGN(ht->h_length); in host_marshal_func() 317 memcpy(&new_ht, ht, sizeof(struct hostent)); in host_marshal_func() [all …]
|
| /freebsd-12-stable/contrib/apr/include/ |
| D | apr_hash.h | 108 APR_DECLARE(void) apr_hash_set(apr_hash_t *ht, const void *key, 118 APR_DECLARE(void *) apr_hash_get(apr_hash_t *ht, const void *key, 148 APR_DECLARE(apr_hash_index_t *) apr_hash_first(apr_pool_t *p, apr_hash_t *ht); 196 APR_DECLARE(unsigned int) apr_hash_count(apr_hash_t *ht); 202 APR_DECLARE(void) apr_hash_clear(apr_hash_t *ht); 270 void *rec, const apr_hash_t *ht);
|
| /freebsd-12-stable/contrib/bearssl/test/ |
| D | test_x509.c | 208 HT *ht; in HT_new() local 211 ht = xmalloc(sizeof *ht); in HT_new() 212 ht->size = 0; in HT_new() 213 ht->num_buckets = 8; in HT_new() 214 ht->buckets = xmalloc(ht->num_buckets * sizeof(ht_elt *)); in HT_new() 215 for (u = 0; u < ht->num_buckets; u ++) { in HT_new() 216 ht->buckets[u] = NULL; in HT_new() 218 return ht; in HT_new() 265 HT_expand(HT *ht) in HT_expand() argument 270 n = ht->num_buckets; in HT_expand() [all …]
|
| /freebsd-12-stable/contrib/subversion/subversion/libsvn_subr/ |
| D | xml.c | 599 apr_hash_t *ht, in amalgamate() argument 615 if (preserve && ((apr_hash_get(ht, key, keylen)) != NULL)) in amalgamate() 618 apr_hash_set(ht, apr_pstrndup(pool, key, keylen), keylen, in amalgamate() 627 apr_hash_t *ht = apr_hash_make(pool); in svn_xml_ap_to_hash() local 633 svn_hash_sets(ht, key, val); in svn_xml_ap_to_hash() 636 return ht; in svn_xml_ap_to_hash() 643 apr_hash_t *ht = apr_hash_make(pool); in svn_xml_make_att_hash() local 644 amalgamate(atts, ht, 0, pool); /* third arg irrelevant in this case */ in svn_xml_make_att_hash() 645 return ht; in svn_xml_make_att_hash() 651 apr_hash_t *ht, in svn_xml_hash_atts_overlaying() argument [all …]
|
| /freebsd-12-stable/contrib/gcclibs/libcpp/ |
| D | symtab.c | 238 ht_load (hash_table *ht, hashnode *entries, in ht_load() argument 242 if (ht->entries_owned) in ht_load() 243 free (ht->entries); in ht_load() 244 ht->entries = entries; in ht_load() 245 ht->nslots = nslots; in ht_load() 246 ht->nelements = nelements; in ht_load() 247 ht->entries_owned = own; in ht_load()
|
| /freebsd-12-stable/sys/dev/drm2/ttm/ |
| D | ttm_object.c | 261 struct drm_open_hash *ht = &tfile->ref_hash[ref_type]; in ttm_ref_object_add() local 272 ret = drm_ht_find_item(ht, base->hash.key, &hash); in ttm_ref_object_add() 299 ret = drm_ht_insert_item(ht, &ref->hash); in ttm_ref_object_add() 324 struct drm_open_hash *ht; in ttm_ref_object_release() local 327 ht = &tfile->ref_hash[ref->ref_type]; in ttm_ref_object_release() 328 (void)drm_ht_remove_item(ht, &ref->hash); in ttm_ref_object_release() 344 struct drm_open_hash *ht = &tfile->ref_hash[ref_type]; in ttm_ref_object_base_unref() local 350 ret = drm_ht_find_item(ht, key, &hash); in ttm_ref_object_base_unref()
|
| /freebsd-12-stable/contrib/wpa/src/ap/ |
| D | neighbor_db.c | 200 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-12-stable/contrib/subversion/subversion/libsvn_delta/ |
| D | element.c | 40 svn_eid__hash_get(apr_hash_t *ht, in svn_eid__hash_get() argument 43 return apr_hash_get(ht, &key, sizeof(key)); in svn_eid__hash_get() 47 svn_eid__hash_set(apr_hash_t *ht, in svn_eid__hash_set() argument 51 int *id_p = apr_pmemdup(apr_hash_pool_get(ht), &key, sizeof(key)); in svn_eid__hash_set() 53 apr_hash_set(ht, id_p, sizeof(key), val); in svn_eid__hash_set() 64 apr_hash_t *ht, in svn_eid__hash_sorted_first() argument 70 if (apr_hash_count(ht) == 0) in svn_eid__hash_sorted_first() 73 hi->array = svn_sort__hash(ht, comparison_func, pool); in svn_eid__hash_sorted_first()
|
| /freebsd-12-stable/contrib/gcclibs/libcpp/include/ |
| D | symtab.h | 37 typedef struct ht hash_table; 43 struct ht struct 90 extern void ht_load (hash_table *ht, hashnode *entries,
|
| /freebsd-12-stable/share/syscons/keymaps/ |
| D | danish.iso.macbook.kbd | 24 015 ht btab ht ht ht btab ht ht O 32 023 'i' 'I' ht ht '|' nop nop nop C
|
| /freebsd-12-stable/share/vt/keymaps/ |
| D | dk.macbook.kbd | 24 015 ht btab ht ht ht btab ht ht O 32 023 'i' 'I' ht ht '|' nop nop nop C
|
| /freebsd-12-stable/sys/dev/usb/net/ |
| D | uhso.c | 554 struct uhso_tty *ht; in uhso_attach() local 629 ht = &sc->sc_tty[i]; in uhso_attach() 633 port = uhso_mux_port_map[ht->ht_muxport]; in uhso_attach() 642 ht->ht_name[0] = 0; in uhso_attach() 644 snprintf(ht->ht_name, 32, "cuaU%d", ucom->sc_super->sc_unit); in uhso_attach() 646 snprintf(ht->ht_name, 32, "cuaU%d.%d", in uhso_attach() 652 "tty", CTLFLAG_RD, ht->ht_name, 0, ""); in uhso_attach() 658 "\"%s\" port at %s\n", desc, ht->ht_name); in uhso_attach() 1154 struct uhso_tty *ht; in uhso_mux_read_callback() local 1161 ht = usbd_xfer_get_priv(xfer); in uhso_mux_read_callback() [all …]
|