| /linux/lib/ |
| H A D | rhashtable.c | 37 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 in nested_table_alloc() 148 nested_bucket_table_alloc(struct rhashtable * ht,size_t nbuckets,gfp_t gfp) nested_bucket_table_alloc() argument 177 bucket_table_alloc(struct rhashtable * ht,size_t nbuckets,gfp_t gfp) bucket_table_alloc() argument 215 rhashtable_last_table(struct rhashtable * ht,struct bucket_table * tbl) rhashtable_last_table() argument 228 rhashtable_rehash_one(struct rhashtable * ht,struct rhash_lock_head __rcu ** bkt,unsigned int old_hash) rhashtable_rehash_one() argument 280 rhashtable_rehash_chain(struct rhashtable * ht,unsigned int old_hash) rhashtable_rehash_chain() argument 302 rhashtable_rehash_attach(struct rhashtable * ht,struct bucket_table * old_tbl,struct bucket_table * new_tbl) rhashtable_rehash_attach() argument 319 rhashtable_rehash_table(struct rhashtable * ht) rhashtable_rehash_table() argument 358 rhashtable_rehash_alloc(struct rhashtable * ht,struct bucket_table * old_tbl,unsigned int size) rhashtable_rehash_alloc() argument 394 rhashtable_shrink(struct rhashtable * ht) rhashtable_shrink() argument 416 struct rhashtable *ht; rht_deferred_worker() local 446 rhashtable_insert_rehash(struct rhashtable * ht,struct bucket_table * tbl) rhashtable_insert_rehash() argument 494 rhashtable_lookup_one(struct rhashtable * ht,struct rhash_lock_head __rcu ** bkt,struct bucket_table * tbl,unsigned int hash,const void * key,struct rhash_head * obj) rhashtable_lookup_one() argument 546 rhashtable_insert_one(struct rhashtable * ht,struct rhash_lock_head __rcu ** bkt,struct bucket_table * tbl,unsigned int hash,struct rhash_head * obj,void * data) rhashtable_insert_one() argument 590 rhashtable_try_insert(struct rhashtable * ht,const void * key,struct rhash_head * obj) rhashtable_try_insert() argument 641 rhashtable_insert_slow(struct rhashtable * ht,const void * key,struct rhash_head * obj) rhashtable_insert_slow() argument 677 rhashtable_walk_enter(struct rhashtable * ht,struct rhashtable_iter * iter) rhashtable_walk_enter() argument 729 struct rhashtable *ht = iter->ht; rhashtable_walk_start_check() local 803 struct rhashtable *ht = iter->ht; __rhashtable_walk_find_next() local 874 struct rhashtable *ht = iter->ht; rhashtable_walk_next() local 913 struct rhashtable *ht = iter->ht; rhashtable_walk_peek() local 945 struct rhashtable *ht; rhashtable_walk_stop() local 1027 rhashtable_init_noprof(struct rhashtable * ht,const struct rhashtable_params * params) rhashtable_init_noprof() argument 1110 rhashtable_free_one(struct rhashtable * ht,struct rhash_head * obj,void (* free_fn)(void * ptr,void * arg),void * arg) rhashtable_free_one() argument 1144 rhashtable_free_and_destroy(struct rhashtable * ht,void (* free_fn)(void * ptr,void * arg),void * arg) rhashtable_free_and_destroy() argument 1182 rhashtable_destroy(struct rhashtable * ht) rhashtable_destroy() argument 1229 rht_bucket_nested_insert(struct rhashtable * ht,struct bucket_table * tbl,unsigned int hash) rht_bucket_nested_insert() argument [all...] |
| H A D | test_rhashtable.c | 116 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/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
| H A D | table.c | 2982 "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 D | cls_u32.c | 80 /* 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->divisor & u32_hash_fold(*data, &n->sel, in u32_classify() 253 ht = rcu_dereference_bh(n->ht_up); in u32_classify() [all …]
|
| H A D | cls_fw.c | 30 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 D | cls_route.c | 43 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 D | sch_sfq.c | 100 unsigned short hash; /* hash value (index in ht[]) */ 119 sfq_index *ht; /* Hash table ('divisor' slots) */ member 317 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_drop() 361 x = q->ht[hash]; in sfq_enqueue() 367 q->ht[hash] = x; in sfq_enqueue() 503 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_dequeue() 554 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_rehash() 560 sfq_index x = q->ht[hash]; in sfq_rehash() 573 q->ht[hash] = x; in sfq_rehash() 769 sfq_free(q->ht); in sfq_destroy() [all …]
|
| /linux/kernel/ |
| H A D | smpboot.c | 83 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/tools/testing/selftests/tc-testing/tc-tests/filters/ |
| H A D | u32.json | 18 …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 D | act_stats.c | 11 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 D | xt_hashlimit.c | 183 hash_dst(const struct xt_hashlimit_htable *ht, const struct dsthash_dst *dst) in hash_dst() argument 187 ht->rnd); in hash_dst() 189 * Instead of returning hash % ht->cfg.size (implying a divide) in hash_dst() 190 * we return the high 32 bits of the (hash * ht->cfg.size) that will 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 [all …]
|
| H A D | nft_set_hash.c | 25 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/arch/mips/pci/ |
| H A D | fixup-sb1250.c | 24 * 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 D | pci-bcm1480ht.c | 8 * 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/ethernet/mellanox/mlx5/core/ipoib/ |
| H A D | ipoib_vlan.c | 88 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/intel/iwlwifi/dvm/ |
| H A D | rxon.c | 166 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/md/ |
| H A D | dm-cache-policy-smq.c | 585 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(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 D | core-scheduling.rst | 16 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
|
| /linux/drivers/staging/rtl8723bs/include/ |
| H A D | hal_data.h | 56 #define MAX_RATE_SECTION_NUM 3 /* CCK:1, OFDM:1, HT:1 */ 237 /* CCK = 0 OFDM = 1 HT-MCS 0-7 = 2 */ 245 u8 TxPwrLevelHT40_1S[RF_PATH_MAX_92C_88E][CHANNEL_MAX_NUMBER]; /* For HT 40MHZ pwr */ 246 u8 TxPwrLevelHT40_2S[RF_PATH_MAX_92C_88E][CHANNEL_MAX_NUMBER]; /* For HT 40MHZ pwr */ 247 s8 TxPwrHt20Diff[RF_PATH_MAX_92C_88E][CHANNEL_MAX_NUMBER];/* HT 20<->40 Pwr diff */ 248 u8 TxPwrLegacyHtDiff[RF_PATH_MAX_92C_88E][CHANNEL_MAX_NUMBER];/* For HT<->legacy pwr diff */ 268 u8 LegacyHTTxPowerDiff;/* Legacy to HT rate power diff */
|
| /linux/drivers/clk/pxa/ |
| H A D | clk-pxa27x.c | 46 #define PXA27x_CLKCFG(B, HT, T) \ argument 49 ((HT) ? CLKCFG_HALFTURBO : 0) | \ 169 * Control variables are A, L, 2N for CCCR; B, HT, T for CLKCFG. 184 * HT = 0 Half-Turbo mode 205 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/arch/powerpc/platforms/powermac/ |
| H A D | pci.c | 217 * implement self-view of the HT host yet 628 * to reassign bus numbers for HT. If we ever have P2P bridges in setup_u3_agp() 631 * HT childs. in setup_u3_agp() 714 printk(KERN_ERR "PCI: Failed to get U3/U4 HT resources !\n"); in setup_u3_ht() 725 * /ht node doesn't expose a "ranges" property, we read the register in setup_u3_ht() 741 DBG("PCI: Apple HT bridge decode register: 0x%08x\n", decode); in setup_u3_ht() 746 * That means that we are incorrectly attributing it to HT. in setup_u3_ht() 748 * In a similar vein, region 0xf4000000 is actually the HT IO space but in setup_u3_ht() 808 } else if (of_device_is_compatible(dev, "u3-ht")) { in pmac_add_bridge() 810 disp_name = "U3-HT"; in pmac_add_bridge() [all …]
|
| /linux/net/hsr/ |
| H A D | hsr_main.h | 63 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/include/linux/bcma/ |
| H A D | bcma_regs.h | 9 #define BCMA_CLKCTLST_FORCEHT 0x00000002 /* Force HT request */ 12 #define BCMA_CLKCTLST_HAVEHTREQ 0x00000010 /* HT available request */ 18 #define BCMA_CLKCTLST_HAVEHT 0x00020000 /* HT available */ 20 #define BCMA_CLKCTLST_BP_ON_HT 0x00080000 /* RO: running on HT clock */
|
| /linux/tools/include/linux/ |
| H A D | hashtable.h | 31 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/arch/mips/kernel/ |
| H A D | kgdb.c | 212 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()
|