Home
last modified time | relevance | path

Searched full:ht (Results 1 – 25 of 461) sorted by relevance

12345678910>>...19

/linux/lib/
H A Drhashtable.c37 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument
41 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
45 #define ASSERT_RHT_MUTEX(HT) BUG_ON(!lockdep_rht_mutex_is_held(HT)) argument
47 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument
49 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held()
63 #define ASSERT_RHT_MUTEX(HT) argument
122 static union nested_table *nested_table_alloc(struct rhashtable *ht, in nested_table_alloc() argument
133 ntbl = alloc_hooks_tag(ht->alloc_tag, in nested_table_alloc()
148 static struct bucket_table *nested_bucket_table_alloc(struct rhashtable *ht, in nested_bucket_table_alloc() argument
161 tbl = alloc_hooks_tag(ht->alloc_tag, in nested_bucket_table_alloc()
[all …]
H A Dtest_rhashtable.c116 static int insert_retry(struct rhashtable *ht, struct test_obj *obj, in insert_retry() argument
124 err = rhashtable_insert_fast(ht, &obj->node, params); in insert_retry()
138 static int __init test_rht_lookup(struct rhashtable *ht, struct test_obj *array, in test_rht_lookup() argument
153 obj = rhashtable_lookup_fast(ht, &key, test_rht_params); in test_rht_lookup()
176 static void test_bucket_stats(struct rhashtable *ht, unsigned int entries) in test_bucket_stats() argument
182 rhashtable_walk_enter(ht, &hti); in test_bucket_stats()
203 total, atomic_read(&ht->nelems), entries, chain_len); in test_bucket_stats()
205 if (total != atomic_read(&ht->nelems) || total != entries) in test_bucket_stats()
209 static s64 __init test_rhashtable(struct rhashtable *ht, struct test_obj *array, in test_rhashtable() argument
227 err = insert_retry(ht, ob in test_rhashtable()
267 static struct rhashtable ht; global() variable
472 struct rhashtable *ht; print_ht() local
[all...]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dtable.c2982 "FCC", "2.4G", "20M", "HT", "1T", "01", "34",
2983 "ETSI", "2.4G", "20M", "HT", "1T", "01", "32",
2984 "MKK", "2.4G", "20M", "HT", "1T", "01", "32",
2985 "FCC", "2.4G", "20M", "HT", "1T", "02", "36",
2986 "ETSI", "2.4G", "20M", "HT", "1T", "02", "32",
2987 "MKK", "2.4G", "20M", "HT", "1T", "02", "32",
2988 "FCC", "2.4G", "20M", "HT", "1T", "03", "36",
2989 "ETSI", "2.4G", "20M", "HT", "1T", "03", "32",
2990 "MKK", "2.4G", "20M", "HT", "1T", "03", "32",
2991 "FCC", "2.4G", "20M", "HT", "1T", "04", "36",
[all …]
/linux/net/sched/
H A Dcls_u32.c80 /* The 'ht' field MUST be the last field in structure to allow for
83 struct tc_u_knode __rcu *ht[]; member
123 struct tc_u_hnode *ht = rcu_dereference_bh(tp->root); in u32_classify() local
135 n = rcu_dereference_bh(ht->ht[sel]); in u32_classify()
180 ht = rcu_dereference_bh(n->ht_down); in u32_classify()
181 if (!ht) { in u32_classify()
212 ht = rcu_dereference_bh(n->ht_down); in u32_classify()
214 if (ht->divisor) { in u32_classify()
221 sel = ht->divisor & u32_hash_fold(*data, &n->sel, in u32_classify()
254 ht = rcu_dereference_bh(n->ht_up); in u32_classify()
[all …]
H A Dcls_fw.c30 struct fw_filter __rcu *ht[HTSIZE]; member
63 for (f = rcu_dereference_bh(head->ht[fw_hash(id)]); f; in fw_classify()
99 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get()
143 while ((f = rtnl_dereference(head->ht[h])) != NULL) { in fw_destroy()
144 RCU_INIT_POINTER(head->ht[h], in fw_destroy()
169 fp = &head->ht[fw_hash(f->id)]; in fw_delete()
185 if (rcu_access_pointer(head->ht[h])) { in fw_delete()
287 fp = &head->ht[fw_hash(fnew->id)]; in fw_change()
333 RCU_INIT_POINTER(f->next, head->ht[fw_hash(handle)]); in fw_change()
334 rcu_assign_pointer(head->ht[fw_hash(handle)], f); in fw_change()
[all …]
H A Dcls_route.c43 struct route4_filter __rcu *ht[16 + 16 + 1]; member
166 for (f = rcu_dereference_bh(b->ht[route4_hash_from(id)]); in route4_classify()
172 for (f = rcu_dereference_bh(b->ht[route4_hash_iif(iif)]); in route4_classify()
178 for (f = rcu_dereference_bh(b->ht[route4_hash_wild()]); in route4_classify()
234 for (f = rtnl_dereference(b->ht[h2]); in route4_get()
294 while ((f = rtnl_dereference(b->ht[h2])) != NULL) { in route4_destroy()
298 RCU_INIT_POINTER(b->ht[h2], next); in route4_destroy()
330 fp = &b->ht[from_hash(h >> 16)]; in route4_delete()
352 rt = rtnl_dereference(b->ht[i]); in route4_delete()
449 for (fp = rtnl_dereference(b->ht[h2]); in route4_set_parms()
[all …]
/linux/include/linux/
H A Drhashtable.h113 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument
116 return (char *)he - ht->p.head_offset; in rht_obj()
125 static inline unsigned int rht_key_get_hash(struct rhashtable *ht, in rht_key_get_hash() argument
131 /* params must be equal to ht->p if it isn't constant. */ in rht_key_get_hash()
133 hash = ht->p.hashfn(key, ht->key_len, hash_rnd); in rht_key_get_hash()
144 unsigned int key_len = ht->p.key_len; in rht_key_get_hash()
156 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
159 unsigned int hash = rht_key_get_hash(ht, key, params, tbl->hash_rnd); in rht_key_hashfn()
165 struct rhashtable *ht, const struct bucket_table *tbl, in rht_head_hashfn() argument
168 const char *ptr = rht_obj(ht, he); in rht_head_hashfn()
[all …]
/linux/drivers/staging/rtl8723bs/hal/
H A DHalHWImg8723B_RF.c445 "FCC", "20M", "HT", "1T", "01", "26",
446 "ETSI", "20M", "HT", "1T", "01", "32",
447 "MKK", "20M", "HT", "1T", "01", "32",
448 "FCC", "20M", "HT", "1T", "02", "26",
449 "ETSI", "20M", "HT", "1T", "02", "32",
450 "MKK", "20M", "HT", "1T", "02", "32",
451 "FCC", "20M", "HT", "1T", "03", "32",
452 "ETSI", "20M", "HT", "1T", "03", "32",
453 "MKK", "20M", "HT", "1T", "03", "32",
454 "FCC", "20M", "HT", "1T", "04", "32",
[all …]
/linux/kernel/
H A Dsmpboot.c87 struct smp_hotplug_thread *ht; member
109 struct smp_hotplug_thread *ht = td->ht; in smpboot_thread_fn() local
118 if (ht->cleanup && td->status != HP_THREAD_NONE) in smpboot_thread_fn()
119 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn()
127 if (ht->park && td->status == HP_THREAD_ACTIVE) { in smpboot_thread_fn()
129 ht->park(td->cpu); in smpboot_thread_fn()
144 if (ht->setup) in smpboot_thread_fn()
145 ht->setup(td->cpu); in smpboot_thread_fn()
152 if (ht->unpark) in smpboot_thread_fn()
153 ht->unpark(td->cpu); in smpboot_thread_fn()
[all …]
/linux/tools/testing/selftests/tc-testing/tc-tests/filters/
H A Du32.json18 …filter protocol ip pref 1 u32 chain (0[ ]+$|0 fh 800: ht divisor 1|0 fh 800::800 order 2048 key ht
63 …filter protocol ip pref 1 u32 chain (0[ ]+$|0 fh 800: ht divisor 1|0 fh 800::800 order 2048 key ht
85 "matchPattern": "pref 99 u32 chain (0[ ]+$|0 fh 42: ht divisor 256|0 fh 800: ht divisor 1)",
130 "matchPattern": "pref 99 u32 chain (0[ ]+$|0 fh 42: ht divisor 256|0 fh 800: ht divisor 1)",
153 …ilter protocol ip pref 98 u32 chain (0[ ]+$|0 fh 801: ht divisor 1|0 fh 801::800 order 2048 key ht
172 …"cmdUnderTest": "$TC filter replace dev $DEV1 ingress protocol ip prio 20 u32 ht 47:47 action drop…
194 …"$TC filter add dev $DEV1 ingress protocol ip prio 98 u32 ht 43: match tcp src 22 FFFF classid 1:3"
196 …"cmdUnderTest": "$TC filter replace dev $DEV1 ingress protocol ip prio 98 u32 ht 43:1 match tcp sr…
199 …r protocol ip pref 99 u32 chain (0[ ]+$|0 fh (43|800): ht divisor 1|0 fh 43::800 order 2048 key ht
219 … ff00ff ff0000ff ffff00ff; do $TC filter add dev $DEV1 ingress prio 99 u32 ht 1: sample u32 0x1020…
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dact_stats.c11 struct rhashtable ht; member
43 err = rhashtable_init(&handle->ht, &act_counters_ht_params); in mlx5e_tc_act_stats_create()
56 rhashtable_destroy(&handle->ht); in mlx5e_tc_act_stats_free()
66 struct rhashtable *ht = &handle->ht; in mlx5e_tc_act_stats_add() local
82 old_act_stats = rhashtable_lookup_get_insert_fast(ht, in mlx5e_tc_act_stats_add()
115 struct rhashtable *ht = &handle->ht; in mlx5e_tc_act_stats_del_flow() local
118 act_stats = rhashtable_lookup_fast(ht, in mlx5e_tc_act_stats_del_flow()
122 rhashtable_remove_fast(ht, &act_stats->hash, in mlx5e_tc_act_stats_del_flow()
170 struct rhashtable *ht = &handle->ht; in mlx5e_tc_act_stats_fill_stats() local
176 item = rhashtable_lookup(ht, &fl_act->cookie, act_counters_ht_params); in mlx5e_tc_act_stats_fill_stats()
/linux/drivers/net/wireless/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()
/linux/drivers/net/wireless/intel/iwlwifi/cfg/
H A D22000.c189 * 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 size; mac80211 would otherwise pick the HE max (256) by default.
[all …]
/linux/net/netfilter/
H A Dxt_hashlimit.c184 hash_dst(const struct xt_hashlimit_htable *ht, const struct dsthash_dst *dst) in hash_dst() argument
188 ht->rnd); in hash_dst()
190 * Instead of returning hash % ht->cfg.size (implying a divide) in hash_dst()
191 * we return the high 32 bits of the (hash * ht->cfg.size) that will in hash_dst()
195 return reciprocal_scale(hash, ht->cfg.size); in hash_dst()
199 dsthash_find(const struct xt_hashlimit_htable *ht, in dsthash_find() argument
203 u_int32_t hash = hash_dst(ht, dst); in dsthash_find()
205 if (!hlist_empty(&ht->hash[hash])) { in dsthash_find()
206 hlist_for_each_entry_rcu(ent, &ht->hash[hash], node) in dsthash_find()
217 dsthash_alloc_init(struct xt_hashlimit_htable *ht, in dsthash_alloc_init() argument
[all …]
H A Dnft_set_hash.c25 struct rhashtable ht; member
94 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_lookup()
114 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_get()
140 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_update()
149 prev = rhashtable_lookup_get_insert_key(&priv->ht, &arg, &he->node, in nft_rhash_update()
186 prev = rhashtable_lookup_get_insert_key(&priv->ht, &arg, &he->node, in nft_rhash_insert()
228 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_deactivate()
244 rhashtable_remove_fast(&priv->ht, &he->node, nft_rhash_params); in nft_rhash_remove()
258 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_delete()
274 rhashtable_walk_enter(&priv->ht, &hti); in nft_rhash_walk()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Deeprom.c321 t->ht[0] = t->ht[1] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
322 t->ht[2] = t->ht[3] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
325 t->ht[4] = t->ht[5] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
326 t->ht[6] = t->ht[7] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
329 t->ht[8] = t->ht[9] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
330 t->ht[10] = t->ht[11] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
333 t->ht[12] = t->ht[13] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
334 t->ht[14] = t->ht[15] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
/linux/arch/mips/pci/
H A Dfixup-sb1250.c24 * bus, so we set the bus's DMA limit accordingly. However the HT link
25 * down the artificial PCI-HT bridge supports 40-bit addressing and the
26 * SP1011 HT-PCI bridge downstream supports both DAC and a 64-bit bus
27 * width, so we record the PCI-HT bridge's secondary and subordinate bus
74 * The BCM1250, etc. PCI/HT bridge reports as a host bridge.
84 * Set the SP1011 HT/PCI bridge's TRDY timeout to the finite max.
H A Dpci-bcm1480ht.c8 * BCM1480/1455-specific HT support (looking like PCI)
52 * HT's level-sensitive interrupts require EOI, which is generated
162 .name = "BCM1480 HT MEM",
169 .name = "BCM1480 HT I/O",
188 /* CFE doesn't always init all HT paths, so we always scan */ in bcm1480ht_pcibios_init()
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Drs.h64 * @IWL_TLC_MNG_MODE_OFDM_NON_HT: enable OFDM (non HT)
65 * @IWL_TLC_MNG_MODE_NON_HT: enable non HT
66 * @IWL_TLC_MNG_MODE_HT: enable HT
82 * enum iwl_tlc_mng_ht_rates - HT/VHT/HE rates
95 * @IWL_TLC_MNG_HT_RATE_MAX: maximal rate for HT/VHT
240 * TODO: avoid overlap between legacy and HT rates
306 * format. There are three formats, HT, VHT and legacy (11abg, with subformats
309 * High-throughput (HT) rate format
319 /* Bit 8: (1) HT format, (0) legacy or VHT format */
323 /* Bit 9: (1) CCK, (0) OFDM. HT (bit 8) must be "0" for this bit to be valid */
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
H A Dipoib_vlan.c88 struct mlx5i_pkey_qpn_ht *ht = ipriv->qpn_htbl; in mlx5i_pkey_add_qpn() local
98 spin_lock_bh(&ht->ht_lock); in mlx5i_pkey_add_qpn()
99 hlist_add_head(&new_node->hlist, &ht->buckets[key]); in mlx5i_pkey_add_qpn()
100 spin_unlock_bh(&ht->ht_lock); in mlx5i_pkey_add_qpn()
109 struct mlx5i_pkey_qpn_ht *ht = ipriv->qpn_htbl; in mlx5i_pkey_del_qpn() local
112 node = mlx5i_find_qpn_to_netdev_node(ht->buckets, qpn); in mlx5i_pkey_del_qpn()
114 mlx5_core_warn(epriv->mdev, "QPN to netdev delete from HT failed\n"); in mlx5i_pkey_del_qpn()
118 spin_lock_bh(&ht->ht_lock); in mlx5i_pkey_del_qpn()
120 spin_unlock_bh(&ht->ht_lock); in mlx5i_pkey_del_qpn()
/linux/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Deeprom.c179 /* ht-vht mcs 1ss 0, 1, 2, 3 */ in mt76x0_get_tx_power_per_rate()
182 t->ht[0] = t->ht[1] = s6_to_s8(val); in mt76x0_get_tx_power_per_rate()
183 t->ht[2] = t->ht[3] = s6_to_s8(val >> 8); in mt76x0_get_tx_power_per_rate()
185 /* ht-vht mcs 1ss 4, 5, 6 */ in mt76x0_get_tx_power_per_rate()
188 t->ht[4] = t->ht[5] = s6_to_s8(val); in mt76x0_get_tx_power_per_rate()
189 t->ht[6] = t->ht[7] = s6_to_s8(val >> 8); in mt76x0_get_tx_power_per_rate()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Drxon.c166 if (ctx->ht.enabled) in iwlagn_update_qos()
603 if (!ctx->ht.enabled) { in _iwl_set_rxon_ht()
611 /* FIXME: if the definition of ht.protection changed, the "translation" in _iwl_set_rxon_ht()
614 rxon->flags |= cpu_to_le32(ctx->ht.protection << in _iwl_set_rxon_ht()
619 /* clear the HT channel mode before set the mode */ in _iwl_set_rxon_ht()
624 if (ctx->ht.protection == in _iwl_set_rxon_ht()
631 switch (ctx->ht.extension_chan_offset) { in _iwl_set_rxon_ht()
646 switch (ctx->ht.extension_chan_offset) { in _iwl_set_rxon_ht()
675 le32_to_cpu(rxon->flags), ctx->ht.protection, in _iwl_set_rxon_ht()
676 ctx->ht.extension_chan_offset); in _iwl_set_rxon_ht()
[all …]
/linux/drivers/staging/rtl8712/
H A Drtl871x_mp.h164 /* HT rate. */
184 /* Represent Channel Width in HT Capabilities */
212 * bit 8 : HT PPDU counter
213 * bit 9 : HT false alarm
214 * bit 10 : HT MPDU total
215 * bit 11 : HT MPDU OK
216 * bit 12 : HT MPDU fail
/linux/drivers/md/
H A Ddm-cache-policy-smq.c585 static int h_init(struct smq_hash_table *ht, struct entry_space *es, unsigned int nr_entries) in h_init() argument
589 ht->es = es; in h_init()
591 ht->hash_bits = __ffs(nr_buckets); in h_init()
593 ht->buckets = vmalloc(array_size(nr_buckets, sizeof(*ht->buckets))); in h_init()
594 if (!ht->buckets) in h_init()
598 ht->buckets[i] = INDEXER_NULL; in h_init()
603 static void h_exit(struct smq_hash_table *ht) in h_exit() argument
605 vfree(ht->buckets); in h_exit()
608 static struct entry *h_head(struct smq_hash_table *ht, unsigned int bucket) in h_head() argument
610 return to_entry(ht->es, ht->buckets[bucket]); in h_head()
[all …]
/linux/Documentation/admin-guide/hw-vuln/
H A Dcore-scheduling.rst16 A cross-HT attack involves the attacker and victim running on different Hyper
18 full mitigation of cross-HT attacks is to disable Hyper Threading (HT). Core
19 scheduling is a scheduler feature that can mitigate some (not all) cross-HT
20 attacks. It allows HT to be turned on safely by ensuring that only tasks in a
133 on either HT::
181 Open cross-HT issues that core scheduling does not solve
219 The main use case for Core scheduling is mitigating the cross-HT vulnerabilities

12345678910>>...19