/net/sched/ |
D | cls_u32.c | 82 struct tc_u_knode __rcu *ht[]; member 111 struct tc_u_hnode *ht = rcu_dereference_bh(tp->root); in u32_classify() local 123 n = rcu_dereference_bh(ht->ht[sel]); in u32_classify() 168 ht = rcu_dereference_bh(n->ht_down); in u32_classify() 169 if (!ht) { in u32_classify() 200 ht = rcu_dereference_bh(n->ht_down); in u32_classify() 202 if (ht->divisor) { in u32_classify() 209 sel = ht->divisor & u32_hash_fold(*data, &n->sel, in u32_classify() 242 ht = rcu_dereference_bh(n->ht_up); in u32_classify() 256 struct tc_u_hnode *ht; in u32_lookup_ht() local [all …]
|
D | cls_fw.c | 29 struct fw_filter __rcu *ht[HTSIZE]; member 61 for (f = rcu_dereference_bh(head->ht[fw_hash(id)]); f; in fw_classify() 97 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get() 141 while ((f = rtnl_dereference(head->ht[h])) != NULL) { in fw_destroy() 142 RCU_INIT_POINTER(head->ht[h], in fw_destroy() 167 fp = &head->ht[fw_hash(f->id)]; in fw_delete() 183 if (rcu_access_pointer(head->ht[h])) { in fw_delete() 285 fp = &head->ht[fw_hash(fnew->id)]; in fw_change() 331 RCU_INIT_POINTER(f->next, head->ht[fw_hash(handle)]); in fw_change() 332 rcu_assign_pointer(head->ht[fw_hash(handle)], f); in fw_change() [all …]
|
D | cls_route.c | 42 struct route4_filter __rcu *ht[16 + 16 + 1]; member 164 for (f = rcu_dereference_bh(b->ht[route4_hash_from(id)]); in route4_classify() 170 for (f = rcu_dereference_bh(b->ht[route4_hash_iif(iif)]); in route4_classify() 176 for (f = rcu_dereference_bh(b->ht[route4_hash_wild()]); in route4_classify() 232 for (f = rtnl_dereference(b->ht[h2]); in route4_get() 292 while ((f = rtnl_dereference(b->ht[h2])) != NULL) { in route4_destroy() 296 RCU_INIT_POINTER(b->ht[h2], next); in route4_destroy() 328 fp = &b->ht[from_hash(h >> 16)]; in route4_delete() 350 rt = rtnl_dereference(b->ht[i]); in route4_delete() 443 for (fp = rtnl_dereference(b->ht[h2]); in route4_set_parms() [all …]
|
D | sch_sfq.c | 126 sfq_index *ht; /* Hash table ('divisor' slots) */ member 321 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_drop() 365 x = q->ht[hash]; in sfq_enqueue() 371 q->ht[hash] = x; in sfq_enqueue() 507 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_dequeue() 558 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_rehash() 564 sfq_index x = q->ht[hash]; in sfq_rehash() 577 q->ht[hash] = x; in sfq_rehash() 726 sfq_free(q->ht); in sfq_destroy() 767 q->ht = sfq_alloc(sizeof(q->ht[0]) * q->divisor); in sfq_init() [all …]
|
D | cls_flower.c | 86 struct rhashtable ht; member 103 struct rhashtable ht; member 258 return rhashtable_lookup_fast(&mask->ht, fl_key_get_start(mkey, mask), in __fl_lookup() 359 return rhashtable_init(&head->ht, &mask_ht_params); in fl_init() 367 rhashtable_destroy(&mask->ht); in fl_mask_free() 393 rhashtable_remove_fast(&head->ht, &mask->ht_node, mask_ht_params); in fl_mask_put() 552 rhashtable_remove_fast(&f->mask->ht, &f->ht_node, in __fl_delete() 573 rhashtable_destroy(&head->ht); in fl_destroy_sleepable() 1761 return rhashtable_init(&mask->ht, &mask->filter_ht_params); in fl_init_mask_hashtable() 1869 err = rhashtable_replace_fast(&head->ht, &mask->ht_node, in fl_create_new_mask() [all …]
|
/net/netfilter/ |
D | xt_hashlimit.c | 184 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 …]
|
D | nft_set_hash.c | 25 struct rhashtable ht; member 91 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_lookup() 109 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_get() 132 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_update() 140 prev = rhashtable_lookup_get_insert_key(&priv->ht, &arg, &he->node, in nft_rhash_update() 176 prev = rhashtable_lookup_get_insert_key(&priv->ht, &arg, &he->node, in nft_rhash_insert() 218 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_deactivate() 234 rhashtable_remove_fast(&priv->ht, &he->node, nft_rhash_params); in nft_rhash_remove() 248 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_delete() 265 rhashtable_walk_enter(&priv->ht, &hti); in nft_rhash_walk() [all …]
|
/net/hsr/ |
D | hsr_main.h | 75 static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path) in set_hsr_tag_path() argument 77 ht->path_and_LSDU_size = in set_hsr_tag_path() 78 htons((ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12)); in set_hsr_tag_path() 81 static inline void set_hsr_tag_LSDU_size(struct hsr_tag *ht, u16 LSDU_size) in set_hsr_tag_LSDU_size() argument 83 ht->path_and_LSDU_size = htons((ntohs(ht->path_and_LSDU_size) & in set_hsr_tag_LSDU_size()
|
/net/ipv4/ |
D | raw.c | 98 head = &h->ht[inet_sk(sk)->inet_num & (RAW_HTABLE_SIZE - 1)]; in raw_hash_sk() 179 head = &raw_v4_hashinfo.ht[hash]; in raw_v4_input() 213 raw_sk = sk_head(&raw_v4_hashinfo.ht[hash]); in raw_local_deliver() 297 raw_sk = sk_head(&raw_v4_hashinfo.ht[hash]); in raw_icmp_error() 984 sk_for_each(sk, &h->ht[state->bucket]) in raw_get_first() 1005 sk = sk_head(&h->ht[state->bucket]); in raw_get_next()
|
D | raw_diag.c | 69 sk_for_each(s, &hashinfo->ht[slot]) { in raw_sock_get() 161 sk_for_each(sk, &hashinfo->ht[slot]) { in raw_diag_dump()
|
/net/netfilter/ipset/ |
D | ip_set_hash_gen.h | 707 struct hbucket *ht; in mtype_resize() local 712 ht = kzalloc(sizeof(*ht) + in mtype_resize() 716 if (!ht) in mtype_resize() 721 memcpy(ht, m, sizeof(struct hbucket) + in mtype_resize() 723 ht->size = m->size + AHASH_INIT_SIZE; in mtype_resize() 728 m = ht; in mtype_resize() 729 RCU_INIT_POINTER(hbucket(t, key), ht); in mtype_resize()
|
/net/mac80211/ |
D | Makefile | 13 ht.o agg-tx.o agg-rx.o \
|
/net/ipv6/ |
D | raw.c | 172 sk = sk_head(&raw_v6_hashinfo.ht[hash]); in ipv6_raw_deliver() 234 raw_sk = sk_head(&raw_v6_hashinfo.ht[nexthdr & (RAW_HTABLE_SIZE - 1)]); in raw6_local_deliver() 372 sk = sk_head(&raw_v6_hashinfo.ht[hash]); in raw6_icmp_error()
|
/net/smc/ |
D | smc_diag.c | 203 head = &prot->h.smc_hash->ht; in smc_diag_dump_proto()
|
D | af_smc.c | 87 head = &h->ht; in smc_hash_sk() 2811 INIT_HLIST_HEAD(&smc_v4_hashinfo.ht); in smc_init() 2812 INIT_HLIST_HEAD(&smc_v6_hashinfo.ht); in smc_init()
|