Home
last modified time | relevance | path

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

1234

/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()
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()
130 static union nested_table *nested_table_alloc(struct rhashtable *ht, in nested_table_alloc() argument
141 ntbl = alloc_hooks_tag(ht->alloc_tag, in nested_table_alloc()
156 static struct bucket_table *nested_bucket_table_alloc(struct rhashtable *ht, in nested_bucket_table_alloc() argument
169 tbl = alloc_hooks_tag(ht->alloc_tag, in nested_bucket_table_alloc()
174 if (!nested_table_alloc(ht, (union nested_table __rcu **)tbl->buckets, in nested_bucket_table_alloc()
185 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/include/linux/
H A Drhashtable.h114 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument
117 return (char *)he - ht->p.head_offset; in rht_obj()
126 static __always_inline unsigned int rht_key_get_hash(struct rhashtable *ht, in rht_key_get_hash() argument
134 hash = ht->p.hashfn(key, ht->key_len, hash_rnd); in rht_key_get_hash()
136 unsigned int key_len = params.key_len ? : ht->p.key_len; in rht_key_get_hash()
150 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
153 unsigned int hash = rht_key_get_hash(ht, key, params, tbl->hash_rnd); in rht_key_hashfn()
159 struct rhashtable *ht, const struct bucket_table *tbl, in rht_head_hashfn() argument
162 const char *ptr = rht_obj(ht, he); in rht_head_hashfn()
166 ht->p.key_len, in rht_head_hashfn()
[all …]
H A Drhashtable-types.h36 struct rhashtable *ht; member
107 struct rhashtable ht; member
130 struct rhashtable *ht; member
139 int rhashtable_init_noprof(struct rhashtable *ht,
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/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()
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 in u32_classify()
267 struct tc_u_hnode *ht; u32_lookup_ht() local
278 u32_lookup_key(struct tc_u_hnode * ht,u32 handle) u32_lookup_key() argument
299 struct tc_u_hnode *ht; u32_get() local
404 struct tc_u_hnode *ht = rtnl_dereference(n->ht_down); __u32_destroy_key() local
466 struct tc_u_hnode *ht = rtnl_dereference(key->ht_up); u32_delete_key() local
549 struct tc_u_hnode *ht = rtnl_dereference(n->ht_down); u32_replace_hw_knode() local
585 u32_clear_hnode(struct tcf_proto * tp,struct tc_u_hnode * ht,struct netlink_ext_ack * extack) u32_clear_hnode() argument
608 u32_destroy_hnode(struct tcf_proto * tp,struct tc_u_hnode * ht,struct netlink_ext_ack * extack) u32_destroy_hnode() argument
646 struct tc_u_hnode *ht; u32_destroy() local
671 struct tc_u_hnode *ht = arg; u32_delete() local
698 gen_new_kid(struct tc_u_hnode * ht,u32 htid) gen_new_kid() argument
799 struct tc_u_hnode *ht; u32_replace_knode() local
824 struct tc_u_hnode *ht = rtnl_dereference(n->ht_down); u32_init_knode() local
875 struct tc_u_hnode *ht; u32_change() local
1206 struct tc_u_hnode *ht; u32_walk() local
1233 u32_reoffload_hnode(struct tcf_proto * tp,struct tc_u_hnode * ht,bool add,flow_setup_cb_t * cb,void * cb_priv,struct netlink_ext_ack * extack) u32_reoffload_hnode() argument
1257 struct tc_u_hnode *ht = rtnl_dereference(n->ht_down); u32_reoffload_knode() local
1291 struct tc_u_hnode *ht; u32_reoffload() local
1359 struct tc_u_hnode *ht = fh; u32_dump() 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.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 …]
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()
505 WRITE_ONCE(q->ht[slot->hash], SFQ_EMPTY_SLOT); in sfq_dequeue()
556 WRITE_ONCE(q->ht[slot->hash], SFQ_EMPTY_SLOT); in sfq_rehash()
562 sfq_index x = q->ht[hash]; in sfq_rehash()
575 WRITE_ONCE(q->ht[hash], x); in sfq_rehash()
771 sfq_free(q->ht); in sfq_destroy()
811 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.c183 hash_dst(const struct xt_hashlimit_htable *ht, const struct dsthash_dst *dst) in hash_dst() argument
187 ht->rnd); in hash_dst()
194 return reciprocal_scale(hash, ht->cfg.size); in hash_dst()
198 dsthash_find(const struct xt_hashlimit_htable *ht, in dsthash_find() argument
202 u_int32_t hash = hash_dst(ht, dst); in dsthash_find()
204 if (!hlist_empty(&ht->hash[hash])) { in dsthash_find()
205 hlist_for_each_entry_rcu(ent, &ht->hash[hash], node) in dsthash_find()
216 dsthash_alloc_init(struct xt_hashlimit_htable *ht, in dsthash_alloc_init() argument
221 spin_lock(&ht->lock); in dsthash_alloc_init()
226 ent = dsthash_find(ht, dst); in dsthash_alloc_init()
[all …]
H A Dnft_set_hash.c25 struct rhashtable ht; member
98 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_lookup()
118 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_get()
139 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_ro()
[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/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/tools/testing/selftests/mm/
H A Dva_high_addr_switch.c184 struct testcase ht[] = { in testcases_init() local
249 hugetlb_testcases = malloc(sizeof(ht)); in testcases_init()
253 memcpy(hugetlb_testcases, ht, sizeof(ht)); in testcases_init()
256 sz_hugetlb_testcases = ARRAY_SIZE(ht); in testcases_init()
/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/accessibility/speakup/
H A Dmain.c1563 speakup_console[vc->vc_num]->ht.cy = vc->state.y; in do_handle_cursor()
1579 hi = speakup_console[vc_num]->ht.highsize[bi]; in update_color_buffer()
1582 if (speakup_console[vc_num]->ht.highsize[bi] == 0) { in update_color_buffer()
1583 speakup_console[vc_num]->ht.rpos[bi] = vc->vc_pos; in update_color_buffer()
1584 speakup_console[vc_num]->ht.rx[bi] = vc->state.x; in update_color_buffer()
1585 speakup_console[vc_num]->ht.ry[bi] = vc->state.y; in update_color_buffer()
1589 speakup_console[vc_num]->ht.highbuf[bi][hi] = ic[i]; in update_color_buffer()
1592 if (speakup_console[vc_num]->ht.highbuf[bi][hi - 1] != in update_color_buffer()
1594 speakup_console[vc_num]->ht.highbuf[bi][hi] = in update_color_buffer()
1601 speakup_console[vc_num]->ht.highsize[bi] = hi; in update_color_buffer()
[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()
/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/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/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()

1234