Home
last modified time | relevance | path

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

1234

/linux/lib/
H A Drhashtable.c39 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument
43 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
49 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument
51 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held()
132 static union nested_table *nested_table_alloc(struct rhashtable *ht, in nested_table_alloc() argument
143 ntbl = alloc_hooks_tag(ht->alloc_tag, in nested_table_alloc()
158 static struct bucket_table *nested_bucket_table_alloc(struct rhashtable *ht, in nested_bucket_table_alloc() argument
171 tbl = alloc_hooks_tag(ht->alloc_tag, in nested_bucket_table_alloc()
176 if (!nested_table_alloc(ht, (union nested_table __rcu **)tbl->buckets, in nested_bucket_table_alloc()
187 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument
[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, obj, test_rht_params); in test_rhashtable()
[all …]
/linux/net/sched/
H A Dcls_u32.c83 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()
178 ht = rcu_dereference_bh(n->ht_down); in u32_classify()
179 if (!ht) { in u32_classify()
210 ht = rcu_dereference_bh(n->ht_down); in u32_classify()
212 if (ht->divisor) { in u32_classify()
220 sel = ht->divisor & u32_hash_fold(*data, &n->sel, in u32_classify()
253 ht = rcu_dereference_bh(n->ht_up); in u32_classify()
267 struct tc_u_hnode *ht; in u32_lookup_ht() local
[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()
103 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get()
147 while ((f = rtnl_dereference(head->ht[h])) != NULL) { in fw_destroy()
148 RCU_INIT_POINTER(head->ht[h], in fw_destroy()
173 fp = &head->ht[fw_hash(f->id)]; in fw_delete()
189 if (rcu_access_pointer(head->ht[h])) { in fw_delete()
301 fp = &head->ht[fw_hash(fnew->id)]; in fw_change()
347 RCU_INIT_POINTER(f->next, head->ht[fw_hash(handle)]); in fw_change()
348 rcu_assign_pointer(head->ht[fw_hash(handle)], f); in fw_change()
[all …]
H A Dcls_route.c44 struct route4_filter __rcu *ht[16 + 16 + 1]; member
173 for (f = rcu_dereference_bh(b->ht[route4_hash_from(id)]); in route4_classify()
179 for (f = rcu_dereference_bh(b->ht[route4_hash_iif(iif)]); in route4_classify()
185 for (f = rcu_dereference_bh(b->ht[route4_hash_wild()]); in route4_classify()
241 for (f = rtnl_dereference(b->ht[h2]); in route4_get()
301 while ((f = rtnl_dereference(b->ht[h2])) != NULL) { in route4_destroy()
305 RCU_INIT_POINTER(b->ht[h2], next); in route4_destroy()
349 fp = &b->ht[from_hash(h >> 16)]; in route4_delete()
467 for (fp = rtnl_dereference(b->ht[h2]); in route4_set_parms()
556 fp = &f->bkt->ht[ in route4_change()
[all...]
H A Dsch_sfq.c119 sfq_index *ht; /* Hash table ('divisor' slots) */ member
319 WRITE_ONCE(q->ht[slot->hash], SFQ_EMPTY_SLOT); in sfq_drop()
363 x = q->ht[hash]; in sfq_enqueue()
369 WRITE_ONCE(q->ht[hash], x); in sfq_enqueue()
506 WRITE_ONCE(q->ht[slot->hash], SFQ_EMPTY_SLOT); in sfq_dequeue()
557 WRITE_ONCE(q->ht[slot->hash], SFQ_EMPTY_SLOT); in sfq_rehash()
563 sfq_index x = q->ht[hash]; in sfq_rehash()
576 WRITE_ONCE(q->ht[hash], x); in sfq_rehash()
777 sfq_free(q->ht); in sfq_destroy()
818 q->ht = sfq_alloc(sizeof(q->ht[0]) * q->divisor); in sfq_init()
[all …]
/linux/kernel/
H A Dsmpboot.c83 struct smp_hotplug_thread *ht; member
105 struct smp_hotplug_thread *ht = td->ht; in smpboot_thread_fn() local
114 if (ht->cleanup && td->status != HP_THREAD_NONE) in smpboot_thread_fn()
115 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn()
123 if (ht->park && td->status == HP_THREAD_ACTIVE) { in smpboot_thread_fn()
125 ht->park(td->cpu); in smpboot_thread_fn()
140 if (ht->setup) in smpboot_thread_fn()
141 ht->setup(td->cpu); in smpboot_thread_fn()
148 if (ht->unpark) in smpboot_thread_fn()
149 ht->unpark(td->cpu); in smpboot_thread_fn()
[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/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()
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
222 spin_lock(&ht->lock); in dsthash_alloc_init()
227 ent = dsthash_find(ht, dst); in dsthash_alloc_init()
[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()
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/tools/include/linux/
H A Dhashtable.h31 static inline void __hash_init(struct hlist_head *ht, unsigned int sz) in __hash_init() argument
36 INIT_HLIST_HEAD(&ht[i]); in __hash_init()
69 static inline bool __hash_empty(struct hlist_head *ht, unsigned int sz) in __hash_empty() argument
74 if (!hlist_empty(&ht[i])) in __hash_empty()
/linux/net/hsr/
H A Dhsr_main.h63 static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path) in set_hsr_tag_path() argument
65 ht->path_and_LSDU_size = in set_hsr_tag_path()
66 htons((ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12)); in set_hsr_tag_path()
69 static inline void set_hsr_tag_LSDU_size(struct hsr_tag *ht, u16 LSDU_size) in set_hsr_tag_LSDU_size() argument
71 ht->path_and_LSDU_size = htons((ntohs(ht->path_and_LSDU_size) & in set_hsr_tag_LSDU_size()
/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()
614 rxon->flags |= cpu_to_le32(ctx->ht.protection << 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()
1138 ctx->ht.extension_chan_offset = in iwlagn_config_ht40()
1140 ctx->ht.is_40mhz = true; in iwlagn_config_ht40()
[all …]
/linux/arch/mips/kernel/
H A Dkgdb.c212 struct hard_trap_info *ht; in compute_signal() local
214 for (ht = hard_trap_info; ht->tt && ht->signo; ht++) in compute_signal()
215 if (ht->tt == tt) in compute_signal()
216 return ht->signo; in compute_signal()
/linux/include/linux/
H A Dhashtable.h34 static inline void __hash_init(struct hlist_head *ht, unsigned int sz) in __hash_init() argument
39 INIT_HLIST_HEAD(&ht[i]); in __hash_init()
81 static inline bool __hash_empty(struct hlist_head *ht, unsigned int sz) in __hash_empty() argument
86 if (!hlist_empty(&ht[i])) in __hash_empty()
/linux/tools/testing/selftests/mm/
H A Dva_high_addr_switch.c185 struct testcase ht[] = { in testcases_init()
250 hugetlb_testcases = malloc(sizeof(ht)); in testcases_init()
254 memcpy(hugetlb_testcases, ht, sizeof(ht)); in testcases_init()
257 sz_hugetlb_testcases = ARRAY_SIZE(ht); in testcases_init()
184 struct testcase ht[] = { testcases_init() local
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00queue.c305 txdesc->u.ht.wcid = sta_priv->wcid; in rt2x00queue_create_tx_descriptor_ht()
314 txdesc->u.ht.mcs = txrate->idx; in rt2x00queue_create_tx_descriptor_ht()
320 if (sta && txdesc->u.ht.mcs > 7 && in rt2x00queue_create_tx_descriptor_ht()
324 txdesc->u.ht.mcs = rt2x00_get_rate_mcs(hwrate->mcs); in rt2x00queue_create_tx_descriptor_ht()
326 txdesc->u.ht.mcs |= 0x08; in rt2x00queue_create_tx_descriptor_ht()
331 txdesc->u.ht.txop = TXOP_SIFS; in rt2x00queue_create_tx_descriptor_ht()
333 txdesc->u.ht.txop = TXOP_BACKOFF; in rt2x00queue_create_tx_descriptor_ht()
343 txdesc->u.ht.stbc = 1; in rt2x00queue_create_tx_descriptor_ht()
352 txdesc->u.ht.mpdu_density = density; in rt2x00queue_create_tx_descriptor_ht()
353 txdesc->u.ht.ba_size = 7; /* FIXME: What value is needed? */ in rt2x00queue_create_tx_descriptor_ht()
[all …]
/linux/drivers/net/wireless/mediatek/mt7601u/
H A Ddebugfs.c103 rp->ht[i].raw, rp->ht[i].bw20, rp->ht[i].bw40); in mt7601u_eeprom_param_show()
H A Deeprom.c281 mt7601u_set_power_rate(&t->ht[0], delta, (val >> 16) & 0xff); in mt7601u_save_power_rate()
282 mt7601u_set_power_rate(&t->ht[1], delta, (val >> 24) & 0xff); in mt7601u_save_power_rate()
285 mt7601u_set_power_rate(&t->ht[2], delta, (val >> 0) & 0xff); in mt7601u_save_power_rate()
286 mt7601u_set_power_rate(&t->ht[3], delta, (val >> 8) & 0xff); in mt7601u_save_power_rate()
/linux/scripts/include/
H A Dhashtable.h18 static inline void __hash_init(struct hlist_head *ht, unsigned int sz) in __hash_init() argument
23 INIT_HLIST_HEAD(&ht[i]); in __hash_init()
/linux/drivers/clk/pxa/
H A Dclk-pxa27x.c205 unsigned int t, ht; in clk_pxa27x_cpll_get_rate() local
211 ht = clkcfg & (1 << 2); in clk_pxa27x_cpll_get_rate()
302 unsigned int t, ht, osc_forced; in clk_pxa27x_core_get_parent() local
311 ht = clkcfg & (1 << 2); in clk_pxa27x_core_get_parent()
313 if (ht || t) in clk_pxa27x_core_get_parent()
/linux/drivers/net/wireless/intel/iwlegacy/
H A D4965-debug.c56 struct stats_rx_ht_phy *ht, *accum_ht, *delta_ht, *max_ht; in il4965_ucode_rx_stats_read() local
75 ht = &il->_4965.stats.rx.ofdm_ht; in il4965_ucode_rx_stats_read()
407 le32_to_cpu(ht->plcp_err), accum_ht->plcp_err, in il4965_ucode_rx_stats_read()
411 le32_to_cpu(ht->overrun_err), accum_ht->overrun_err, in il4965_ucode_rx_stats_read()
415 le32_to_cpu(ht->early_overrun_err), in il4965_ucode_rx_stats_read()
420 le32_to_cpu(ht->crc32_good), accum_ht->crc32_good, in il4965_ucode_rx_stats_read()
424 le32_to_cpu(ht->crc32_err), accum_ht->crc32_err, in il4965_ucode_rx_stats_read()
428 le32_to_cpu(ht->mh_format_err), accum_ht->mh_format_err, in il4965_ucode_rx_stats_read()
432 le32_to_cpu(ht->agg_crc32_good), accum_ht->agg_crc32_good, in il4965_ucode_rx_stats_read()
436 le32_to_cpu(ht->agg_mpdu_cnt), accum_ht->agg_mpdu_cnt, in il4965_ucode_rx_stats_read()
[all …]
/linux/drivers/video/fbdev/
H A Dasiliantfb.c178 unsigned ht = (p->var.left_margin + p->var.xres + p->var.right_margin + p->var.hsync_len) / 8; in asiliant_set_timing() local
192 write_cr(0x00, (ht - 5) & 0xff); in asiliant_set_timing()
195 write_cr(0x03, ((ht - 1) & 0x1f) | 0x80); in asiliant_set_timing()
197 write_cr(0x05, (((ht - 1) & 0x20) <<2) | (he & 0x1f)); in asiliant_set_timing()
198 write_cr(0x3c, (ht - 1) & 0xc0); in asiliant_set_timing()
213 write_cr(0x38, ((ht - 5) & 0x100) >> 8); in asiliant_set_timing()
/linux/drivers/net/wireless/broadcom/b43/
H A Dphy_ht.c198 struct b43_phy_ht *htphy = dev->phy.ht; in b43_phy_ht_pa_override()
337 struct b43_phy_ht *phy_ht = dev->phy.ht; in b43_phy_ht_stop_playback()
377 struct b43_phy_ht *phy_ht = dev->phy.ht; in b43_phy_ht_run_samples()
535 struct b43_phy_ht *phy_ht = dev->phy.ht; in b43_phy_ht_tx_power_ctl()
575 struct b43_phy_ht *phy_ht = dev->phy.ht; in b43_phy_ht_tx_power_ctl_idle_tssi()
623 struct b43_phy_ht *phy_ht = dev->phy.ht; in b43_phy_ht_tx_power_ctl_setup()
848 dev->phy.ht = phy_ht; in b43_phy_ht_op_allocate()
856 struct b43_phy_ht *phy_ht = phy->ht; in b43_phy_ht_op_prepare_structs()
871 struct b43_phy_ht *phy_ht = dev->phy.ht; in b43_phy_ht_op_init()
1012 struct b43_phy_ht *phy_ht = phy->ht; in b43_phy_ht_op_free()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmapping.c20 DECLARE_HASHTABLE(ht, 8);
54 hash_for_each_possible(ctx->ht, mi, node, hash_key) { in mapping_add()
64 hash_add(ctx->ht, &mi->node, hash_key); in mapping_add()

1234