/freebsd-src/sys/netpfil/ipfw/ |
H A 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 359 * The ht->buckets variable store the bucket size - 1 to simply in dn_ht_init() 360 * do an AND between the index returned by hash function and ht->bucket in dn_ht_init() 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() [all …]
|
/freebsd-src/sys/dev/drm2/ |
H A D | drm_hashtab.c | 42 int drm_ht_create(struct drm_open_hash *ht, unsigned int order) in drm_ht_create() argument 44 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() 57 void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key) in drm_ht_verbose_list() argument 64 hashed_key = hash32_buf(&key, sizeof(key), ht->order); in drm_ht_verbose_list() 66 h_list = &ht->table[hashed_key & ht->mask]; in drm_ht_verbose_list() 71 static struct drm_hash_item *drm_ht_find_key(struct drm_open_hash *ht, in drm_ht_find_key() argument [all …]
|
H A D | drm_hashtab.h | 54 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-src/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_phy.c | 29 #define HT IEEE80211_T_HT macro 50 /* 6.5 Mb */ { AH_TRUE, HT, 6500, 0x80, 0x00, 0, 8 }, 51 /* 13 Mb */ { AH_TRUE, HT, 13000, 0x81, 0x00, 1, 8 }, 52 /*19.5 Mb */ { AH_TRUE, HT, 19500, 0x82, 0x00, 2, 8 }, 53 /* 26 Mb */ { AH_TRUE, HT, 26000, 0x83, 0x00, 3, 8 }, 54 /* 39 Mb */ { AH_TRUE, HT, 39000, 0x84, 0x00, 4, 8 }, 55 /* 52 Mb */ { AH_TRUE, HT, 52000, 0x85, 0x00, 5, 8 }, 56 /*58.5 Mb */ { AH_TRUE, HT, 58500, 0x86, 0x00, 6, 8 }, 57 /* 65 Mb */ { AH_TRUE, HT, 65000, 0x87, 0x00, 7, 8 }, 58 /* 13 Mb */ { AH_TRUE, HT, 13000, 0x88, 0x00, 8, 8 }, [all …]
|
/freebsd-src/contrib/lib9p/ |
H A D | hashtable.h | 34 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); 100 int ht_add(struct ht *h, uint32_t hash, void *value); [all …]
|
H A D | hashtable.c | 41 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() 101 ht_add(struct ht *h, uint32_t hash, void *value) in ht_add() 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() [all …]
|
/freebsd-src/sys/net80211/ |
H A D | ieee80211_phy.c | 67 #define HT IEEE80211_T_HT macro 204 [12] = { .phy = HT, 6500, 0x00, N(0), 4 }, 205 [13] = { .phy = HT, 13000, 0x00, N(1), 6 }, 206 [14] = { .phy = HT, 19500, 0x00, N(2), 6 }, 207 [15] = { .phy = HT, 26000, 0x00, N(3), 8 }, 208 [16] = { .phy = HT, 39000, 0x00, N(4), 8 }, 209 [17] = { .phy = HT, 52000, 0x00, N(5), 8 }, 210 [18] = { .phy = HT, 58500, 0x00, N(6), 8 }, 211 [19] = { .phy = HT, 65000, 0x00, N(7), 8 }, 213 [20] = { .phy = HT, 13000, 0x00, N(8), 4 }, [all …]
|
/freebsd-src/share/doc/psd/02.implement/ |
H A D | fig2.pic | 44 A: box invis ht .4i wid 1i "Per-User Open" "File Table" 45 B: box ht .25i with .n at A.s 47 D: box ht .25i with .n at C.s 51 A: box invis ht .4i wid 1i "Open File" "Table" 52 B: box ht .25i with .n at A.s 54 D: box ht .25i with .n at C.s 58 A: box invis ht .4i wid 1i "Active I-node" "Table" 59 B: box ht .25i with .n at A.s 61 D: box ht .25i with .n at C.s 65 A: box ht .25i [all …]
|
H A D | fig1.pic | 44 T: box invis ht .2i "Process Table"; move down .125i 45 A: box ht .25i; down 47 C: box ht .25i 51 T: box invis ht .2i "Text Table"; move down .125i 52 A: box ht .25i; down 54 C: box ht .25i 59 box ht 0.75i wid 0.75i "User" "Text" "Segment" 64 UDS: box ht 0.75i "User" "Data" "Segment" 89 box invis ht 0.2i "Resident" 93 box invis ht 0.2i "Swapped"
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | ScopedHashTable.h | 13 // ScopedHashTable<int, int> HT; 15 // ScopedHashTableScope<int, int> Scope1(HT); 16 // HT.insert(0, 0); 17 // HT.insert(1, 1); 19 // ScopedHashTableScope<int, int> Scope2(HT); 20 // HT.insert(0, 42); 86 /// HT - The hashtable that we are active for. 87 ScopedHashTable<K, V, KInfo, AllocatorTy> &HT; variable 89 /// PrevScope - This is the scope that we are shadowing in HT. 97 ScopedHashTableScope(ScopedHashTable<K, V, KInfo, AllocatorTy> &HT); [all …]
|
/freebsd-src/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76x02_phy.c | 104 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-src/sys/compat/linuxkpi/common/include/linux/ |
H A D | hashtable.h | 67 __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-src/share/doc/psd/20.ipctut/ |
H A D | fig8.pic | 18 ellipse at 3.575,6.713 wid 0.475 ht 0.475 26 ellipse at 6.388,6.713 wid 0.475 ht 0.475 34 ellipse at 3.513,9.838 wid 0.475 ht 0.475 42 ellipse at 6.325,9.838 wid 0.475 ht 0.475 50 ellipse at 6.112,4.888 wid 0.275 ht 0.275 51 ellipse at 5.350,4.763 wid 0.275 ht 0.275 52 ellipse at 3.737,4.763 wid 0.275 ht 0.275 53 ellipse at 4.550,7.950 wid 0.275 ht 0.275 54 ellipse at 5.487,7.950 wid 0.275 ht 0.275
|
H A D | fig3.pic | 6 ellipse at 5.787,8.012 wid 0.275 ht 0.275 7 ellipse at 4.175,8.012 wid 0.275 ht 0.275 13 ellipse at 3.737,4.763 wid 0.275 ht 0.275 14 ellipse at 5.350,4.763 wid 0.275 ht 0.275 25 ellipse at 6.388,6.713 wid 0.475 ht 0.475 33 ellipse at 3.575,6.713 wid 0.475 ht 0.475 41 ellipse at 4.075,9.963 wid 0.475 ht 0.475
|
/freebsd-src/contrib/wpa/src/ap/ |
H A D | ieee802_11_ht.c | 2 * hostapd / IEEE 802.11n HT 114 Set to 0 (HT pure) under the following conditions 115 - all STAs in the BSS are 20/40 MHz HT in 20/40 MHz BSS or 116 - all STAs in the BSS are 20 MHz HT in 20 MHz BSS 117 Set to 1 (HT non-member protection) if there may be non-HT STAs 119 Set to 2 if only HT STAs are associated in BSS, 120 however and at least one 20 MHz HT STA is associated 121 Set to 3 (HT mixed mode) when one or more non-HT STA [all...] |
/freebsd-src/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_phy.c | 29 #define HT IEEE80211_T_HT macro 223 /*--- HT SS rates ---*/ 224 /* 6.5 Mb */ { AH_TRUE, HT, 6500, 0x80, 0x00, 0, 4 }, 225 /* 13 Mb */ { AH_TRUE, HT, 13000, 0x81, 0x00, 1, 6 }, 226 /*19.5 Mb */ { AH_TRUE, HT, 19500, 0x82, 0x00, 2, 6 }, 227 /* 26 Mb */ { AH_TRUE, HT, 26000, 0x83, 0x00, 3, 8 }, 228 /* 39 Mb */ { AH_TRUE, HT, 39000, 0x84, 0x00, 4, 8 }, 229 /* 52 Mb */ { AH_TRUE, HT, 52000, 0x85, 0x00, 5, 8 }, 230 /*58.5 Mb */ { AH_TRUE, HT, 58500, 0x86, 0x00, 6, 8 }, 231 /* 65 Mb */ { AH_TRUE, HT, 65000, 0x87, 0x00, 7, 8 }, [all …]
|
/freebsd-src/lib/libc/tests/nss/ |
H A D | gethostby_test.c | 189 free_hostent(struct hostent *ht) in free_hostent() argument 193 ATF_REQUIRE(ht != NULL); in free_hostent() 195 free(ht->h_name); in free_hostent() 197 if (ht->h_aliases != NULL) { in free_hostent() 198 for (cp = ht->h_aliases; *cp; ++cp) in free_hostent() 200 free(ht->h_aliases); in free_hostent() 203 if (ht->h_addr_list != NULL) { in free_hostent() 204 for (cp = ht->h_addr_list; *cp; ++cp) in free_hostent() 206 free(ht->h_addr_list); in free_hostent() 401 sdump_hostent(struct hostent *ht, char *buffer, size_t buflen) in sdump_hostent() argument [all …]
|
/freebsd-src/libexec/bootpd/ |
H A D | bootptab.5 | 64 .It ht 159 .Em ht 193 .Em ht 401 carnegie:ht=6:ha=7FF8100000AF:tc=.default: 402 baldwin:ht=1:ha=0800200159C3:tc=.default: 403 wylie:ht=1:ha=00DD00CADF00:tc=.default: 404 arnold:ht=1:ha=0800200102AD:tc=.default: 405 bairdford:ht=1:ha=08002B02A2F9:tc=.default: 406 bakerstown:ht=1:ha=08002B0287C8:tc=.default: 414 gastonville:ht=6:ha=7FFF81000A47:tc=.default: [all …]
|
/freebsd-src/sys/contrib/dev/iwlwifi/cfg/ |
H A D | 22000.c | 189 * HT size; mac80211 would otherwise pick the HE max (256) by default. 225 * HT size; mac80211 would otherwise pick the HE max (256) by default. 238 * HT size; mac80211 would otherwise pick the HE max (256) by default. 251 * HT size; mac80211 would otherwise pick the HE max (256) by default. 263 * HT size; mac80211 would otherwise pick the HE max (256) by default. 276 * HT size; mac80211 would otherwise pick the HE max (256) by default. 289 * HT size; mac80211 would otherwise pick the HE max (256) by default. 301 * HT size; mac80211 would otherwise pick the HE max (256) by default. 315 * HT size; mac80211 would otherwise pick the HE max (256) by default. 328 * HT siz [all...] |
/freebsd-src/contrib/bearssl/test/ |
H A D | test_x509.c | 203 } HT; typedef 205 static HT * 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() [all …]
|
/freebsd-src/crypto/openssh/regress/ |
H A 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-src/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyInstrRef.td | 14 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, 22 !eq(ht, "exn") : 0xd069)>, 33 [(set I32:$dst, (!cast<Intrinsic>("int_wasm_ref_is_null_" # ht) rc:$ref))],
|
/freebsd-src/sys/contrib/dev/mediatek/mt76/mt76x2/ |
H A D | eeprom.c | 312 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-src/contrib/ofed/libibnetdisc/ |
H A 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-src/lib/libc/net/ |
H A D | gethostnamadr.c | 262 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() 290 for (iter = ht->h_aliases; *iter; ++iter) { in host_marshal_func() 299 if (ht->h_addr_list != NULL) { in host_marshal_func() 301 for (iter = ht->h_addr_list; *iter; ++iter) in host_marshal_func() 304 desired_size += addr_size * _ALIGN(ht->h_length); in host_marshal_func() 314 memcpy(&new_ht, ht, sizeof(struct hostent)); in host_marshal_func() [all …]
|