/linux-master/fs/smb/client/ |
H A D | cifsfs.h | 12 #include <linux/hash.h>
|
H A D | dir.c | 830 unsigned long hash; local 834 hash = init_name_hash(dentry); 840 hash = partial_name_hash(cifs_toupper(c), hash); 842 q->hash = end_name_hash(hash);
|
/linux-master/arch/powerpc/kvm/ |
H A D | book3s_64_mmu_hv.c | 23 #include <asm/book3s/64/mmu-hash.h> 212 unsigned long addr, hash; local 237 hash = (i ^ (VRMA_VSID ^ (VRMA_VSID << 25))) 240 * We assume that the hash table is empty and no 245 hash = (hash << 3) + 7; 248 ret = kvmppc_virtmode_do_h_enter(kvm, H_EXACT, hash, hp_v, hp_r, 368 /* Find the HPTE in the hash table */ 489 * Emulated accesses are emulated by looking at the hash for 1226 unsigned long apsize, avpn, pteg, hash; local [all...] |
/linux-master/fs/hugetlbfs/ |
H A D | inode.c | 660 u32 hash = 0; local 663 hash = hugetlb_fault_mutex_hash(mapping, index); 664 mutex_lock(&hugetlb_fault_mutex_table[hash]); 673 mutex_unlock(&hugetlb_fault_mutex_table[hash]); 811 u32 hash; local 870 hash = hugetlb_fault_mutex_hash(mapping, index); 871 mutex_lock(&hugetlb_fault_mutex_table[hash]); 877 mutex_unlock(&hugetlb_fault_mutex_table[hash]); 891 mutex_unlock(&hugetlb_fault_mutex_table[hash]); 901 mutex_unlock(&hugetlb_fault_mutex_table[hash]); [all...] |
/linux-master/drivers/md/bcache/ |
H A D | btree.h | 119 struct hlist_node hash; member in struct:btree 208 hlist_for_each_entry_rcu((b), (c)->bucket_hash + iter, hash)
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwxgmac2_descs.c | 256 static int dwxgmac2_get_rx_hash(struct dma_desc *p, u32 *hash, argument 277 *hash = le32_to_cpu(p->des1);
|
/linux-master/include/linux/ |
H A D | key.h | 116 unsigned long hash; /* Hash value */ member in struct:keyring_index_key 248 unsigned long hash; member in struct:key::__anon1704::__anon1705
|
H A D | dcache.h | 33 /* The hash is always the low bits of hash_len */ 35 #define HASH_LEN_DECLARE u32 hash; u32 len 38 #define HASH_LEN_DECLARE u32 len; u32 hash 44 * saves "metadata" about the string (ie length and the hash). 46 * hash comes first so it snuggles against d_parent in the 86 struct hlist_bl_node d_hash; /* lookup hash list */ 262 * This adds the entry to the hash queues.
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_core.h | 243 struct rhash_head hash; member in struct:fs_fte 278 struct rhlist_head hash; member in struct:mlx5_flow_group
|
/linux-master/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_pf.c | 117 /* add hash table entry */ 136 unsigned long hash) 142 lower_32_bits(hash)); 144 upper_32_bits(hash)); 147 lower_32_bits(hash)); 149 upper_32_bits(hash)); 189 /* hash table filter, clear EM filter for UC entries */ 259 unsigned long hash) 261 enetc_port_wr(hw, ENETC_PSIVHFR0(si_idx), lower_32_bits(hash)); 262 enetc_port_wr(hw, ENETC_PSIVHFR1(si_idx), upper_32_bits(hash)); 135 enetc_set_mac_ht_flt(struct enetc_si *si, int si_idx, int type, unsigned long hash) argument 258 enetc_set_vlan_ht_filter(struct enetc_hw *hw, int si_idx, unsigned long hash) argument [all...] |
/linux-master/drivers/net/dsa/qca/ |
H A D | qca8k-common.c | 1064 "Can only offload LAG using hash TX type"); 1071 "Can only offload L2 or L2+L3 TX hash"); 1086 u32 hash = 0; local 1090 hash |= QCA8K_TRUNK_HASH_SIP_EN; 1091 hash |= QCA8K_TRUNK_HASH_DIP_EN; 1094 hash |= QCA8K_TRUNK_HASH_SA_EN; 1095 hash |= QCA8K_TRUNK_HASH_DA_EN; 1110 * If we are the unique LAG we can set whatever hash 1112 * To change hash mode it's needed to remove all LAG 1116 priv->lag_hash_mode = hash; [all...] |
/linux-master/net/ipv4/ |
H A D | cipso_ipv4.c | 45 * probably be turned into a hash table or something similar so we 63 u32 hash; member in struct:cipso_v4_map_cache_entry 142 * @key: the hash key 146 * The CIPSO tag hashing function. Returns a 32-bit hash value. 240 u32 hash; local 245 hash = cipso_v4_map_cache_hash(key, key_len); 246 bkt = hash & (CIPSO_V4_CACHE_BUCKETS - 1); 249 if (entry->hash == hash && 320 entry->hash [all...] |
H A D | raw.c | 164 const struct iphdr *iph, int hash) 172 hlist = &raw_v4_hashinfo.ht[hash]; 191 /* Not releasing hash table! */ 280 int hash; local 282 hash = raw_hashfunc(net, protocol); 283 hlist = &raw_v4_hashinfo.ht[hash]; 945 .hash = raw_hash_sk, 163 raw_v4_input(struct net *net, struct sk_buff *skb, const struct iphdr *iph, int hash) argument
|
/linux-master/fs/dlm/ |
H A D | dir.c | 25 * We use the upper 16 bits of the hash value to select the directory node. 26 * Low bits are used for distribution of rsb's among hash buckets on each node. 29 * num_nodes to the hash value. This value in the desired range is used as an 33 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash) argument 40 node = (hash >> 16) % ls->ls_total_weight;
|
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | global1.h | 336 int mv88e6165_g1_atu_get_hash(struct mv88e6xxx_chip *chip, u8 *hash); 337 int mv88e6165_g1_atu_set_hash(struct mv88e6xxx_chip *chip, u8 hash);
|
/linux-master/scripts/kconfig/ |
H A D | symbol.c | 848 int hash; local 858 hash = strhash(name); 860 hash_for_each_possible(sym_hashtable, symbol, node, hash) { 870 hash = 0; 880 hash_add(sym_hashtable, &symbol->node, hash); 888 int hash = 0; local 900 hash = strhash(name); 902 hash_for_each_possible(sym_hashtable, symbol, node, hash) {
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/ |
H A D | macros.fuc | 226 #define hash # 229 #define call(a) call fn(hash)a 231 #define call(a) lcall fn(hash)a
|
/linux-master/kernel/bpf/ |
H A D | devmap.c | 94 struct hlist_head *hash; local 96 hash = bpf_map_area_alloc((u64) entries * sizeof(*hash), numa_node); 97 if (hash != NULL) 99 INIT_HLIST_HEAD(&hash[i]); 101 return hash; 133 /* hash table size must be power of 2; roundup_pow_of_two() can
|
/linux-master/net/mpls/ |
H A D | af_mpls.c | 164 u32 hash = 0; local 180 hash = jhash_1word(dec.label, hash); 184 * label was just added to the hash - no need to 203 hash = jhash_3words(ntohl(v4hdr->saddr), 205 v4hdr->protocol, hash); 212 hash = __ipv6_addr_jhash(&v6hdr->saddr, hash); 213 hash = __ipv6_addr_jhash(&v6hdr->daddr, hash); 237 u32 hash = 0; local [all...] |
/linux-master/fs/ocfs2/dlm/ |
H A D | dlmmaster.c | 280 mle->mnamehash = res->lockname.hash; 328 unsigned int hash; local 332 hash = dlm_lockid_hash(name, namelen); 333 bucket = dlm_master_hash(dlm, hash); 537 res->lockname.hash = dlm_lockid_hash(name, namelen); 712 unsigned int hash; local 718 hash = dlm_lockid_hash(lockid, namelen); 724 tmpres = __dlm_lookup_lockres_full(dlm, lockid, namelen, hash); 878 /* finally add the lockres to its hash bucket */ 1409 unsigned int namelen, hash; local 1767 unsigned int namelen, hash; local 2259 unsigned int hash; local 2354 unsigned int hash; local 3107 unsigned int namelen, hash; local [all...] |
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_ctl.c | 311 * Returns hash value for virtual service 334 * Returns hash value of fwmark for virtual service lookup 348 unsigned int hash; local 360 hash = ip_vs_svc_hashkey(svc->ipvs, svc->af, svc->protocol, 362 hlist_add_head_rcu(&svc->s_list, &ip_vs_svc_table[hash]); 367 hash = ip_vs_svc_fwm_hashkey(svc->ipvs, svc->fwmark); 368 hlist_add_head_rcu(&svc->f_list, &ip_vs_svc_fwm_table[hash]); 411 unsigned int hash; local 415 hash = ip_vs_svc_hashkey(ipvs, af, protocol, vaddr, vport); 417 hlist_for_each_entry_rcu(svc, &ip_vs_svc_table[hash], s_lis 438 unsigned int hash; local 561 unsigned int hash; local 614 unsigned int hash; local 645 unsigned int hash; local 676 unsigned int hash; local [all...] |
/linux-master/drivers/net/bonding/ |
H A D | bond_main.c | 4041 /* L2 hash helper */ 4159 static u32 bond_ip_hash(u32 hash, struct flow_keys *flow, int xmit_policy) argument 4161 hash ^= (__force u32)flow_get_u32_dst(flow) ^ 4163 hash ^= (hash >> 16); 4164 hash ^= (hash >> 8); 4166 /* discard lowest hash bit to deal with the common even ports pattern */ 4169 return hash >> 1; 4171 return hash; 4182 u32 hash; local 5146 u32 hash; local 5162 u32 hash; local 5362 u32 hash; local 5378 u32 hash; local [all...] |
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_flow.c | 1878 * Helper function to extract fields from hash bitmap and use flow 2015 return (r->hash.hdr_type == hdr_type && 2016 r->hash.hash_flds == prof->segs[prof->segs_cnt - 1].match && 2017 r->hash.addl_hdrs == prof->segs[prof->segs_cnt - 1].hdrs); 2034 /* Search for RSS hash fields associated to the VSI that match the 2035 * hash configurations associated to the flow profile. If found 2076 rss_cfg->hash.hash_flds = prof->segs[prof->segs_cnt - 1].match; 2077 rss_cfg->hash.addl_hdrs = prof->segs[prof->segs_cnt - 1].hdrs; 2078 rss_cfg->hash.hdr_type = hdr_type; 2079 rss_cfg->hash [all...] |
/linux-master/fs/ubifs/ |
H A D | tnc.c | 332 * cache directory entries for readdir and for resolving hash collisions. The 417 * (in it is there) or from the hash media, in which case the node is also 515 err = ubifs_node_check_hash(c, buf, zbr->hash); 517 ubifs_bad_hash(c, buf, zbr->hash, lnum, offs); 1746 err = ubifs_node_check_hash(c, buf, zbr->hash); 1748 ubifs_bad_hash(c, buf, zbr->hash, zbr->lnum, zbr->offs); 1840 * This function looks up and reads a node which contains name hash in the key. 1841 * Since the hash may have collisions, there may be many nodes with the same 1888 * This function looks up and reads a node which contains name hash in the key. 1889 * Since the hash ma 2311 ubifs_tnc_add(struct ubifs_info *c, const union ubifs_key *key, int lnum, int offs, int len, const u8 *hash) argument 2446 ubifs_tnc_add_nm(struct ubifs_info *c, const union ubifs_key *key, int lnum, int offs, int len, const u8 *hash, const struct fscrypt_name *nm) argument [all...] |
/linux-master/fs/ntfs3/ |
H A D | fsntfs.c | 997 * security_hash - Calculates a hash of security descriptor. 1001 u32 hash = 0; local 1006 hash = ((hash >> 0x1D) | (hash << 3)) + le32_to_cpu(*ptr++); 1007 return cpu_to_le32(hash); 2103 hash_key.hash = security_hash(sd, size_sd); 2137 * Use "SDH" and hash -> to get the offset in "SDS". 2154 d_security->key.hash == hash_key.hash [all...] |