Home
last modified time | relevance | path

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

12345678910>>...21

/openbmc/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
147 static struct bucket_table *nested_bucket_table_alloc(struct rhashtable *ht, in nested_bucket_table_alloc() argument
164 if (!nested_table_alloc(ht, (union nested_table __rcu **)tbl->buckets, in nested_bucket_table_alloc()
175 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument
[all …]
H A Dtest_rhashtable.c115 static int insert_retry(struct rhashtable *ht, struct test_obj *obj, in insert_retry() argument
123 err = rhashtable_insert_fast(ht, &obj->node, params); in insert_retry()
137 static int __init test_rht_lookup(struct rhashtable *ht, struct test_obj *array, in test_rht_lookup() argument
152 obj = rhashtable_lookup_fast(ht, &key, test_rht_params); in test_rht_lookup()
175 static void test_bucket_stats(struct rhashtable *ht, unsigned int entries) in test_bucket_stats() argument
181 rhashtable_walk_enter(ht, &hti); in test_bucket_stats()
202 total, atomic_read(&ht->nelems), entries, chain_len); in test_bucket_stats()
204 if (total != atomic_read(&ht->nelems) || total != entries) in test_bucket_stats()
208 static s64 __init test_rhashtable(struct rhashtable *ht, struct test_obj *array, in test_rhashtable() argument
226 err = insert_retry(ht, obj, test_rht_params); in test_rhashtable()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_hashtab.c45 int drm_ht_create(struct drm_open_hash *ht, unsigned int order) in drm_ht_create() argument
49 ht->order = order; in drm_ht_create()
50 ht->table = NULL; in drm_ht_create()
51 if (size <= PAGE_SIZE / sizeof(*ht->table)) in drm_ht_create()
52 ht->table = kcalloc(size, sizeof(*ht->table), GFP_KERNEL); in drm_ht_create()
54 ht->table = vzalloc(array_size(size, sizeof(*ht->table))); in drm_ht_create()
55 if (!ht->table) { in drm_ht_create()
62 void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key) in drm_ht_verbose_list() argument
69 hashed_key = hash_long(key, ht->order); in drm_ht_verbose_list()
71 h_list = &ht->table[hashed_key]; in drm_ht_verbose_list()
[all …]
/openbmc/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 …]
H A Drhashtable-types.h30 * @ht: Hash table
34 struct rhashtable *ht; member
95 * @ht: Underlying rhtable
98 struct rhashtable ht; member
113 * @ht: Table to iterate through
121 struct rhashtable *ht; member
130 int rhashtable_init(struct rhashtable *ht,
/openbmc/qemu/util/
H A Dqht.c48 * ht->map pointer is set, and the old map is freed once no RCU readers can see
51 * Writers check for concurrent resizes by comparing ht->map before and after
110 static inline void qht_lock(struct qht *ht) in qht_lock() argument
112 if (ht->mode & QHT_MODE_RAW_MUTEXES) { in qht_lock()
113 qemu_mutex_lock__raw(&ht->lock); in qht_lock()
115 qemu_mutex_lock(&ht->lock); in qht_lock()
119 static inline int qht_trylock(struct qht *ht) in qht_trylock() argument
121 if (ht->mode & QHT_MODE_RAW_MUTEXES) { in qht_trylock()
122 return qemu_mutex_trylock__raw(&(ht)->lock); in qht_trylock()
124 return qemu_mutex_trylock(&(ht)->lock); in qht_trylock()
[all …]
H A Dqsp.c40 * - Use a glib HT for each thread, protecting each HT with its own lock.
94 struct qht ht; member
289 qsp_entry_create(struct qht *ht, const QSPEntry *entry, uint32_t hash) in qsp_entry_create() argument
298 qht_insert(ht, e, hash, &existing); in qsp_entry_create()
307 qsp_entry_find(struct qht *ht, const QSPEntry *entry, uint32_t hash) in qsp_entry_find() argument
311 e = qht_lookup(ht, entry, hash); in qsp_entry_find()
313 e = qsp_entry_create(ht, entry, hash); in qsp_entry_find()
530 struct qht *ht = up; in qsp_aggregate() local
536 agg = qsp_entry_find(ht, e, hash); in qsp_aggregate()
547 struct qht *ht = htp; in qsp_iter_diff() local
[all …]
/openbmc/linux/drivers/staging/rtl8723bs/hal/
H A DHalHWImg8723B_RF.c455 "FCC", "20M", "HT", "1T", "01", "26",
456 "ETSI", "20M", "HT", "1T", "01", "32",
457 "MKK", "20M", "HT", "1T", "01", "32",
458 "FCC", "20M", "HT", "1T", "02", "26",
459 "ETSI", "20M", "HT", "1T", "02", "32",
460 "MKK", "20M", "HT", "1T", "02", "32",
461 "FCC", "20M", "HT", "1T", "03", "32",
462 "ETSI", "20M", "HT", "1T", "03", "32",
463 "MKK", "20M", "HT", "1T", "03", "32",
464 "FCC", "20M", "HT", "1T", "04", "32",
[all …]
/openbmc/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 …]
/openbmc/qemu/include/qemu/
H A Dqht.h19 QemuMutex lock; /* serializes setters of ht->map */
54 * @ht: QHT to be initialized
59 void qht_init(struct qht *ht, qht_cmp_func_t cmp, size_t n_elems,
64 * @ht: QHT to be destroyed
68 void qht_destroy(struct qht *ht);
72 * @ht: QHT to insert to
85 * (i.e. ht->cmp matches and the hash is the same) to @p-@h. If @existing
88 bool qht_insert(struct qht *ht, void *p, uint32_t hash, void **existing);
92 * @ht: QHT to be looked up
107 void *qht_lookup_custom(const struct qht *ht, const void *userp, uint32_t hash,
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-qht.c13 static struct qht ht; variable
36 inserted = qht_insert(&ht, &arr[i], hash, NULL); in insert()
38 inserted = qht_insert(&ht, &arr[i], hash, &existing); in insert()
53 g_assert_true(qht_remove(&ht, &arr[i], hash)); in do_rm()
55 g_assert_false(qht_remove(&ht, &arr[i], hash)); in do_rm()
85 p = qht_lookup(&ht, &val, hash); in check()
87 p = qht_lookup_custom(&ht, &val, hash, is_equal); in check()
93 qht_statistics_init(&ht, &stats); in check()
112 qht_statistics_init(&ht, &stats); in check_n()
121 qht_iter(&ht, count_func, &curr); in iter_check()
[all …]
/openbmc/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 …]
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/
H A Drtl819x_HT.h6 * The HT Capability element is present in beacons, association request,
22 * Represent Channel Width in HT Capabilities
30 * Represent Extension Channel Offset in HT Capabilities
41 //HT capability info
57 //MAC HT parameters info
65 //Extended HT Capability Info
77 * The HT Information element is present in beacons
119 * The Data structure is used to keep HT related variables when card is
142 // HT related information for "Self"
143 …struct ht_capability_ele SelfHTCap; // This is HT cap element sent to peer STA, which also indica…
[all …]
/openbmc/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()
/openbmc/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()
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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()
/openbmc/openbmc-tools/altitude/
H A Daltitude33 def Ht(t): function
78 ht = Ht(K(args.temperature))
79 local.append("Height at {:.2f}C: {:.2f}m".format(args.temperature, ht))
80 p = P(ht)
81 local.append("Pressure at {:.2f}m: {:.2f}Pa".format(ht, p))
/openbmc/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.
/openbmc/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 …]
/openbmc/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()
/openbmc/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()

12345678910>>...21