hash 52 arch/arm/crypto/crc32-ce-glue.c static int crc32_setkey(struct crypto_shash *hash, const u8 *key, hash 55 arch/arm/crypto/crc32-ce-glue.c u32 *mctx = crypto_shash_ctx(hash); hash 58 arch/arm/crypto/crc32-ce-glue.c crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); hash 17 arch/arm/crypto/nhpoly1305-neon-glue.c u8 hash[NH_HASH_BYTES]); hash 21 arch/arm/crypto/nhpoly1305-neon-glue.c __le64 hash[NH_NUM_PASSES]) hash 23 arch/arm/crypto/nhpoly1305-neon-glue.c nh_neon(key, message, message_len, (u8 *)hash); hash 13 arch/arm/crypto/sha256_glue.h unsigned int len, u8 *hash); hash 118 arch/arm64/crypto/aes-glue.c struct crypto_shash *hash; hash 170 arch/arm64/crypto/aes-glue.c SHASH_DESC_ON_STACK(desc, ctx->hash); hash 178 arch/arm64/crypto/aes-glue.c desc->tfm = ctx->hash; hash 407 arch/arm64/crypto/aes-glue.c ctx->hash = crypto_alloc_shash("sha256", 0, 0); hash 409 arch/arm64/crypto/aes-glue.c return PTR_ERR_OR_ZERO(ctx->hash); hash 416 arch/arm64/crypto/aes-glue.c crypto_free_shash(ctx->hash); hash 17 arch/arm64/crypto/nhpoly1305-neon-glue.c u8 hash[NH_HASH_BYTES]); hash 21 arch/arm64/crypto/nhpoly1305-neon-glue.c __le64 hash[NH_NUM_PASSES]) hash 23 arch/arm64/crypto/nhpoly1305-neon-glue.c nh_neon(key, message, message_len, (u8 *)hash); hash 114 arch/ia64/kernel/unwind.c unsigned short hash[UNW_HASH_SIZE]; hash 228 arch/ia64/kernel/unwind.c .hash = { [0 ... UNW_HASH_SIZE - 1] = -1 }, hash 1244 arch/ia64/kernel/unwind.c index = unw.hash[hash(ip)]; hash 1298 arch/ia64/kernel/unwind.c index = hash(script->ip); hash 1299 arch/ia64/kernel/unwind.c tmp = unw.cache + unw.hash[index]; hash 1306 arch/ia64/kernel/unwind.c unw.hash[index] = tmp->coll_chain; hash 1318 arch/ia64/kernel/unwind.c index = hash(ip); hash 1319 arch/ia64/kernel/unwind.c script->coll_chain = unw.hash[index]; hash 1320 arch/ia64/kernel/unwind.c unw.hash[index] = script - unw.cache; hash 2168 arch/ia64/kernel/unwind.c tmp = unw.cache + unw.hash[index]; hash 2169 arch/ia64/kernel/unwind.c if (unw.hash[index] >= UNW_CACHE_SIZE hash 2176 arch/ia64/kernel/unwind.c unw.hash[index] = tmp->coll_chain; hash 40 arch/mips/cavium-octeon/crypto/octeon-md5.c u64 *hash = (u64 *)ctx->hash; hash 42 arch/mips/cavium-octeon/crypto/octeon-md5.c write_octeon_64bit_hash_dword(hash[0], 0); hash 43 arch/mips/cavium-octeon/crypto/octeon-md5.c write_octeon_64bit_hash_dword(hash[1], 1); hash 48 arch/mips/cavium-octeon/crypto/octeon-md5.c u64 *hash = (u64 *)ctx->hash; hash 50 arch/mips/cavium-octeon/crypto/octeon-md5.c hash[0] = read_octeon_64bit_hash_dword(0); hash 51 arch/mips/cavium-octeon/crypto/octeon-md5.c hash[1] = read_octeon_64bit_hash_dword(1); hash 72 arch/mips/cavium-octeon/crypto/octeon-md5.c mctx->hash[0] = cpu_to_le32(MD5_H0); hash 73 arch/mips/cavium-octeon/crypto/octeon-md5.c mctx->hash[1] = cpu_to_le32(MD5_H1); hash 74 arch/mips/cavium-octeon/crypto/octeon-md5.c mctx->hash[2] = cpu_to_le32(MD5_H2); hash 75 arch/mips/cavium-octeon/crypto/octeon-md5.c mctx->hash[3] = cpu_to_le32(MD5_H3); hash 150 arch/mips/cavium-octeon/crypto/octeon-md5.c memcpy(out, mctx->hash, sizeof(mctx->hash)); hash 33 arch/mips/cavium-octeon/crypto/octeon-sha1.c u64 *hash = (u64 *)sctx->state; hash 39 arch/mips/cavium-octeon/crypto/octeon-sha1.c write_octeon_64bit_hash_dword(hash[0], 0); hash 40 arch/mips/cavium-octeon/crypto/octeon-sha1.c write_octeon_64bit_hash_dword(hash[1], 1); hash 47 arch/mips/cavium-octeon/crypto/octeon-sha1.c u64 *hash = (u64 *)sctx->state; hash 53 arch/mips/cavium-octeon/crypto/octeon-sha1.c hash[0] = read_octeon_64bit_hash_dword(0); hash 54 arch/mips/cavium-octeon/crypto/octeon-sha1.c hash[1] = read_octeon_64bit_hash_dword(1); hash 34 arch/mips/cavium-octeon/crypto/octeon-sha256.c u64 *hash = (u64 *)sctx->state; hash 36 arch/mips/cavium-octeon/crypto/octeon-sha256.c write_octeon_64bit_hash_dword(hash[0], 0); hash 37 arch/mips/cavium-octeon/crypto/octeon-sha256.c write_octeon_64bit_hash_dword(hash[1], 1); hash 38 arch/mips/cavium-octeon/crypto/octeon-sha256.c write_octeon_64bit_hash_dword(hash[2], 2); hash 39 arch/mips/cavium-octeon/crypto/octeon-sha256.c write_octeon_64bit_hash_dword(hash[3], 3); hash 44 arch/mips/cavium-octeon/crypto/octeon-sha256.c u64 *hash = (u64 *)sctx->state; hash 46 arch/mips/cavium-octeon/crypto/octeon-sha256.c hash[0] = read_octeon_64bit_hash_dword(0); hash 47 arch/mips/cavium-octeon/crypto/octeon-sha256.c hash[1] = read_octeon_64bit_hash_dword(1); hash 48 arch/mips/cavium-octeon/crypto/octeon-sha256.c hash[2] = read_octeon_64bit_hash_dword(2); hash 49 arch/mips/cavium-octeon/crypto/octeon-sha256.c hash[3] = read_octeon_64bit_hash_dword(3); hash 197 arch/mips/cavium-octeon/crypto/octeon-sha256.c static int octeon_sha224_final(struct shash_desc *desc, u8 *hash) hash 203 arch/mips/cavium-octeon/crypto/octeon-sha256.c memcpy(hash, D, SHA224_DIGEST_SIZE); hash 171 arch/mips/cavium-octeon/crypto/octeon-sha512.c static int octeon_sha512_final(struct shash_desc *desc, u8 *hash) hash 176 arch/mips/cavium-octeon/crypto/octeon-sha512.c __be64 *dst = (__be64 *)hash; hash 212 arch/mips/cavium-octeon/crypto/octeon-sha512.c static int octeon_sha384_final(struct shash_desc *desc, u8 *hash) hash 218 arch/mips/cavium-octeon/crypto/octeon-sha512.c memcpy(hash, D, 48); hash 136 arch/mips/include/asm/txx9/tx4939.h } hash; hash 187 arch/mips/kernel/relocate.c static inline __init unsigned long rotate_xor(unsigned long hash, hash 193 arch/mips/kernel/relocate.c for (i = 0; i < size / sizeof(hash); i++) { hash 195 arch/mips/kernel/relocate.c hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); hash 196 arch/mips/kernel/relocate.c hash ^= ptr[i]; hash 199 arch/mips/kernel/relocate.c return hash; hash 205 arch/mips/kernel/relocate.c unsigned long hash = 0; hash 208 arch/mips/kernel/relocate.c hash = rotate_xor(hash, linux_banner, strlen(linux_banner)); hash 211 arch/mips/kernel/relocate.c hash = rotate_xor(hash, &entropy, sizeof(entropy)); hash 224 arch/mips/kernel/relocate.c hash = rotate_xor(hash, prop, sizeof(*prop)); hash 229 arch/mips/kernel/relocate.c return hash; hash 71 arch/powerpc/crypto/crc32c-vpmsum_glue.c static int crc32c_vpmsum_setkey(struct crypto_shash *hash, const u8 *key, hash 74 arch/powerpc/crypto/crc32c-vpmsum_glue.c u32 *mctx = crypto_shash_ctx(hash); hash 77 arch/powerpc/crypto/crc32c-vpmsum_glue.c crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); hash 35 arch/powerpc/crypto/md5-glue.c sctx->hash[0] = MD5_H0; hash 36 arch/powerpc/crypto/md5-glue.c sctx->hash[1] = MD5_H1; hash 37 arch/powerpc/crypto/md5-glue.c sctx->hash[2] = MD5_H2; hash 38 arch/powerpc/crypto/md5-glue.c sctx->hash[3] = MD5_H3; hash 61 arch/powerpc/crypto/md5-glue.c ppc_md5_transform(sctx->hash, (const u8 *)sctx->block, 1); hash 67 arch/powerpc/crypto/md5-glue.c ppc_md5_transform(sctx->hash, src, len >> 6); hash 90 arch/powerpc/crypto/md5-glue.c ppc_md5_transform(sctx->hash, src, 1); hash 97 arch/powerpc/crypto/md5-glue.c ppc_md5_transform(sctx->hash, src, 1); hash 99 arch/powerpc/crypto/md5-glue.c dst[0] = cpu_to_le32(sctx->hash[0]); hash 100 arch/powerpc/crypto/md5-glue.c dst[1] = cpu_to_le32(sctx->hash[1]); hash 101 arch/powerpc/crypto/md5-glue.c dst[2] = cpu_to_le32(sctx->hash[2]); hash 102 arch/powerpc/crypto/md5-glue.c dst[3] = cpu_to_le32(sctx->hash[3]); hash 437 arch/powerpc/include/asm/book3s/64/mmu-hash.h unsigned long hash, vsid; hash 442 arch/powerpc/include/asm/book3s/64/mmu-hash.h hash = (vpn >> (SID_SHIFT - VPN_SHIFT)) ^ hash 447 arch/powerpc/include/asm/book3s/64/mmu-hash.h hash = vsid ^ (vsid << 25) ^ hash 450 arch/powerpc/include/asm/book3s/64/mmu-hash.h return hash & 0x7fffffffffUL; hash 103 arch/powerpc/kvm/book3s_32_mmu.c u32 page, hash, pteg, htabmask; hash 109 arch/powerpc/kvm/book3s_32_mmu.c hash = ((sr_vsid(sre) ^ page) << 6); hash 111 arch/powerpc/kvm/book3s_32_mmu.c hash = ~hash; hash 112 arch/powerpc/kvm/book3s_32_mmu.c hash &= htabmask; hash 114 arch/powerpc/kvm/book3s_32_mmu.c pteg = (vcpu_book3s->sdr1 & 0xffff0000) | hash; hash 109 arch/powerpc/kvm/book3s_32_mmu_host.c u32 page, hash; hash 114 arch/powerpc/kvm/book3s_32_mmu_host.c hash = ((vsid ^ page) << 6); hash 116 arch/powerpc/kvm/book3s_32_mmu_host.c hash = ~hash; hash 118 arch/powerpc/kvm/book3s_32_mmu_host.c hash &= htabmask; hash 120 arch/powerpc/kvm/book3s_32_mmu_host.c pteg |= hash; hash 123 arch/powerpc/kvm/book3s_32_mmu_host.c htab, hash, htabmask, pteg); hash 135 arch/powerpc/kvm/book3s_64_mmu.c u64 hash, pteg, htabsize; hash 144 arch/powerpc/kvm/book3s_64_mmu.c hash = hpt_hash(vpn, kvmppc_mmu_book3s_64_get_pagesize(slbe), ssize); hash 146 arch/powerpc/kvm/book3s_64_mmu.c hash = ~hash; hash 147 arch/powerpc/kvm/book3s_64_mmu.c hash &= ((1ULL << 39ULL) - 1ULL); hash 148 arch/powerpc/kvm/book3s_64_mmu.c hash &= htabsize; hash 149 arch/powerpc/kvm/book3s_64_mmu.c hash <<= 7ULL; hash 152 arch/powerpc/kvm/book3s_64_mmu.c pteg |= hash; hash 75 arch/powerpc/kvm/book3s_64_mmu_host.c ulong hash, hpteg; hash 147 arch/powerpc/kvm/book3s_64_mmu_host.c hash = hpt_hash(vpn, mmu_psize_defs[hpsize].shift, MMU_SEGSIZE_256M); hash 158 arch/powerpc/kvm/book3s_64_mmu_host.c hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); hash 172 arch/powerpc/kvm/book3s_64_mmu_host.c hash = ~hash; hash 188 arch/powerpc/kvm/book3s_64_mmu_host.c hash = ~hash; hash 189 arch/powerpc/kvm/book3s_64_mmu_host.c hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); hash 210 arch/powerpc/kvm/book3s_64_mmu_hv.c unsigned long addr, hash; hash 235 arch/powerpc/kvm/book3s_64_mmu_hv.c hash = (i ^ (VRMA_VSID ^ (VRMA_VSID << 25))) hash 243 arch/powerpc/kvm/book3s_64_mmu_hv.c hash = (hash << 3) + 7; hash 246 arch/powerpc/kvm/book3s_64_mmu_hv.c ret = kvmppc_virtmode_do_h_enter(kvm, H_EXACT, hash, hp_v, hp_r, hash 1252 arch/powerpc/kvm/book3s_64_mmu_hv.c unsigned long apsize, avpn, pteg, hash; hash 1339 arch/powerpc/kvm/book3s_64_mmu_hv.c hash = vsid ^ (offset >> pshift); hash 1349 arch/powerpc/kvm/book3s_64_mmu_hv.c hash = vsid ^ (vsid << 25) ^ (offset >> pshift); hash 1352 arch/powerpc/kvm/book3s_64_mmu_hv.c new_pteg = hash & new_hash_mask; hash 1354 arch/powerpc/kvm/book3s_64_mmu_hv.c new_pteg = ~hash & new_hash_mask; hash 1121 arch/powerpc/kvm/book3s_hv_rm_mmu.c unsigned long vsid, hash; hash 1144 arch/powerpc/kvm/book3s_hv_rm_mmu.c hash = (vsid ^ ((eaddr & somask) >> pshift)) & kvmppc_hpt_mask(&kvm->arch.hpt); hash 1155 arch/powerpc/kvm/book3s_hv_rm_mmu.c hpte = (__be64 *)(kvm->arch.hpt.virt + (hash << 7)); hash 1183 arch/powerpc/kvm/book3s_hv_rm_mmu.c return (hash << 3) + (i >> 1); hash 1191 arch/powerpc/kvm/book3s_hv_rm_mmu.c hash = hash ^ kvmppc_hpt_mask(&kvm->arch.hpt); hash 27 arch/powerpc/mm/book3s64/hash_4k.c unsigned long vpn, hash, slot; hash 80 arch/powerpc/mm/book3s64/hash_4k.c hash = hpt_hash(vpn, shift, ssize); hash 83 arch/powerpc/mm/book3s64/hash_4k.c hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 92 arch/powerpc/mm/book3s64/hash_4k.c hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; hash 100 arch/powerpc/mm/book3s64/hash_4k.c hpte_group = (hash & htab_hash_mask) * hash 45 arch/powerpc/mm/book3s64/hash_64k.c unsigned long vpn, hash, slot, gslot; hash 155 arch/powerpc/mm/book3s64/hash_64k.c hash = hpt_hash(vpn, shift, ssize); hash 157 arch/powerpc/mm/book3s64/hash_64k.c hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 168 arch/powerpc/mm/book3s64/hash_64k.c hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; hash 196 arch/powerpc/mm/book3s64/hash_64k.c hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 231 arch/powerpc/mm/book3s64/hash_64k.c unsigned long vpn, hash, slot; hash 287 arch/powerpc/mm/book3s64/hash_64k.c hash = hpt_hash(vpn, shift, ssize); hash 290 arch/powerpc/mm/book3s64/hash_64k.c hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 300 arch/powerpc/mm/book3s64/hash_64k.c hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; hash 308 arch/powerpc/mm/book3s64/hash_64k.c hpte_group = (hash & htab_hash_mask) * hash 30 arch/powerpc/mm/book3s64/hash_hugepage.c unsigned long vpn, hash, shift, slot; hash 105 arch/powerpc/mm/book3s64/hash_hugepage.c hash = hpt_hash(vpn, shift, ssize); hash 108 arch/powerpc/mm/book3s64/hash_hugepage.c hash = ~hash; hash 109 arch/powerpc/mm/book3s64/hash_hugepage.c slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 131 arch/powerpc/mm/book3s64/hash_hugepage.c hash = hpt_hash(vpn, shift, ssize); hash 137 arch/powerpc/mm/book3s64/hash_hugepage.c hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 146 arch/powerpc/mm/book3s64/hash_hugepage.c hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; hash 153 arch/powerpc/mm/book3s64/hash_hugepage.c hpte_group = (hash & htab_hash_mask) * hash 21 arch/powerpc/mm/book3s64/hash_hugetlbpage.c extern long hpte_insert_repeating(unsigned long hash, unsigned long vpn, hash 101 arch/powerpc/mm/book3s64/hash_hugetlbpage.c unsigned long hash = hpt_hash(vpn, shift, ssize); hash 108 arch/powerpc/mm/book3s64/hash_hugetlbpage.c slot = hpte_insert_repeating(hash, vpn, pa, rflags, 0, hash 488 arch/powerpc/mm/book3s64/hash_native.c unsigned long hash; hash 493 arch/powerpc/mm/book3s64/hash_native.c hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); hash 497 arch/powerpc/mm/book3s64/hash_native.c slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 627 arch/powerpc/mm/book3s64/hash_native.c unsigned long hidx, vpn = 0, hash, slot; hash 642 arch/powerpc/mm/book3s64/hash_native.c hash = hpt_hash(vpn, shift, ssize); hash 644 arch/powerpc/mm/book3s64/hash_native.c hash = ~hash; hash 646 arch/powerpc/mm/book3s64/hash_native.c slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 805 arch/powerpc/mm/book3s64/hash_native.c unsigned long hash, index, hidx, shift, slot; hash 827 arch/powerpc/mm/book3s64/hash_native.c hash = hpt_hash(vpn, shift, ssize); hash 830 arch/powerpc/mm/book3s64/hash_native.c hash = ~hash; hash 831 arch/powerpc/mm/book3s64/hash_native.c slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 262 arch/powerpc/mm/book3s64/hash_utils.c unsigned long hash, hpteg; hash 290 arch/powerpc/mm/book3s64/hash_utils.c hash = hpt_hash(vpn, shift, ssize); hash 291 arch/powerpc/mm/book3s64/hash_utils.c hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); hash 1707 arch/powerpc/mm/book3s64/hash_utils.c unsigned long hash, gslot, hidx; hash 1709 arch/powerpc/mm/book3s64/hash_utils.c hash = hpt_hash(vpn, shift, ssize); hash 1712 arch/powerpc/mm/book3s64/hash_utils.c hash = ~hash; hash 1713 arch/powerpc/mm/book3s64/hash_utils.c gslot = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 1751 arch/powerpc/mm/book3s64/hash_utils.c unsigned long hidx, shift, vpn, hash, slot; hash 1787 arch/powerpc/mm/book3s64/hash_utils.c hash = hpt_hash(vpn, shift, ssize); hash 1789 arch/powerpc/mm/book3s64/hash_utils.c hash = ~hash; hash 1791 arch/powerpc/mm/book3s64/hash_utils.c slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 1837 arch/powerpc/mm/book3s64/hash_utils.c long hpte_insert_repeating(unsigned long hash, unsigned long vpn, hash 1845 arch/powerpc/mm/book3s64/hash_utils.c hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 1853 arch/powerpc/mm/book3s64/hash_utils.c hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; hash 1859 arch/powerpc/mm/book3s64/hash_utils.c hpte_group = (hash & htab_hash_mask) * hash 1873 arch/powerpc/mm/book3s64/hash_utils.c unsigned long hash; hash 1879 arch/powerpc/mm/book3s64/hash_utils.c hash = hpt_hash(vpn, PAGE_SHIFT, mmu_kernel_ssize); hash 1885 arch/powerpc/mm/book3s64/hash_utils.c ret = hpte_insert_repeating(hash, vpn, __pa(vaddr), mode, hash 1898 arch/powerpc/mm/book3s64/hash_utils.c unsigned long hash, hidx, slot; hash 1902 arch/powerpc/mm/book3s64/hash_utils.c hash = hpt_hash(vpn, PAGE_SHIFT, mmu_kernel_ssize); hash 1909 arch/powerpc/mm/book3s64/hash_utils.c hash = ~hash; hash 1910 arch/powerpc/mm/book3s64/hash_utils.c slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 211 arch/powerpc/mm/ptdump/hashpagetable.c unsigned long hash, vsid, vpn, hpte_group, want_v, hpte_v; hash 218 arch/powerpc/mm/ptdump/hashpagetable.c hash = hpt_hash(vpn, shift, ssize); hash 223 arch/powerpc/mm/ptdump/hashpagetable.c hash = ~hash; hash 224 arch/powerpc/mm/ptdump/hashpagetable.c hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 243 arch/powerpc/mm/ptdump/hashpagetable.c unsigned long vsid, vpn, hash, hpte_group, want_v; hash 251 arch/powerpc/mm/ptdump/hashpagetable.c hash = hpt_hash(vpn, shift, ssize); hash 256 arch/powerpc/mm/ptdump/hashpagetable.c hash = ~hash; hash 257 arch/powerpc/mm/ptdump/hashpagetable.c hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 373 arch/powerpc/net/bpf_jit_comp.c BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, hash) != 4); hash 375 arch/powerpc/net/bpf_jit_comp.c hash)); hash 934 arch/powerpc/platforms/pseries/lpar.c unsigned long hash; hash 938 arch/powerpc/platforms/pseries/lpar.c hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); hash 942 arch/powerpc/platforms/pseries/lpar.c hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 1193 arch/powerpc/platforms/pseries/lpar.c unsigned long shift, hidx, vpn = 0, hash, slot; hash 1207 arch/powerpc/platforms/pseries/lpar.c hash = hpt_hash(vpn, shift, ssize); hash 1209 arch/powerpc/platforms/pseries/lpar.c hash = ~hash; hash 1211 arch/powerpc/platforms/pseries/lpar.c slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 1269 arch/powerpc/platforms/pseries/lpar.c unsigned long slot, hash, hidx; hash 1271 arch/powerpc/platforms/pseries/lpar.c hash = hpt_hash(vpn, shift, ssize); hash 1274 arch/powerpc/platforms/pseries/lpar.c hash = ~hash; hash 1275 arch/powerpc/platforms/pseries/lpar.c slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; hash 56 arch/s390/kernel/machine_kexec_file.c ms->hash != 0 || hash 31 arch/sparc/crypto/crc32c_glue.c static int crc32c_sparc64_setkey(struct crypto_shash *hash, const u8 *key, hash 34 arch/sparc/crypto/crc32c_glue.c u32 *mctx = crypto_shash_ctx(hash); hash 37 arch/sparc/crypto/crc32c_glue.c crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); hash 37 arch/sparc/crypto/md5_glue.c mctx->hash[0] = cpu_to_le32(MD5_H0); hash 38 arch/sparc/crypto/md5_glue.c mctx->hash[1] = cpu_to_le32(MD5_H1); hash 39 arch/sparc/crypto/md5_glue.c mctx->hash[2] = cpu_to_le32(MD5_H2); hash 40 arch/sparc/crypto/md5_glue.c mctx->hash[3] = cpu_to_le32(MD5_H3); hash 55 arch/sparc/crypto/md5_glue.c md5_sparc64_transform(sctx->hash, (u8 *)sctx->block, 1); hash 60 arch/sparc/crypto/md5_glue.c md5_sparc64_transform(sctx->hash, data + done, rounds); hash 109 arch/sparc/crypto/md5_glue.c dst[i] = sctx->hash[i]; hash 132 arch/sparc/crypto/sha256_glue.c static int sha224_sparc64_final(struct shash_desc *desc, u8 *hash) hash 138 arch/sparc/crypto/sha256_glue.c memcpy(hash, D, SHA224_DIGEST_SIZE); hash 136 arch/sparc/crypto/sha512_glue.c static int sha384_sparc64_final(struct shash_desc *desc, u8 *hash) hash 142 arch/sparc/crypto/sha512_glue.c memcpy(hash, D, 48); hash 60 arch/sparc/mm/tsb.c unsigned long hash = tsb_hash(v, PAGE_SHIFT, hash 62 arch/sparc/mm/tsb.c struct tsb *ent = &swapper_tsb[hash]; hash 73 arch/sparc/mm/tsb.c unsigned long tag, ent, hash; hash 76 arch/sparc/mm/tsb.c hash = tsb_hash(v, hash_shift, nentries); hash 77 arch/sparc/mm/tsb.c ent = tsb + (hash * sizeof(struct tsb)); hash 552 arch/sparc/net/bpf_jit_comp_32.c emit_skb_load32(hash, r_A); hash 61 arch/x86/boot/compressed/kaslr.c static unsigned long rotate_xor(unsigned long hash, const void *area, hash 67 arch/x86/boot/compressed/kaslr.c for (i = 0; i < size / sizeof(hash); i++) { hash 69 arch/x86/boot/compressed/kaslr.c hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); hash 70 arch/x86/boot/compressed/kaslr.c hash ^= ptr[i]; hash 73 arch/x86/boot/compressed/kaslr.c return hash; hash 79 arch/x86/boot/compressed/kaslr.c unsigned long hash = 0; hash 81 arch/x86/boot/compressed/kaslr.c hash = rotate_xor(hash, build_str, sizeof(build_str)); hash 82 arch/x86/boot/compressed/kaslr.c hash = rotate_xor(hash, boot_params, sizeof(*boot_params)); hash 84 arch/x86/boot/compressed/kaslr.c return hash; hash 92 arch/x86/crypto/crc32-pclmul_glue.c static int crc32_pclmul_setkey(struct crypto_shash *hash, const u8 *key, hash 95 arch/x86/crypto/crc32-pclmul_glue.c u32 *mctx = crypto_shash_ctx(hash); hash 98 arch/x86/crypto/crc32-pclmul_glue.c crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); hash 89 arch/x86/crypto/crc32c-intel_glue.c static int crc32c_intel_setkey(struct crypto_shash *hash, const u8 *key, hash 92 arch/x86/crypto/crc32c-intel_glue.c u32 *mctx = crypto_shash_ctx(hash); hash 95 arch/x86/crypto/crc32c-intel_glue.c crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); hash 16 arch/x86/crypto/nhpoly1305-avx2-glue.c u8 hash[NH_HASH_BYTES]); hash 20 arch/x86/crypto/nhpoly1305-avx2-glue.c __le64 hash[NH_NUM_PASSES]) hash 22 arch/x86/crypto/nhpoly1305-avx2-glue.c nh_avx2(key, message, message_len, (u8 *)hash); hash 16 arch/x86/crypto/nhpoly1305-sse2-glue.c u8 hash[NH_HASH_BYTES]); hash 20 arch/x86/crypto/nhpoly1305-sse2-glue.c __le64 hash[NH_NUM_PASSES]) hash 22 arch/x86/crypto/nhpoly1305-sse2-glue.c nh_sse2(key, message, message_len, (u8 *)hash); hash 445 arch/x86/kernel/tboot.c u8 hash[SHA1_SIZE]; hash 116 block/blk-core.c INIT_HLIST_NODE(&rq->hash); hash 325 block/blk-mq.c INIT_HLIST_NODE(&rq->hash); hash 176 block/elevator.c hash_init(eq->hash); hash 203 block/elevator.c hash_del(&rq->hash); hash 219 block/elevator.c hash_add(e->hash, &rq->hash, rq_hash_key(rq)); hash 236 block/elevator.c hash_for_each_possible_safe(e->hash, rq, next, hash, offset) { hash 83 certs/blacklist.c int mark_hash_blacklisted(const char *hash) hash 89 certs/blacklist.c hash, hash 109 certs/blacklist.c int is_hash_blacklisted(const u8 *hash, size_t hash_len, const char *type) hash 122 certs/blacklist.c bin2hex(p, hash, hash_len); hash 73 crypto/adiantum.c struct crypto_shash *hash; hash 180 crypto/adiantum.c crypto_shash_clear_flags(tctx->hash, CRYPTO_TFM_REQ_MASK); hash 181 crypto/adiantum.c crypto_shash_set_flags(tctx->hash, crypto_skcipher_get_flags(tfm) & hash 183 crypto/adiantum.c err = crypto_shash_setkey(tctx->hash, keyp, NHPOLY1305_KEY_SIZE); hash 184 crypto/adiantum.c crypto_skcipher_set_flags(tfm, crypto_shash_get_flags(tctx->hash) & hash 267 crypto/adiantum.c hash_desc->tfm = tctx->hash; hash 412 crypto/adiantum.c struct crypto_shash *hash; hash 426 crypto/adiantum.c hash = crypto_spawn_shash(&ictx->hash_spawn); hash 427 crypto/adiantum.c if (IS_ERR(hash)) { hash 428 crypto/adiantum.c err = PTR_ERR(hash); hash 434 crypto/adiantum.c tctx->hash = hash; hash 440 crypto/adiantum.c crypto_shash_descsize(hash), hash 463 crypto/adiantum.c crypto_free_shash(tctx->hash); hash 34 crypto/ahash.c static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) hash 36 crypto/ahash.c return container_of(crypto_hash_alg_common(hash), struct ahash_alg, hash 480 crypto/ahash.c struct crypto_ahash *hash = __crypto_ahash_cast(tfm); hash 481 crypto/ahash.c struct ahash_alg *alg = crypto_ahash_alg(hash); hash 483 crypto/ahash.c hash->setkey = ahash_nosetkey; hash 488 crypto/ahash.c hash->init = alg->init; hash 489 crypto/ahash.c hash->update = alg->update; hash 490 crypto/ahash.c hash->final = alg->final; hash 491 crypto/ahash.c hash->finup = alg->finup ?: ahash_def_finup; hash 492 crypto/ahash.c hash->digest = alg->digest; hash 493 crypto/ahash.c hash->export = alg->export; hash 494 crypto/ahash.c hash->import = alg->import; hash 497 crypto/ahash.c hash->setkey = alg->setkey; hash 498 crypto/ahash.c ahash_set_needkey(hash); hash 1191 crypto/algapi.c atomic64_inc(&alg->stats.hash.err_cnt); hash 1193 crypto/algapi.c atomic64_add(nbytes, &alg->stats.hash.hash_tlen); hash 1202 crypto/algapi.c atomic64_inc(&alg->stats.hash.err_cnt); hash 1204 crypto/algapi.c atomic64_inc(&alg->stats.hash.hash_cnt); hash 1205 crypto/algapi.c atomic64_add(nbytes, &alg->stats.hash.hash_tlen); hash 151 crypto/authenc.c u8 *hash = areq_ctx->tail; hash 154 crypto/authenc.c hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), hash 158 crypto/authenc.c ahash_request_set_crypt(ahreq, req->dst, hash, hash 167 crypto/authenc.c scatterwalk_map_and_copy(hash, req->dst, req->assoclen + req->cryptlen, hash 298 crypto/authenc.c u8 *hash = areq_ctx->tail; hash 301 crypto/authenc.c hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), hash 305 crypto/authenc.c ahash_request_set_crypt(ahreq, req->src, hash, hash 103 crypto/authencesn.c u8 *hash = PTR_ALIGN((u8 *)areq_ctx->tail, hash 116 crypto/authencesn.c scatterwalk_map_and_copy(hash, dst, assoclen + cryptlen, authsize, 1); hash 136 crypto/authencesn.c u8 *hash = PTR_ALIGN((u8 *)areq_ctx->tail, hash 157 crypto/authencesn.c ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); hash 58 crypto/crc32_generic.c static int crc32_setkey(struct crypto_shash *hash, const u8 *key, hash 61 crypto/crc32_generic.c u32 *mctx = crypto_shash_ctx(hash); hash 64 crypto/crc32_generic.c crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); hash 469 crypto/cryptd.c struct crypto_shash *hash; hash 471 crypto/cryptd.c hash = crypto_spawn_shash(spawn); hash 472 crypto/cryptd.c if (IS_ERR(hash)) hash 473 crypto/cryptd.c return PTR_ERR(hash); hash 475 crypto/cryptd.c ctx->child = hash; hash 478 crypto/cryptd.c crypto_shash_descsize(hash)); hash 140 crypto/crypto_user_stat.c rhash.stat_hash_cnt = atomic64_read(&alg->stats.hash.hash_cnt); hash 141 crypto/crypto_user_stat.c rhash.stat_hash_tlen = atomic64_read(&alg->stats.hash.hash_tlen); hash 142 crypto/crypto_user_stat.c rhash.stat_err_cnt = atomic64_read(&alg->stats.hash.err_cnt); hash 155 crypto/crypto_user_stat.c rhash.stat_hash_cnt = atomic64_read(&alg->stats.hash.hash_cnt); hash 156 crypto/crypto_user_stat.c rhash.stat_hash_tlen = atomic64_read(&alg->stats.hash.hash_tlen); hash 157 crypto/crypto_user_stat.c rhash.stat_err_cnt = atomic64_read(&alg->stats.hash.err_cnt); hash 55 crypto/essiv.c struct crypto_shash *hash; hash 69 crypto/essiv.c SHASH_DESC_ON_STACK(desc, tctx->hash); hash 84 crypto/essiv.c desc->tfm = tctx->hash; hash 94 crypto/essiv.c crypto_shash_digestsize(tctx->hash)); hash 106 crypto/essiv.c SHASH_DESC_ON_STACK(desc, tctx->hash); hash 125 crypto/essiv.c desc->tfm = tctx->hash; hash 136 crypto/essiv.c crypto_shash_digestsize(tctx->hash)); hash 287 crypto/essiv.c struct crypto_shash *hash; hash 294 crypto/essiv.c hash = crypto_alloc_shash(ictx->shash_driver_name, 0, 0); hash 295 crypto/essiv.c if (IS_ERR(hash)) { hash 296 crypto/essiv.c err = PTR_ERR(hash); hash 301 crypto/essiv.c tctx->hash = hash; hash 374 crypto/essiv.c crypto_free_shash(tctx->hash); hash 383 crypto/essiv.c crypto_free_shash(tctx->hash); hash 100 crypto/gcm.c be128 hash; hash 125 crypto/gcm.c sg_init_one(data->sg, &data->hash, sizeof(data->hash)); hash 132 crypto/gcm.c sizeof(data->hash), data->iv); hash 143 crypto/gcm.c err = crypto_ahash_setkey(ghash, (u8 *)&data->hash, sizeof(be128)); hash 25 crypto/hmac.c struct crypto_shash *hash; hash 50 crypto/hmac.c struct crypto_shash *hash = ctx->hash; hash 51 crypto/hmac.c SHASH_DESC_ON_STACK(shash, hash); hash 54 crypto/hmac.c shash->tfm = hash; hash 95 crypto/hmac.c desc->tfm = ctx->hash; hash 144 crypto/hmac.c struct crypto_shash *hash; hash 149 crypto/hmac.c hash = crypto_spawn_shash(spawn); hash 150 crypto/hmac.c if (IS_ERR(hash)) hash 151 crypto/hmac.c return PTR_ERR(hash); hash 154 crypto/hmac.c crypto_shash_descsize(hash); hash 156 crypto/hmac.c crypto_free_shash(hash); hash 160 crypto/hmac.c ctx->hash = hash; hash 167 crypto/hmac.c crypto_free_shash(ctx->hash); hash 37 crypto/md4.c u32 hash[MD4_HASH_WORDS]; hash 67 crypto/md4.c static void md4_transform(u32 *hash, u32 const *in) hash 71 crypto/md4.c a = hash[0]; hash 72 crypto/md4.c b = hash[1]; hash 73 crypto/md4.c c = hash[2]; hash 74 crypto/md4.c d = hash[3]; hash 127 crypto/md4.c hash[0] += a; hash 128 crypto/md4.c hash[1] += b; hash 129 crypto/md4.c hash[2] += c; hash 130 crypto/md4.c hash[3] += d; hash 136 crypto/md4.c md4_transform(ctx->hash, ctx->block); hash 143 crypto/md4.c mctx->hash[0] = 0x67452301; hash 144 crypto/md4.c mctx->hash[1] = 0xefcdab89; hash 145 crypto/md4.c mctx->hash[2] = 0x98badcfe; hash 146 crypto/md4.c mctx->hash[3] = 0x10325476; hash 204 crypto/md4.c md4_transform(mctx->hash, mctx->block); hash 205 crypto/md4.c cpu_to_le32_array(mctx->hash, ARRAY_SIZE(mctx->hash)); hash 206 crypto/md4.c memcpy(out, mctx->hash, sizeof(mctx->hash)); hash 43 crypto/md5.c static void md5_transform(__u32 *hash, __u32 const *in) hash 47 crypto/md5.c a = hash[0]; hash 48 crypto/md5.c b = hash[1]; hash 49 crypto/md5.c c = hash[2]; hash 50 crypto/md5.c d = hash[3]; hash 120 crypto/md5.c hash[0] += a; hash 121 crypto/md5.c hash[1] += b; hash 122 crypto/md5.c hash[2] += c; hash 123 crypto/md5.c hash[3] += d; hash 129 crypto/md5.c md5_transform(ctx->hash, ctx->block); hash 136 crypto/md5.c mctx->hash[0] = MD5_H0; hash 137 crypto/md5.c mctx->hash[1] = MD5_H1; hash 138 crypto/md5.c mctx->hash[2] = MD5_H2; hash 139 crypto/md5.c mctx->hash[3] = MD5_H3; hash 197 crypto/md5.c md5_transform(mctx->hash, mctx->block); hash 198 crypto/md5.c cpu_to_le32_array(mctx->hash, sizeof(mctx->hash) / sizeof(u32)); hash 199 crypto/md5.c memcpy(out, mctx->hash, sizeof(mctx->hash)); hash 42 crypto/nhpoly1305.c __le64 hash[NH_NUM_PASSES]) hash 68 crypto/nhpoly1305.c hash[0] = cpu_to_le64(sums[0]); hash 69 crypto/nhpoly1305.c hash[1] = cpu_to_le64(sums[1]); hash 70 crypto/nhpoly1305.c hash[2] = cpu_to_le64(sums[2]); hash 71 crypto/nhpoly1305.c hash[3] = cpu_to_le64(sums[3]); hash 62 crypto/sha256_generic.c unsigned int len, u8 *hash) hash 65 crypto/sha256_generic.c return crypto_sha256_final(desc, hash); hash 167 crypto/sha512_generic.c static int sha512_final(struct shash_desc *desc, u8 *hash) hash 170 crypto/sha512_generic.c return sha512_base_finish(desc, hash); hash 174 crypto/sha512_generic.c unsigned int len, u8 *hash) hash 177 crypto/sha512_generic.c return sha512_final(desc, hash); hash 391 crypto/shash.c struct crypto_shash *hash = __crypto_shash_cast(tfm); hash 392 crypto/shash.c struct shash_alg *alg = crypto_shash_alg(hash); hash 394 crypto/shash.c hash->descsize = alg->descsize; hash 396 crypto/shash.c shash_set_needkey(hash, alg); hash 159 crypto/sm3_generic.c unsigned int len, u8 *hash) hash 162 crypto/sm3_generic.c return sm3_final(desc, hash); hash 999 crypto/streebog_generic.c memcpy(&ctx->hash, &ctx->h, sizeof(struct streebog_uint512)); hash 1043 crypto/streebog_generic.c memcpy(digest, &ctx->hash.qword[4], STREEBOG256_DIGEST_SIZE); hash 1045 crypto/streebog_generic.c memcpy(digest, &ctx->hash.qword[0], STREEBOG512_DIGEST_SIZE); hash 135 crypto/testmgr.c struct hash_test_suite hash; hash 1797 crypto/testmgr.c const struct hash_testvec *template = desc->suite.hash.vecs; hash 1798 crypto/testmgr.c unsigned int tcount = desc->suite.hash.count; hash 4123 crypto/testmgr.c .hash = __VECS(aes_cbcmac_tv_template) hash 4151 crypto/testmgr.c .hash = __VECS(aes_cmac128_tv_template) hash 4158 crypto/testmgr.c .hash = __VECS(des3_ede_cmac64_tv_template) hash 4168 crypto/testmgr.c .hash = __VECS(crc32_tv_template) hash 4175 crypto/testmgr.c .hash = __VECS(crc32c_tv_template) hash 4182 crypto/testmgr.c .hash = __VECS(crct10dif_tv_template) hash 4586 crypto/testmgr.c .hash = __VECS(ghash_tv_template) hash 4592 crypto/testmgr.c .hash = __VECS(hmac_md5_tv_template) hash 4598 crypto/testmgr.c .hash = __VECS(hmac_rmd128_tv_template) hash 4604 crypto/testmgr.c .hash = __VECS(hmac_rmd160_tv_template) hash 4611 crypto/testmgr.c .hash = __VECS(hmac_sha1_tv_template) hash 4618 crypto/testmgr.c .hash = __VECS(hmac_sha224_tv_template) hash 4625 crypto/testmgr.c .hash = __VECS(hmac_sha256_tv_template) hash 4632 crypto/testmgr.c .hash = __VECS(hmac_sha3_224_tv_template) hash 4639 crypto/testmgr.c .hash = __VECS(hmac_sha3_256_tv_template) hash 4646 crypto/testmgr.c .hash = __VECS(hmac_sha3_384_tv_template) hash 4653 crypto/testmgr.c .hash = __VECS(hmac_sha3_512_tv_template) hash 4660 crypto/testmgr.c .hash = __VECS(hmac_sha384_tv_template) hash 4667 crypto/testmgr.c .hash = __VECS(hmac_sha512_tv_template) hash 4673 crypto/testmgr.c .hash = __VECS(hmac_streebog256_tv_template) hash 4679 crypto/testmgr.c .hash = __VECS(hmac_streebog512_tv_template) hash 4771 crypto/testmgr.c .hash = __VECS(md4_tv_template) hash 4777 crypto/testmgr.c .hash = __VECS(md5_tv_template) hash 4783 crypto/testmgr.c .hash = __VECS(michael_mic_tv_template) hash 4789 crypto/testmgr.c .hash = __VECS(nhpoly1305_tv_template) hash 4834 crypto/testmgr.c .hash = __VECS(poly1305_tv_template) hash 4882 crypto/testmgr.c .hash = __VECS(rmd128_tv_template) hash 4888 crypto/testmgr.c .hash = __VECS(rmd160_tv_template) hash 4894 crypto/testmgr.c .hash = __VECS(rmd256_tv_template) hash 4900 crypto/testmgr.c .hash = __VECS(rmd320_tv_template) hash 4920 crypto/testmgr.c .hash = __VECS(sha1_tv_template) hash 4927 crypto/testmgr.c .hash = __VECS(sha224_tv_template) hash 4934 crypto/testmgr.c .hash = __VECS(sha256_tv_template) hash 4941 crypto/testmgr.c .hash = __VECS(sha3_224_tv_template) hash 4948 crypto/testmgr.c .hash = __VECS(sha3_256_tv_template) hash 4955 crypto/testmgr.c .hash = __VECS(sha3_384_tv_template) hash 4962 crypto/testmgr.c .hash = __VECS(sha3_512_tv_template) hash 4969 crypto/testmgr.c .hash = __VECS(sha384_tv_template) hash 4976 crypto/testmgr.c .hash = __VECS(sha512_tv_template) hash 4982 crypto/testmgr.c .hash = __VECS(sm3_tv_template) hash 4988 crypto/testmgr.c .hash = __VECS(streebog256_tv_template) hash 4994 crypto/testmgr.c .hash = __VECS(streebog512_tv_template) hash 5000 crypto/testmgr.c .hash = __VECS(tgr128_tv_template) hash 5006 crypto/testmgr.c .hash = __VECS(tgr160_tv_template) hash 5012 crypto/testmgr.c .hash = __VECS(tgr192_tv_template) hash 5018 crypto/testmgr.c .hash = __VECS(vmac64_aes_tv_template) hash 5024 crypto/testmgr.c .hash = __VECS(wp256_tv_template) hash 5030 crypto/testmgr.c .hash = __VECS(wp384_tv_template) hash 5036 crypto/testmgr.c .hash = __VECS(wp512_tv_template) hash 5042 crypto/testmgr.c .hash = __VECS(aes_xcbc128_tv_template) hash 5112 crypto/testmgr.c .hash = __VECS(xxhash64_tv_template) hash 35 crypto/tgr192.c u8 hash[64]; hash 515 crypto/tgr192.c tgr192_transform(tctx, tctx->hash); hash 524 crypto/tgr192.c tctx->hash[tctx->count++] = *inbuf++; hash 541 crypto/tgr192.c tctx->hash[tctx->count++] = *inbuf++; hash 577 crypto/tgr192.c tctx->hash[tctx->count++] = 0x01; /* pad */ hash 579 crypto/tgr192.c tctx->hash[tctx->count++] = 0; /* pad */ hash 582 crypto/tgr192.c tctx->hash[tctx->count++] = 0x01; /* pad character */ hash 584 crypto/tgr192.c tctx->hash[tctx->count++] = 0; hash 587 crypto/tgr192.c memset(tctx->hash, 0, 56); /* fill next block with zeroes */ hash 590 crypto/tgr192.c le32p = (__le32 *)&tctx->hash[56]; hash 594 crypto/tgr192.c tgr192_transform(tctx, tctx->hash); hash 596 crypto/tgr192.c be64p = (__be64 *)tctx->hash; hash 568 crypto/vmac.c u64 hash, pad; hash 583 crypto/vmac.c hash = vhash_final(tctx, dctx); hash 594 crypto/vmac.c put_unaligned_be64(hash + pad, out); hash 43 crypto/wp512.c u64 hash[WP512_DIGEST_SIZE/8]; hash 793 crypto/wp512.c state[0] = block[0] ^ (K[0] = wctx->hash[0]); hash 794 crypto/wp512.c state[1] = block[1] ^ (K[1] = wctx->hash[1]); hash 795 crypto/wp512.c state[2] = block[2] ^ (K[2] = wctx->hash[2]); hash 796 crypto/wp512.c state[3] = block[3] ^ (K[3] = wctx->hash[3]); hash 797 crypto/wp512.c state[4] = block[4] ^ (K[4] = wctx->hash[4]); hash 798 crypto/wp512.c state[5] = block[5] ^ (K[5] = wctx->hash[5]); hash 799 crypto/wp512.c state[6] = block[6] ^ (K[6] = wctx->hash[6]); hash 800 crypto/wp512.c state[7] = block[7] ^ (K[7] = wctx->hash[7]); hash 978 crypto/wp512.c wctx->hash[0] ^= state[0] ^ block[0]; hash 979 crypto/wp512.c wctx->hash[1] ^= state[1] ^ block[1]; hash 980 crypto/wp512.c wctx->hash[2] ^= state[2] ^ block[2]; hash 981 crypto/wp512.c wctx->hash[3] ^= state[3] ^ block[3]; hash 982 crypto/wp512.c wctx->hash[4] ^= state[4] ^ block[4]; hash 983 crypto/wp512.c wctx->hash[5] ^= state[5] ^ block[5]; hash 984 crypto/wp512.c wctx->hash[6] ^= state[6] ^ block[6]; hash 985 crypto/wp512.c wctx->hash[7] ^= state[7] ^ block[7]; hash 997 crypto/wp512.c wctx->hash[i] = 0L; hash 1093 crypto/wp512.c digest[i] = cpu_to_be64(wctx->hash[i]); hash 185 drivers/base/power/trace.c unsigned int hash = hash_string(lineno, file, FILEHASH); hash 186 drivers/base/power/trace.c if (hash != value) hash 203 drivers/base/power/trace.c unsigned int hash = hash_string(DEVSEED, dev_name(dev), DEVHASH); hash 204 drivers/base/power/trace.c if (hash == value) { hash 230 drivers/base/power/trace.c unsigned int hash = hash_string(DEVSEED, dev_name(dev), hash 232 drivers/base/power/trace.c if (hash == value) { hash 1505 drivers/char/random.c } hash; hash 1513 drivers/char/random.c sha_init(hash.w); hash 1518 drivers/char/random.c hash.l[i] = v; hash 1524 drivers/char/random.c sha_transform(hash.w, (__u8 *)(r->pool + i), workspace); hash 1535 drivers/char/random.c __mix_pool_bytes(r, hash.w, sizeof(hash.w)); hash 1545 drivers/char/random.c hash.w[0] ^= hash.w[3]; hash 1546 drivers/char/random.c hash.w[1] ^= hash.w[4]; hash 1547 drivers/char/random.c hash.w[2] ^= rol32(hash.w[2], 16); hash 1549 drivers/char/random.c memcpy(out, &hash, EXTRACT_SIZE); hash 1550 drivers/char/random.c memzero_explicit(&hash, sizeof(hash)); hash 391 drivers/char/tpm/tpm.h int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash, hash 448 drivers/char/tpm/tpm1-cmd.c int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash, hash 459 drivers/char/tpm/tpm1-cmd.c tpm_buf_append(&buf, hash, TPM_DIGEST_SIZE); hash 425 drivers/char/tpm/tpm2-cmd.c u32 hash; hash 430 drivers/char/tpm/tpm2-cmd.c if (options->hash == tpm2_hash_map[i].crypto_id) { hash 431 drivers/char/tpm/tpm2-cmd.c hash = tpm2_hash_map[i].tpm_id; hash 462 drivers/char/tpm/tpm2-cmd.c tpm_buf_append_u16(&buf, hash); hash 656 drivers/crypto/amcc/crypto4xx_alg.c alg.u.hash); hash 1027 drivers/crypto/amcc/crypto4xx_core.c rc = crypto_register_ahash(&alg->alg.u.hash); hash 1056 drivers/crypto/amcc/crypto4xx_core.c crypto_unregister_ahash(&alg->alg.u.hash); hash 137 drivers/crypto/amcc/crypto4xx_core.h struct ahash_alg hash; hash 523 drivers/crypto/atmel-sha.c const u32 *hash = (const u32 *)ctx->digest; hash 534 drivers/crypto/atmel-sha.c atmel_sha_write(dd, SHA_REG_DIN(i), hash[i]); hash 927 drivers/crypto/atmel-sha.c u32 *hash = (u32 *)ctx->digest; hash 951 drivers/crypto/atmel-sha.c hash[i] = atmel_sha_read(ctx->dd, SHA_REG_DIGEST(i)); hash 2085 drivers/crypto/bcm/cipher.c struct crypto_shash *hash; hash 2096 drivers/crypto/bcm/cipher.c hash = crypto_alloc_shash(alg_name, 0, 0); hash 2097 drivers/crypto/bcm/cipher.c if (IS_ERR(hash)) { hash 2098 drivers/crypto/bcm/cipher.c ret = PTR_ERR(hash); hash 2105 drivers/crypto/bcm/cipher.c crypto_shash_descsize(hash), gfp); hash 2110 drivers/crypto/bcm/cipher.c ctx->shash->tfm = hash; hash 2114 drivers/crypto/bcm/cipher.c ret = crypto_shash_setkey(hash, ctx->authkey, hash 2134 drivers/crypto/bcm/cipher.c crypto_free_shash(hash); hash 3845 drivers/crypto/bcm/cipher.c .alg.hash = { hash 3865 drivers/crypto/bcm/cipher.c .alg.hash = { hash 3883 drivers/crypto/bcm/cipher.c .alg.hash = { hash 3901 drivers/crypto/bcm/cipher.c .alg.hash = { hash 3919 drivers/crypto/bcm/cipher.c .alg.hash = { hash 3937 drivers/crypto/bcm/cipher.c .alg.hash = { hash 3955 drivers/crypto/bcm/cipher.c .alg.hash = { hash 3973 drivers/crypto/bcm/cipher.c .alg.hash = { hash 3992 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4011 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4030 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4049 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4068 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4087 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4106 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4125 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4144 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4163 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4182 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4201 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4220 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4239 drivers/crypto/bcm/cipher.c .alg.hash = { hash 4305 drivers/crypto/bcm/cipher.c alg.hash); hash 4564 drivers/crypto/bcm/cipher.c struct ahash_alg *hash = &driver_alg->alg.hash; hash 4578 drivers/crypto/bcm/cipher.c hash->halg.base.cra_module = THIS_MODULE; hash 4579 drivers/crypto/bcm/cipher.c hash->halg.base.cra_priority = hash_pri; hash 4580 drivers/crypto/bcm/cipher.c hash->halg.base.cra_alignmask = 0; hash 4581 drivers/crypto/bcm/cipher.c hash->halg.base.cra_ctxsize = sizeof(struct iproc_ctx_s); hash 4582 drivers/crypto/bcm/cipher.c hash->halg.base.cra_init = ahash_cra_init; hash 4583 drivers/crypto/bcm/cipher.c hash->halg.base.cra_exit = generic_cra_exit; hash 4584 drivers/crypto/bcm/cipher.c hash->halg.base.cra_flags = CRYPTO_ALG_ASYNC; hash 4585 drivers/crypto/bcm/cipher.c hash->halg.statesize = sizeof(struct spu_hash_export_s); hash 4588 drivers/crypto/bcm/cipher.c hash->init = ahash_init; hash 4589 drivers/crypto/bcm/cipher.c hash->update = ahash_update; hash 4590 drivers/crypto/bcm/cipher.c hash->final = ahash_final; hash 4591 drivers/crypto/bcm/cipher.c hash->finup = ahash_finup; hash 4592 drivers/crypto/bcm/cipher.c hash->digest = ahash_digest; hash 4596 drivers/crypto/bcm/cipher.c hash->setkey = ahash_setkey; hash 4599 drivers/crypto/bcm/cipher.c hash->setkey = ahash_hmac_setkey; hash 4600 drivers/crypto/bcm/cipher.c hash->init = ahash_hmac_init; hash 4601 drivers/crypto/bcm/cipher.c hash->update = ahash_hmac_update; hash 4602 drivers/crypto/bcm/cipher.c hash->final = ahash_hmac_final; hash 4603 drivers/crypto/bcm/cipher.c hash->finup = ahash_hmac_finup; hash 4604 drivers/crypto/bcm/cipher.c hash->digest = ahash_hmac_digest; hash 4606 drivers/crypto/bcm/cipher.c hash->export = ahash_export; hash 4607 drivers/crypto/bcm/cipher.c hash->import = ahash_import; hash 4609 drivers/crypto/bcm/cipher.c err = crypto_register_ahash(hash); hash 4614 drivers/crypto/bcm/cipher.c hash->halg.base.cra_driver_name); hash 4688 drivers/crypto/bcm/cipher.c crypto_unregister_ahash(&driver_algs[j].alg.hash); hash 4847 drivers/crypto/bcm/cipher.c crypto_unregister_ahash(&driver_algs[i].alg.hash); hash 4848 drivers/crypto/bcm/cipher.c cdn = driver_algs[i].alg.hash.halg.base.cra_driver_name; hash 106 drivers/crypto/bcm/cipher.h struct ahash_alg hash; hash 217 drivers/crypto/bcm/util.c struct crypto_shash *hash; hash 220 drivers/crypto/bcm/util.c hash = crypto_alloc_shash(name, 0, 0); hash 221 drivers/crypto/bcm/util.c if (IS_ERR(hash)) { hash 222 drivers/crypto/bcm/util.c rc = PTR_ERR(hash); hash 227 drivers/crypto/bcm/util.c size = sizeof(struct shash_desc) + crypto_shash_descsize(hash); hash 233 drivers/crypto/bcm/util.c sdesc->shash.tfm = hash; hash 236 drivers/crypto/bcm/util.c rc = crypto_shash_setkey(hash, key, key_len); hash 265 drivers/crypto/bcm/util.c crypto_free_shash(hash); hash 16 drivers/crypto/caam/key_gen.h static inline u32 split_key_len(u32 hash) hash 22 drivers/crypto/caam/key_gen.h idx = (hash & OP_ALG_ALGSEL_SUBMASK) >> OP_ALG_ALGSEL_SHIFT; hash 34 drivers/crypto/caam/key_gen.h static inline u32 split_key_pad_len(u32 hash) hash 36 drivers/crypto/caam/key_gen.h return ALIGN(split_key_len(hash), 16); hash 853 drivers/crypto/caam/regs.h struct rtic_memhash hash[4]; /* Block hash values A-D */ hash 374 drivers/crypto/chelsio/chcr_algo.c alg.hash); hash 3787 drivers/crypto/chelsio/chcr_algo.c .alg.hash = { hash 3799 drivers/crypto/chelsio/chcr_algo.c .alg.hash = { hash 3811 drivers/crypto/chelsio/chcr_algo.c .alg.hash = { hash 3823 drivers/crypto/chelsio/chcr_algo.c .alg.hash = { hash 3835 drivers/crypto/chelsio/chcr_algo.c .alg.hash = { hash 3848 drivers/crypto/chelsio/chcr_algo.c .alg.hash = { hash 3860 drivers/crypto/chelsio/chcr_algo.c .alg.hash = { hash 3872 drivers/crypto/chelsio/chcr_algo.c .alg.hash = { hash 3884 drivers/crypto/chelsio/chcr_algo.c .alg.hash = { hash 3896 drivers/crypto/chelsio/chcr_algo.c .alg.hash = { hash 4260 drivers/crypto/chelsio/chcr_algo.c &driver_algs[i].alg.hash); hash 4314 drivers/crypto/chelsio/chcr_algo.c a_hash = &driver_algs[i].alg.hash; hash 4339 drivers/crypto/chelsio/chcr_algo.c err = crypto_register_ahash(&driver_algs[i].alg.hash); hash 4340 drivers/crypto/chelsio/chcr_algo.c ai = driver_algs[i].alg.hash.halg.base; hash 306 drivers/crypto/chelsio/chcr_crypto.h struct ahash_alg hash; hash 192 drivers/crypto/chelsio/chtls/chtls_main.c tlsdev->hash = chtls_create_hash; hash 284 drivers/crypto/img-hash.c u32 *hash = (u32 *)ctx->digest; hash 288 drivers/crypto/img-hash.c hash[i] = img_hash_read_result_queue(ctx->hdev); hash 190 drivers/crypto/ixp4xx_crypto.c const struct ix_hash_algo *hash; hash 199 drivers/crypto/ixp4xx_crypto.c const struct ix_hash_algo *hash; hash 252 drivers/crypto/ixp4xx_crypto.c return container_of(tfm->__crt_alg, struct ixp_alg, crypto)->hash; hash 1331 drivers/crypto/ixp4xx_crypto.c .hash = &hash_alg_md5, hash 1344 drivers/crypto/ixp4xx_crypto.c .hash = &hash_alg_md5, hash 1356 drivers/crypto/ixp4xx_crypto.c .hash = &hash_alg_sha1, hash 1369 drivers/crypto/ixp4xx_crypto.c .hash = &hash_alg_sha1, hash 1381 drivers/crypto/ixp4xx_crypto.c .hash = &hash_alg_md5, hash 1393 drivers/crypto/ixp4xx_crypto.c .hash = &hash_alg_sha1, hash 255 drivers/crypto/marvell/cesa.h u32 hash[8]; hash 269 drivers/crypto/marvell/cesa.h struct mv_cesa_hash_op_ctx hash; hash 339 drivers/crypto/marvell/hash.c data = creq->base.chain.last->op->ctx.hash.hash; hash 806 drivers/crypto/marvell/hash.c static int mv_cesa_ahash_export(struct ahash_request *req, void *hash, hash 817 drivers/crypto/marvell/hash.c memcpy(hash, creq->state, digsize); hash 824 drivers/crypto/marvell/hash.c static int mv_cesa_ahash_import(struct ahash_request *req, const void *hash, hash 845 drivers/crypto/marvell/hash.c memcpy(creq->state, hash, digsize); hash 879 drivers/crypto/marvell/hash.c return mv_cesa_ahash_export(req, out_state->hash, hash 887 drivers/crypto/marvell/hash.c return mv_cesa_ahash_import(req, in_state->hash, in_state->byte_count, hash 1240 drivers/crypto/marvell/hash.c memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv)); hash 1258 drivers/crypto/marvell/hash.c for (i = 0; i < ARRAY_SIZE(istate.hash); i++) hash 1259 drivers/crypto/marvell/hash.c ctx->iv[i] = be32_to_cpu(istate.hash[i]); hash 1261 drivers/crypto/marvell/hash.c for (i = 0; i < ARRAY_SIZE(ostate.hash); i++) hash 1262 drivers/crypto/marvell/hash.c ctx->iv[i + 8] = be32_to_cpu(ostate.hash[i]); hash 1310 drivers/crypto/marvell/hash.c memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv)); hash 1400 drivers/crypto/marvell/hash.c memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv)); hash 1019 drivers/crypto/mediatek/mtk-aes.c u32 hash[4]; hash 1063 drivers/crypto/mediatek/mtk-aes.c sg_init_one(data->sg, &data->hash, AES_BLOCK_SIZE); hash 1077 drivers/crypto/mediatek/mtk-aes.c mtk_aes_write_state_be(ctx->key + ctx->keylen, data->hash, hash 285 drivers/crypto/omap-sham.c u32 *hash = (u32 *)ctx->digest; hash 290 drivers/crypto/omap-sham.c hash[i] = omap_sham_read(dd, SHA_REG_IDIGEST(dd, i)); hash 292 drivers/crypto/omap-sham.c omap_sham_write(dd, SHA_REG_IDIGEST(dd, i), hash[i]); hash 325 drivers/crypto/omap-sham.c u32 *hash = (u32 *)req->result; hash 328 drivers/crypto/omap-sham.c if (!hash) hash 359 drivers/crypto/omap-sham.c hash[i] = be32_to_cpu(in[i]); hash 362 drivers/crypto/omap-sham.c hash[i] = le32_to_cpu(in[i]); hash 195 drivers/crypto/padlock-sha.c struct crypto_shash *hash = __crypto_shash_cast(tfm); hash 212 drivers/crypto/padlock-sha.c hash->descsize += crypto_shash_descsize(fallback_tfm); hash 97 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_hw_auth_algo_blk hash; hash 100 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_hw_auth_algo_blk hash; hash 151 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_do_precomputes(struct icp_qat_hw_auth_algo_blk *hash, hash 192 drivers/crypto/qat/qat_common/qat_algs.c hash_state_out = (__be32 *)hash->sha.state1; hash 228 drivers/crypto/qat/qat_common/qat_algs.c hash_state_out = (__be32 *)(hash->sha.state1 + offset); hash 302 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_hw_auth_algo_blk *hash = hash 315 drivers/crypto/qat/qat_common/qat_algs.c hash->sha.inner_setup.auth_config.config = hash 318 drivers/crypto/qat/qat_common/qat_algs.c hash->sha.inner_setup.auth_counter.counter = hash 321 drivers/crypto/qat/qat_common/qat_algs.c if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) hash 343 drivers/crypto/qat/qat_common/qat_algs.c hash_cd_ctrl->hash_cfg_offset = ((char *)hash - (char *)cipher) >> 3; hash 382 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_hw_auth_algo_blk *hash = &dec_ctx->hash; hash 401 drivers/crypto/qat/qat_common/qat_algs.c hash->sha.inner_setup.auth_config.config = hash 405 drivers/crypto/qat/qat_common/qat_algs.c hash->sha.inner_setup.auth_counter.counter = hash 408 drivers/crypto/qat/qat_common/qat_algs.c if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) hash 1168 drivers/crypto/qat/qat_common/qat_algs.c enum icp_qat_hw_auth_algo hash, hash 1176 drivers/crypto/qat/qat_common/qat_algs.c ctx->qat_hash_alg = hash; hash 271 drivers/crypto/rockchip/rk3288_crypto.c &rk_cipher_algs[i]->alg.hash); hash 282 drivers/crypto/rockchip/rk3288_crypto.c crypto_unregister_ahash(&rk_cipher_algs[i]->alg.hash); hash 295 drivers/crypto/rockchip/rk3288_crypto.c crypto_unregister_ahash(&rk_cipher_algs[i]->alg.hash); hash 260 drivers/crypto/rockchip/rk3288_crypto.h struct ahash_alg hash; hash 280 drivers/crypto/rockchip/rk3288_crypto_ahash.c algt = container_of(alg, struct rk_crypto_tmp, alg.hash); hash 316 drivers/crypto/rockchip/rk3288_crypto_ahash.c .alg.hash = { hash 346 drivers/crypto/rockchip/rk3288_crypto_ahash.c .alg.hash = { hash 376 drivers/crypto/rockchip/rk3288_crypto_ahash.c .alg.hash = { hash 790 drivers/crypto/s5p-sss.c u32 *hash = (u32 *)ctx->digest; hash 794 drivers/crypto/s5p-sss.c hash[i] = s5p_hash_read(dd, SSS_REG_HASH_OUT(i)); hash 805 drivers/crypto/s5p-sss.c const u32 *hash = (const u32 *)ctx->digest; hash 809 drivers/crypto/s5p-sss.c s5p_hash_write(dd, SSS_REG_HASH_IV(i), hash[i]); hash 750 drivers/crypto/stm32/stm32-hash.c u32 *hash = (u32 *)rctx->digest; hash 771 drivers/crypto/stm32/stm32-hash.c hash[i] = be32_to_cpu(stm32_hash_read(rctx->hdev, hash 28 drivers/crypto/sunxi-ss/sun4i-ss-core.c .alg.hash = { hash 54 drivers/crypto/sunxi-ss/sun4i-ss-core.c .alg.hash = { hash 357 drivers/crypto/sunxi-ss/sun4i-ss-core.c err = crypto_register_ahash(&ss_algs[i].alg.hash); hash 360 drivers/crypto/sunxi-ss/sun4i-ss-core.c ss_algs[i].alg.hash.halg.base.cra_name); hash 383 drivers/crypto/sunxi-ss/sun4i-ss-core.c crypto_unregister_ahash(&ss_algs[i].alg.hash); hash 410 drivers/crypto/sunxi-ss/sun4i-ss-core.c crypto_unregister_ahash(&ss_algs[i].alg.hash); hash 25 drivers/crypto/sunxi-ss/sun4i-ss-hash.c algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); hash 43 drivers/crypto/sunxi-ss/sun4i-ss-hash.c algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); hash 61 drivers/crypto/sunxi-ss/sun4i-ss-hash.c octx->hash[i] = op->hash[i]; hash 63 drivers/crypto/sunxi-ss/sun4i-ss-hash.c octx->hash[0] = SHA1_H0; hash 64 drivers/crypto/sunxi-ss/sun4i-ss-hash.c octx->hash[1] = SHA1_H1; hash 65 drivers/crypto/sunxi-ss/sun4i-ss-hash.c octx->hash[2] = SHA1_H2; hash 66 drivers/crypto/sunxi-ss/sun4i-ss-hash.c octx->hash[3] = SHA1_H3; hash 86 drivers/crypto/sunxi-ss/sun4i-ss-hash.c op->hash[i] = ictx->hash[i]; hash 103 drivers/crypto/sunxi-ss/sun4i-ss-hash.c octx->state[i] = op->hash[i]; hash 129 drivers/crypto/sunxi-ss/sun4i-ss-hash.c op->hash[i] = ictx->state[i]; hash 192 drivers/crypto/sunxi-ss/sun4i-ss-hash.c op->len, op->hash[0]); hash 220 drivers/crypto/sunxi-ss/sun4i-ss-hash.c writel(op->hash[i], ss->base + SS_IV0 + i * 4); hash 371 drivers/crypto/sunxi-ss/sun4i-ss-hash.c op->hash[i] = readl(ss->base + SS_MD0 + i * 4); hash 152 drivers/crypto/sunxi-ss/sun4i-ss.h struct ahash_alg hash; hash 173 drivers/crypto/sunxi-ss/sun4i-ss.h u32 hash[5]; /* for storing SS_IVx register */ hash 2185 drivers/crypto/talitos.c u8 *hash) hash 2207 drivers/crypto/talitos.c ahash_request_set_crypt(req, sg, hash, keylen); hash 2224 drivers/crypto/talitos.c u8 hash[SHA512_DIGEST_SIZE]; hash 2231 drivers/crypto/talitos.c ret = keyhash(tfm, key, keylen, hash); hash 2239 drivers/crypto/talitos.c memcpy(ctx->key, hash, digestsize); hash 2257 drivers/crypto/talitos.c struct ahash_alg hash; hash 2826 drivers/crypto/talitos.c .alg.hash = { hash 2841 drivers/crypto/talitos.c .alg.hash = { hash 2856 drivers/crypto/talitos.c .alg.hash = { hash 2871 drivers/crypto/talitos.c .alg.hash = { hash 2886 drivers/crypto/talitos.c .alg.hash = { hash 2901 drivers/crypto/talitos.c .alg.hash = { hash 2916 drivers/crypto/talitos.c .alg.hash = { hash 2931 drivers/crypto/talitos.c .alg.hash = { hash 2946 drivers/crypto/talitos.c .alg.hash = { hash 2961 drivers/crypto/talitos.c .alg.hash = { hash 2976 drivers/crypto/talitos.c .alg.hash = { hash 2991 drivers/crypto/talitos.c .alg.hash = { hash 3044 drivers/crypto/talitos.c algt.alg.hash); hash 3121 drivers/crypto/talitos.c crypto_unregister_ahash(&t_alg->algt.alg.hash); hash 3184 drivers/crypto/talitos.c alg = &t_alg->algt.alg.hash.halg.base; hash 3187 drivers/crypto/talitos.c t_alg->algt.alg.hash.init = ahash_init; hash 3188 drivers/crypto/talitos.c t_alg->algt.alg.hash.update = ahash_update; hash 3189 drivers/crypto/talitos.c t_alg->algt.alg.hash.final = ahash_final; hash 3190 drivers/crypto/talitos.c t_alg->algt.alg.hash.finup = ahash_finup; hash 3191 drivers/crypto/talitos.c t_alg->algt.alg.hash.digest = ahash_digest; hash 3193 drivers/crypto/talitos.c t_alg->algt.alg.hash.setkey = ahash_setkey; hash 3194 drivers/crypto/talitos.c t_alg->algt.alg.hash.import = ahash_import; hash 3195 drivers/crypto/talitos.c t_alg->algt.alg.hash.export = ahash_export; hash 3205 drivers/crypto/talitos.c t_alg->algt.alg.hash.init = ahash_init_sha224_swinit; hash 3478 drivers/crypto/talitos.c &t_alg->algt.alg.hash); hash 3479 drivers/crypto/talitos.c alg = &t_alg->algt.alg.hash.halg.base; hash 1489 drivers/crypto/ux500/hash/hash_core.c struct ahash_alg hash; hash 1500 drivers/crypto/ux500/hash/hash_core.c hash); hash 1509 drivers/crypto/ux500/hash/hash_core.c ctx->digestsize = hash_alg->hash.halg.digestsize; hash 1518 drivers/crypto/ux500/hash/hash_core.c .hash = { hash 1541 drivers/crypto/ux500/hash/hash_core.c .hash = { hash 1564 drivers/crypto/ux500/hash/hash_core.c .hash = { hash 1588 drivers/crypto/ux500/hash/hash_core.c .hash = { hash 1621 drivers/crypto/ux500/hash/hash_core.c ret = crypto_register_ahash(&hash_algs[i].hash); hash 1625 drivers/crypto/ux500/hash/hash_core.c hash_algs[i].hash.halg.base.cra_driver_name); hash 1632 drivers/crypto/ux500/hash/hash_core.c crypto_unregister_ahash(&hash_algs[i].hash); hash 1644 drivers/crypto/ux500/hash/hash_core.c crypto_unregister_ahash(&hash_algs[i].hash); hash 529 drivers/dax/super.c int hash; hash 540 drivers/dax/super.c hash = dax_host_hash(host); hash 542 drivers/dax/super.c hlist_add_head(&dax_dev->list, &dax_host_list[hash]); hash 598 drivers/dax/super.c int hash, id; hash 603 drivers/dax/super.c hash = dax_host_hash(host); hash 607 drivers/dax/super.c hlist_for_each_entry(dax_dev, &dax_host_list[hash], list) { hash 701 drivers/firmware/google/gsmi.c u64 hash = val; hash 704 drivers/firmware/google/gsmi.c u64 n = hash; hash 706 drivers/firmware/google/gsmi.c hash -= n; hash 708 drivers/firmware/google/gsmi.c hash -= n; hash 710 drivers/firmware/google/gsmi.c hash += n; hash 712 drivers/firmware/google/gsmi.c hash -= n; hash 714 drivers/firmware/google/gsmi.c hash += n; hash 716 drivers/firmware/google/gsmi.c hash += n; hash 719 drivers/firmware/google/gsmi.c return hash >> (64 - bits); hash 748 drivers/firmware/google/gsmi.c u32 hash; hash 767 drivers/firmware/google/gsmi.c hash = hash_oem_table_id(acpi_gbl_FADT.header.oem_table_id); hash 768 drivers/firmware/google/gsmi.c if (hash == QUIRKY_BOARD_HASH) { hash 273 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c uint32_t hash; hash 282 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c hash = hash_64(key, AMDGPU_GMC_FAULT_HASH_ORDER); hash 283 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c fault = &gmc->fault_ring[gmc->fault_hash[hash].idx]; hash 304 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c fault->next = gmc->fault_hash[hash].idx; hash 305 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c gmc->fault_hash[hash].idx = gmc->last_fault++; hash 89 drivers/gpu/drm/drm_bufs.c static int drm_map_handle(struct drm_device *dev, struct drm_hash_item *hash, hash 105 drivers/gpu/drm/drm_bufs.c hash->key = user_token >> PAGE_SHIFT; hash 106 drivers/gpu/drm/drm_bufs.c ret = drm_ht_insert_item(&dev->map_hash, hash); hash 132 drivers/gpu/drm/drm_bufs.c return drm_ht_just_insert_please(&dev->map_hash, hash, hash 357 drivers/gpu/drm/drm_bufs.c ret = drm_map_handle(dev, &list->hash, user_token, 0, hash 368 drivers/gpu/drm/drm_bufs.c list->user_token = list->hash.key << PAGE_SHIFT; hash 123 drivers/gpu/drm/drm_vm.c struct drm_hash_item *hash; hash 134 drivers/gpu/drm/drm_vm.c if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) hash 137 drivers/gpu/drm/drm_vm.c r_list = drm_hash_entry(hash, struct drm_map_list, hash); hash 537 drivers/gpu/drm/drm_vm.c struct drm_hash_item *hash; hash 557 drivers/gpu/drm/drm_vm.c if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) { hash 562 drivers/gpu/drm/drm_vm.c map = drm_hash_entry(hash, struct drm_map_list, hash)->map; hash 29 drivers/gpu/drm/nouveau/nvkm/core/ramht.c u32 hash = 0; hash 32 drivers/gpu/drm/nouveau/nvkm/core/ramht.c hash ^= (handle & ((1 << ramht->bits) - 1)); hash 36 drivers/gpu/drm/nouveau/nvkm/core/ramht.c hash ^= chid << (ramht->bits - 4); hash 37 drivers/gpu/drm/nouveau/nvkm/core/ramht.c return hash; hash 227 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c int hash; hash 235 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c nvkm_ramht_remove(object->disp->ramht, object->hash); hash 264 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c object->hash = chan->func->bind(chan, object->oproxy.object, hash 266 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c if (object->hash < 0) hash 267 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c return object->hash; hash 35 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c int hash; hash 114 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c chan->func->object_dtor(chan, object->hash); hash 191 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c object->hash = hash 193 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c if (object->hash < 0) hash 194 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c return object->hash; hash 54 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c int hash; hash 67 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c hash = nvkm_ramht_insert(imem->ramht, object, chan->base.chid, 4, hash 70 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c return hash; hash 150 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c int hash; hash 163 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c hash = nvkm_ramht_insert(imem->ramht, object, chan->base.chid, 4, hash 166 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c return hash; hash 105 drivers/gpu/drm/qxl/qxl_image.c int depth, unsigned int hash, hash 12 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c static u32 hgsmi_hash_process(u32 hash, const u8 *data, int size) hash 15 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c hash += *data++; hash 16 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c hash += (hash << 10); hash 17 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c hash ^= (hash >> 6); hash 20 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c return hash; hash 23 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c static u32 hgsmi_hash_end(u32 hash) hash 25 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c hash += (hash << 3); hash 26 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c hash ^= (hash >> 11); hash 27 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c hash += (hash << 15); hash 29 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c return hash; hash 123 drivers/gpu/drm/vmwgfx/ttm_object.c struct drm_hash_item hash; hash 247 drivers/gpu/drm/vmwgfx/ttm_object.c struct drm_hash_item *hash; hash 252 drivers/gpu/drm/vmwgfx/ttm_object.c ret = drm_ht_find_item_rcu(ht, key, &hash); hash 259 drivers/gpu/drm/vmwgfx/ttm_object.c return drm_hash_entry(hash, struct ttm_ref_object, hash)->obj; hash 267 drivers/gpu/drm/vmwgfx/ttm_object.c struct drm_hash_item *hash; hash 272 drivers/gpu/drm/vmwgfx/ttm_object.c ret = drm_ht_find_item_rcu(ht, key, &hash); hash 275 drivers/gpu/drm/vmwgfx/ttm_object.c base = drm_hash_entry(hash, struct ttm_ref_object, hash)->obj; hash 313 drivers/gpu/drm/vmwgfx/ttm_object.c struct drm_hash_item *hash; hash 317 drivers/gpu/drm/vmwgfx/ttm_object.c if (unlikely(drm_ht_find_item_rcu(ht, base->handle, &hash) != 0)) hash 325 drivers/gpu/drm/vmwgfx/ttm_object.c ref = drm_hash_entry(hash, struct ttm_ref_object, hash); hash 351 drivers/gpu/drm/vmwgfx/ttm_object.c struct drm_hash_item *hash; hash 367 drivers/gpu/drm/vmwgfx/ttm_object.c ret = drm_ht_find_item_rcu(ht, base->handle, &hash); hash 370 drivers/gpu/drm/vmwgfx/ttm_object.c ref = drm_hash_entry(hash, struct ttm_ref_object, hash); hash 391 drivers/gpu/drm/vmwgfx/ttm_object.c ref->hash.key = base->handle; hash 398 drivers/gpu/drm/vmwgfx/ttm_object.c ret = drm_ht_insert_item_rcu(ht, &ref->hash); hash 430 drivers/gpu/drm/vmwgfx/ttm_object.c (void)drm_ht_remove_item_rcu(ht, &ref->hash); hash 448 drivers/gpu/drm/vmwgfx/ttm_object.c struct drm_hash_item *hash; hash 452 drivers/gpu/drm/vmwgfx/ttm_object.c ret = drm_ht_find_item(ht, key, &hash); hash 457 drivers/gpu/drm/vmwgfx/ttm_object.c ref = drm_hash_entry(hash, struct ttm_ref_object, hash); hash 45 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c struct drm_hash_item hash; hash 84 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c struct drm_hash_item *hash; hash 88 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c ret = drm_ht_find_item(&man->resources, key, &hash); hash 92 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c return drm_hash_entry(hash, struct vmw_cmdbuf_res, hash)->res; hash 108 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c WARN_ON(drm_ht_remove_item(&man->resources, &entry->hash)); hash 172 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c &entry->hash); hash 210 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c cres->hash.key = user_key | (res_type << 24); hash 211 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c ret = drm_ht_insert_item(&man->resources, &cres->hash); hash 249 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c struct drm_hash_item *hash; hash 253 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c &hash); hash 257 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c entry = drm_hash_entry(hash, struct vmw_cmdbuf_res, hash); hash 265 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c (void) drm_ht_remove_item(&man->resources, &entry->hash); hash 131 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h struct drm_hash_item hash; hash 44 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c struct drm_hash_item hash; hash 71 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c struct drm_hash_item hash; hash 183 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c struct drm_hash_item *hash; hash 185 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c if (!drm_ht_find_item(ctx->ht, (unsigned long) vbo, &hash)) hash 186 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c bo_node = container_of(hash, typeof(*bo_node), hash); hash 220 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c struct drm_hash_item *hash; hash 222 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c if (!drm_ht_find_item(ctx->ht, (unsigned long) res, &hash)) hash 223 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c res_node = container_of(hash, typeof(*res_node), hash); hash 278 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c bo_node->hash.key = (unsigned long) vbo; hash 279 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c ret = drm_ht_insert_item(ctx->ht, &bo_node->hash); hash 333 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c node->hash.key = (unsigned long) res; hash 334 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c ret = drm_ht_insert_item(ctx->ht, &node->hash); hash 646 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c (void) drm_ht_remove_item(ctx->ht, &entry->hash); hash 649 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c (void) drm_ht_remove_item(ctx->ht, &val->hash); hash 652 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c (void) drm_ht_remove_item(ctx->ht, &val->hash); hash 523 drivers/hwtracing/coresight/coresight-etm-perf.c unsigned long hash; hash 545 drivers/hwtracing/coresight/coresight-etm-perf.c hash = hashlen_hash(hashlen_string(NULL, name)); hash 554 drivers/hwtracing/coresight/coresight-etm-perf.c ea->var = (unsigned long *)hash; hash 533 drivers/hwtracing/coresight/coresight.c unsigned long hash; hash 544 drivers/hwtracing/coresight/coresight.c hash = (unsigned long)csdev->ea->var; hash 546 drivers/hwtracing/coresight/coresight.c if ((u32)hash == *(u32 *)data) hash 561 drivers/infiniband/core/iwpm_util.c u32 hash = jhash_2words(ipv6_hash, (__force u32) ipv6_sockaddr->sin6_port, 0); hash 562 drivers/infiniband/core/iwpm_util.c return hash; hash 568 drivers/infiniband/core/iwpm_util.c u32 hash = jhash_2words(ipv4_hash, (__force u32) ipv4_sockaddr->sin_port, 0); hash 569 drivers/infiniband/core/iwpm_util.c return hash; hash 573 drivers/infiniband/core/iwpm_util.c struct sockaddr_storage *b_sockaddr, u32 *hash) hash 590 drivers/infiniband/core/iwpm_util.c *hash = a_hash; hash 592 drivers/infiniband/core/iwpm_util.c *hash = jhash_2words(a_hash, b_hash, 0); hash 600 drivers/infiniband/core/iwpm_util.c u32 hash; hash 603 drivers/infiniband/core/iwpm_util.c ret = get_hash_bucket(local_sockaddr, mapped_sockaddr, &hash); hash 606 drivers/infiniband/core/iwpm_util.c return &iwpm_hash_bucket[hash & IWPM_MAPINFO_HASH_MASK]; hash 613 drivers/infiniband/core/iwpm_util.c u32 hash; hash 616 drivers/infiniband/core/iwpm_util.c ret = get_hash_bucket(mapped_loc_sockaddr, mapped_rem_sockaddr, &hash); hash 619 drivers/infiniband/core/iwpm_util.c return &iwpm_reminfo_bucket[hash & IWPM_REMINFO_HASH_MASK]; hash 319 drivers/infiniband/hw/hfi1/user_sdma.c int hash; hash 326 drivers/infiniband/hw/hfi1/user_sdma.c hash = ((dlid >> 8) ^ dlid) & 0xFF; hash 327 drivers/infiniband/hw/hfi1/user_sdma.c if (mapping[hash] == 0xFF) { hash 328 drivers/infiniband/hw/hfi1/user_sdma.c mapping[hash] = next; hash 332 drivers/infiniband/hw/hfi1/user_sdma.c return mapping[hash]; hash 1956 drivers/infiniband/hw/mthca/mthca_cmd.c u16 *hash) hash 1964 drivers/infiniband/hw/mthca/mthca_cmd.c *hash = imm; hash 322 drivers/infiniband/hw/mthca/mthca_cmd.h u16 *hash); hash 65 drivers/infiniband/hw/mthca/mthca_mcg.c u16 *hash, int *prev, int *index) hash 79 drivers/infiniband/hw/mthca/mthca_mcg.c err = mthca_MGID_HASH(dev, mailbox, hash); hash 86 drivers/infiniband/hw/mthca/mthca_mcg.c mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); hash 88 drivers/infiniband/hw/mthca/mthca_mcg.c *index = *hash; hash 99 drivers/infiniband/hw/mthca/mthca_mcg.c if (*index != *hash) { hash 125 drivers/infiniband/hw/mthca/mthca_mcg.c u16 hash; hash 138 drivers/infiniband/hw/mthca/mthca_mcg.c err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); hash 219 drivers/infiniband/hw/mthca/mthca_mcg.c u16 hash; hash 231 drivers/infiniband/hw/mthca/mthca_mcg.c err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); hash 449 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c u32 hash = skb_get_hash(skb); hash 452 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c hash ^= hash >> 8; hash 453 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c hash ^= hash >> 16; hash 456 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c return (u8)(hash & 0xFF); hash 284 drivers/md/bcache/bcache.h struct hlist_node hash; hash 590 drivers/md/bcache/btree.c hlist_del_init_rcu(&b->hash); hash 878 drivers/md/bcache/btree.c hlist_for_each_entry_rcu(b, mca_hash(c, k), hash) hash 981 drivers/md/bcache/btree.c hlist_del_init_rcu(&b->hash); hash 982 drivers/md/bcache/btree.c hlist_add_head_rcu(&b->hash, mca_hash(c, k)); hash 119 drivers/md/bcache/btree.h struct hlist_node hash; hash 207 drivers/md/bcache/btree.h hlist_for_each_entry_rcu((b), (c)->bucket_hash + iter, hash) hash 428 drivers/md/bcache/request.c hlist_for_each_entry(i, iohash(dc, bio->bi_iter.bi_sector), hash) hash 445 drivers/md/bcache/request.c hlist_del(&i->hash); hash 446 drivers/md/bcache/request.c hlist_add_head(&i->hash, iohash(dc, i->last)); hash 1324 drivers/md/bcache/super.c hlist_add_head(&io->hash, dc->io_hash + RECENT_IO); hash 495 drivers/md/dm-crypt.c __cpu_to_le32s(&md5state.hash[i]); hash 496 drivers/md/dm-crypt.c memcpy(iv, &md5state.hash, cc->iv_size); hash 3278 drivers/md/dm-integrity.c static int get_mac(struct crypto_shash **hash, struct alg_spec *a, char **error, hash 3284 drivers/md/dm-integrity.c *hash = crypto_alloc_shash(a->alg_string, 0, 0); hash 3285 drivers/md/dm-integrity.c if (IS_ERR(*hash)) { hash 3287 drivers/md/dm-integrity.c r = PTR_ERR(*hash); hash 3288 drivers/md/dm-integrity.c *hash = NULL; hash 3293 drivers/md/dm-integrity.c r = crypto_shash_setkey(*hash, a->key, a->key_size); hash 3298 drivers/md/dm-integrity.c } else if (crypto_shash_get_flags(*hash) & CRYPTO_TFM_NEED_KEY) { hash 146 drivers/md/dm-thin-metadata.c struct hlist_node hash; hash 72 drivers/md/raid5.c int hash = (sect >> STRIPE_SHIFT) & HASH_MASK; hash 73 drivers/md/raid5.c return &conf->stripe_hashtbl[hash]; hash 81 drivers/md/raid5.c static inline void lock_device_hash_lock(struct r5conf *conf, int hash) hash 83 drivers/md/raid5.c spin_lock_irq(conf->hash_locks + hash); hash 87 drivers/md/raid5.c static inline void unlock_device_hash_lock(struct r5conf *conf, int hash) hash 90 drivers/md/raid5.c spin_unlock_irq(conf->hash_locks + hash); hash 313 drivers/md/raid5.c int hash) hash 319 drivers/md/raid5.c if (hash == NR_STRIPE_HASH_LOCKS) { hash 321 drivers/md/raid5.c hash = NR_STRIPE_HASH_LOCKS - 1; hash 332 drivers/md/raid5.c spin_lock_irqsave(conf->hash_locks + hash, flags); hash 333 drivers/md/raid5.c if (list_empty(conf->inactive_list + hash) && hash 336 drivers/md/raid5.c list_splice_tail_init(list, conf->inactive_list + hash); hash 338 drivers/md/raid5.c spin_unlock_irqrestore(conf->hash_locks + hash, flags); hash 341 drivers/md/raid5.c hash--; hash 364 drivers/md/raid5.c int hash; hash 374 drivers/md/raid5.c hash = sh->hash_lock_index; hash 375 drivers/md/raid5.c __release_stripe(conf, sh, &temp_inactive_list[hash]); hash 387 drivers/md/raid5.c int hash; hash 406 drivers/md/raid5.c hash = sh->hash_lock_index; hash 409 drivers/md/raid5.c release_inactive_stripe_list(conf, &list, hash); hash 418 drivers/md/raid5.c hlist_del_init(&sh->hash); hash 428 drivers/md/raid5.c hlist_add_head(&sh->hash, hp); hash 432 drivers/md/raid5.c static struct stripe_head *get_free_stripe(struct r5conf *conf, int hash) hash 437 drivers/md/raid5.c if (list_empty(conf->inactive_list + hash)) hash 439 drivers/md/raid5.c first = (conf->inactive_list + hash)->next; hash 444 drivers/md/raid5.c BUG_ON(hash != sh->hash_lock_index); hash 445 drivers/md/raid5.c if (list_empty(conf->inactive_list + hash)) hash 536 drivers/md/raid5.c hlist_for_each_entry(sh, stripe_hash(conf, sector), hash) hash 630 drivers/md/raid5.c int hash = stripe_hash_locks_hash(sector); hash 635 drivers/md/raid5.c spin_lock_irq(conf->hash_locks + hash); hash 640 drivers/md/raid5.c *(conf->hash_locks + hash)); hash 644 drivers/md/raid5.c sh = get_free_stripe(conf, hash); hash 660 drivers/md/raid5.c !list_empty(conf->inactive_list + hash) && hash 665 drivers/md/raid5.c *(conf->hash_locks + hash)); hash 680 drivers/md/raid5.c if (!list_empty(conf->inactive_list + hash)) hash 683 drivers/md/raid5.c if (list_empty(conf->inactive_list + hash) && inc_empty_inactive_list_flag) hash 695 drivers/md/raid5.c spin_unlock_irq(conf->hash_locks + hash); hash 743 drivers/md/raid5.c int hash; hash 753 drivers/md/raid5.c hash = stripe_hash_locks_hash(head_sector); hash 754 drivers/md/raid5.c spin_lock_irq(conf->hash_locks + hash); hash 764 drivers/md/raid5.c if (!list_empty(conf->inactive_list + hash)) hash 767 drivers/md/raid5.c if (list_empty(conf->inactive_list + hash) && inc_empty_inactive_list_flag) hash 777 drivers/md/raid5.c spin_unlock_irq(conf->hash_locks + hash); hash 2316 drivers/md/raid5.c int hash, cnt; hash 2352 drivers/md/raid5.c hash = 0; hash 2355 drivers/md/raid5.c lock_device_hash_lock(conf, hash); hash 2357 drivers/md/raid5.c !list_empty(conf->inactive_list + hash), hash 2358 drivers/md/raid5.c unlock_device_hash_lock(conf, hash), hash 2359 drivers/md/raid5.c lock_device_hash_lock(conf, hash)); hash 2360 drivers/md/raid5.c osh = get_free_stripe(conf, hash); hash 2361 drivers/md/raid5.c unlock_device_hash_lock(conf, hash); hash 2367 drivers/md/raid5.c nsh->hash_lock_index = hash; hash 2371 drivers/md/raid5.c !!((conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS) > hash)) { hash 2372 drivers/md/raid5.c hash++; hash 2436 drivers/md/raid5.c int hash = (conf->max_nr_stripes - 1) & STRIPE_HASH_LOCKS_MASK; hash 2438 drivers/md/raid5.c spin_lock_irq(conf->hash_locks + hash); hash 2439 drivers/md/raid5.c sh = get_free_stripe(conf, hash); hash 2440 drivers/md/raid5.c spin_unlock_irq(conf->hash_locks + hash); hash 3810 drivers/md/raid5.c int hash; hash 3825 drivers/md/raid5.c hash = sh->hash_lock_index; hash 3826 drivers/md/raid5.c spin_lock_irq(conf->hash_locks + hash); hash 3828 drivers/md/raid5.c spin_unlock_irq(conf->hash_locks + hash); hash 5087 drivers/md/raid5.c int hash; hash 5090 drivers/md/raid5.c hash = sh->hash_lock_index; hash 5091 drivers/md/raid5.c __release_stripe(conf, sh, &temp_inactive_list[hash]); hash 5431 drivers/md/raid5.c int hash; hash 5449 drivers/md/raid5.c hash = sh->hash_lock_index; hash 5450 drivers/md/raid5.c __release_stripe(conf, sh, &cb->temp_inactive_list[hash]); hash 6185 drivers/md/raid5.c int i, batch_size = 0, hash; hash 6223 drivers/md/raid5.c hash = batch[i]->hash_lock_index; hash 6224 drivers/md/raid5.c __release_stripe(conf, batch[i], &temp_inactive_list[hash]); hash 199 drivers/md/raid5.h struct hlist_node hash; hash 67 drivers/media/usb/em28xx/em28xx-cards.c unsigned long hash; hash 2974 drivers/media/usb/em28xx/em28xx-cards.c if (dev->hash == em28xx_eeprom_hash[i].hash) { hash 3006 drivers/media/usb/em28xx/em28xx-cards.c if (dev->i2c_hash == em28xx_i2c_hash[i].hash) { hash 3029 drivers/media/usb/em28xx/em28xx-cards.c dev->hash, dev->i2c_hash); hash 613 drivers/media/usb/em28xx/em28xx-i2c.c unsigned long hash = 0; hash 628 drivers/media/usb/em28xx/em28xx-i2c.c hash = ((hash ^ l) * 0x9e370001UL); hash 631 drivers/media/usb/em28xx/em28xx-i2c.c return (hash >> (32 - bits)) & 0xffffffffUL; hash 733 drivers/media/usb/em28xx/em28xx-i2c.c dev->hash = em28xx_hash_mem(data, len, 32); hash 738 drivers/media/usb/em28xx/em28xx-i2c.c data, dev->hash); hash 804 drivers/media/usb/em28xx/em28xx-i2c.c dev->hash = em28xx_hash_mem(data, len, 32); hash 807 drivers/media/usb/em28xx/em28xx-i2c.c data, dev->hash); hash 702 drivers/media/usb/em28xx/em28xx.h unsigned long hash; // eeprom hash - for boards with generic ID hash 38 drivers/misc/cxl/fault.c unsigned int hash; hash 41 drivers/misc/cxl/fault.c hash = (slb->esid >> SID_SHIFT_1T) & mask; hash 43 drivers/misc/cxl/fault.c hash = (slb->esid >> SID_SHIFT) & mask; hash 45 drivers/misc/cxl/fault.c primary = ctx->sstp + (hash << 3); hash 162 drivers/mtd/tests/nandbiterrs.c if (rbuffer[i] != hash(i+seed)) { hash 164 drivers/mtd/tests/nandbiterrs.c i, hash(i+seed), rbuffer[i]); hash 209 drivers/mtd/tests/nandbiterrs.c wbuffer[i] = hash(i+seed); hash 272 drivers/mtd/tests/nandbiterrs.c wbuffer[i] = hash(i+seed); hash 64 drivers/net/bonding/bond_alb.c u8 hash = 0; hash 67 drivers/net/bonding/bond_alb.c hash ^= hash_start[i]; hash 69 drivers/net/bonding/bond_alb.c return hash; hash 3300 drivers/net/bonding/bond_main.c u32 hash; hash 3304 drivers/net/bonding/bond_main.c return skb->hash; hash 3312 drivers/net/bonding/bond_main.c hash = bond_eth_hash(skb); hash 3314 drivers/net/bonding/bond_main.c hash = (__force u32)flow.ports.ports; hash 3315 drivers/net/bonding/bond_main.c hash ^= (__force u32)flow_get_u32_dst(&flow) ^ hash 3317 drivers/net/bonding/bond_main.c hash ^= (hash >> 16); hash 3318 drivers/net/bonding/bond_main.c hash ^= (hash >> 8); hash 3320 drivers/net/bonding/bond_main.c return hash >> 1; hash 130 drivers/net/dsa/mv88e6xxx/global2.c bool hash, u16 mask) hash 134 drivers/net/dsa/mv88e6xxx/global2.c if (hash) hash 1019 drivers/net/ethernet/altera/altera_tse_main.c unsigned int hash = 0; hash 1030 drivers/net/ethernet/altera/altera_tse_main.c hash = (hash << 1) | xor_bit; hash 1032 drivers/net/ethernet/altera/altera_tse_main.c csrwr32(1, priv->mac_dev, tse_csroffs(hash_table) + hash * 4); hash 354 drivers/net/ethernet/amazon/ena/ena_eth_com.c ena_rx_ctx->hash = cdesc->hash; hash 362 drivers/net/ethernet/amazon/ena/ena_eth_com.c ena_rx_ctx->hash, ena_rx_ctx->frag, cdesc->status); hash 73 drivers/net/ethernet/amazon/ena/ena_eth_com.h u32 hash; hash 263 drivers/net/ethernet/amazon/ena/ena_eth_io_defs.h u32 hash; hash 1036 drivers/net/ethernet/amazon/ena/ena_netdev.c skb_set_hash(skb, ena_rx_ctx->hash, hash_type); hash 1083 drivers/net/ethernet/amazon/ena/ena_netdev.c ena_rx_ctx.l4_proto, ena_rx_ctx.hash); hash 196 drivers/net/ethernet/amd/am79c961a.c static void am79c961_mc_hash(char *addr, u16 *hash) hash 206 drivers/net/ethernet/amd/am79c961a.c hash[idx] |= 1 << bit; hash 209 drivers/net/ethernet/amd/am79c961a.c static unsigned int am79c961_get_rx_mode(struct net_device *dev, u16 *hash) hash 215 drivers/net/ethernet/amd/am79c961a.c memset(hash, 0xff, 4 * sizeof(*hash)); hash 217 drivers/net/ethernet/amd/am79c961a.c memset(hash, 0xff, 4 * sizeof(*hash)); hash 221 drivers/net/ethernet/amd/am79c961a.c memset(hash, 0, 4 * sizeof(*hash)); hash 224 drivers/net/ethernet/amd/am79c961a.c am79c961_mc_hash(ha->addr, hash); hash 3898 drivers/net/ethernet/broadcom/bnxt/bnxt.c hlist_for_each_entry_safe(fltr, tmp, head, hash) { hash 3899 drivers/net/ethernet/broadcom/bnxt/bnxt.c hlist_del(&fltr->hash); hash 11094 drivers/net/ethernet/broadcom/bnxt/bnxt.c hlist_for_each_entry_rcu(fltr, head, hash) { hash 11116 drivers/net/ethernet/broadcom/bnxt/bnxt.c hlist_add_head_rcu(&new_fltr->hash, head); hash 11141 drivers/net/ethernet/broadcom/bnxt/bnxt.c hlist_for_each_entry_safe(fltr, tmp, head, hash) { hash 11163 drivers/net/ethernet/broadcom/bnxt/bnxt.c hlist_del_rcu(&fltr->hash); hash 1096 drivers/net/ethernet/broadcom/bnxt/bnxt.h struct hlist_node hash; hash 911 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c hlist_for_each_entry_rcu(fltr, head, hash) { hash 940 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c hlist_for_each_entry_rcu(fltr, head, hash) { hash 651 drivers/net/ethernet/cavium/liquidio/lio_core.c u32 hash = be32_to_cpu(*hash_be); hash 653 drivers/net/ethernet/cavium/liquidio/lio_core.c skb_set_hash(skb, hash, PKT_HASH_TYPE_L4); hash 735 drivers/net/ethernet/cavium/thunder/nicvf_main.c u32 hash; hash 744 drivers/net/ethernet/cavium/thunder/nicvf_main.c hash = cqe_rx->rss_tag; hash 748 drivers/net/ethernet/cavium/thunder/nicvf_main.c hash = cqe_rx->rss_tag; hash 752 drivers/net/ethernet/cavium/thunder/nicvf_main.c hash = 0; hash 755 drivers/net/ethernet/cavium/thunder/nicvf_main.c skb_set_hash(skb, hash, hash_type); hash 241 drivers/net/ethernet/chelsio/cxgb3/l2t.c int hash = arp_hash(e->addr, e->ifindex, d); hash 243 drivers/net/ethernet/chelsio/cxgb3/l2t.c for (p = &d->l2tab[hash].first; *p; p = &(*p)->next) hash 309 drivers/net/ethernet/chelsio/cxgb3/l2t.c int hash; hash 331 drivers/net/ethernet/chelsio/cxgb3/l2t.c hash = arp_hash(addr, ifidx, d); hash 334 drivers/net/ethernet/chelsio/cxgb3/l2t.c for (e = d->l2tab[hash].first; e; e = e->next) hash 347 drivers/net/ethernet/chelsio/cxgb3/l2t.c e->next = d->l2tab[hash].first; hash 348 drivers/net/ethernet/chelsio/cxgb3/l2t.c d->l2tab[hash].first = e; hash 406 drivers/net/ethernet/chelsio/cxgb3/l2t.c int hash = arp_hash(addr, ifidx, d); hash 409 drivers/net/ethernet/chelsio/cxgb3/l2t.c for (e = d->l2tab[hash].first; e; e = e->next) hash 289 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int hash = 0, octet, bit, i = 0, c; hash 293 drivers/net/ethernet/chelsio/cxgb3/xgmac.c hash ^= (c & 1) << i; hash 297 drivers/net/ethernet/chelsio/cxgb3/xgmac.c return hash; hash 323 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int hash = hash_hw_addr(ha->addr); hash 325 drivers/net/ethernet/chelsio/cxgb3/xgmac.c if (hash < 32) hash 326 drivers/net/ethernet/chelsio/cxgb3/xgmac.c hash_lo |= (1 << hash); hash 328 drivers/net/ethernet/chelsio/cxgb3/xgmac.c hash_hi |= (1 << (hash - 32)); hash 80 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c int hash; hash 86 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c hash = clip_addr_hash(ctbl, addr, v6); hash 89 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c list_for_each_entry(cte, &ctbl->hash_list[hash], list) { hash 114 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c list_add_tail(&ce->list, &ctbl->hash_list[hash]); hash 153 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c int hash; hash 159 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c hash = clip_addr_hash(ctbl, addr, v6); hash 162 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c list_for_each_entry(cte, &ctbl->hash_list[hash], list) { hash 1183 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h u32 hash:1; /* 0 => wild-card, 1 => exact-match */ hash 1810 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h const u8 **addr, u16 *idx, u64 *hash, bool sleep_ok); hash 1922 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h u64 *hash, bool sleep_ok); hash 252 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fconf = fs->hash ? adapter->params.tp.filter_mask : hash 354 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c u64 *pkts, u64 *bytes, bool hash) hash 363 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (is_hashfilter(adapter) && hash) { hash 432 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c u64 *hitcnt, u64 *bytecnt, bool hash) hash 436 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c return get_filter_count(adapter, fidx, hitcnt, bytecnt, hash); hash 733 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if ((f->fs.hash || is_t6(adap->params.chip)) && f->fs.type) hash 1261 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->hash) { hash 1526 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs && fs->hash) { hash 102 drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c u16 *idx, u64 *hash, bool sleep_ok) hash 107 drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c naddr, addr, idx, hash, sleep_ok); hash 663 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->hash = is_filter_exact_match(adap, fs); hash 664 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c if (fs->hash) { hash 759 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c flower_entry->fs.hash); hash 804 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c ch_flower->fs.hash); hash 227 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h u64 *hitcnt, u64 *bytecnt, bool hash); hash 287 drivers/net/ethernet/chelsio/cxgb4/l2t.c for (p = &d->l2tab[e->hash].first; *p; p = &(*p)->next) hash 329 drivers/net/ethernet/chelsio/cxgb4/l2t.c for (p = &d->l2tab[e->hash].first; *p; p = &(*p)->next) hash 429 drivers/net/ethernet/chelsio/cxgb4/l2t.c int hash = addr_hash(d, addr, addr_len, ifidx); hash 444 drivers/net/ethernet/chelsio/cxgb4/l2t.c for (e = d->l2tab[hash].first; e; e = e->next) hash 462 drivers/net/ethernet/chelsio/cxgb4/l2t.c e->hash = hash; hash 468 drivers/net/ethernet/chelsio/cxgb4/l2t.c e->next = d->l2tab[hash].first; hash 469 drivers/net/ethernet/chelsio/cxgb4/l2t.c d->l2tab[hash].first = e; hash 542 drivers/net/ethernet/chelsio/cxgb4/l2t.c int hash = addr_hash(d, addr, addr_len, ifidx); hash 545 drivers/net/ethernet/chelsio/cxgb4/l2t.c for (e = d->l2tab[hash].first; e; e = e->next) hash 84 drivers/net/ethernet/chelsio/cxgb4/l2t.h u16 hash; /* hash bucket the entry is on */ hash 7966 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c const u8 **addr, u16 *idx, u64 *hash, bool sleep_ok) hash 8021 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c else if (hash) hash 8022 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c *hash |= (1ULL << hash 8201 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c c.u.hash.hashvec = cpu_to_be64(vec); hash 2236 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h } hash; hash 1529 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c u64 *hash, bool sleep_ok) hash 1583 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c else if (hash) hash 1584 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c *hash |= (1ULL << hash_mac_addr(addr[offset+i])); hash 1752 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c cmd.u.hash.hashvec = cpu_to_be64(vec); hash 2209 drivers/net/ethernet/emulex/benet/be_cmds.c memcpy(req->hash, rss_hkey, RSS_HASH_KEY_LEN); hash 2210 drivers/net/ethernet/emulex/benet/be_cmds.c be_dws_cpu_to_le(req->hash, sizeof(req->hash)); hash 1220 drivers/net/ethernet/emulex/benet/be_cmds.h u32 hash[10]; hash 829 drivers/net/ethernet/ethoc.c u32 hash[2] = { 0, 0 }; hash 853 drivers/net/ethernet/ethoc.c hash[0] = 0xffffffff; hash 854 drivers/net/ethernet/ethoc.c hash[1] = 0xffffffff; hash 859 drivers/net/ethernet/ethoc.c hash[bit >> 5] |= 1 << (bit & 0x1f); hash 863 drivers/net/ethernet/ethoc.c ethoc_write(priv, ETH_HASH0, hash[0]); hash 864 drivers/net/ethernet/ethoc.c ethoc_write(priv, ETH_HASH1, hash[1]); hash 152 drivers/net/ethernet/freescale/enetc/enetc_pf.c u32 *hash) hash 157 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_port_wr(&si->hw, ENETC_PSIUMHFR0(si_idx, err), *hash); hash 158 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_port_wr(&si->hw, ENETC_PSIUMHFR1(si_idx), *(hash + 1)); hash 160 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_port_wr(&si->hw, ENETC_PSIMMHFR0(si_idx, err), *hash); hash 161 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_port_wr(&si->hw, ENETC_PSIMMHFR1(si_idx), *(hash + 1)); hash 275 drivers/net/ethernet/freescale/enetc/enetc_pf.c u32 *hash) hash 277 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_port_wr(hw, ENETC_PSIVHFR0(si_idx), *hash); hash 278 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_port_wr(hw, ENETC_PSIVHFR1(si_idx), *(hash + 1)); hash 3066 drivers/net/ethernet/freescale/fec_main.c unsigned char hash; hash 3098 drivers/net/ethernet/freescale/fec_main.c hash = (crc >> (32 - FEC_HASH_BITS)) & 0x3f; hash 3100 drivers/net/ethernet/freescale/fec_main.c if (hash > 31) hash 3101 drivers/net/ethernet/freescale/fec_main.c hash_high |= 1 << (hash - 32); hash 3103 drivers/net/ethernet/freescale/fec_main.c hash_low |= 1 << hash; hash 224 drivers/net/ethernet/freescale/fman/fman_mac.h static inline void free_hash_table(struct eth_hash_t *hash) hash 229 drivers/net/ethernet/freescale/fman/fman_mac.h if (hash) { hash 230 drivers/net/ethernet/freescale/fman/fman_mac.h if (hash->lsts) { hash 231 drivers/net/ethernet/freescale/fman/fman_mac.h for (i = 0; i < hash->size; i++) { hash 233 drivers/net/ethernet/freescale/fman/fman_mac.h dequeue_addr_from_hash_entry(&hash->lsts[i]); hash 237 drivers/net/ethernet/freescale/fman/fman_mac.h dequeue_addr_from_hash_entry(&hash-> hash 242 drivers/net/ethernet/freescale/fman/fman_mac.h kfree(hash->lsts); hash 245 drivers/net/ethernet/freescale/fman/fman_mac.h kfree(hash); hash 252 drivers/net/ethernet/freescale/fman/fman_mac.h struct eth_hash_t *hash; hash 255 drivers/net/ethernet/freescale/fman/fman_mac.h hash = kmalloc_array(size, sizeof(struct eth_hash_t *), GFP_KERNEL); hash 256 drivers/net/ethernet/freescale/fman/fman_mac.h if (!hash) hash 259 drivers/net/ethernet/freescale/fman/fman_mac.h hash->size = size; hash 261 drivers/net/ethernet/freescale/fman/fman_mac.h hash->lsts = kmalloc_array(hash->size, sizeof(struct list_head), hash 263 drivers/net/ethernet/freescale/fman/fman_mac.h if (!hash->lsts) { hash 264 drivers/net/ethernet/freescale/fman/fman_mac.h kfree(hash); hash 268 drivers/net/ethernet/freescale/fman/fman_mac.h for (i = 0; i < hash->size; i++) hash 269 drivers/net/ethernet/freescale/fman/fman_mac.h INIT_LIST_HEAD(&hash->lsts[i]); hash 271 drivers/net/ethernet/freescale/fman/fman_mac.h return hash; hash 915 drivers/net/ethernet/freescale/fman/fman_memac.c u32 hash; hash 928 drivers/net/ethernet/freescale/fman/fman_memac.c hash = get_mac_addr_hash_code(addr) & HASH_CTRL_ADDR_MASK; hash 938 drivers/net/ethernet/freescale/fman/fman_memac.c &memac->multicast_addr_hash->lsts[hash]); hash 939 drivers/net/ethernet/freescale/fman/fman_memac.c iowrite32be(hash | HASH_CTRL_MCAST_EN, ®s->hashtable_ctrl); hash 977 drivers/net/ethernet/freescale/fman/fman_memac.c u32 hash; hash 985 drivers/net/ethernet/freescale/fman/fman_memac.c hash = get_mac_addr_hash_code(addr) & HASH_CTRL_ADDR_MASK; hash 987 drivers/net/ethernet/freescale/fman/fman_memac.c list_for_each(pos, &memac->multicast_addr_hash->lsts[hash]) { hash 997 drivers/net/ethernet/freescale/fman/fman_memac.c if (list_empty(&memac->multicast_addr_hash->lsts[hash])) hash 998 drivers/net/ethernet/freescale/fman/fman_memac.c iowrite32be(hash & ~HASH_CTRL_MCAST_EN, hash 536 drivers/net/ethernet/freescale/fman/fman_tgec.c u32 crc = 0xFFFFFFFF, hash; hash 553 drivers/net/ethernet/freescale/fman/fman_tgec.c hash = (crc >> TGEC_HASH_MCAST_SHIFT) & TGEC_HASH_ADR_MSK; hash 563 drivers/net/ethernet/freescale/fman/fman_tgec.c &tgec->multicast_addr_hash->lsts[hash]); hash 564 drivers/net/ethernet/freescale/fman/fman_tgec.c iowrite32be((hash | TGEC_HASH_MCAST_EN), ®s->hashtable_ctrl); hash 617 drivers/net/ethernet/freescale/fman/fman_tgec.c u32 crc = 0xFFFFFFFF, hash; hash 629 drivers/net/ethernet/freescale/fman/fman_tgec.c hash = (crc >> TGEC_HASH_MCAST_SHIFT) & TGEC_HASH_ADR_MSK; hash 631 drivers/net/ethernet/freescale/fman/fman_tgec.c list_for_each(pos, &tgec->multicast_addr_hash->lsts[hash]) { hash 641 drivers/net/ethernet/freescale/fman/fman_tgec.c if (list_empty(&tgec->multicast_addr_hash->lsts[hash])) hash 642 drivers/net/ethernet/freescale/fman/fman_tgec.c iowrite32be((hash & ~TGEC_HASH_MCAST_EN), hash 1752 drivers/net/ethernet/intel/i40e/i40e_txrx.c u32 hash; hash 1761 drivers/net/ethernet/intel/i40e/i40e_txrx.c hash = le32_to_cpu(rx_desc->wb.qword0.hi_dword.rss); hash 1762 drivers/net/ethernet/intel/i40e/i40e_txrx.c skb_set_hash(skb, hash, i40e_ptype_to_htype(rx_ptype)); hash 1056 drivers/net/ethernet/intel/iavf/iavf_txrx.c u32 hash; hash 1065 drivers/net/ethernet/intel/iavf/iavf_txrx.c hash = le32_to_cpu(rx_desc->wb.qword0.hi_dword.rss); hash 1066 drivers/net/ethernet/intel/iavf/iavf_txrx.c skb_set_hash(skb, hash, iavf_ptype_to_htype(rx_ptype)); hash 868 drivers/net/ethernet/intel/ice/ice_txrx.c u32 hash; hash 877 drivers/net/ethernet/intel/ice/ice_txrx.c hash = le32_to_cpu(nic_mdid->rss_hash); hash 878 drivers/net/ethernet/intel/ice/ice_txrx.c skb_set_hash(skb, hash, ice_ptype_to_htype(rx_ptype)); hash 2542 drivers/net/ethernet/marvell/skge.h const u8 *hash) hash 2544 drivers/net/ethernet/marvell/skge.h xm_write16(hw, port, reg, (u16)hash[0] | ((u16)hash[1] << 8)); hash 2545 drivers/net/ethernet/marvell/skge.h xm_write16(hw, port, reg+2, (u16)hash[2] | ((u16)hash[3] << 8)); hash 2546 drivers/net/ethernet/marvell/skge.h xm_write16(hw, port, reg+4, (u16)hash[4] | ((u16)hash[5] << 8)); hash 2547 drivers/net/ethernet/marvell/skge.h xm_write16(hw, port, reg+6, (u16)hash[6] | ((u16)hash[7] << 8)); hash 108 drivers/net/ethernet/mellanox/mlx4/mcg.c u16 *hash, u8 op_mod) hash 118 drivers/net/ethernet/mellanox/mlx4/mcg.c *hash = imm; hash 703 drivers/net/ethernet/mellanox/mlx4/mcg.c u16 hash; hash 714 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_GID_HASH(dev, mailbox, &hash, op_mod); hash 720 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_dbg(dev, "Hash for %pI6 is %04x\n", gid, hash); hash 722 drivers/net/ethernet/mellanox/mlx4/mcg.c *index = hash; hash 731 drivers/net/ethernet/mellanox/mlx4/mcg.c if (*index != hash) { hash 363 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c &tracer->hash[mlx5_tracer_message_hash(tracer_event->string_event.tmsn)]; hash 448 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c &tracer->hash[mlx5_tracer_message_hash(tracer_event->string_event.tmsn)]; hash 524 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c hlist_for_each_entry_safe(str_frmt, n, &tracer->hash[i], hlist) hash 105 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h struct hlist_head hash[MESSAGE_HASH_SIZE]; hash 71 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c #define mlx5e_for_each_hash_arfs_rule(hn, tmp, hash, j) \ hash 73 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c hlist_for_each_entry_safe(hn, tmp, &hash[j], hlist) hash 77 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c static void mlx5e_add_l2_to_hash(struct hlist_head *hash, u8 *addr) hash 83 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c hlist_for_each_entry(hn, &hash[ix], hlist) hash 101 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c hlist_add_head(&hn->hlist, &hash[ix]); hash 423 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c #define mlx5e_for_each_hash_node(hn, tmp, hash, i) \ hash 425 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c hlist_for_each_entry_safe(hn, tmp, &hash[i], hlist) hash 2751 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(modify_tir_in, in, bitmask.hash, 1); hash 604 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct hlist_head *hash = esw->mc_table; hash 612 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw_mc = l2addr_hash_find(hash, mac, struct esw_mc_addr); hash 616 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw_mc = l2addr_hash_add(hash, mac, struct esw_mc_addr, GFP_KERNEL); hash 644 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct hlist_head *hash = esw->mc_table; hash 652 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw_mc = l2addr_hash_find(hash, mac, struct esw_mc_addr); hash 693 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct hlist_head *hash; hash 702 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c hash = is_uc ? vport->uc_list : vport->mc_list; hash 703 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c for_each_l2hash_node(node, tmp, hash, hi) { hash 726 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct hlist_head *hash; hash 740 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c hash = is_uc ? vport->uc_list : vport->mc_list; hash 742 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c for_each_l2hash_node(node, tmp, hash, hi) { hash 764 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c addr = l2addr_hash_find(hash, mac_list[i], struct vport_addr); hash 788 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c addr = l2addr_hash_add(hash, mac_list[i], struct vport_addr, hash 811 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct hlist_head *hash; hash 815 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c hash = vport->mc_list; hash 820 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c addr = l2addr_hash_find(hash, mac, struct vport_addr); hash 826 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c addr = l2addr_hash_add(hash, mac, struct vport_addr, hash 22 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c u32 hash; hash 24 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c hash = jhash_1word(flow_act->action, 0); hash 25 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c hash = jhash((const void *)&flow_act->vlan, hash 26 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c sizeof(flow_act->vlan), hash); hash 27 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c hash = jhash((const void *)&dest->vport.num, hash 28 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c sizeof(dest->vport.num), hash); hash 29 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c hash = jhash((const void *)&dest->vport.vhca_id, hash 30 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c sizeof(dest->vport.num), hash); hash 31 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c return hash; hash 66 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c struct rhash_head hash; hash 94 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c .head_offset = offsetof(struct mlx5_fpga_ipsec_sa_ctx, hash), hash 710 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c err = rhashtable_lookup_insert_fast(&fipsec->sa_hash, &sa_ctx->hash, hash 743 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c WARN_ON(rhashtable_remove_fast(&fipsec->sa_hash, &sa_ctx->hash, hash 840 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c WARN_ON(rhashtable_remove_fast(&fipsec->sa_hash, &sa_ctx->hash, hash 1505 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c &fpga_xfrm->sa_ctx->hash, rhash_sa)); hash 1511 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c &fpga_xfrm->sa_ctx->hash, rhash_sa); hash 1521 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c &fpga_xfrm->sa_ctx->hash, hash 1529 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c &fpga_xfrm->sa_ctx->hash, hash 214 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c .head_offset = offsetof(struct fs_fte, hash), hash 222 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c .head_offset = offsetof(struct mlx5_flow_group, hash), hash 545 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c &fte->hash, hash 585 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c &fg->hash, hash 602 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c &fte->hash, hash 692 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c &fg->hash, hash 1588 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c rhl_for_each_entry_rcu(g, tmp, list, hash) { hash 205 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h struct rhash_head hash; hash 240 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h struct rhlist_head hash; hash 74 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c struct hlist_head hash[MLX5_L2_ADDR_HASH_SIZE]; hash 129 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c WARN_ON(!hlist_empty(mpfs->hash)); hash 146 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c l2addr = l2addr_hash_find(mpfs->hash, mac, struct l2table_node); hash 156 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c l2addr = l2addr_hash_add(mpfs->hash, mac, struct l2table_node, GFP_KERNEL); hash 193 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c l2addr = l2addr_hash_find(mpfs->hash, mac, struct l2table_node); hash 48 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h #define for_each_l2hash_node(hn, tmp, hash, i) \ hash 50 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h hlist_for_each_entry_safe(hn, tmp, &(hash)[i], hlist) hash 52 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h #define l2addr_hash_find(hash, mac, type) ({ \ hash 57 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h hlist_for_each_entry(ptr, &(hash)[ix], node.hlist) \ hash 67 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h #define l2addr_hash_add(hash, mac, type, gfp) ({ \ hash 74 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h hlist_add_head(&ptr->node.hlist, &(hash)[ix]);\ hash 295 drivers/net/ethernet/netronome/nfp/nfp_net.h u32 hash; hash 303 drivers/net/ethernet/netronome/nfp/nfp_net.h __be32 hash; hash 1637 drivers/net/ethernet/netronome/nfp/nfp_net_common.c unsigned int type, __be32 *hash) hash 1653 drivers/net/ethernet/netronome/nfp/nfp_net_common.c meta->hash = get_unaligned_be32(hash); hash 1666 drivers/net/ethernet/netronome/nfp/nfp_net_common.c &rx_hash->hash); hash 1993 drivers/net/ethernet/netronome/nfp/nfp_net_common.c skb_set_hash(skb, meta.hash, meta.hash_type); hash 62 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c u32 hash, struct ionic_admin_ctx *ctx) hash 31 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.h u32 hash, struct ionic_admin_ctx *ctx); hash 589 drivers/net/ethernet/qlogic/qede/qede_fp.c u32 hash = 0; hash 596 drivers/net/ethernet/qlogic/qede/qede_fp.c hash = le32_to_cpu(rss_hash); hash 598 drivers/net/ethernet/qlogic/qede/qede_fp.c skb_set_hash(skb, hash, hash_type); hash 4297 drivers/net/ethernet/sfc/ef10.c unsigned int match_pri, hash; hash 4323 drivers/net/ethernet/sfc/ef10.c hash = efx_filter_spec_hash(spec); hash 4349 drivers/net/ethernet/sfc/ef10.c i = (hash + depth) & (HUNT_FILTER_TBL_ROWS - 1); hash 4466 drivers/net/ethernet/sfc/ef10.c i = (hash + depth) & (HUNT_FILTER_TBL_ROWS - 1); hash 3166 drivers/net/ethernet/sfc/efx.c u32 hash = efx_filter_spec_hash(spec); hash 3171 drivers/net/ethernet/sfc/efx.c return &efx->rps_hash_table[hash % EFX_ARFS_HASH_TABLE_SIZE]; hash 2373 drivers/net/ethernet/sfc/falcon/farch.c unsigned int hash = ef4_farch_filter_hash(key); hash 2380 drivers/net/ethernet/sfc/falcon/farch.c unsigned int i = hash & (table->size - 1); hash 2434 drivers/net/ethernet/sfc/farch.c unsigned int hash = efx_farch_filter_hash(key); hash 2441 drivers/net/ethernet/sfc/farch.c unsigned int i = hash & (table->size - 1); hash 735 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c static void dwmac4_update_vlan_hash(struct mac_device_info *hw, u32 hash, hash 740 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c writel(hash, ioaddr + GMAC_VLAN_HASH_TABLE); hash 742 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c if (hash) { hash 558 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c static void dwxgmac2_update_vlan_hash(struct mac_device_info *hw, u32 hash, hash 563 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c writel(hash, ioaddr + XGMAC_VLAN_HASH_TABLE); hash 565 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c if (hash) { hash 261 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static int dwxgmac2_get_rx_hash(struct dma_desc *p, u32 *hash, hash 282 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c *hash = le32_to_cpu(p->des1); hash 90 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*get_rx_hash)(struct dma_desc *p, u32 *hash, hash 359 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*update_vlan_hash)(struct mac_device_info *hw, u32 hash, hash 3483 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c u32 hash; hash 3640 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (!stmmac_get_rx_hash(priv, p, &hash, &hash_type)) hash 3641 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c skb_set_hash(skb, hash, hash_type); hash 4257 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c u32 crc, hash = 0; hash 4263 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c hash |= (1 << crc); hash 4266 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c return stmmac_update_vlan_hash(priv, priv->hw, hash, is_double); hash 303 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (tpriv->packet->exp_hash && !skb->hash) hash 496 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c u32 hash, hash_nr; hash 499 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c hash = bitrev32(~crc32_le(~0, addr, 6)) >> mc_offset; hash 500 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c hash_nr = hash >> 5; hash 501 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c hash = 1 << (hash & 0x1f); hash 506 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (((nr >> 5) == hash_nr) && ((1 << (nr & 0x1f)) == hash)) hash 6288 drivers/net/ethernet/sun/niu.c static void niu_load_hash_xmac(struct niu *np, u16 *hash) hash 6293 drivers/net/ethernet/sun/niu.c nw64_mac(XMAC_HASH_TBL(i), hash[i]); hash 6296 drivers/net/ethernet/sun/niu.c static void niu_load_hash_bmac(struct niu *np, u16 *hash) hash 6301 drivers/net/ethernet/sun/niu.c nw64_mac(BMAC_HASH_TBL(i), hash[i]); hash 6304 drivers/net/ethernet/sun/niu.c static void niu_load_hash(struct niu *np, u16 *hash) hash 6307 drivers/net/ethernet/sun/niu.c niu_load_hash_xmac(np, hash); hash 6309 drivers/net/ethernet/sun/niu.c niu_load_hash_bmac(np, hash); hash 6318 drivers/net/ethernet/sun/niu.c u16 hash[16] = { 0, }; hash 6365 drivers/net/ethernet/sun/niu.c hash[i] = 0xffff; hash 6371 drivers/net/ethernet/sun/niu.c hash[crc >> 4] |= (1 << (15 - (crc & 0xf))); hash 6376 drivers/net/ethernet/sun/niu.c niu_load_hash(np, hash); hash 207 drivers/net/ethernet/sun/sunvnet.c unsigned int hash = vnet_hashfn(skb->data); hash 208 drivers/net/ethernet/sun/sunvnet.c struct hlist_head *hp = &vp->port_hash[hash]; hash 211 drivers/net/ethernet/sun/sunvnet.c hlist_for_each_entry_rcu(port, hp, hash) { hash 471 drivers/net/ethernet/sun/sunvnet.c INIT_HLIST_NODE(&port->hash); hash 486 drivers/net/ethernet/sun/sunvnet.c hlist_add_head_rcu(&port->hash, hash 523 drivers/net/ethernet/sun/sunvnet.c hlist_del_rcu(&port->hash); hash 63 drivers/net/ethernet/sun/sunvnet_common.h struct hlist_node hash; hash 790 drivers/net/ethernet/tehuti/tehuti.c u8 hash; hash 809 drivers/net/ethernet/tehuti/tehuti.c hash = 0; hash 811 drivers/net/ethernet/tehuti/tehuti.c hash ^= ha->addr[i]; hash 812 drivers/net/ethernet/tehuti/tehuti.c reg = regRX_MCST_HASH0 + ((hash >> 5) << 2); hash 814 drivers/net/ethernet/tehuti/tehuti.c val |= (1 << (hash % 32)); hash 312 drivers/net/ethernet/ti/cpmac.c u32 mbp, bit, hash[2] = { 0, }; hash 344 drivers/net/ethernet/ti/cpmac.c hash[bit / 32] |= 1 << (bit % 32); hash 347 drivers/net/ethernet/ti/cpmac.c cpmac_write(priv->regs, CPMAC_MAC_HASH_LO, hash[0]); hash 348 drivers/net/ethernet/ti/cpmac.c cpmac_write(priv->regs, CPMAC_MAC_HASH_HI, hash[1]); hash 568 drivers/net/ethernet/ti/davinci_emac.c u32 hash; hash 571 drivers/net/ethernet/ti/davinci_emac.c hash = 0; hash 575 drivers/net/ethernet/ti/davinci_emac.c hash ^= (tmpval >> 2) ^ (tmpval << 4); hash 577 drivers/net/ethernet/ti/davinci_emac.c hash ^= (tmpval >> 4) ^ (tmpval << 2); hash 579 drivers/net/ethernet/ti/davinci_emac.c hash ^= (tmpval >> 6) ^ (tmpval); hash 582 drivers/net/ethernet/ti/davinci_emac.c return hash & 0x3F; hash 533 drivers/net/ethernet/ti/tlan.h u8 hash; hash 535 drivers/net/ethernet/ti/tlan.h hash = (a[0]^a[3]); /* & 077 */ hash 536 drivers/net/ethernet/ti/tlan.h hash ^= ((a[0]^a[3])>>6); /* & 003 */ hash 537 drivers/net/ethernet/ti/tlan.h hash ^= ((a[1]^a[4])<<2); /* & 074 */ hash 538 drivers/net/ethernet/ti/tlan.h hash ^= ((a[1]^a[4])>>4); /* & 017 */ hash 539 drivers/net/ethernet/ti/tlan.h hash ^= ((a[2]^a[5])<<4); /* & 060 */ hash 540 drivers/net/ethernet/ti/tlan.h hash ^= ((a[2]^a[5])>>2); /* & 077 */ hash 542 drivers/net/ethernet/ti/tlan.h return hash & 077; hash 558 drivers/net/ethernet/toshiba/spider_net.c u8 hash; hash 569 drivers/net/ethernet/toshiba/spider_net.c hash = (crc >> 27); hash 570 drivers/net/ethernet/toshiba/spider_net.c hash <<= 3; hash 571 drivers/net/ethernet/toshiba/spider_net.c hash |= crc & 7; hash 572 drivers/net/ethernet/toshiba/spider_net.c hash &= 0xff; hash 574 drivers/net/ethernet/toshiba/spider_net.c return hash; hash 589 drivers/net/ethernet/toshiba/spider_net.c u8 hash; hash 609 drivers/net/ethernet/toshiba/spider_net.c hash = spider_net_get_multicast_hash(netdev, ha->addr); hash 610 drivers/net/ethernet/toshiba/spider_net.c set_bit(hash, bitmask); hash 1188 drivers/net/ethernet/tundra/tsi108_eth.c u32 hash, crc; hash 1191 drivers/net/ethernet/tundra/tsi108_eth.c hash = crc >> 23; hash 1192 drivers/net/ethernet/tundra/tsi108_eth.c __set_bit(hash, &data->mc_hash[0]); hash 129 drivers/net/geneve.c __u32 hash; hash 132 drivers/net/geneve.c hash = geneve_net_vni_hash(vni); hash 133 drivers/net/geneve.c vni_list_head = &gs->vni_list[hash]; hash 148 drivers/net/geneve.c __u32 hash; hash 151 drivers/net/geneve.c hash = geneve_net_vni_hash(vni); hash 152 drivers/net/geneve.c vni_list_head = &gs->vni_list[hash]; hash 655 drivers/net/geneve.c __u32 hash; hash 683 drivers/net/geneve.c hash = geneve_net_vni_hash(vni); hash 684 drivers/net/geneve.c hlist_add_head_rcu(&node->hlist, &gs->vni_list[hash]); hash 254 drivers/net/hyperv/netvsc_drv.c u32 hash, pkt_proto = 0; hash 284 drivers/net/hyperv/netvsc_drv.c hash = jhash2((u32 *)&flow.addrs.v4addrs, 2, hashrnd); hash 286 drivers/net/hyperv/netvsc_drv.c hash = jhash2((u32 *)&flow.addrs.v6addrs, 8, hashrnd); hash 290 drivers/net/hyperv/netvsc_drv.c __skb_set_sw_hash(skb, hash, false); hash 293 drivers/net/hyperv/netvsc_drv.c return hash; hash 531 drivers/net/hyperv/netvsc_drv.c u32 hash; hash 597 drivers/net/hyperv/netvsc_drv.c hash = skb_get_hash_raw(skb); hash 598 drivers/net/hyperv/netvsc_drv.c if (hash != 0 && net->real_num_tx_queues > 1) { hash 604 drivers/net/hyperv/netvsc_drv.c *hash_info = hash; hash 77 drivers/net/ipvlan/ipvlan_core.c u8 hash; hash 79 drivers/net/ipvlan/ipvlan_core.c hash = is_v6 ? ipvlan_get_v6_hash(iaddr) : hash 81 drivers/net/ipvlan/ipvlan_core.c hlist_for_each_entry_rcu(addr, &port->hlhead[hash], hlnode) hash 90 drivers/net/ipvlan/ipvlan_core.c u8 hash; hash 92 drivers/net/ipvlan/ipvlan_core.c hash = (addr->atype == IPVL_IPV6) ? hash 96 drivers/net/ipvlan/ipvlan_core.c hlist_add_head_rcu(&addr->hlnode, &port->hlhead[hash]); hash 219 drivers/net/ipvlan/ipvlan_core.c u32 hash = jhash_1word(__get_unaligned_cpu32(addr+2), hash 222 drivers/net/ipvlan/ipvlan_core.c return hash & IPVLAN_MAC_FILTER_MASK; hash 267 drivers/net/macvlan.c unsigned int hash; hash 277 drivers/net/macvlan.c hash = mc_hash(vlan, eth->h_dest); hash 278 drivers/net/macvlan.c if (!test_bit(hash, vlan->mc_filter)) hash 452 drivers/net/macvlan.c unsigned int hash; hash 471 drivers/net/macvlan.c hash = mc_hash(NULL, eth->h_dest); hash 472 drivers/net/macvlan.c if (test_bit(hash, port->mc_filter)) hash 92 drivers/net/phy/dp83640.c u16 hash; hash 275 drivers/net/phy/dp83640.c rxts->hash = p->msgtype & 0x0fff; hash 805 drivers/net/phy/dp83640.c u16 *seqid, hash; hash 842 drivers/net/phy/dp83640.c hash = ether_crc(DP83640_PACKET_HASH_LEN, hash 844 drivers/net/phy/dp83640.c if (rxts->hash != hash) hash 143 drivers/net/ppp/pppoe.c unsigned char hash = 0; hash 147 drivers/net/ppp/pppoe.c hash ^= addr[i]; hash 149 drivers/net/ppp/pppoe.c hash ^= (__force __u32)sid >> i; hash 151 drivers/net/ppp/pppoe.c hash ^= hash >> i; hash 153 drivers/net/ppp/pppoe.c return hash & PPPOE_HASH_MASK; hash 164 drivers/net/ppp/pppoe.c int hash = hash_item(sid, addr); hash 167 drivers/net/ppp/pppoe.c ret = pn->hash_table[hash]; hash 181 drivers/net/ppp/pppoe.c int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote); hash 184 drivers/net/ppp/pppoe.c ret = pn->hash_table[hash]; hash 193 drivers/net/ppp/pppoe.c po->next = pn->hash_table[hash]; hash 194 drivers/net/ppp/pppoe.c pn->hash_table[hash] = po; hash 202 drivers/net/ppp/pppoe.c int hash = hash_item(sid, addr); hash 205 drivers/net/ppp/pppoe.c ret = pn->hash_table[hash]; hash 206 drivers/net/ppp/pppoe.c src = &pn->hash_table[hash]; hash 1074 drivers/net/ppp/pppoe.c int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote); hash 1077 drivers/net/ppp/pppoe.c while (++hash < PPPOE_HASH_SIZE) { hash 1078 drivers/net/ppp/pppoe.c po = pn->hash_table[hash]; hash 92 drivers/net/team/team_mode_loadbalance.c #define LB_HTPM_PORT_BY_HASH(lp_priv, hash) \ hash 93 drivers/net/team/team_mode_loadbalance.c (lb_priv)->ex->tx_hash_to_port_mapping[hash].port hash 95 drivers/net/team/team_mode_loadbalance.c #define LB_HTPM_OPT_INST_INFO_BY_HASH(lp_priv, hash) \ hash 96 drivers/net/team/team_mode_loadbalance.c (lb_priv)->ex->tx_hash_to_port_mapping[hash].opt_inst_info hash 123 drivers/net/team/team_mode_loadbalance.c unsigned char hash) hash 125 drivers/net/team/team_mode_loadbalance.c int port_index = team_num_to_port_index(team, hash); hash 134 drivers/net/team/team_mode_loadbalance.c unsigned char hash) hash 138 drivers/net/team/team_mode_loadbalance.c port = rcu_dereference_bh(LB_HTPM_PORT_BY_HASH(lb_priv, hash)); hash 142 drivers/net/team/team_mode_loadbalance.c return lb_hash_select_tx_port(team, lb_priv, skb, hash); hash 207 drivers/net/team/team_mode_loadbalance.c unsigned char hash) hash 215 drivers/net/team/team_mode_loadbalance.c hash_stats = &pcpu_stats->hash_stats[hash]; hash 227 drivers/net/team/team_mode_loadbalance.c unsigned char hash; hash 230 drivers/net/team/team_mode_loadbalance.c hash = lb_get_skb_hash(lb_priv, skb); hash 232 drivers/net/team/team_mode_loadbalance.c port = select_tx_port_func(team, lb_priv, skb, hash); hash 237 drivers/net/team/team_mode_loadbalance.c lb_update_tx_stats(tx_bytes, lb_priv, get_lb_port_priv(port), hash); hash 368 drivers/net/team/team_mode_loadbalance.c unsigned char hash = info->array_index; hash 370 drivers/net/team/team_mode_loadbalance.c LB_HTPM_OPT_INST_INFO_BY_HASH(lb_priv, hash) = info; hash 379 drivers/net/team/team_mode_loadbalance.c unsigned char hash = ctx->info->array_index; hash 381 drivers/net/team/team_mode_loadbalance.c port = LB_HTPM_PORT_BY_HASH(lb_priv, hash); hash 391 drivers/net/team/team_mode_loadbalance.c unsigned char hash = ctx->info->array_index; hash 396 drivers/net/team/team_mode_loadbalance.c rcu_assign_pointer(LB_HTPM_PORT_BY_HASH(lb_priv, hash), hash 408 drivers/net/team/team_mode_loadbalance.c unsigned char hash = info->array_index; hash 410 drivers/net/team/team_mode_loadbalance.c lb_priv->ex->stats.info[hash].opt_inst_info = info; hash 417 drivers/net/team/team_mode_loadbalance.c unsigned char hash = ctx->info->array_index; hash 419 drivers/net/team/team_mode_loadbalance.c ctx->data.bin_val.ptr = &lb_priv->ex->stats.info[hash].stats; hash 1178 drivers/net/thunderbolt.c u32 hash; hash 1184 drivers/net/thunderbolt.c hash = jhash2((u32 *)xd->local_uuid, 4, 0); hash 1185 drivers/net/thunderbolt.c memcpy(dev->dev_addr + 1, &hash, sizeof(hash)); hash 1186 drivers/net/thunderbolt.c hash = jhash2((u32 *)xd->local_uuid, 4, hash); hash 1187 drivers/net/thunderbolt.c dev->dev_addr[5] = hash & 0xff; hash 553 drivers/net/tun.c static inline void tun_flow_save_rps_rxhash(struct tun_flow_entry *e, u32 hash) hash 555 drivers/net/tun.c if (unlikely(e->rps_rxhash != hash)) hash 556 drivers/net/tun.c e->rps_rxhash = hash; hash 202 drivers/net/usb/catc.c #define f5u011_mchash_async(catc, hash) catc_ctrl_async(catc, USB_DIR_OUT, SetRxMode, 0, 2, &hash, 8, NULL) hash 62 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c struct brcmf_flowring_hash *hash; hash 85 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c hash = flow->hash; hash 87 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c if ((sta || (memcmp(hash[hash_idx].mac, mac, ETH_ALEN) == 0)) && hash 88 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c (hash[hash_idx].fifo == fifo) && hash 89 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c (hash[hash_idx].ifidx == ifidx)) { hash 97 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c return hash[hash_idx].flowid; hash 107 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c struct brcmf_flowring_hash *hash; hash 130 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c hash = flow->hash; hash 132 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c if ((hash[hash_idx].ifidx == BRCMF_FLOWRING_INVALID_IFIDX) && hash 133 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c (is_zero_ether_addr(hash[hash_idx].mac))) { hash 152 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c memcpy(hash[hash_idx].mac, mac, ETH_ALEN); hash 153 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c hash[hash_idx].fifo = fifo; hash 154 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c hash[hash_idx].ifidx = ifidx; hash 155 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c hash[hash_idx].flowid = i; hash 174 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c return flow->hash[ring->hash_id].fifo; hash 245 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c flow->hash[hash_idx].ifidx = BRCMF_FLOWRING_INVALID_IFIDX; hash 246 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c eth_zero_addr(flow->hash[hash_idx].mac); hash 354 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c return flow->hash[hash_idx].ifidx; hash 370 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c for (i = 0; i < ARRAY_SIZE(flow->hash); i++) hash 371 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c flow->hash[i].ifidx = BRCMF_FLOWRING_INVALID_IFIDX; hash 417 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c for (i = 0; i < ARRAY_SIZE(flow->hash); i++) { hash 418 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c if (flow->hash[i].ifidx == ifidx) { hash 419 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c flowid = flow->hash[i].flowid; hash 436 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c struct brcmf_flowring_hash *hash; hash 456 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c hash = flow->hash; hash 458 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c if ((sta || (memcmp(hash[i].mac, peer, ETH_ALEN) == 0)) && hash 459 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c (hash[i].ifidx == ifidx)) { hash 460 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c flowid = flow->hash[i].flowid; hash 40 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.h struct brcmf_flowring_hash hash[BRCMF_FLOWRING_HASHSIZE]; hash 1450 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_flowring_hash *hash; hash 1478 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c hash = &msgbuf->flow->hash[ring->hash_id]; hash 1483 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c hash->ifidx, hash->fifo, hash->mac); hash 2627 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 hash; hash 2720 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c hash = (target_gains->gm_gain << 8) | hash 2728 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (hash == tbl_iqcal_gainparams_lcnphy[band_idx][j][0]) { hash 1518 drivers/net/wireless/zydas/zd1211rw/zd_chip.c struct zd_mc_hash *hash) hash 1521 drivers/net/wireless/zydas/zd1211rw/zd_chip.c { CR_GROUP_HASH_P1, hash->low }, hash 1522 drivers/net/wireless/zydas/zd1211rw/zd_chip.c { CR_GROUP_HASH_P2, hash->high }, hash 942 drivers/net/wireless/zydas/zd1211rw/zd_chip.h static inline void zd_mc_clear(struct zd_mc_hash *hash) hash 944 drivers/net/wireless/zydas/zd1211rw/zd_chip.h hash->low = 0; hash 948 drivers/net/wireless/zydas/zd1211rw/zd_chip.h hash->high = 0x80000000; hash 951 drivers/net/wireless/zydas/zd1211rw/zd_chip.h static inline void zd_mc_add_all(struct zd_mc_hash *hash) hash 953 drivers/net/wireless/zydas/zd1211rw/zd_chip.h hash->low = hash->high = 0xffffffff; hash 956 drivers/net/wireless/zydas/zd1211rw/zd_chip.h static inline void zd_mc_add_addr(struct zd_mc_hash *hash, u8 *addr) hash 960 drivers/net/wireless/zydas/zd1211rw/zd_chip.h hash->low |= 1 << i; hash 962 drivers/net/wireless/zydas/zd1211rw/zd_chip.h hash->high |= 1 << (i-32); hash 967 drivers/net/wireless/zydas/zd1211rw/zd_chip.h struct zd_mc_hash *hash); hash 264 drivers/net/wireless/zydas/zd1211rw/zd_mac.c struct zd_mc_hash hash; hash 265 drivers/net/wireless/zydas/zd1211rw/zd_mac.c zd_mc_clear(&hash); hash 266 drivers/net/wireless/zydas/zd1211rw/zd_mac.c return zd_chip_set_multicast_hash(&mac->chip, &hash); hash 1205 drivers/net/wireless/zydas/zd1211rw/zd_mac.c struct zd_mc_hash hash; hash 1208 drivers/net/wireless/zydas/zd1211rw/zd_mac.c zd_mc_clear(&hash); hash 1212 drivers/net/wireless/zydas/zd1211rw/zd_mac.c zd_mc_add_addr(&hash, ha->addr); hash 1215 drivers/net/wireless/zydas/zd1211rw/zd_mac.c return hash.low | ((u64)hash.high << 32); hash 1226 drivers/net/wireless/zydas/zd1211rw/zd_mac.c struct zd_mc_hash hash = { hash 1246 drivers/net/wireless/zydas/zd1211rw/zd_mac.c zd_mc_add_all(&hash); hash 1251 drivers/net/wireless/zydas/zd1211rw/zd_mac.c mac->multicast_hash = hash; hash 1254 drivers/net/wireless/zydas/zd1211rw/zd_mac.c zd_chip_set_multicast_hash(&mac->chip, &hash); hash 297 drivers/net/xen-netback/common.h struct xenvif_hash hash; hash 50 drivers/net/xen-netback/hash.c spin_lock_irqsave(&vif->hash.cache.lock, flags); hash 54 drivers/net/xen-netback/hash.c list_for_each_entry_rcu(entry, &vif->hash.cache.list, link) { hash 64 drivers/net/xen-netback/hash.c new->seq = atomic_inc_return(&vif->hash.cache.seq); hash 65 drivers/net/xen-netback/hash.c list_add_rcu(&new->link, &vif->hash.cache.list); hash 67 drivers/net/xen-netback/hash.c if (++vif->hash.cache.count > xenvif_hash_cache_size) { hash 69 drivers/net/xen-netback/hash.c vif->hash.cache.count--; hash 74 drivers/net/xen-netback/hash.c spin_unlock_irqrestore(&vif->hash.cache.lock, flags); hash 85 drivers/net/xen-netback/hash.c val = xen_netif_toeplitz_hash(vif->hash.key, hash 86 drivers/net/xen-netback/hash.c sizeof(vif->hash.key), hash 103 drivers/net/xen-netback/hash.c spin_lock_irqsave(&vif->hash.cache.lock, flags); hash 105 drivers/net/xen-netback/hash.c list_for_each_entry_rcu(entry, &vif->hash.cache.list, link) { hash 107 drivers/net/xen-netback/hash.c vif->hash.cache.count--; hash 111 drivers/net/xen-netback/hash.c spin_unlock_irqrestore(&vif->hash.cache.lock, flags); hash 131 drivers/net/xen-netback/hash.c list_for_each_entry_rcu(entry, &vif->hash.cache.list, link) { hash 135 drivers/net/xen-netback/hash.c entry->seq = atomic_inc_return(&vif->hash.cache.seq); hash 152 drivers/net/xen-netback/hash.c u32 hash = 0; hash 154 drivers/net/xen-netback/hash.c u32 flags = vif->hash.flags; hash 198 drivers/net/xen-netback/hash.c hash = xenvif_find_hash(vif, data, sizeof(data)); hash 206 drivers/net/xen-netback/hash.c hash = xenvif_find_hash(vif, data, sizeof(data)); hash 222 drivers/net/xen-netback/hash.c hash = xenvif_find_hash(vif, data, sizeof(data)); hash 230 drivers/net/xen-netback/hash.c hash = xenvif_find_hash(vif, data, sizeof(data)); hash 241 drivers/net/xen-netback/hash.c __skb_set_sw_hash(skb, hash, type == PKT_HASH_TYPE_L4); hash 255 drivers/net/xen-netback/hash.c vif->hash.alg = alg; hash 262 drivers/net/xen-netback/hash.c if (vif->hash.alg == XEN_NETIF_CTRL_HASH_ALGORITHM_NONE) hash 281 drivers/net/xen-netback/hash.c if (vif->hash.alg == XEN_NETIF_CTRL_HASH_ALGORITHM_NONE) hash 284 drivers/net/xen-netback/hash.c vif->hash.flags = flags; hash 291 drivers/net/xen-netback/hash.c u8 *key = vif->hash.key; hash 326 drivers/net/xen-netback/hash.c vif->hash.size = size; hash 327 drivers/net/xen-netback/hash.c memset(vif->hash.mapping[vif->hash.mapping_sel], 0, hash 336 drivers/net/xen-netback/hash.c u32 *mapping = vif->hash.mapping[!vif->hash.mapping_sel]; hash 346 drivers/net/xen-netback/hash.c if ((off + len < off) || (off + len > vif->hash.size) || hash 362 drivers/net/xen-netback/hash.c memcpy(mapping, vif->hash.mapping[vif->hash.mapping_sel], hash 363 drivers/net/xen-netback/hash.c vif->hash.size * sizeof(*mapping)); hash 377 drivers/net/xen-netback/hash.c vif->hash.mapping_sel = !vif->hash.mapping_sel; hash 387 drivers/net/xen-netback/hash.c switch (vif->hash.alg) { hash 399 drivers/net/xen-netback/hash.c if (vif->hash.flags) { hash 402 drivers/net/xen-netback/hash.c if (vif->hash.flags & XEN_NETIF_CTRL_HASH_TYPE_IPV4) hash 404 drivers/net/xen-netback/hash.c if (vif->hash.flags & XEN_NETIF_CTRL_HASH_TYPE_IPV4_TCP) hash 406 drivers/net/xen-netback/hash.c if (vif->hash.flags & XEN_NETIF_CTRL_HASH_TYPE_IPV6) hash 408 drivers/net/xen-netback/hash.c if (vif->hash.flags & XEN_NETIF_CTRL_HASH_TYPE_IPV6_TCP) hash 424 drivers/net/xen-netback/hash.c seq_printf(m, "%02x ", vif->hash.key[i]); hash 429 drivers/net/xen-netback/hash.c if (vif->hash.size != 0) { hash 430 drivers/net/xen-netback/hash.c const u32 *mapping = vif->hash.mapping[vif->hash.mapping_sel]; hash 434 drivers/net/xen-netback/hash.c for (i = 0; i < vif->hash.size; ) { hash 438 drivers/net/xen-netback/hash.c if (i + n >= vif->hash.size) hash 439 drivers/net/xen-netback/hash.c n = vif->hash.size - i; hash 457 drivers/net/xen-netback/hash.c BUG_ON(vif->hash.cache.count); hash 459 drivers/net/xen-netback/hash.c spin_lock_init(&vif->hash.cache.lock); hash 460 drivers/net/xen-netback/hash.c INIT_LIST_HEAD(&vif->hash.cache.list); hash 154 drivers/net/xen-netback/interface.c unsigned int size = vif->hash.size; hash 163 drivers/net/xen-netback/interface.c if (vif->hash.alg == XEN_NETIF_CTRL_HASH_ALGORITHM_NONE) hash 172 drivers/net/xen-netback/interface.c return vif->hash.mapping[vif->hash.mapping_sel] hash 224 drivers/net/xen-netback/interface.c if (vif->hash.alg == XEN_NETIF_CTRL_HASH_ALGORITHM_NONE) hash 957 drivers/net/xen-netback/netback.c switch (extra->u.hash.type) { hash 974 drivers/net/xen-netback/netback.c *(u32 *)extra->u.hash.value, hash 266 drivers/net/xen-netback/rx.c extra->u.hash.algorithm = hash 270 drivers/net/xen-netback/rx.c extra->u.hash.type = hash 275 drivers/net/xen-netback/rx.c extra->u.hash.type = hash 280 drivers/net/xen-netback/rx.c *(uint32_t *)extra->u.hash.value = skb_get_hash_raw(skb); hash 549 drivers/net/xen-netfront.c u32 hash; hash 556 drivers/net/xen-netfront.c hash = skb_get_hash(skb); hash 557 drivers/net/xen-netfront.c queue_idx = hash % num_queues; hash 276 drivers/nvme/host/tcp.c static inline void nvme_tcp_ddgst_final(struct ahash_request *hash, hash 279 drivers/nvme/host/tcp.c ahash_request_set_crypt(hash, NULL, (u8 *)dgst, 0); hash 280 drivers/nvme/host/tcp.c crypto_ahash_final(hash); hash 283 drivers/nvme/host/tcp.c static inline void nvme_tcp_ddgst_update(struct ahash_request *hash, hash 290 drivers/nvme/host/tcp.c ahash_request_set_crypt(hash, &sg, NULL, len); hash 291 drivers/nvme/host/tcp.c crypto_ahash_update(hash); hash 294 drivers/nvme/host/tcp.c static inline void nvme_tcp_hdgst(struct ahash_request *hash, hash 300 drivers/nvme/host/tcp.c ahash_request_set_crypt(hash, &sg, pdu + len, len); hash 301 drivers/nvme/host/tcp.c crypto_ahash_digest(hash); hash 217 drivers/nvme/target/tcp.c static inline void nvmet_tcp_hdgst(struct ahash_request *hash, hash 223 drivers/nvme/target/tcp.c ahash_request_set_crypt(hash, &sg, pdu + len, len); hash 224 drivers/nvme/target/tcp.c crypto_ahash_digest(hash); hash 355 drivers/nvme/target/tcp.c static void nvmet_tcp_ddgst(struct ahash_request *hash, hash 358 drivers/nvme/target/tcp.c ahash_request_set_crypt(hash, cmd->req.sg, hash 360 drivers/nvme/target/tcp.c crypto_ahash_digest(hash); hash 47 drivers/pcmcia/ds.c u32 hash; hash 58 drivers/pcmcia/ds.c hash = crc32(0, did->prod_id[i], strlen(did->prod_id[i])); hash 59 drivers/pcmcia/ds.c if (hash == did->prod_id_hash[i]) hash 65 drivers/pcmcia/ds.c did->prod_id_hash[i], hash); hash 939 drivers/pcmcia/ds.c u32 hash[4] = { 0, 0, 0, 0}; hash 950 drivers/pcmcia/ds.c hash[i] = crc32(0, p_dev->prod_id[i], strlen(p_dev->prod_id[i])); hash 966 drivers/pcmcia/ds.c hash[0], hash 967 drivers/pcmcia/ds.c hash[1], hash 968 drivers/pcmcia/ds.c hash[2], hash 969 drivers/pcmcia/ds.c hash[3])) hash 1080 drivers/pcmcia/ds.c u32 hash[4] = { 0, 0, 0, 0}; hash 1086 drivers/pcmcia/ds.c hash[i] = crc32(0, p_dev->prod_id[i], hash 1095 drivers/pcmcia/ds.c hash[0], hash[1], hash[2], hash[3]); hash 100 drivers/s390/block/dasd_devmap.c int hash, i; hash 102 drivers/s390/block/dasd_devmap.c hash = 0; hash 104 drivers/s390/block/dasd_devmap.c hash += *bus_id; hash 105 drivers/s390/block/dasd_devmap.c return hash & 0xff; hash 413 drivers/s390/block/dasd_devmap.c int hash; hash 420 drivers/s390/block/dasd_devmap.c hash = dasd_hash_busid(bus_id); hash 421 drivers/s390/block/dasd_devmap.c list_for_each_entry(tmp, &dasd_hashlists[hash], list) hash 432 drivers/s390/block/dasd_devmap.c list_add(&new->list, &dasd_hashlists[hash]); hash 448 drivers/s390/block/dasd_devmap.c int hash; hash 452 drivers/s390/block/dasd_devmap.c hash = dasd_hash_busid(bus_id); hash 453 drivers/s390/block/dasd_devmap.c list_for_each_entry(tmp, &dasd_hashlists[hash], list) { hash 109 drivers/scsi/fnic/fnic_scsi.c u32 hash = sc->request->tag & (FNIC_IO_LOCKS - 1); hash 111 drivers/scsi/fnic/fnic_scsi.c return &fnic->io_req_lock[hash]; hash 171 drivers/scsi/libiscsi_tcp.c segment->hash = NULL; hash 200 drivers/scsi/libiscsi_tcp.c if (segment->hash && copied) { hash 215 drivers/scsi/libiscsi_tcp.c ahash_request_set_crypt(segment->hash, &sg, NULL, copied); hash 216 drivers/scsi/libiscsi_tcp.c crypto_ahash_update(segment->hash); hash 261 drivers/scsi/libiscsi_tcp.c if (segment->hash) { hash 262 drivers/scsi/libiscsi_tcp.c ahash_request_set_crypt(segment->hash, NULL, hash 264 drivers/scsi/libiscsi_tcp.c crypto_ahash_final(segment->hash); hash 314 drivers/scsi/libiscsi_tcp.c iscsi_tcp_dgst_header(struct ahash_request *hash, const void *hdr, hash 320 drivers/scsi/libiscsi_tcp.c ahash_request_set_crypt(hash, &sg, digest, hdrlen); hash 321 drivers/scsi/libiscsi_tcp.c crypto_ahash_digest(hash); hash 346 drivers/scsi/libiscsi_tcp.c iscsi_segment_done_fn_t *done, struct ahash_request *hash) hash 352 drivers/scsi/libiscsi_tcp.c if (hash) { hash 353 drivers/scsi/libiscsi_tcp.c segment->hash = hash; hash 354 drivers/scsi/libiscsi_tcp.c crypto_ahash_init(hash); hash 361 drivers/scsi/libiscsi_tcp.c struct ahash_request *hash) hash 363 drivers/scsi/libiscsi_tcp.c __iscsi_segment_init(segment, size, done, hash); hash 374 drivers/scsi/libiscsi_tcp.c struct ahash_request *hash) hash 379 drivers/scsi/libiscsi_tcp.c __iscsi_segment_init(segment, size, done, hash); hash 114 drivers/scsi/snic/snic_scsi.c u32 hash = snic_cmd_tag(sc) & (SNIC_IO_LOCKS - 1); hash 116 drivers/scsi/snic/snic_scsi.c return &snic->io_req_lock[hash]; hash 76 drivers/soc/bcm/brcmstb/pm/aon_defs.h uint32_t hash[BRCMSTB_HASH_LEN / 4]; hash 218 drivers/staging/exfat/exfat_super.c qstr->hash = full_name_hash(dentry, qstr->name, hash 228 drivers/staging/exfat/exfat_super.c unsigned long hash; hash 233 drivers/staging/exfat/exfat_super.c hash = init_name_hash(dentry); hash 235 drivers/staging/exfat/exfat_super.c hash = partial_name_hash(nls_upper(sb, *name++), hash); hash 236 drivers/staging/exfat/exfat_super.c qstr->hash = end_name_hash(hash); hash 1373 drivers/target/iscsi/iscsi_target.c struct ahash_request *hash, hash 1384 drivers/target/iscsi/iscsi_target.c crypto_ahash_init(hash); hash 1392 drivers/target/iscsi/iscsi_target.c ahash_request_set_crypt(hash, sg, NULL, cur_len); hash 1393 drivers/target/iscsi/iscsi_target.c crypto_ahash_update(hash); hash 1405 drivers/target/iscsi/iscsi_target.c ahash_request_set_crypt(hash, &pad_sg, (u8 *)&data_crc, hash 1407 drivers/target/iscsi/iscsi_target.c crypto_ahash_finup(hash); hash 1409 drivers/target/iscsi/iscsi_target.c ahash_request_set_crypt(hash, NULL, (u8 *)&data_crc, 0); hash 1410 drivers/target/iscsi/iscsi_target.c crypto_ahash_final(hash); hash 1416 drivers/target/iscsi/iscsi_target.c static void iscsit_do_crypto_hash_buf(struct ahash_request *hash, hash 1427 drivers/target/iscsi/iscsi_target.c ahash_request_set_crypt(hash, sg, data_crc, payload_length + padding); hash 1429 drivers/target/iscsi/iscsi_target.c crypto_ahash_digest(hash); hash 35 drivers/target/tcm_fc/tcm_fc.h struct hlist_node hash; /* linkage in ft_sess_hash table */ hash 59 drivers/target/tcm_fc/tcm_fc.h struct hlist_head hash[FT_SESS_HASH_SIZE]; /* list of sessions */ hash 70 drivers/target/tcm_fc/tfc_sess.c INIT_HLIST_HEAD(&tport->hash[i]); hash 172 drivers/target/tcm_fc/tfc_sess.c head = &tport->hash[ft_sess_hash(port_id)]; hash 173 drivers/target/tcm_fc/tfc_sess.c hlist_for_each_entry_rcu(sess, head, hash) { hash 194 drivers/target/tcm_fc/tfc_sess.c struct hlist_head *head = &tport->hash[ft_sess_hash(sess->port_id)]; hash 197 drivers/target/tcm_fc/tfc_sess.c hlist_add_head_rcu(&sess->hash, head); hash 217 drivers/target/tcm_fc/tfc_sess.c head = &tport->hash[ft_sess_hash(port_id)]; hash 218 drivers/target/tcm_fc/tfc_sess.c hlist_for_each_entry_rcu(sess, head, hash) hash 250 drivers/target/tcm_fc/tfc_sess.c hlist_del_rcu(&sess->hash); hash 266 drivers/target/tcm_fc/tfc_sess.c head = &tport->hash[ft_sess_hash(port_id)]; hash 267 drivers/target/tcm_fc/tfc_sess.c hlist_for_each_entry_rcu(sess, head, hash) { hash 292 drivers/target/tcm_fc/tfc_sess.c for (head = tport->hash; hash 293 drivers/target/tcm_fc/tfc_sess.c head < &tport->hash[FT_SESS_HASH_SIZE]; head++) { hash 294 drivers/target/tcm_fc/tfc_sess.c hlist_for_each_entry_rcu(sess, head, hash) { hash 523 drivers/usb/host/ohci-q.c int hash; hash 575 drivers/usb/host/ohci-q.c hash = TD_HASH_FUNC (td->td_dma); hash 576 drivers/usb/host/ohci-q.c td->td_hash = ohci->td_hash [hash]; hash 577 drivers/usb/host/ohci-q.c ohci->td_hash [hash] = td; hash 45 drivers/vhost/vsock.c struct hlist_node hash; hash 68 drivers/vhost/vsock.c hash_for_each_possible_rcu(vhost_vsock_hash, vsock, hash, guest_cid) { hash 641 drivers/vhost/vsock.c hash_del_rcu(&vsock->hash); hash 694 drivers/vhost/vsock.c hash_del_rcu(&vsock->hash); hash 697 drivers/vhost/vsock.c hash_add_rcu(vhost_vsock_hash, &vsock->hash, vsock->guest_cid); hash 220 fs/adfs/dir.c unsigned long hash; hash 228 fs/adfs/dir.c hash = init_name_hash(parent); hash 230 fs/adfs/dir.c hash = partial_name_hash(adfs_tolower(*name++), hash); hash 231 fs/adfs/dir.c qstr->hash = end_name_hash(hash); hash 49 fs/affs/namei.c unsigned long hash; hash 57 fs/affs/namei.c hash = init_name_hash(dentry); hash 60 fs/affs/namei.c hash = partial_name_hash(toupper(*name), hash); hash 61 fs/affs/namei.c qstr->hash = end_name_hash(hash); hash 160 fs/affs/namei.c u32 hash; hash 162 fs/affs/namei.c hash = len = min(len, AFFSNAMEMAX); hash 164 fs/affs/namei.c hash = (hash * 13 + toupper(*name++)) & 0x7ff; hash 166 fs/affs/namei.c return hash % AFFS_SB(sb)->s_hashsize; hash 132 fs/autofs/root.c unsigned int hash = name->hash; hash 156 fs/autofs/root.c if (active->d_name.hash != hash) hash 187 fs/autofs/root.c unsigned int hash = name->hash; hash 216 fs/autofs/root.c if (expiring->d_name.hash != hash) hash 229 fs/autofs/waitq.c if (wq->name.hash == qstr->hash && hash 402 fs/autofs/waitq.c qstr.hash = full_name_hash(dentry, name, qstr.len); hash 894 fs/block_dev.c inode = ilookup5(blockdev_superblock, hash(dev), bdev_test, &dev); hash 906 fs/block_dev.c inode = iget5_locked(blockdev_superblock, hash(dev), hash 26 fs/btrfs/props.c static const struct hlist_head *find_prop_handlers_by_hash(const u64 hash) hash 30 fs/btrfs/props.c h = &prop_handlers_ht[hash_min(hash, BTRFS_PROP_HANDLERS_HT_BITS)]; hash 44 fs/btrfs/props.c u64 hash = btrfs_name_hash(name, strlen(name)); hash 46 fs/btrfs/props.c handlers = find_prop_handlers_by_hash(hash); hash 1219 fs/btrfs/tree-checker.c u64 hash; hash 1225 fs/btrfs/tree-checker.c hash = hash_extent_data_ref(root_objectid, owner, offset); hash 1226 fs/btrfs/tree-checker.c if (hash != key->offset) { hash 1229 fs/btrfs/tree-checker.c hash, key->offset); hash 1789 fs/ceph/dir.c unsigned hash; hash 1794 fs/ceph/dir.c return dn->d_name.hash; hash 1798 fs/ceph/dir.c hash = ceph_str_hash(dci->i_dir_layout.dl_dir_hash, hash 1801 fs/ceph/dir.c return hash; hash 32 fs/ceph/export.c u32 hash; hash 62 fs/ceph/export.c sfh->hash = ceph_dentry_hash(dir, dentry); hash 73 fs/ceph/export.c sfh->hash = 0; hash 226 fs/ceph/export.c req->r_args.lookupino.hash = hash 227 fs/ceph/export.c cpu_to_le32(sfh->hash); hash 255 fs/ceph/export.c vino.ino, vino.snap, sfh->parent_ino, sfh->hash, err); hash 1262 fs/ceph/inode.c dname.hash = full_name_hash(parent, dname.name, dname.len); hash 1630 fs/ceph/inode.c dname.hash = full_name_hash(parent, dname.name, dname.len); hash 1636 fs/ceph/inode.c u32 hash = ceph_str_hash(ci->i_dir_layout.dl_dir_hash, hash 1638 fs/ceph/inode.c hash = ceph_frag_value(hash); hash 1639 fs/ceph/inode.c if (hash != last_hash) hash 1641 fs/ceph/inode.c last_hash = hash; hash 1642 fs/ceph/inode.c rde->offset = ceph_make_fpos(hash, fpos_offset++, true); hash 888 fs/ceph/mds_client.c u32 hash = req->r_direct_hash; hash 943 fs/ceph/mds_client.c hash = ceph_dentry_hash(dir, req->r_dentry); hash 953 fs/ceph/mds_client.c (int)hash, mode); hash 962 fs/ceph/mds_client.c ceph_choose_frag(ci, hash, &frag, &found); hash 3911 fs/ceph/mds_client.c dname.hash = full_name_hash(parent, dname.name, dname.len); hash 457 fs/cifs/dfs_cache.c add_cache_entry(unsigned int hash, const char *path, hash 466 fs/cifs/dfs_cache.c hlist_add_head_rcu(&ce->ce_hlist, &dfs_cache_htable[hash]); hash 483 fs/cifs/dfs_cache.c static struct dfs_cache_entry *__find_cache_entry(unsigned int hash, hash 490 fs/cifs/dfs_cache.c hlist_for_each_entry_rcu(ce, &dfs_cache_htable[hash], ce_hlist) { hash 517 fs/cifs/dfs_cache.c unsigned int *hash) hash 519 fs/cifs/dfs_cache.c *hash = cache_entry_hash(path, strlen(path)); hash 520 fs/cifs/dfs_cache.c return __find_cache_entry(*hash, path); hash 810 fs/cifs/dir.c unsigned long hash; hash 814 fs/cifs/dir.c hash = init_name_hash(dentry); hash 820 fs/cifs/dir.c hash = partial_name_hash(cifs_toupper(c), hash); hash 822 fs/cifs/dir.c q->hash = end_name_hash(hash); hash 722 fs/cifs/inode.c __u64 hash = 0; hash 725 fs/cifs/inode.c hash = (hash + (__u64) *str++) * hash_mult; hash 727 fs/cifs/inode.c return hash; hash 1026 fs/cifs/inode.c unsigned long hash; hash 1033 fs/cifs/inode.c hash = cifs_uniqueid_to_ino_t(fattr->cf_uniqueid); hash 1035 fs/cifs/inode.c inode = iget5_locked(sb, hash, cifs_find_inode, cifs_init_inode, fattr); hash 1053 fs/cifs/inode.c inode->i_ino = hash; hash 65 fs/coda/cnode.c unsigned long hash = coda_f2i(fid); hash 67 fs/coda/cnode.c inode = iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid); hash 75 fs/coda/cnode.c inode->i_ino = hash; hash 122 fs/coda/cnode.c unsigned long hash = coda_f2i(newfid); hash 130 fs/coda/cnode.c inode->i_ino = hash; hash 131 fs/coda/cnode.c __insert_inode_hash(inode, hash); hash 138 fs/coda/cnode.c unsigned long hash = coda_f2i(fid); hash 140 fs/coda/cnode.c inode = ilookup5(sb, hash, coda_test_inode, fid); hash 251 fs/crypto/fname.c u32 hash, u32 minor_hash, hash 276 fs/crypto/fname.c if (hash) { hash 277 fs/crypto/fname.c digested_name.hash = hash; hash 280 fs/crypto/fname.c digested_name.hash = 0; hash 390 fs/crypto/fname.c fname->hash = n->hash; hash 150 fs/dax.c unsigned long hash; hash 163 fs/dax.c hash = hash_long((unsigned long)xas->xa ^ index, DAX_WAIT_TABLE_BITS); hash 164 fs/dax.c return wait_table + hash; hash 101 fs/dcache.c static inline struct hlist_bl_head *d_hash(unsigned int hash) hash 103 fs/dcache.c return dentry_hashtable + (hash >> d_hash_shift); hash 110 fs/dcache.c unsigned int hash) hash 112 fs/dcache.c hash += (unsigned long) parent / L1_CACHE_BYTES; hash 113 fs/dcache.c return in_lookup_hashtable + hash_32(hash, IN_LOOKUP_SHIFT); hash 487 fs/dcache.c b = d_hash(dentry->d_name.hash); hash 1718 fs/dcache.c dentry->d_name.hash = name->hash; hash 2272 fs/dcache.c if (dentry->d_name.hash != hashlen_hash(hashlen)) hash 2339 fs/dcache.c unsigned int hash = name->hash; hash 2340 fs/dcache.c struct hlist_bl_head *b = d_hash(hash); hash 2369 fs/dcache.c if (dentry->d_name.hash != hash) hash 2407 fs/dcache.c name->hash = full_name_hash(dir, name->name, name->len); hash 2460 fs/dcache.c struct hlist_bl_head *b = d_hash(entry->d_name.hash); hash 2516 fs/dcache.c unsigned int hash = name->hash; hash 2517 fs/dcache.c struct hlist_bl_head *b = in_lookup_hash(parent, hash); hash 2569 fs/dcache.c if (dentry->d_name.hash != hash) hash 2595 fs/dcache.c if (unlikely(dentry->d_name.hash != hash)) hash 2625 fs/dcache.c dentry->d_name.hash); hash 2698 fs/dcache.c unsigned int hash = entry->d_name.hash; hash 2707 fs/dcache.c if (alias->d_name.hash != hash) hash 33 fs/dlm/dir.c int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash) hash 40 fs/dlm/dir.c node = (hash >> 16) % ls->ls_total_weight; hash 201 fs/dlm/dir.c uint32_t hash, bucket; hash 204 fs/dlm/dir.c hash = jhash(name, len, 0); hash 205 fs/dlm/dir.c bucket = hash & (ls->ls_rsbtbl_size - 1); hash 16 fs/dlm/dir.h int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash); hash 544 fs/dlm/lock.c uint32_t hash, uint32_t b, hash 669 fs/dlm/lock.c r->res_hash = hash; hash 723 fs/dlm/lock.c uint32_t hash, uint32_t b, hash 801 fs/dlm/lock.c r->res_hash = hash; hash 819 fs/dlm/lock.c uint32_t hash, b; hash 825 fs/dlm/lock.c hash = jhash(name, len, 0); hash 826 fs/dlm/lock.c b = hash & (ls->ls_rsbtbl_size - 1); hash 828 fs/dlm/lock.c dir_nodeid = dlm_hash2nodeid(ls, hash); hash 831 fs/dlm/lock.c return find_rsb_nodir(ls, name, len, hash, b, dir_nodeid, hash 834 fs/dlm/lock.c return find_rsb_dir(ls, name, len, hash, b, dir_nodeid, hash 914 fs/dlm/lock.c uint32_t hash, b; hash 929 fs/dlm/lock.c hash = jhash(name, len, 0); hash 930 fs/dlm/lock.c b = hash & (ls->ls_rsbtbl_size - 1); hash 932 fs/dlm/lock.c dir_nodeid = dlm_hash2nodeid(ls, hash); hash 935 fs/dlm/lock.c from_nodeid, dir_nodeid, our_nodeid, hash, hash 1058 fs/dlm/lock.c r->res_hash = hash; hash 1083 fs/dlm/lock.c static void dlm_dump_rsb_hash(struct dlm_ls *ls, uint32_t hash) hash 1093 fs/dlm/lock.c if (r->res_hash == hash) hash 1103 fs/dlm/lock.c uint32_t hash, b; hash 1106 fs/dlm/lock.c hash = jhash(name, len, 0); hash 1107 fs/dlm/lock.c b = hash & (ls->ls_rsbtbl_size - 1); hash 4020 fs/dlm/lock.c uint32_t hash, b; hash 4026 fs/dlm/lock.c hash = jhash(name, len, 0); hash 4027 fs/dlm/lock.c b = hash & (ls->ls_rsbtbl_size - 1); hash 4029 fs/dlm/lock.c dir_nodeid = dlm_hash2nodeid(ls, hash); hash 4062 fs/dlm/lock.c ms->m_hash = hash; hash 4390 fs/dlm/lock.c uint32_t hash, b; hash 4422 fs/dlm/lock.c hash = jhash(name, len, 0); hash 4423 fs/dlm/lock.c b = hash & (ls->ls_rsbtbl_size - 1); hash 601 fs/ecryptfs/keystore.c char hash[ECRYPTFS_TAG_70_DIGEST_SIZE]; hash 762 fs/ecryptfs/keystore.c s->hash); hash 771 fs/ecryptfs/keystore.c s->hash[(s->j % ECRYPTFS_TAG_70_DIGEST_SIZE)]; hash 774 fs/ecryptfs/keystore.c rc = crypto_shash_digest(s->hash_desc, (u8 *)s->hash, hash 783 fs/ecryptfs/keystore.c memcpy(s->hash, s->tmp_hash, hash 62 fs/efivarfs/super.c unsigned long hash = init_name_hash(dentry); hash 70 fs/efivarfs/super.c hash = partial_name_hash(*s++, hash); hash 74 fs/efivarfs/super.c hash = partial_name_hash(tolower(*s++), hash); hash 76 fs/efivarfs/super.c qstr->hash = end_name_hash(hash); hash 520 fs/ext2/xattr.c __u32 hash = le32_to_cpu(header->h_hash); hash 527 fs/ext2/xattr.c mb_cache_entry_delete(EA_BLOCK_CACHE(inode), hash, hash 748 fs/ext2/xattr.c __u32 hash = le32_to_cpu(HDR(old_bh)->h_hash); hash 754 fs/ext2/xattr.c mb_cache_entry_delete(ea_block_cache, hash, hash 821 fs/ext2/xattr.c __u32 hash = le32_to_cpu(HDR(bh)->h_hash); hash 827 fs/ext2/xattr.c mb_cache_entry_delete(EA_BLOCK_CACHE(inode), hash, hash 861 fs/ext2/xattr.c __u32 hash = le32_to_cpu(HDR(bh)->h_hash); hash 864 fs/ext2/xattr.c error = mb_cache_entry_create(cache, GFP_NOFS, hash, bh->b_blocknr, hash 872 fs/ext2/xattr.c ea_bdebug(bh, "inserting [%x]", (int)hash); hash 927 fs/ext2/xattr.c __u32 hash = le32_to_cpu(header->h_hash); hash 933 fs/ext2/xattr.c ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); hash 935 fs/ext2/xattr.c ce = mb_cache_entry_find_first(ea_block_cache, hash); hash 992 fs/ext2/xattr.c __u32 hash = 0; hash 997 fs/ext2/xattr.c hash = (hash << NAME_HASH_SHIFT) ^ hash 998 fs/ext2/xattr.c (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^ hash 1007 fs/ext2/xattr.c hash = (hash << VALUE_HASH_SHIFT) ^ hash 1008 fs/ext2/xattr.c (hash >> (8*sizeof(hash) - VALUE_HASH_SHIFT)) ^ hash 1012 fs/ext2/xattr.c entry->e_hash = cpu_to_le32(hash); hash 1029 fs/ext2/xattr.c __u32 hash = 0; hash 1036 fs/ext2/xattr.c hash = 0; hash 1039 fs/ext2/xattr.c hash = (hash << BLOCK_HASH_SHIFT) ^ hash 1040 fs/ext2/xattr.c (hash >> (8*sizeof(hash) - BLOCK_HASH_SHIFT)) ^ hash 1044 fs/ext2/xattr.c header->h_hash = cpu_to_le32(hash); hash 389 fs/ext4/dir.c __u32 hash; hash 444 fs/ext4/dir.c int ext4_htree_store_dirent(struct file *dir_file, __u32 hash, hash 462 fs/ext4/dir.c new_fn->hash = hash; hash 478 fs/ext4/dir.c if ((new_fn->hash == fname->hash) && hash 485 fs/ext4/dir.c if (new_fn->hash < fname->hash) hash 487 fs/ext4/dir.c else if (new_fn->hash > fname->hash) hash 520 fs/ext4/dir.c ctx->pos = hash2pos(file, fname->hash, fname->minor_hash); hash 596 fs/ext4/dir.c info->curr_hash = fname->hash; hash 605 fs/ext4/dir.c info->curr_hash = fname->hash; hash 712 fs/ext4/dir.c str->hash = full_name_hash(dentry, norm, len); hash 2115 fs/ext4/ext4.h u32 hash; hash 2381 fs/ext4/ext4.h dst->hinfo.hash = src->hash; hash 2483 fs/ext4/ext4.h extern int ext4_htree_store_dirent(struct file *dir_file, __u32 hash, hash 105 fs/ext4/hash.c __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; hash 109 fs/ext4/hash.c hash = hash1 + (hash0 ^ (((int) *ucp++) * 7152373)); hash 111 fs/ext4/hash.c if (hash & 0x80000000) hash 112 fs/ext4/hash.c hash -= 0x7fffffff; hash 114 fs/ext4/hash.c hash0 = hash; hash 121 fs/ext4/hash.c __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; hash 125 fs/ext4/hash.c hash = hash1 + (hash0 ^ (((int) *scp++) * 7152373)); hash 127 fs/ext4/hash.c if (hash & 0x80000000) hash 128 fs/ext4/hash.c hash -= 0x7fffffff; hash 130 fs/ext4/hash.c hash0 = hash; hash 203 fs/ext4/hash.c __u32 hash; hash 229 fs/ext4/hash.c hash = dx_hack_hash_unsigned(name, len); hash 232 fs/ext4/hash.c hash = dx_hack_hash_signed(name, len); hash 246 fs/ext4/hash.c hash = buf[1]; hash 259 fs/ext4/hash.c hash = buf[0]; hash 263 fs/ext4/hash.c hinfo->hash = 0; hash 266 fs/ext4/hash.c hash = hash & ~1; hash 267 fs/ext4/hash.c if (hash == (EXT4_HTREE_EOF_32BIT << 1)) hash 268 fs/ext4/hash.c hash = (EXT4_HTREE_EOF_32BIT - 1) << 1; hash 269 fs/ext4/hash.c hinfo->hash = hash; hash 457 fs/ext4/ialloc.c grp = hinfo.hash; hash 1408 fs/ext4/inline.c if ((hinfo->hash < start_hash) || hash 1409 fs/ext4/inline.c ((hinfo->hash == start_hash) && hash 1416 fs/ext4/inline.c err = ext4_htree_store_dirent(dir_file, hinfo->hash, hash 204 fs/ext4/namei.c __le32 hash; hash 248 fs/ext4/namei.c u32 hash; hash 284 fs/ext4/namei.c u32 hash, ext4_lblk_t block); hash 285 fs/ext4/namei.c static int ext4_htree_next_block(struct inode *dir, __u32 hash, hash 544 fs/ext4/namei.c return le32_to_cpu(entry->hash); hash 549 fs/ext4/namei.c entry->hash = cpu_to_le32(value); hash 650 fs/ext4/namei.c name, h.hash, hash 683 fs/ext4/namei.c h.hash, (unsigned) ((char *) de hash 692 fs/ext4/namei.c printk("%*.s:%x.%u ", len, name, h.hash, hash 716 fs/ext4/namei.c ext4_lblk_t hash = i ? dx_get_hash(entries): 0; hash 717 fs/ext4/namei.c u32 range = i < count - 1? (dx_get_hash(entries + 1) - hash): ~hash; hash 719 fs/ext4/namei.c printk("%s%3u:%03u hash %8x/%8x ",levels?"":" ", i, block, hash, range); hash 758 fs/ext4/namei.c u32 hash; hash 781 fs/ext4/namei.c hash = hinfo->hash; hash 813 fs/ext4/namei.c dxtrace(printk("Look up %x", hash)); hash 828 fs/ext4/namei.c if (dx_get_hash(m) > hash) hash 840 fs/ext4/namei.c if (dx_get_hash(++at) > hash) hash 922 fs/ext4/namei.c static int ext4_htree_next_block(struct inode *dir, __u32 hash, hash 959 fs/ext4/namei.c if ((hash & 1) == 0) { hash 960 fs/ext4/namei.c if ((bhash & ~1) != hash) hash 1030 fs/ext4/namei.c if ((hinfo->hash < start_hash) || hash 1031 fs/ext4/namei.c ((hinfo->hash == start_hash) && hash 1040 fs/ext4/namei.c hinfo->hash, hinfo->minor_hash, de, hash 1048 fs/ext4/namei.c err = fscrypt_fname_disk_to_usr(dir, hinfo->hash, hash 1056 fs/ext4/namei.c hinfo->hash, hinfo->minor_hash, de, hash 1121 fs/ext4/namei.c hinfo.hash = start_hash; hash 1220 fs/ext4/namei.c map_tail->hash = h.hash; hash 1243 fs/ext4/namei.c if (p->hash < q->hash) hash 1251 fs/ext4/namei.c if (q[1].hash >= q[0].hash) hash 1259 fs/ext4/namei.c static void dx_insert_block(struct dx_frame *frame, u32 hash, ext4_lblk_t block) hash 1268 fs/ext4/namei.c dx_set_hash(new, hash); hash 1657 fs/ext4/namei.c retval = ext4_htree_next_block(dir, fname->hinfo.hash, frame, hash 1867 fs/ext4/namei.c hash2 = map[split].hash; hash 1868 fs/ext4/namei.c continued = hash2 == map[split - 1].hash; hash 1894 fs/ext4/namei.c if (hinfo->hash >= hash2) { hash 332 fs/ext4/xattr.c static void ext4_xattr_inode_set_hash(struct inode *ea_inode, u32 hash) hash 334 fs/ext4/xattr.c ea_inode->i_atime.tv_sec = hash; hash 442 fs/ext4/xattr.c u32 hash; hash 445 fs/ext4/xattr.c hash = ext4_xattr_inode_hash(EXT4_SB(ea_inode->i_sb), buffer, size); hash 446 fs/ext4/xattr.c if (hash != ext4_xattr_inode_get_hash(ea_inode)) hash 453 fs/ext4/xattr.c tmp_data = cpu_to_le32(hash); hash 1025 fs/ext4/xattr.c u32 hash; hash 1050 fs/ext4/xattr.c hash = ext4_xattr_inode_get_hash(ea_inode); hash 1052 fs/ext4/xattr.c GFP_NOFS, hash, hash 1070 fs/ext4/xattr.c hash = ext4_xattr_inode_get_hash(ea_inode); hash 1071 fs/ext4/xattr.c mb_cache_entry_delete(ea_inode_cache, hash, hash 1244 fs/ext4/xattr.c u32 hash, ref; hash 1253 fs/ext4/xattr.c hash = le32_to_cpu(BHDR(bh)->h_hash); hash 1262 fs/ext4/xattr.c mb_cache_entry_delete(ea_block_cache, hash, hash 1284 fs/ext4/xattr.c ce = mb_cache_entry_get(ea_block_cache, hash, hash 1420 fs/ext4/xattr.c struct inode *inode, u32 hash) hash 1440 fs/ext4/xattr.c ext4_xattr_inode_set_hash(ea_inode, hash); hash 1465 fs/ext4/xattr.c size_t value_len, u32 hash) hash 1475 fs/ext4/xattr.c ce = mb_cache_entry_find_first(ea_inode_cache, hash); hash 1518 fs/ext4/xattr.c u32 hash; hash 1521 fs/ext4/xattr.c hash = ext4_xattr_inode_hash(EXT4_SB(inode->i_sb), value, value_len); hash 1522 fs/ext4/xattr.c ea_inode = ext4_xattr_inode_cache_find(inode, value, value_len, hash); hash 1535 fs/ext4/xattr.c ea_inode = ext4_xattr_inode_create(handle, inode, hash); hash 1547 fs/ext4/xattr.c mb_cache_entry_create(EA_INODE_CACHE(inode), GFP_NOFS, hash, hash 1768 fs/ext4/xattr.c __le32 hash = 0; hash 1781 fs/ext4/xattr.c hash = ext4_xattr_hash_entry(here->e_name, hash 1788 fs/ext4/xattr.c hash = ext4_xattr_hash_entry(here->e_name, hash 1792 fs/ext4/xattr.c here->e_hash = hash; hash 1872 fs/ext4/xattr.c __u32 hash = le32_to_cpu(BHDR(bs->bh)->h_hash); hash 1880 fs/ext4/xattr.c mb_cache_entry_delete(ea_block_cache, hash, hash 2978 fs/ext4/xattr.c __u32 hash = le32_to_cpu(header->h_hash); hash 2985 fs/ext4/xattr.c error = mb_cache_entry_create(ea_block_cache, GFP_NOFS, hash, hash 2991 fs/ext4/xattr.c ea_bdebug(bh, "inserting [%x]", (int)hash); hash 3047 fs/ext4/xattr.c __u32 hash = le32_to_cpu(header->h_hash); hash 3055 fs/ext4/xattr.c ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); hash 3056 fs/ext4/xattr.c ce = mb_cache_entry_find_first(ea_block_cache, hash); hash 3088 fs/ext4/xattr.c __u32 hash = 0; hash 3091 fs/ext4/xattr.c hash = (hash << NAME_HASH_SHIFT) ^ hash 3092 fs/ext4/xattr.c (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^ hash 3096 fs/ext4/xattr.c hash = (hash << VALUE_HASH_SHIFT) ^ hash 3097 fs/ext4/xattr.c (hash >> (8*sizeof(hash) - VALUE_HASH_SHIFT)) ^ hash 3100 fs/ext4/xattr.c return cpu_to_le32(hash); hash 3116 fs/ext4/xattr.c __u32 hash = 0; hash 3122 fs/ext4/xattr.c hash = 0; hash 3125 fs/ext4/xattr.c hash = (hash << BLOCK_HASH_SHIFT) ^ hash 3126 fs/ext4/xattr.c (hash >> (8*sizeof(hash) - BLOCK_HASH_SHIFT)) ^ hash 3130 fs/ext4/xattr.c header->h_hash = cpu_to_le32(hash); hash 1104 fs/f2fs/dir.c str->hash = full_name_hash(dentry, norm, len); hash 74 fs/f2fs/hash.c __u32 hash; hash 83 fs/f2fs/hash.c return cpu_to_le32(fname->hash); hash 103 fs/f2fs/hash.c hash = buf[0]; hash 104 fs/f2fs/hash.c f2fs_hash = cpu_to_le32(hash & ~F2FS_HASH_COL_BIT); hash 159 fs/fat/namei_msdos.c qstr->hash = full_name_hash(dentry, msdos_name, MSDOS_NAME); hash 124 fs/fat/namei_vfat.c qstr->hash = full_name_hash(dentry, qstr->name, vfat_striptail_len(qstr)); hash 139 fs/fat/namei_vfat.c unsigned long hash; hash 144 fs/fat/namei_vfat.c hash = init_name_hash(dentry); hash 146 fs/fat/namei_vfat.c hash = partial_name_hash(nls_tolower(t, *name++), hash); hash 147 fs/fat/namei_vfat.c qstr->hash = end_name_hash(hash); hash 1186 fs/fuse/dev.c unsigned int hash; hash 1280 fs/fuse/dev.c hash = fuse_req_hash(req->in.h.unique); hash 1281 fs/fuse/dev.c list_move_tail(&req->list, &fpq->processing[hash]); hash 1785 fs/fuse/dev.c unsigned int hash = fuse_req_hash(unique); hash 1788 fs/fuse/dev.c list_for_each_entry(req, &fpq->processing[hash], list) { hash 1026 fs/fuse/dir.c name->hash = full_name_hash(dir, name->name, name->len); hash 192 fs/fuse/readdir.c name.hash = full_name_hash(parent, name.name, name.len); hash 82 fs/gfs2/dentry.c str->hash = gfs2_disk_hash(str->name, str->len); hash 409 fs/gfs2/dir.c be32_to_cpu(dent->de_hash) == name->hash && hash 785 fs/gfs2/dir.c __be64 *hash; hash 788 fs/gfs2/dir.c hash = gfs2_dir_get_hash_table(dip); hash 789 fs/gfs2/dir.c error = PTR_ERR_OR_ZERO(hash); hash 792 fs/gfs2/dir.c *leaf_out = be64_to_cpu(*(hash + index)); hash 830 fs/gfs2/dir.c index = name->hash >> (32 - ip->i_depth); hash 1017 fs/gfs2/dir.c index = name->hash >> (32 - dip->i_depth); hash 1097 fs/gfs2/dir.c str.hash = be32_to_cpu(dent->de_hash); hash 1534 fs/gfs2/dir.c u32 hash, index; hash 1541 fs/gfs2/dir.c hash = gfs2_dir_offset2hash(ctx->pos); hash 1542 fs/gfs2/dir.c index = hash >> (32 - dip->i_depth); hash 1734 fs/gfs2/dir.c index = name->hash >> (32 - ip->i_depth); hash 63 fs/gfs2/dir.h name->hash = gfs2_disk_hash(name->name, name->len); hash 71 fs/gfs2/dir.h dent->de_hash = cpu_to_be32(name->hash); hash 107 fs/gfs2/glock.c u32 hash = jhash2((u32 *)name, ht_parms.key_len / 4, 0); hash 109 fs/gfs2/glock.c return glock_wait_table + hash_32(hash, GLOCK_WAIT_TABLE_BITS); hash 692 fs/gfs2/log.c u32 hash, crc; hash 711 fs/gfs2/log.c hash = ~crc32(~0, lh, LH_V1_SIZE); hash 712 fs/gfs2/log.c lh->lh_hash = cpu_to_be32(hash); hash 558 fs/gfs2/ops_fstype.c name.hash = gfs2_disk_hash(name.name, name.len); hash 96 fs/gfs2/quota.c static inline void spin_lock_bucket(unsigned int hash) hash 98 fs/gfs2/quota.c hlist_bl_lock(&qd_hash_table[hash]); hash 101 fs/gfs2/quota.c static inline void spin_unlock_bucket(unsigned int hash) hash 103 fs/gfs2/quota.c hlist_bl_unlock(&qd_hash_table[hash]); hash 211 fs/gfs2/quota.c static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) hash 226 fs/gfs2/quota.c qd->qd_hash = hash; hash 240 fs/gfs2/quota.c static struct gfs2_quota_data *gfs2_qd_search_bucket(unsigned int hash, hash 247 fs/gfs2/quota.c hlist_bl_for_each_entry_rcu(qd, h, &qd_hash_table[hash], qd_hlist) { hash 266 fs/gfs2/quota.c unsigned int hash = gfs2_qd_hash(sdp, qid); hash 269 fs/gfs2/quota.c *qdp = qd = gfs2_qd_search_bucket(hash, sdp, qid); hash 275 fs/gfs2/quota.c new_qd = qd_alloc(hash, sdp, qid); hash 280 fs/gfs2/quota.c spin_lock_bucket(hash); hash 281 fs/gfs2/quota.c *qdp = qd = gfs2_qd_search_bucket(hash, sdp, qid); hash 285 fs/gfs2/quota.c hlist_bl_add_head_rcu(&new_qd->qd_hlist, &qd_hash_table[hash]); hash 288 fs/gfs2/quota.c spin_unlock_bucket(hash); hash 1342 fs/gfs2/quota.c unsigned int hash; hash 1396 fs/gfs2/quota.c hash = gfs2_qd_hash(sdp, qc_id); hash 1397 fs/gfs2/quota.c qd = qd_alloc(hash, sdp, qc_id); hash 1414 fs/gfs2/quota.c spin_lock_bucket(hash); hash 1415 fs/gfs2/quota.c hlist_bl_add_head_rcu(&qd->qd_hlist, &qd_hash_table[hash]); hash 1416 fs/gfs2/quota.c spin_unlock_bucket(hash); hash 123 fs/gfs2/recovery.c u32 hash, crc; hash 130 fs/gfs2/recovery.c hash = crc32(~0, lh, LH_V1_SIZE - 4); hash 131 fs/gfs2/recovery.c hash = ~crc32_le_shift(hash, 4); /* assume lh_hash is zero */ hash 133 fs/gfs2/recovery.c if (be32_to_cpu(lh->lh_hash) != hash) hash 241 fs/hfs/bnode.c int size, block, i, hash; hash 264 fs/hfs/bnode.c hash = hfs_bnode_hash(cnid); hash 265 fs/hfs/bnode.c node->next_hash = tree->node_hash[hash]; hash 266 fs/hfs/bnode.c tree->node_hash[hash] = node; hash 57 fs/hfs/string.c unsigned int hash, len = this->len; hash 62 fs/hfs/string.c hash = init_name_hash(dentry); hash 64 fs/hfs/string.c hash = partial_name_hash(caseorder[*name++], hash); hash 65 fs/hfs/string.c this->hash = end_name_hash(hash); hash 405 fs/hfsplus/bnode.c int size, block, i, hash; hash 429 fs/hfsplus/bnode.c hash = hfs_bnode_hash(cnid); hash 430 fs/hfsplus/bnode.c node->next_hash = tree->node_hash[hash]; hash 431 fs/hfsplus/bnode.c tree->node_hash[hash] = node; hash 390 fs/hfsplus/unicode.c unsigned long hash; hash 397 fs/hfsplus/unicode.c hash = init_name_hash(dentry); hash 416 fs/hfsplus/unicode.c hash = partial_name_hash(c2, hash); hash 423 fs/hfsplus/unicode.c hash = partial_name_hash(c2, hash); hash 426 fs/hfsplus/unicode.c str->hash = end_name_hash(hash); hash 18 fs/hpfs/dentry.c unsigned long hash; hash 30 fs/hpfs/dentry.c hash = init_name_hash(dentry); hash 32 fs/hpfs/dentry.c hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash); hash 33 fs/hpfs/dentry.c qstr->hash = end_name_hash(hash); hash 440 fs/hugetlbfs/inode.c u32 hash; hash 443 fs/hugetlbfs/inode.c hash = hugetlb_fault_mutex_hash(h, mapping, index, 0); hash 444 fs/hugetlbfs/inode.c mutex_lock(&hugetlb_fault_mutex_table[hash]); hash 485 fs/hugetlbfs/inode.c mutex_unlock(&hugetlb_fault_mutex_table[hash]); hash 583 fs/hugetlbfs/inode.c u32 hash; hash 647 fs/hugetlbfs/inode.c hash = hugetlb_fault_mutex_hash(h, mapping, index, addr); hash 648 fs/hugetlbfs/inode.c mutex_lock(&hugetlb_fault_mutex_table[hash]); hash 654 fs/hugetlbfs/inode.c mutex_unlock(&hugetlb_fault_mutex_table[hash]); hash 663 fs/hugetlbfs/inode.c mutex_unlock(&hugetlb_fault_mutex_table[hash]); hash 672 fs/hugetlbfs/inode.c mutex_unlock(&hugetlb_fault_mutex_table[hash]); hash 676 fs/hugetlbfs/inode.c mutex_unlock(&hugetlb_fault_mutex_table[hash]); hash 495 fs/inode.c struct hlist_head *b = inode_hashtable + hash(inode->i_sb, hashval); hash 1075 fs/inode.c struct hlist_head *head = inode_hashtable + hash(inode->i_sb, hashval); hash 1175 fs/inode.c struct hlist_head *head = inode_hashtable + hash(sb, ino); hash 1243 fs/inode.c struct hlist_head *b = inode_hashtable + hash(sb, ino); hash 1333 fs/inode.c struct hlist_head *head = inode_hashtable + hash(sb, hashval); hash 1388 fs/inode.c struct hlist_head *head = inode_hashtable + hash(sb, ino); hash 1437 fs/inode.c struct hlist_head *head = inode_hashtable + hash(sb, hashval); hash 1462 fs/inode.c struct hlist_head *head = inode_hashtable + hash(sb, ino); hash 181 fs/isofs/inode.c unsigned long hash; hash 190 fs/isofs/inode.c hash = init_name_hash(dentry); hash 193 fs/isofs/inode.c hash = partial_name_hash(c, hash); hash 195 fs/isofs/inode.c qstr->hash = end_name_hash(hash); hash 260 fs/isofs/inode.c qstr->hash = full_name_hash(dentry, name, len); hash 104 fs/jbd2/revoke.c struct list_head hash; hash 151 fs/jbd2/revoke.c hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; hash 153 fs/jbd2/revoke.c list_add(&record->hash, hash_list); hash 166 fs/jbd2/revoke.c hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; hash 170 fs/jbd2/revoke.c while (&(record->hash) != hash_list) { hash 175 fs/jbd2/revoke.c record = (struct jbd2_revoke_record_s *) record->hash.next; hash 444 fs/jbd2/revoke.c list_del(&record->hash); hash 551 fs/jbd2/revoke.c list_del(&record->hash); hash 733 fs/jbd2/revoke.c list_del(&record->hash); hash 1543 fs/jfs/namei.c unsigned long hash; hash 1546 fs/jfs/namei.c hash = init_name_hash(dir); hash 1548 fs/jfs/namei.c hash = partial_name_hash(tolower(this->name[i]), hash); hash 1549 fs/jfs/namei.c this->hash = end_name_hash(hash); hash 301 fs/kernfs/dir.c unsigned long hash = init_name_hash(ns); hash 304 fs/kernfs/dir.c hash = partial_name_hash(*name++, hash); hash 305 fs/kernfs/dir.c hash = end_name_hash(hash); hash 306 fs/kernfs/dir.c hash &= 0x7fffffffU; hash 308 fs/kernfs/dir.c if (hash < 2) hash 309 fs/kernfs/dir.c hash += 2; hash 310 fs/kernfs/dir.c if (hash >= INT_MAX) hash 311 fs/kernfs/dir.c hash = INT_MAX - 1; hash 312 fs/kernfs/dir.c return hash; hash 315 fs/kernfs/dir.c static int kernfs_name_compare(unsigned int hash, const char *name, hash 318 fs/kernfs/dir.c if (hash < kn->hash) hash 320 fs/kernfs/dir.c if (hash > kn->hash) hash 332 fs/kernfs/dir.c return kernfs_name_compare(left->hash, left->name, left->ns, right); hash 791 fs/kernfs/dir.c kn->hash = kernfs_name_hash(kn->name, kn->ns); hash 837 fs/kernfs/dir.c unsigned int hash; hash 847 fs/kernfs/dir.c hash = kernfs_name_hash(name, ns); hash 853 fs/kernfs/dir.c result = kernfs_name_compare(hash, name, ns, kn); hash 1586 fs/kernfs/dir.c kn->hash = kernfs_name_hash(kn->name, kn->ns); hash 1611 fs/kernfs/dir.c struct kernfs_node *parent, loff_t hash, struct kernfs_node *pos) hash 1615 fs/kernfs/dir.c pos->parent == parent && hash == pos->hash; hash 1620 fs/kernfs/dir.c if (!pos && (hash > 1) && (hash < INT_MAX)) { hash 1625 fs/kernfs/dir.c if (hash < pos->hash) hash 1627 fs/kernfs/dir.c else if (hash > pos->hash) hash 1682 fs/kernfs/dir.c ctx->pos = pos->hash; hash 71 fs/lockd/host.c unsigned int hash = (__force u32)n ^ ((__force u32)n >> 16); hash 72 fs/lockd/host.c return hash ^ (hash >> 8); hash 93 fs/lockd/host.c unsigned int hash; hash 97 fs/lockd/host.c hash = __nlm_hash_addr4(sap); hash 100 fs/lockd/host.c hash = __nlm_hash_addr6(sap); hash 103 fs/lockd/host.c hash = 0; hash 105 fs/lockd/host.c return hash & (NLM_HOST_NRHASH - 1); hash 88 fs/lockd/svcsubs.c unsigned int hash; hash 93 fs/lockd/svcsubs.c hash = file_hash(f); hash 98 fs/lockd/svcsubs.c hlist_for_each_entry(file, &nlm_files[hash], f_list) hash 125 fs/lockd/svcsubs.c hlist_add_head(&file->f_list, &nlm_files[hash]); hash 2008 fs/namei.c unsigned long hash = init_name_hash(salt); hash 2010 fs/namei.c hash = partial_name_hash((unsigned char)*name++, hash); hash 2011 fs/namei.c return end_name_hash(hash); hash 2018 fs/namei.c unsigned long hash = init_name_hash(salt); hash 2024 fs/namei.c hash = partial_name_hash(c, hash); hash 2027 fs/namei.c return hashlen_create(end_name_hash(hash), len); hash 2037 fs/namei.c unsigned long hash = init_name_hash(salt); hash 2043 fs/namei.c hash = partial_name_hash(c, hash); hash 2046 fs/namei.c return hashlen_create(end_name_hash(hash), len); hash 2454 fs/namei.c this->hash = full_name_hash(base, name, len); hash 209 fs/nfs/dir.c string->hash = full_name_hash(NULL, name, len); hash 485 fs/nfs/dir.c filename.hash = full_name_hash(parent, filename.name, filename.len); hash 405 fs/nfs/inode.c unsigned long hash; hash 411 fs/nfs/inode.c hash = nfs_fattr_to_ino_t(fattr); hash 412 fs/nfs/inode.c inode = ilookup5(sb, hash, nfs_find_actor, &desc); hash 430 fs/nfs/inode.c unsigned long hash; hash 441 fs/nfs/inode.c hash = nfs_fattr_to_ino_t(fattr); hash 443 fs/nfs/inode.c inode = iget5_locked(sb, hash, nfs_find_actor, nfs_init_locked, &desc); hash 455 fs/nfs/inode.c inode->i_ino = hash; hash 79 fs/nfs/pnfs_dev.c long hash) hash 83 fs/nfs/pnfs_dev.c hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) hash 172 fs/nfs/pnfs_dev.c const struct nfs4_deviceid *id, long hash) hash 178 fs/nfs/pnfs_dev.c hash); hash 190 fs/nfs/pnfs_dev.c long hash = nfs4_deviceid_hash(id); hash 193 fs/nfs/pnfs_dev.c d = __nfs4_find_get_deviceid(server, id, hash); hash 202 fs/nfs/pnfs_dev.c d = __nfs4_find_get_deviceid(server, id, hash); hash 208 fs/nfs/pnfs_dev.c hlist_add_head_rcu(&new->node, &nfs4_deviceid_cache[hash]); hash 324 fs/nfs/pnfs_dev.c _deviceid_purge_client(const struct nfs_client *clp, long hash) hash 331 fs/nfs/pnfs_dev.c hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) hash 265 fs/nfsd/export.c int hash = item->ek_fsidtype; hash 269 fs/nfsd/export.c hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); hash 270 fs/nfsd/export.c hash ^= hash_ptr(item->ek_client, EXPKEY_HASHBITS); hash 271 fs/nfsd/export.c hash &= EXPKEY_HASHMASK; hash 272 fs/nfsd/export.c return hash; hash 279 fs/nfsd/export.c int hash = svc_expkey_hash(item); hash 281 fs/nfsd/export.c ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); hash 293 fs/nfsd/export.c int hash = svc_expkey_hash(new); hash 295 fs/nfsd/export.c ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); hash 782 fs/nfsd/export.c int hash; hash 784 fs/nfsd/export.c hash = hash_ptr(exp->ex_client, EXPORT_HASHBITS); hash 785 fs/nfsd/export.c hash ^= hash_ptr(exp->ex_path.dentry, EXPORT_HASHBITS); hash 786 fs/nfsd/export.c hash ^= hash_ptr(exp->ex_path.mnt, EXPORT_HASHBITS); hash 787 fs/nfsd/export.c return hash; hash 794 fs/nfsd/export.c int hash = svc_export_hash(exp); hash 796 fs/nfsd/export.c ch = sunrpc_cache_lookup_rcu(exp->cd, &exp->h, hash); hash 807 fs/nfsd/export.c int hash = svc_export_hash(old); hash 809 fs/nfsd/export.c ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); hash 113 fs/nfsd/nfs4idmap.c uint32_t hash; hash 115 fs/nfsd/nfs4idmap.c hash = hash_str(ent->authname, ENT_HASHBITS); hash 116 fs/nfsd/nfs4idmap.c hash = hash_long(hash ^ ent->id, ENT_HASHBITS); hash 120 fs/nfsd/nfs4idmap.c hash ^= 1; hash 122 fs/nfsd/nfs4idmap.c return hash; hash 75 fs/nfsd/nfs4layouts.c list_for_each_entry(old, &nfsd_devid_hash[i], hash) { hash 88 fs/nfsd/nfs4layouts.c list_add_tail_rcu(&map->hash, &nfsd_devid_hash[devid_hashfn(map->idx)]); hash 103 fs/nfsd/nfs4layouts.c list_for_each_entry_rcu(map, &nfsd_devid_hash[devid_hashfn(idx)], hash) hash 783 fs/nfsd/nfs4layouts.c list_for_each_entry_safe(map, n, &nfsd_devid_hash[i], hash) hash 818 fs/nfsd/nfs4state.c u32 hash; hash 835 fs/nfsd/nfs4state.c hash = jhash(&fh->fh_base, fh->fh_size, 0); hash 836 fs/nfsd/nfs4state.c if (test_bit(hash&255, bd->set[0]) && hash 837 fs/nfsd/nfs4state.c test_bit((hash>>8)&255, bd->set[0]) && hash 838 fs/nfsd/nfs4state.c test_bit((hash>>16)&255, bd->set[0])) hash 841 fs/nfsd/nfs4state.c if (test_bit(hash&255, bd->set[1]) && hash 842 fs/nfsd/nfs4state.c test_bit((hash>>8)&255, bd->set[1]) && hash 843 fs/nfsd/nfs4state.c test_bit((hash>>16)&255, bd->set[1])) hash 851 fs/nfsd/nfs4state.c u32 hash; hash 854 fs/nfsd/nfs4state.c hash = jhash(&fh->fh_base, fh->fh_size, 0); hash 857 fs/nfsd/nfs4state.c __set_bit(hash&255, bd->set[bd->new]); hash 858 fs/nfsd/nfs4state.c __set_bit((hash>>8)&255, bd->set[bd->new]); hash 859 fs/nfsd/nfs4state.c __set_bit((hash>>16)&255, bd->set[bd->new]); hash 394 fs/nfsd/nfscache.c u32 hash = nfsd_cache_hash(xid, nn); hash 395 fs/nfsd/nfscache.c struct nfsd_drc_bucket *b = &nn->drc_hashtbl[hash]; hash 496 fs/nfsd/nfscache.c u32 hash; hash 504 fs/nfsd/nfscache.c hash = nfsd_cache_hash(rp->c_key.k_xid, nn); hash 505 fs/nfsd/nfscache.c b = &nn->drc_hashtbl[hash]; hash 15 fs/nfsd/pnfs.h struct list_head hash; hash 224 fs/nfsd/trace.h TP_PROTO(struct svc_rqst *rqstp, unsigned int hash, hash 228 fs/nfsd/trace.h TP_ARGS(rqstp, hash, inode, may_flags, nf, status), hash 232 fs/nfsd/trace.h __field(unsigned int, hash) hash 244 fs/nfsd/trace.h __entry->hash = hash; hash 255 fs/nfsd/trace.h be32_to_cpu(__entry->xid), __entry->hash, __entry->inode, hash 263 fs/nfsd/trace.h TP_PROTO(struct inode *inode, unsigned int hash, int found), hash 264 fs/nfsd/trace.h TP_ARGS(inode, hash, found), hash 267 fs/nfsd/trace.h __field(unsigned int, hash) hash 272 fs/nfsd/trace.h __entry->hash = hash; hash 275 fs/nfsd/trace.h TP_printk("hash=0x%x inode=0x%p found=%d", __entry->hash, hash 281 fs/nfsd/trace.h TP_PROTO(struct inode *inode, unsigned int hash, int found), \ hash 282 fs/nfsd/trace.h TP_ARGS(inode, hash, found)) hash 1827 fs/ntfs/layout.h le32 hash; /* Hash of the security descriptor. */ hash 1848 fs/ntfs/layout.h le32 hash; /* Hash of the security descriptor. */ hash 1870 fs/ntfs/layout.h le32 hash; /* Hash of the security descriptor. */ hash 242 fs/ntfs/namei.c nls_name.hash = full_name_hash(dent, nls_name.name, nls_name.len); hash 876 fs/ocfs2/dlm/dlmcommon.h unsigned int hash); hash 880 fs/ocfs2/dlm/dlmcommon.h unsigned int hash); hash 164 fs/ocfs2/dlm/dlmdomain.c bucket = dlm_lockres_hash(dlm, res->lockname.hash); hash 178 fs/ocfs2/dlm/dlmdomain.c unsigned int hash) hash 187 fs/ocfs2/dlm/dlmdomain.c bucket = dlm_lockres_hash(dlm, hash); hash 211 fs/ocfs2/dlm/dlmdomain.c unsigned int hash) hash 219 fs/ocfs2/dlm/dlmdomain.c res = __dlm_lookup_lockres_full(dlm, name, len, hash); hash 238 fs/ocfs2/dlm/dlmdomain.c unsigned int hash = dlm_lockid_hash(name, len); hash 241 fs/ocfs2/dlm/dlmdomain.c res = __dlm_lookup_lockres(dlm, name, len, hash); hash 282 fs/ocfs2/dlm/dlmmaster.c mle->mnamehash = res->lockname.hash; hash 330 fs/ocfs2/dlm/dlmmaster.c unsigned int hash; hash 334 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); hash 335 fs/ocfs2/dlm/dlmmaster.c bucket = dlm_master_hash(dlm, hash); hash 539 fs/ocfs2/dlm/dlmmaster.c res->lockname.hash = dlm_lockid_hash(name, namelen); hash 714 fs/ocfs2/dlm/dlmmaster.c unsigned int hash; hash 720 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(lockid, namelen); hash 726 fs/ocfs2/dlm/dlmmaster.c tmpres = __dlm_lookup_lockres_full(dlm, lockid, namelen, hash); hash 1411 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen, hash; hash 1427 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); hash 1436 fs/ocfs2/dlm/dlmmaster.c res = __dlm_lookup_lockres(dlm, name, namelen, hash); hash 1769 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen, hash; hash 1779 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); hash 1845 fs/ocfs2/dlm/dlmmaster.c res = __dlm_lookup_lockres(dlm, name, namelen, hash); hash 2261 fs/ocfs2/dlm/dlmmaster.c unsigned int hash; hash 2282 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); hash 2285 fs/ocfs2/dlm/dlmmaster.c res = __dlm_lookup_lockres_full(dlm, name, namelen, hash); hash 2356 fs/ocfs2/dlm/dlmmaster.c unsigned int hash; hash 2374 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); hash 2377 fs/ocfs2/dlm/dlmmaster.c res = __dlm_lookup_lockres_full(dlm, name, namelen, hash); hash 3112 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen, hash; hash 3120 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); hash 3132 fs/ocfs2/dlm/dlmmaster.c res = __dlm_lookup_lockres(dlm, name, namelen, hash); hash 1366 fs/ocfs2/dlm/dlmrecovery.c unsigned int hash; hash 1403 fs/ocfs2/dlm/dlmrecovery.c hash = dlm_lockid_hash(mres->lockname, mres->lockname_len); hash 1406 fs/ocfs2/dlm/dlmrecovery.c hash); hash 1712 fs/ocfs2/dlm/dlmrecovery.c unsigned int hash; hash 1723 fs/ocfs2/dlm/dlmrecovery.c hash = dlm_lockid_hash(req->name, req->namelen); hash 1726 fs/ocfs2/dlm/dlmrecovery.c res = __dlm_lookup_lockres(dlm, req->name, req->namelen, hash); hash 1761 fs/ocfs2/ocfs2_trace.h unsigned int hash, unsigned long long location, hash 1763 fs/ocfs2/ocfs2_trace.h TP_ARGS(ino, name, name_index, hash, location, xe_index), hash 1768 fs/ocfs2/ocfs2_trace.h __field(unsigned int, hash) hash 1776 fs/ocfs2/ocfs2_trace.h __entry->hash = hash; hash 1781 fs/ocfs2/ocfs2_trace.h __entry->name_index, __entry->hash, __entry->location, hash 1788 fs/ocfs2/ocfs2_trace.h unsigned int hash, unsigned long long bucket, \ hash 1790 fs/ocfs2/ocfs2_trace.h TP_ARGS(ino, name, name_index, hash, bucket, xe_index)) hash 547 fs/ocfs2/xattr.c u32 hash = OCFS2_SB(inode->i_sb)->uuid_hash; hash 552 fs/ocfs2/xattr.c hash = (hash << OCFS2_HASH_SHIFT) ^ hash 553 fs/ocfs2/xattr.c (hash >> (8*sizeof(hash) - OCFS2_HASH_SHIFT)) ^ hash 557 fs/ocfs2/xattr.c return hash; hash 14 fs/omfs/dir.c int i, hash = 0; hash 16 fs/omfs/dir.c hash ^= tolower(name[i]) << (i % 24); hash 17 fs/omfs/dir.c return hash % mod; hash 1092 fs/orangefs/inode.c unsigned long hash; hash 1095 fs/orangefs/inode.c hash = orangefs_handle_hash(ref); hash 1097 fs/orangefs/inode.c hash, hash 1114 fs/orangefs/inode.c inode->i_ino = hash; /* needed for stat etc */ hash 1122 fs/orangefs/inode.c hash, hash 1134 fs/orangefs/inode.c unsigned long hash = orangefs_handle_hash(ref); hash 1151 fs/orangefs/inode.c inode->i_ino = hash; /* needed for stat etc */ hash 1160 fs/orangefs/inode.c error = insert_inode_locked4(inode, hash, orangefs_test_inode, ref); hash 701 fs/proc/proc_sysctl.c qname.hash = full_name_hash(dir, qname.name, qname.len); hash 277 fs/reiserfs/bitmap.c unsigned long hash; hash 284 fs/reiserfs/bitmap.c hash = keyed_hash(hash_in, 4); hash 285 fs/reiserfs/bitmap.c bm = hash % reiserfs_bmap_count(s); hash 801 fs/reiserfs/bitmap.c unsigned long hash; hash 813 fs/reiserfs/bitmap.c hash = bm * (sb->s_blocksize << 3); hash 816 fs/reiserfs/bitmap.c hash += sb->s_blocksize / 2; hash 817 fs/reiserfs/bitmap.c hint->search_start = hash; hash 828 fs/reiserfs/bitmap.c unsigned long hash; hash 840 fs/reiserfs/bitmap.c hash = (hint->inode->i_sb->s_blocksize << 3); hash 844 fs/reiserfs/bitmap.c hash = bm * (hint->inode->i_sb->s_blocksize << 3); hash 846 fs/reiserfs/bitmap.c hint->search_start = hash; hash 1738 fs/reiserfs/super.c __u32 hash = DEFAULT_HASH; hash 1758 fs/reiserfs/super.c hash = YURA_HASH; hash 1775 fs/reiserfs/super.c hash = UNSET_HASH; hash 1780 fs/reiserfs/super.c hash = YURA_HASH; hash 1782 fs/reiserfs/super.c hash = TEA_HASH; hash 1784 fs/reiserfs/super.c hash = R5_HASH; hash 1788 fs/reiserfs/super.c hash = UNSET_HASH; hash 1792 fs/reiserfs/super.c return hash; hash 665 fs/reiserfs/xattr.c __u32 hash = 0; hash 732 fs/reiserfs/xattr.c hash = le32_to_cpu(rxh->h_hash); hash 744 fs/reiserfs/xattr.c hash) { hash 31 fs/ubifs/auth.c u8 *hash) hash 39 fs/ubifs/auth.c err = crypto_shash_digest(shash, node, le32_to_cpu(ch->len), hash); hash 53 fs/ubifs/auth.c static int ubifs_hash_calc_hmac(const struct ubifs_info *c, const u8 *hash, hash 61 fs/ubifs/auth.c err = crypto_shash_digest(shash, hash, c->hash_len, hmac); hash 82 fs/ubifs/auth.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 91 fs/ubifs/auth.c err = crypto_shash_final(hash_desc, hash); hash 96 fs/ubifs/auth.c err = ubifs_hash_calc_hmac(c, hash, auth->hmac); hash 152 fs/ubifs/auth.c void ubifs_bad_hash(const struct ubifs_info *c, const void *node, const u8 *hash, hash 164 fs/ubifs/auth.c ubifs_err(c, "hash expected: %*ph%s", len, hash, cont); hash 38 fs/ubifs/debug.c static const char *get_key_hash(int hash) hash 40 fs/ubifs/debug.c switch (hash) { hash 228 fs/ubifs/dir.c if (nm.hash) { hash 231 fs/ubifs/dir.c if (nm.hash & ~UBIFS_S_KEY_HASH_MASK) hash 233 fs/ubifs/dir.c dent_key_init_hash(c, &key, dir->i_ino, nm.hash); hash 226 fs/ubifs/journal.c int len, struct shash_desc *hash) hash 243 fs/ubifs/journal.c err = ubifs_shash_update(c, hash, (void *)node, nodelen); hash 251 fs/ubifs/journal.c return ubifs_prepare_auth_node(c, node, hash); hash 591 fs/ubifs/journal.c if (nm->hash) hash 592 fs/ubifs/journal.c dent_key_init_hash(c, &dent_key, dir->i_ino, nm->hash); hash 649 fs/ubifs/journal.c if (nm->hash) hash 731 fs/ubifs/journal.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 798 fs/ubifs/journal.c err = ubifs_node_calc_hash(c, data, hash); hash 807 fs/ubifs/journal.c err = ubifs_tnc_add(c, key, lnum, offs, dlen, hash); hash 848 fs/ubifs/journal.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 925 fs/ubifs/journal.c err = ubifs_node_calc_hash(c, ino, hash); hash 949 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs, ilen, hash); hash 1674 fs/ubifs/journal.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 1716 fs/ubifs/journal.c err = ubifs_node_calc_hash(c, ino, hash); hash 1753 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key1, lnum, xent_offs + len - hlen, hlen, hash); hash 1795 fs/ubifs/journal.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 1823 fs/ubifs/journal.c err = ubifs_node_calc_hash(c, (void *)ino + aligned_len1, hash); hash 1846 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs + aligned_len1, len2, hash); hash 42 fs/ubifs/key.h static inline uint32_t key_mask_hash(uint32_t hash) hash 44 fs/ubifs/key.h hash &= UBIFS_S_KEY_HASH_MASK; hash 45 fs/ubifs/key.h if (unlikely(hash <= 2)) hash 46 fs/ubifs/key.h hash += 3; hash 47 fs/ubifs/key.h return hash; hash 150 fs/ubifs/key.h uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); hash 152 fs/ubifs/key.h ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); hash 153 fs/ubifs/key.h ubifs_assert(c, !nm->hash && !nm->minor_hash); hash 155 fs/ubifs/key.h key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); hash 168 fs/ubifs/key.h uint32_t hash) hash 170 fs/ubifs/key.h ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); hash 172 fs/ubifs/key.h key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); hash 187 fs/ubifs/key.h uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); hash 189 fs/ubifs/key.h ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); hash 191 fs/ubifs/key.h key->j32[1] = cpu_to_le32(hash | hash 220 fs/ubifs/key.h uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); hash 222 fs/ubifs/key.h ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); hash 224 fs/ubifs/key.h key->u32[1] = hash | (UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS); hash 238 fs/ubifs/key.h uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); hash 240 fs/ubifs/key.h ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); hash 242 fs/ubifs/key.h key->j32[1] = cpu_to_le32(hash | hash 600 fs/ubifs/lpt.c int *lpt_lebs, int *big_lpt, u8 *hash) hash 835 fs/ubifs/lpt.c err = ubifs_shash_final(c, desc, hash); hash 1653 fs/ubifs/lpt.c int ubifs_lpt_calc_hash(struct ubifs_info *c, u8 *hash) hash 1732 fs/ubifs/lpt.c err = ubifs_shash_final(c, desc, hash); hash 1751 fs/ubifs/lpt.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 1756 fs/ubifs/lpt.c err = ubifs_lpt_calc_hash(c, hash); hash 1760 fs/ubifs/lpt.c if (ubifs_check_hash(c, c->mst_node->hash_lpt, hash)) { hash 384 fs/ubifs/master.c ubifs_copy_hash(c, c->mst_node->hash_root_idx, c->zroot.hash); hash 459 fs/ubifs/master.c ubifs_copy_hash(c, c->zroot.hash, c->mst_node->hash_root_idx); hash 49 fs/ubifs/replay.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 254 fs/ubifs/replay.c r->len, r->hash, &r->nm); hash 279 fs/ubifs/replay.c r->len, r->hash); hash 383 fs/ubifs/replay.c const u8 *hash, union ubifs_key *key, hash 403 fs/ubifs/replay.c ubifs_copy_hash(c, hash, r->hash); hash 432 fs/ubifs/replay.c const u8 *hash, union ubifs_key *key, hash 458 fs/ubifs/replay.c ubifs_copy_hash(c, hash, r->hash); hash 562 fs/ubifs/replay.c static int authenticate_sleb_hash(struct ubifs_info *c, struct shash_desc *log_hash, u8 *hash) hash 569 fs/ubifs/replay.c return crypto_shash_final(hash_desc, hash); hash 572 fs/ubifs/replay.c static int authenticate_sleb_hmac(struct ubifs_info *c, u8 *hash, u8 *hmac) hash 578 fs/ubifs/replay.c return crypto_shash_digest(hmac_desc, hash, c->hash_len, hmac); hash 604 fs/ubifs/replay.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 617 fs/ubifs/replay.c err = authenticate_sleb_hash(c, log_hash, hash); hash 621 fs/ubifs/replay.c err = authenticate_sleb_hmac(c, hash, hmac); hash 727 fs/ubifs/replay.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 737 fs/ubifs/replay.c ubifs_node_calc_hash(c, snod->node, hash); hash 750 fs/ubifs/replay.c err = insert_node(c, lnum, snod->offs, snod->len, hash, hash 762 fs/ubifs/replay.c err = insert_node(c, lnum, snod->offs, snod->len, hash, hash 776 fs/ubifs/replay.c err = insert_dent(c, lnum, snod->offs, snod->len, hash, hash 802 fs/ubifs/replay.c err = insert_node(c, lnum, snod->offs, snod->len, hash, hash 89 fs/ubifs/sb.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 331 fs/ubifs/sb.c ubifs_node_calc_hash(c, ino, hash); hash 332 fs/ubifs/sb.c ubifs_copy_hash(c, hash, ubifs_branch_hash(c, br)); hash 338 fs/ubifs/sb.c ubifs_node_calc_hash(c, idx, hash); hash 339 fs/ubifs/sb.c ubifs_copy_hash(c, hash, mst->hash_root_idx); hash 478 fs/ubifs/tnc.c err = ubifs_node_check_hash(c, buf, zbr->hash); hash 480 fs/ubifs/tnc.c ubifs_bad_hash(c, buf, zbr->hash, lnum, offs); hash 1709 fs/ubifs/tnc.c err = ubifs_node_check_hash(c, buf, zbr->hash); hash 1711 fs/ubifs/tnc.c ubifs_bad_hash(c, buf, zbr->hash, zbr->lnum, zbr->offs); hash 2275 fs/ubifs/tnc.c int offs, int len, const u8 *hash) hash 2290 fs/ubifs/tnc.c ubifs_copy_hash(c, hash, zbr.hash); hash 2301 fs/ubifs/tnc.c ubifs_copy_hash(c, hash, zbr->hash); hash 2410 fs/ubifs/tnc.c int lnum, int offs, int len, const u8 *hash, hash 2453 fs/ubifs/tnc.c ubifs_copy_hash(c, hash, zbr->hash); hash 2465 fs/ubifs/tnc.c ubifs_copy_hash(c, hash, zbr.hash); hash 29 fs/ubifs/tnc_commit.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 44 fs/ubifs/tnc_commit.c ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); hash 55 fs/ubifs/tnc_commit.c ubifs_node_calc_hash(c, idx, hash); hash 72 fs/ubifs/tnc_commit.c ubifs_copy_hash(c, hash, zbr->hash); hash 77 fs/ubifs/tnc_commit.c ubifs_copy_hash(c, hash, c->zroot.hash); hash 858 fs/ubifs/tnc_commit.c u8 hash[UBIFS_HASH_ARR_SZ]; hash 877 fs/ubifs/tnc_commit.c ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); hash 889 fs/ubifs/tnc_commit.c ubifs_node_calc_hash(c, idx, hash); hash 894 fs/ubifs/tnc_commit.c ubifs_copy_hash(c, hash, hash 895 fs/ubifs/tnc_commit.c znode->cparent->zbranch[znode->ciip].hash); hash 899 fs/ubifs/tnc_commit.c ubifs_copy_hash(c, hash, hash 900 fs/ubifs/tnc_commit.c znode->parent->zbranch[znode->iip].hash); hash 902 fs/ubifs/tnc_commit.c ubifs_copy_hash(c, hash, c->zroot.hash); hash 284 fs/ubifs/tnc_misc.c err = ubifs_node_check_hash(c, idx, zzbr->hash); hash 286 fs/ubifs/tnc_misc.c ubifs_bad_hash(c, idx, zzbr->hash, lnum, offs); hash 314 fs/ubifs/tnc_misc.c ubifs_copy_hash(c, ubifs_branch_hash(c, br), zbr->hash); hash 496 fs/ubifs/tnc_misc.c err = ubifs_node_check_hash(c, node, zbr->hash); hash 498 fs/ubifs/tnc_misc.c ubifs_bad_hash(c, node, zbr->hash, zbr->lnum, zbr->offs); hash 752 fs/ubifs/ubifs.h u8 hash[UBIFS_HASH_ARR_SZ]; hash 1551 fs/ubifs/ubifs.h u8 *hash); hash 1553 fs/ubifs/ubifs.h const void *buf, u8 *hash) hash 1556 fs/ubifs/ubifs.h return __ubifs_node_calc_hash(c, buf, hash); hash 1595 fs/ubifs/ubifs.h const u8 *hash, int lnum, int offs); hash 1827 fs/ubifs/ubifs.h int offs, int len, const u8 *hash); hash 1831 fs/ubifs/ubifs.h int lnum, int offs, int len, const u8 *hash, hash 1929 fs/ubifs/ubifs.h int *lpt_lebs, int *big_lpt, u8 *hash); hash 1957 fs/ubifs/ubifs.h int ubifs_lpt_calc_hash(struct ubifs_info *c, u8 *hash); hash 26 fs/xfs/libxfs/xfs_attr_sf.h xfs_dahash_t hash; /* this entry's hash value */ hash 2012 fs/xfs/libxfs/xfs_da_btree.c xfs_dahash_t hash; hash 2017 fs/xfs/libxfs/xfs_da_btree.c for (hash = 0; namelen >= 4; namelen -= 4, name += 4) hash 2018 fs/xfs/libxfs/xfs_da_btree.c hash = (name[0] << 21) ^ (name[1] << 14) ^ (name[2] << 7) ^ hash 2019 fs/xfs/libxfs/xfs_da_btree.c (name[3] << 0) ^ rol32(hash, 7 * 4); hash 2027 fs/xfs/libxfs/xfs_da_btree.c rol32(hash, 7 * 3); hash 2029 fs/xfs/libxfs/xfs_da_btree.c return (name[0] << 7) ^ (name[1] << 0) ^ rol32(hash, 7 * 2); hash 2031 fs/xfs/libxfs/xfs_da_btree.c return (name[0] << 0) ^ rol32(hash, 7 * 1); hash 2033 fs/xfs/libxfs/xfs_da_btree.c return hash; hash 59 fs/xfs/libxfs/xfs_dir2.c xfs_dahash_t hash; hash 62 fs/xfs/libxfs/xfs_dir2.c for (i = 0, hash = 0; i < name->len; i++) hash 63 fs/xfs/libxfs/xfs_dir2.c hash = tolower(name->name[i]) ^ rol32(hash, 7); hash 65 fs/xfs/libxfs/xfs_dir2.c return hash; hash 334 fs/xfs/libxfs/xfs_dir2_block.c xfs_dahash_t hash; /* hash value of found entry */ hash 425 fs/xfs/libxfs/xfs_dir2_block.c if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) hash 427 fs/xfs/libxfs/xfs_dir2_block.c if (hash < args->hashval) hash 659 fs/xfs/libxfs/xfs_dir2_block.c xfs_dahash_t hash; /* found hash value */ hash 686 fs/xfs/libxfs/xfs_dir2_block.c if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) hash 688 fs/xfs/libxfs/xfs_dir2_block.c if (hash < args->hashval) hash 730 fs/xfs/libxfs/xfs_dir2_block.c be32_to_cpu(blp[mid].hashval) == hash); hash 46 fs/xfs/libxfs/xfs_dir2_data.c xfs_dahash_t hash; /* hash of current name */ hash 192 fs/xfs/libxfs/xfs_dir2_data.c hash = mp->m_dirnameops->hashname(&name); hash 195 fs/xfs/libxfs/xfs_dir2_data.c be32_to_cpu(lep[i].hashval) == hash) hash 1500 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dahash_t hash=0; /* hash from this entry */ hash 1522 fs/xfs/libxfs/xfs_dir2_leaf.c if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) hash 1524 fs/xfs/libxfs/xfs_dir2_leaf.c if (hash < hashwant) hash 1532 fs/xfs/libxfs/xfs_dir2_leaf.c if (hash == hashwant) { hash 1540 fs/xfs/libxfs/xfs_dir2_leaf.c else if (hash < hashwant) hash 411 fs/xfs/scrub/attr.c xfs_dahash_t hash; hash 441 fs/xfs/scrub/attr.c hash = be32_to_cpu(ent->hashval); hash 463 fs/xfs/scrub/attr.c if (calc_hash != hash) hash 125 fs/xfs/scrub/dabtree.c xfs_dahash_t hash; hash 129 fs/xfs/scrub/dabtree.c hash = be32_to_cpu(*hashp); hash 130 fs/xfs/scrub/dabtree.c if (hash < ds->hashes[level]) hash 132 fs/xfs/scrub/dabtree.c ds->hashes[level] = hash; hash 141 fs/xfs/scrub/dabtree.c if (parent_hash < hash) hash 197 fs/xfs/scrub/dir.c xfs_dahash_t hash; hash 263 fs/xfs/scrub/dir.c hash = be32_to_cpu(ent->hashval); hash 272 fs/xfs/scrub/dir.c if (calc_hash != hash) hash 487 fs/xfs/scrub/dir.c __u32 hash; hash 537 fs/xfs/scrub/dir.c hash = be32_to_cpu(ents[i].hashval); hash 538 fs/xfs/scrub/dir.c if (i > 0 && lasthash > hash) hash 540 fs/xfs/scrub/dir.c lasthash = hash; hash 32 fs/xfs/xfs_attr_list.c if (sa->hash < sb->hash) { hash 34 fs/xfs/xfs_attr_list.c } else if (sa->hash > sb->hash) { hash 132 fs/xfs/xfs_attr_list.c sbp->hash = xfs_da_hashname(sfe->nameval, sfe->namelen); hash 155 fs/xfs/xfs_attr_list.c if (sbp->hash == cursor->hashval) { hash 160 fs/xfs/xfs_attr_list.c } else if (sbp->hash > cursor->hashval) { hash 173 fs/xfs/xfs_attr_list.c if (cursor->hashval != sbp->hash) { hash 174 fs/xfs/xfs_attr_list.c cursor->hashval = sbp->hash; hash 20 include/crypto/md5.h u32 hash[MD5_HASH_WORDS]; hash 59 include/crypto/nhpoly1305.h __le64 hash[NH_NUM_PASSES]); hash 102 include/crypto/sha.h unsigned int len, u8 *hash); hash 108 include/crypto/sha.h unsigned int len, u8 *hash); hash 114 include/crypto/sha.h unsigned int len, u8 *hash); hash 142 include/crypto/sha.h extern int sha256_final(struct sha256_state *sctx, u8 *hash); hash 160 include/crypto/sha.h extern int sha224_final(struct sha256_state *sctx, u8 *hash); hash 39 include/crypto/sm3.h unsigned int len, u8 *hash); hash 30 include/crypto/streebog.h struct streebog_uint512 hash; hash 153 include/drm/drm_legacy.h struct drm_hash_item hash; hash 35 include/keys/system_keyring.h extern int mark_hash_blacklisted(const char *hash); hash 36 include/keys/system_keyring.h extern int is_hash_blacklisted(const u8 *hash, size_t hash_len, hash 39 include/keys/system_keyring.h static inline int is_hash_blacklisted(const u8 *hash, size_t hash_len, hash 37 include/keys/trusted-type.h uint32_t hash; hash 160 include/linux/blkdev.h struct hlist_node hash; /* merge hash */ hash 443 include/linux/ceph/ceph_fs.h __le32 hash; hash 308 include/linux/ceph/osd_client.h u32 hash; hash 320 include/linux/ceph/osd_client.h hoid->hash_reverse_bits = bitrev32(hoid->hash); hash 135 include/linux/crush/crush.h __u8 hash; /* which hash function to use, CRUSH_HASH_* */ hash 586 include/linux/crypto.h struct crypto_istat_hash hash; hash 33 include/linux/dcache.h #define HASH_LEN_DECLARE u32 hash; u32 len hash 36 include/linux/dcache.h #define HASH_LEN_DECLARE u32 len; u32 hash hash 39 include/linux/digsig.h uint8_t hash; hash 108 include/linux/elevator.h DECLARE_HASHTABLE(hash, ELV_HASH_BITS); hash 924 include/linux/filter.h u32 hash); hash 929 include/linux/filter.h u32 hash) hash 34 include/linux/fscrypt.h u32 hash; hash 207 include/linux/fscrypt.h u32 hash; hash 466 include/linux/fscrypt.h u32 hash, u32 minor_hash, hash 138 include/linux/inetdevice.h struct hlist_node hash; hash 149 include/linux/kernfs.h unsigned int hash; /* ns + name hash */ hash 93 include/linux/key.h unsigned long hash; /* Hash value */ hash 222 include/linux/key.h unsigned long hash; hash 5903 include/linux/mlx5/mlx5_ifc.h u8 hash[0x1]; hash 35 include/linux/module_signature.h u8 hash; /* Digest algorithm [0] */ hash 717 include/linux/netdevice.h u32 hash) hash 719 include/linux/netdevice.h if (table && hash) { hash 720 include/linux/netdevice.h unsigned int index = hash & table->mask; hash 721 include/linux/netdevice.h u32 val = hash & ~rps_cpu_mask; hash 120 include/linux/rhashtable.h unsigned int hash) hash 122 include/linux/rhashtable.h return hash & (tbl->size - 1); hash 129 include/linux/rhashtable.h unsigned int hash; hash 133 include/linux/rhashtable.h hash = ht->p.hashfn(key, ht->key_len, hash_rnd); hash 138 include/linux/rhashtable.h hash = params.hashfn(key, key_len, hash_rnd); hash 140 include/linux/rhashtable.h hash = jhash(key, key_len, hash_rnd); hash 142 include/linux/rhashtable.h hash = jhash2(key, key_len / sizeof(u32), hash_rnd); hash 147 include/linux/rhashtable.h hash = params.hashfn(key, key_len, hash_rnd); hash 149 include/linux/rhashtable.h hash = jhash(key, key_len, hash_rnd); hash 152 include/linux/rhashtable.h return hash; hash 159 include/linux/rhashtable.h unsigned int hash = rht_key_get_hash(ht, key, params, tbl->hash_rnd); hash 161 include/linux/rhashtable.h return rht_bucket_index(tbl, hash); hash 228 include/linux/rhashtable.h int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash); hash 236 include/linux/rhashtable.h u32 hash) hash 265 include/linux/rhashtable.h unsigned int hash); hash 267 include/linux/rhashtable.h unsigned int hash); hash 270 include/linux/rhashtable.h unsigned int hash); hash 278 include/linux/rhashtable.h #define rht_dereference_bucket(p, tbl, hash) \ hash 279 include/linux/rhashtable.h rcu_dereference_protected(p, lockdep_rht_bucket_is_held(tbl, hash)) hash 281 include/linux/rhashtable.h #define rht_dereference_bucket_rcu(p, tbl, hash) \ hash 282 include/linux/rhashtable.h rcu_dereference_check(p, lockdep_rht_bucket_is_held(tbl, hash)) hash 288 include/linux/rhashtable.h const struct bucket_table *tbl, unsigned int hash) hash 290 include/linux/rhashtable.h return unlikely(tbl->nest) ? rht_bucket_nested(tbl, hash) : hash 291 include/linux/rhashtable.h &tbl->buckets[hash]; hash 295 include/linux/rhashtable.h struct bucket_table *tbl, unsigned int hash) hash 297 include/linux/rhashtable.h return unlikely(tbl->nest) ? __rht_bucket_nested(tbl, hash) : hash 298 include/linux/rhashtable.h &tbl->buckets[hash]; hash 302 include/linux/rhashtable.h struct rhashtable *ht, struct bucket_table *tbl, unsigned int hash) hash 304 include/linux/rhashtable.h return unlikely(tbl->nest) ? rht_bucket_nested_insert(ht, tbl, hash) : hash 305 include/linux/rhashtable.h &tbl->buckets[hash]; hash 378 include/linux/rhashtable.h unsigned int hash) hash 380 include/linux/rhashtable.h return rht_dereference_bucket(__rht_ptr(bkt), tbl, hash); hash 421 include/linux/rhashtable.h #define rht_for_each_from(pos, head, tbl, hash) \ hash 424 include/linux/rhashtable.h pos = rht_dereference_bucket((pos)->next, tbl, hash)) hash 432 include/linux/rhashtable.h #define rht_for_each(pos, tbl, hash) \ hash 433 include/linux/rhashtable.h rht_for_each_from(pos, rht_ptr(rht_bucket(tbl, hash), tbl, hash), \ hash 434 include/linux/rhashtable.h tbl, hash) hash 445 include/linux/rhashtable.h #define rht_for_each_entry_from(tpos, pos, head, tbl, hash, member) \ hash 448 include/linux/rhashtable.h pos = rht_dereference_bucket((pos)->next, tbl, hash)) hash 458 include/linux/rhashtable.h #define rht_for_each_entry(tpos, pos, tbl, hash, member) \ hash 460 include/linux/rhashtable.h rht_ptr(rht_bucket(tbl, hash), tbl, hash), \ hash 461 include/linux/rhashtable.h tbl, hash, member) hash 475 include/linux/rhashtable.h #define rht_for_each_entry_safe(tpos, pos, next, tbl, hash, member) \ hash 476 include/linux/rhashtable.h for (pos = rht_ptr(rht_bucket(tbl, hash), tbl, hash), \ hash 478 include/linux/rhashtable.h rht_dereference_bucket(pos->next, tbl, hash) : NULL; \ hash 482 include/linux/rhashtable.h rht_dereference_bucket(pos->next, tbl, hash) : NULL) hash 495 include/linux/rhashtable.h #define rht_for_each_rcu_from(pos, head, tbl, hash) \ hash 511 include/linux/rhashtable.h #define rht_for_each_rcu(pos, tbl, hash) \ hash 513 include/linux/rhashtable.h pos = rht_ptr_rcu(rht_bucket(tbl, hash)); \ hash 530 include/linux/rhashtable.h #define rht_for_each_entry_rcu_from(tpos, pos, head, tbl, hash, member) \ hash 534 include/linux/rhashtable.h pos = rht_dereference_bucket_rcu(pos->next, tbl, hash)) hash 548 include/linux/rhashtable.h #define rht_for_each_entry_rcu(tpos, pos, tbl, hash, member) \ hash 550 include/linux/rhashtable.h rht_ptr_rcu(rht_bucket(tbl, hash)), \ hash 551 include/linux/rhashtable.h tbl, hash, member) hash 599 include/linux/rhashtable.h unsigned int hash; hash 603 include/linux/rhashtable.h hash = rht_key_hashfn(ht, tbl, key, params); hash 604 include/linux/rhashtable.h bkt = rht_bucket(tbl, hash); hash 606 include/linux/rhashtable.h rht_for_each_rcu_from(he, rht_ptr_rcu(bkt), tbl, hash) { hash 716 include/linux/rhashtable.h unsigned int hash; hash 723 include/linux/rhashtable.h hash = rht_head_hashfn(ht, tbl, obj, params); hash 725 include/linux/rhashtable.h bkt = rht_bucket_insert(ht, tbl, hash); hash 739 include/linux/rhashtable.h rht_for_each_from(head, rht_ptr(bkt, tbl, hash), tbl, hash) { hash 762 include/linux/rhashtable.h head = rht_dereference_bucket(head->next, tbl, hash); hash 784 include/linux/rhashtable.h head = rht_ptr(bkt, tbl, hash); hash 1001 include/linux/rhashtable.h unsigned int hash; hash 1004 include/linux/rhashtable.h hash = rht_head_hashfn(ht, tbl, obj, params); hash 1005 include/linux/rhashtable.h bkt = rht_bucket_var(tbl, hash); hash 1011 include/linux/rhashtable.h rht_for_each_from(he, rht_ptr(bkt, tbl, hash), tbl, hash) { hash 1027 include/linux/rhashtable.h tbl, hash); hash 1033 include/linux/rhashtable.h list = rht_dereference_bucket(list->next, tbl, hash); hash 1039 include/linux/rhashtable.h obj = rht_dereference_bucket(obj->next, tbl, hash); hash 1043 include/linux/rhashtable.h list = rht_dereference_bucket(list->next, tbl, hash); hash 1153 include/linux/rhashtable.h unsigned int hash; hash 1159 include/linux/rhashtable.h hash = rht_head_hashfn(ht, tbl, obj_old, params); hash 1160 include/linux/rhashtable.h if (hash != rht_head_hashfn(ht, tbl, obj_new, params)) hash 1163 include/linux/rhashtable.h bkt = rht_bucket_var(tbl, hash); hash 1170 include/linux/rhashtable.h rht_for_each_from(he, rht_ptr(bkt, tbl, hash), tbl, hash) { hash 841 include/linux/skbuff.h __u32 hash; hash 1204 include/linux/skbuff.h skb->hash = 0; hash 1216 include/linux/skbuff.h __skb_set_hash(struct sk_buff *skb, __u32 hash, bool is_sw, bool is_l4) hash 1220 include/linux/skbuff.h skb->hash = hash; hash 1224 include/linux/skbuff.h skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type) hash 1227 include/linux/skbuff.h __skb_set_hash(skb, hash, false, type == PKT_HASH_TYPE_L4); hash 1231 include/linux/skbuff.h __skb_set_sw_hash(struct sk_buff *skb, __u32 hash, bool is_l4) hash 1233 include/linux/skbuff.h __skb_set_hash(skb, hash, true, is_l4); hash 1344 include/linux/skbuff.h return skb->hash; hash 1351 include/linux/skbuff.h __u32 hash = __get_hash_from_flowi6(fl6, &keys); hash 1353 include/linux/skbuff.h __skb_set_sw_hash(skb, hash, flow_keys_have_l4(&keys)); hash 1356 include/linux/skbuff.h return skb->hash; hash 1364 include/linux/skbuff.h return skb->hash; hash 1369 include/linux/skbuff.h to->hash = from->hash; hash 3497 include/linux/skbuff.h struct ahash_request *hash); hash 53 include/linux/stringhash.h static inline unsigned int end_name_hash(unsigned long hash) hash 55 include/linux/stringhash.h return hash_long(hash, 32); hash 74 include/linux/stringhash.h #define hashlen_create(hash, len) ((u64)(len)<<32 | (u32)(hash)) hash 137 include/linux/sunrpc/cache.h struct hlist_node hash; /* on hash chain */ hash 171 include/linux/sunrpc/cache.h struct cache_head *key, int hash); hash 174 include/linux/sunrpc/cache.h struct cache_head *new, struct cache_head *old, int hash); hash 82 include/linux/sunrpc/svcauth.h struct hlist_node hash; hash 29 include/net/af_unix.h unsigned int hash; hash 749 include/net/bluetooth/hci.h __u8 hash[16]; hash 1065 include/net/bluetooth/hci.h __u8 hash[16]; hash 317 include/net/bluetooth/mgmt.h __u8 hash[16]; hash 111 include/net/fq_impl.h u32 hash = skb_get_hash_perturb(skb, &fq->perturbation); hash 113 include/net/fq_impl.h return reciprocal_scale(hash, fq->flows_cnt); hash 167 include/net/inet_hashtables.h inet_lhash2_bucket(struct inet_hashinfo *h, u32 hash) hash 169 include/net/inet_hashtables.h return &h->lhash2[hash & h->lhash2_mask]; hash 174 include/net/inet_hashtables.h unsigned int hash) hash 176 include/net/inet_hashtables.h return &hashinfo->ehash[hash & hashinfo->ehash_mask]; hash 181 include/net/inet_hashtables.h unsigned int hash) hash 183 include/net/inet_hashtables.h return &hashinfo->ehash_locks[hash & hashinfo->ehash_locks_mask]; hash 494 include/net/ip.h u32 ip_idents_reserve(u32 hash, int segs); hash 449 include/net/ip_fib.h void fib_select_multipath(struct fib_result *res, int hash); hash 703 include/net/ipv6.h unsigned int hash, mix = net_hash_mix(net); hash 706 include/net/ipv6.h hash = jhash_1word(0, mix); hash 708 include/net/ipv6.h hash = jhash_1word((__force u32)addr6->s6_addr32[3], mix); hash 710 include/net/ipv6.h hash = jhash2((__force u32 *)addr6->s6_addr32, 4, mix); hash 712 include/net/ipv6.h return hash ^ port; hash 864 include/net/ipv6.h u32 hash; hash 877 include/net/ipv6.h hash = skb_get_hash_flowi6(skb, fl6); hash 883 include/net/ipv6.h hash = rol32(hash, 16); hash 885 include/net/ipv6.h flowlabel = (__force __be32)hash & IPV6_FLOWLABEL_MASK; hash 199 include/net/neighbour.h __u32 (*hash)(const void *pkey, hash 283 include/net/neighbour.h __u32 (*hash)(const void *pkey, hash 293 include/net/neighbour.h hash_val = hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift); hash 308 include/net/neighbour.h return ___neigh_lookup_noref(tbl, tbl->key_eq, tbl->hash, pkey, dev); hash 111 include/net/netfilter/nf_conntrack.h nf_ct_tuplehash_to_ctrack(const struct nf_conntrack_tuple_hash *hash) hash 113 include/net/netfilter/nf_conntrack.h return container_of(hash, struct nf_conn, hash 114 include/net/netfilter/nf_conntrack.h tuplehash[hash->tuple.dst.dir]); hash 294 include/net/netfilter/nf_conntrack.h nf_conntrack_get_ht(struct hlist_nulls_head **hash, unsigned int *hsize) hash 305 include/net/netfilter/nf_conntrack.h *hash = hptr; hash 134 include/net/nexthop.h struct nexthop *nexthop_select_path(struct nexthop *nh, int hash); hash 202 include/net/nexthop.h static inline void nexthop_path_fib_result(struct fib_result *res, int hash) hash 207 include/net/nexthop.h nh = nexthop_select_path(res->fi->nh, hash); hash 322 include/net/nexthop.h static inline void nexthop_path_fib6_result(struct fib6_result *res, int hash) hash 327 include/net/nexthop.h nh = nexthop_select_path(nh, hash); hash 85 include/net/sch_generic.h struct hlist_node hash; hash 587 include/net/sch_generic.h struct hlist_head *hash; hash 601 include/net/sch_generic.h qdisc_class_find(const struct Qdisc_class_hash *hash, u32 id) hash 609 include/net/sch_generic.h h = qdisc_class_hash(id, hash->hashmask); hash 610 include/net/sch_generic.h hlist_for_each_entry(cl, &hash->hash[h], hnode) { hash 966 include/net/sock.h static inline void sock_rps_record_flow_hash(__u32 hash) hash 973 include/net/sock.h rps_record_sock_flow(sock_flow_table, hash); hash 1002 include/net/sock.h if (unlikely(sk->sk_rxhash != skb->hash)) hash 1003 include/net/sock.h sk->sk_rxhash = skb->hash; hash 1126 include/net/sock.h int (*hash)(struct sock *sk); hash 1345 include/net/sock.h return sk->sk_prot->hash(sk); hash 2127 include/net/sock.h skb->hash = sk->sk_txhash; hash 35 include/net/sock_reuseport.h u32 hash, hash 103 include/net/tls.h int (*hash)(struct tls_device *device, struct sock *sk); hash 72 include/net/udp.h struct udp_hslot *hash; hash 82 include/net/udp.h return &table->hash[udp_hashfn(net, num, table->mask)]; hash 89 include/net/udp.h unsigned int hash) hash 91 include/net/udp.h return &table->hash2[hash & table->mask]; hash 213 include/net/udp.h u32 hash; hash 220 include/net/udp.h hash = skb_get_hash(skb); hash 221 include/net/udp.h if (unlikely(!hash)) { hash 226 include/net/udp.h hash = jhash(skb->data, 2 * ETH_ALEN, hash 232 include/net/udp.h hash = udp_flow_hashrnd(); hash 241 include/net/udp.h hash ^= hash << 16; hash 243 include/net/udp.h return htons((((u64) hash * (max - min)) >> 32) + min); hash 30 include/scsi/libiscsi_tcp.h struct ahash_request *hash; hash 103 include/scsi/libiscsi_tcp.h struct ahash_request *hash); hash 109 include/scsi/libiscsi_tcp.h struct ahash_request *hash); hash 112 include/scsi/libiscsi_tcp.h extern void iscsi_tcp_dgst_header(struct ahash_request *hash, const void *hdr, hash 180 include/trace/events/net.h __field( u32, hash ) hash 206 include/trace/events/net.h __entry->hash = skb->hash; hash 222 include/trace/events/net.h __entry->hash, __entry->l4_hash, __entry->len, hash 2986 include/uapi/linux/bpf.h __u32 hash; hash 3214 include/uapi/linux/bpf.h __u32 hash; /* A hash of the packet 4 tuples */ hash 309 include/uapi/linux/virtio_crypto.h struct virtio_crypto_hash_para hash; hash 293 include/xen/interface/io/netif.h uint64_t hash = 0; hash 307 include/xen/interface/io/netif.h hash ^= prefix; hash 321 include/xen/interface/io/netif.h return hash >> 32; hash 881 include/xen/interface/io/netif.h } hash; hash 51 init/initramfs.c struct hash *next; hash 65 init/initramfs.c struct hash **p, *q; hash 66 init/initramfs.c for (p = head + hash(major, minor, ino); *p; p = &(*p)->next) { hash 77 init/initramfs.c q = kmalloc(sizeof(struct hash), GFP_KERNEL); hash 92 init/initramfs.c struct hash **p, *q; hash 26 kernel/audit_tree.c struct list_head hash; hash 199 kernel/audit_tree.c INIT_LIST_HEAD(&chunk->hash); hash 240 kernel/audit_tree.c list_add_rcu(&chunk->hash, list); hash 250 kernel/audit_tree.c list_for_each_entry_rcu(p, list, hash) { hash 324 kernel/audit_tree.c list_replace_rcu(&old->hash, &new->hash); hash 369 kernel/audit_tree.c list_del_rcu(&chunk->hash); hash 1031 kernel/audit_tree.c list_del_rcu(&chunk->hash); hash 351 kernel/bpf/bpf_lru_list.c u32 hash) hash 353 kernel/bpf/bpf_lru_list.c *(u32 *)((void *)node + lru->hash_offset) = hash; hash 400 kernel/bpf/bpf_lru_list.c u32 hash) hash 421 kernel/bpf/bpf_lru_list.c *(u32 *)((void *)node + lru->hash_offset) = hash; hash 432 kernel/bpf/bpf_lru_list.c u32 hash) hash 452 kernel/bpf/bpf_lru_list.c __local_list_add_pending(lru, loc_l, cpu, node, hash); hash 487 kernel/bpf/bpf_lru_list.c __local_list_add_pending(lru, loc_l, cpu, node, hash); hash 494 kernel/bpf/bpf_lru_list.c struct bpf_lru_node *bpf_lru_pop_free(struct bpf_lru *lru, u32 hash) hash 497 kernel/bpf/bpf_lru_list.c return bpf_percpu_lru_pop_free(lru, hash); hash 499 kernel/bpf/bpf_lru_list.c return bpf_common_lru_pop_free(lru, hash); hash 78 kernel/bpf/bpf_lru_list.h struct bpf_lru_node *bpf_lru_pop_free(struct bpf_lru *lru, u32 hash); hash 94 kernel/bpf/devmap.c struct hlist_head *hash; hash 96 kernel/bpf/devmap.c hash = kmalloc_array(entries, sizeof(*hash), GFP_KERNEL); hash 97 kernel/bpf/devmap.c if (hash != NULL) hash 99 kernel/bpf/devmap.c INIT_HLIST_HEAD(&hash[i]); hash 101 kernel/bpf/devmap.c return hash; hash 56 kernel/bpf/hashtab.c u32 hash; hash 120 kernel/bpf/hashtab.c u32 hash) hash 122 kernel/bpf/hashtab.c struct bpf_lru_node *node = bpf_lru_pop_free(&htab->lru, hash); hash 166 kernel/bpf/hashtab.c offsetof(struct htab_elem, hash) - hash 410 kernel/bpf/hashtab.c static inline struct bucket *__select_bucket(struct bpf_htab *htab, u32 hash) hash 412 kernel/bpf/hashtab.c return &htab->buckets[hash & (htab->n_buckets - 1)]; hash 415 kernel/bpf/hashtab.c static inline struct hlist_nulls_head *select_bucket(struct bpf_htab *htab, u32 hash) hash 417 kernel/bpf/hashtab.c return &__select_bucket(htab, hash)->head; hash 421 kernel/bpf/hashtab.c static struct htab_elem *lookup_elem_raw(struct hlist_nulls_head *head, u32 hash, hash 428 kernel/bpf/hashtab.c if (l->hash == hash && !memcmp(&l->key, key, key_size)) hash 439 kernel/bpf/hashtab.c u32 hash, void *key, hash 447 kernel/bpf/hashtab.c if (l->hash == hash && !memcmp(&l->key, key, key_size)) hash 450 kernel/bpf/hashtab.c if (unlikely(get_nulls_value(n) != (hash & (n_buckets - 1)))) hash 466 kernel/bpf/hashtab.c u32 hash, key_size; hash 473 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); hash 475 kernel/bpf/hashtab.c head = select_bucket(htab, hash); hash 477 kernel/bpf/hashtab.c l = lookup_nulls_elem_raw(head, hash, key, key_size, htab->n_buckets); hash 580 kernel/bpf/hashtab.c b = __select_bucket(htab, tgt_l->hash); hash 602 kernel/bpf/hashtab.c u32 hash, key_size; hash 612 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); hash 614 kernel/bpf/hashtab.c head = select_bucket(htab, hash); hash 617 kernel/bpf/hashtab.c l = lookup_nulls_elem_raw(head, hash, key, key_size, htab->n_buckets); hash 633 kernel/bpf/hashtab.c i = hash & (htab->n_buckets - 1); hash 722 kernel/bpf/hashtab.c void *value, u32 key_size, u32 hash, hash 797 kernel/bpf/hashtab.c l_new->hash = hash; hash 827 kernel/bpf/hashtab.c u32 key_size, hash; hash 838 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); hash 840 kernel/bpf/hashtab.c b = __select_bucket(htab, hash); hash 847 kernel/bpf/hashtab.c l_old = lookup_nulls_elem_raw(head, hash, key, key_size, hash 868 kernel/bpf/hashtab.c l_old = lookup_elem_raw(head, hash, key, key_size); hash 888 kernel/bpf/hashtab.c l_new = alloc_htab_elem(htab, key, value, key_size, hash, false, false, hash 919 kernel/bpf/hashtab.c u32 key_size, hash; hash 930 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); hash 932 kernel/bpf/hashtab.c b = __select_bucket(htab, hash); hash 940 kernel/bpf/hashtab.c l_new = prealloc_lru_pop(htab, key, hash); hash 948 kernel/bpf/hashtab.c l_old = lookup_elem_raw(head, hash, key, key_size); hash 984 kernel/bpf/hashtab.c u32 key_size, hash; hash 995 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); hash 997 kernel/bpf/hashtab.c b = __select_bucket(htab, hash); hash 1003 kernel/bpf/hashtab.c l_old = lookup_elem_raw(head, hash, key, key_size); hash 1015 kernel/bpf/hashtab.c hash, true, onallcpus, NULL); hash 1037 kernel/bpf/hashtab.c u32 key_size, hash; hash 1048 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); hash 1050 kernel/bpf/hashtab.c b = __select_bucket(htab, hash); hash 1059 kernel/bpf/hashtab.c l_new = prealloc_lru_pop(htab, key, hash); hash 1067 kernel/bpf/hashtab.c l_old = lookup_elem_raw(head, hash, key, key_size); hash 1114 kernel/bpf/hashtab.c u32 hash, key_size; hash 1121 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); hash 1122 kernel/bpf/hashtab.c b = __select_bucket(htab, hash); hash 1127 kernel/bpf/hashtab.c l = lookup_elem_raw(head, hash, key, key_size); hash 1146 kernel/bpf/hashtab.c u32 hash, key_size; hash 1153 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); hash 1154 kernel/bpf/hashtab.c b = __select_bucket(htab, hash); hash 1159 kernel/bpf/hashtab.c l = lookup_elem_raw(head, hash, key, key_size); hash 20 kernel/bpf/stackmap.c u32 hash; hash 356 kernel/bpf/stackmap.c u32 hash, id, trace_nr, trace_len; hash 385 kernel/bpf/stackmap.c hash = jhash2((u32 *)ips, trace_len / sizeof(u32), 0); hash 386 kernel/bpf/stackmap.c id = hash & (smap->n_buckets - 1); hash 389 kernel/bpf/stackmap.c hash_matches = bucket && bucket->hash == hash; hash 428 kernel/bpf/stackmap.c new_bucket->hash = hash; hash 8373 kernel/events/core.c u64 hash = swevent_hash(type, event_id); hash 8375 kernel/events/core.c return &hlist->heads[hash]; hash 388 kernel/futex.c u32 hash = jhash2((u32 *)key, offsetof(typeof(*key), both.offset) / 4, hash 391 kernel/futex.c return &futex_queues[hash & (futex_hashsize - 1)]; hash 68 kernel/kprobes.c static raw_spinlock_t *kretprobe_table_lock_ptr(unsigned long hash) hash 70 kernel/kprobes.c return &(kretprobe_table_locks[hash].lock); hash 1200 kernel/kprobes.c unsigned long hash = hash_ptr(tsk, KPROBE_HASH_BITS); hash 1203 kernel/kprobes.c *head = &kretprobe_inst_table[hash]; hash 1204 kernel/kprobes.c hlist_lock = kretprobe_table_lock_ptr(hash); hash 1209 kernel/kprobes.c static void kretprobe_table_lock(unsigned long hash, hash 1213 kernel/kprobes.c raw_spinlock_t *hlist_lock = kretprobe_table_lock_ptr(hash); hash 1222 kernel/kprobes.c unsigned long hash = hash_ptr(tsk, KPROBE_HASH_BITS); hash 1225 kernel/kprobes.c hlist_lock = kretprobe_table_lock_ptr(hash); hash 1230 kernel/kprobes.c static void kretprobe_table_unlock(unsigned long hash, hash 1234 kernel/kprobes.c raw_spinlock_t *hlist_lock = kretprobe_table_lock_ptr(hash); hash 1250 kernel/kprobes.c unsigned long hash, flags = 0; hash 1257 kernel/kprobes.c hash = hash_ptr(tk, KPROBE_HASH_BITS); hash 1258 kernel/kprobes.c head = &kretprobe_inst_table[hash]; hash 1259 kernel/kprobes.c kretprobe_table_lock(hash, &flags); hash 1264 kernel/kprobes.c kretprobe_table_unlock(hash, &flags); hash 1285 kernel/kprobes.c unsigned long flags, hash; hash 1291 kernel/kprobes.c for (hash = 0; hash < KPROBE_TABLE_SIZE; hash++) { hash 1292 kernel/kprobes.c kretprobe_table_lock(hash, &flags); hash 1293 kernel/kprobes.c head = &kretprobe_inst_table[hash]; hash 1298 kernel/kprobes.c kretprobe_table_unlock(hash, &flags); hash 1861 kernel/kprobes.c unsigned long hash, flags = 0; hash 1876 kernel/kprobes.c hash = hash_ptr(current, KPROBE_HASH_BITS); hash 1898 kernel/kprobes.c kretprobe_table_lock(hash, &flags); hash 1899 kernel/kprobes.c hlist_add_head(&ri->hlist, &kretprobe_inst_table[hash]); hash 1900 kernel/kprobes.c kretprobe_table_unlock(hash, &flags); hash 461 kernel/locking/lockdep.c u32 hash; hash 475 kernel/locking/lockdep.c return t1->hash == t2->hash && t1->nr_entries == t2->nr_entries && hash 484 kernel/locking/lockdep.c u32 hash; hash 505 kernel/locking/lockdep.c hash = jhash(trace->entries, trace->nr_entries * hash 507 kernel/locking/lockdep.c trace->hash = hash; hash 508 kernel/locking/lockdep.c hash_head = stack_trace_hash + (hash & (STACK_TRACE_HASH_SIZE - 1)); hash 1107 kernel/locking/lockdep.c unsigned long hash = hash_long((uintptr_t)key, KEYHASH_BITS); hash 1109 kernel/locking/lockdep.c return lock_keys_hash + hash; hash 207 kernel/locking/qspinlock_paravirt.h #define for_each_hash_entry(he, offset, hash) \ hash 208 kernel/locking/qspinlock_paravirt.h for (hash &= ~(PV_HE_PER_LINE - 1), he = &pv_lock_hash[hash], offset = 0; \ hash 210 kernel/locking/qspinlock_paravirt.h offset++, he = &pv_lock_hash[(hash + offset) & ((1 << pv_lock_hash_bits) - 1)]) hash 214 kernel/locking/qspinlock_paravirt.h unsigned long offset, hash = hash_ptr(lock, pv_lock_hash_bits); hash 218 kernel/locking/qspinlock_paravirt.h for_each_hash_entry(he, offset, hash) { hash 241 kernel/locking/qspinlock_paravirt.h unsigned long offset, hash = hash_ptr(lock, pv_lock_hash_bits); hash 245 kernel/locking/qspinlock_paravirt.h for_each_hash_entry(he, offset, hash) { hash 34 kernel/module_signature.c ms->hash != 0 || hash 1373 kernel/sysctl_binary.c u32 hash = FNV32_OFFSET; hash 1376 kernel/sysctl_binary.c hash = (hash ^ name[i]) * FNV32_PRIME; hash 1377 kernel/sysctl_binary.c hash %= WARN_ONCE_HASH_SIZE; hash 1378 kernel/sysctl_binary.c if (__test_and_set_bit(hash, warn_once_bitmap)) hash 133 kernel/time/posix-timers.c struct hlist_head *head = &posix_timers_hashtable[hash(sig, id)]; hash 147 kernel/time/posix-timers.c head = &posix_timers_hashtable[hash(sig, sig->posix_timer_id)]; hash 407 kernel/trace/ftrace.c struct hlist_head *hash; hash 584 kernel/trace/ftrace.c memset(stat->hash, 0, hash 651 kernel/trace/ftrace.c if (stat->hash) { hash 663 kernel/trace/ftrace.c stat->hash = kcalloc(size, sizeof(struct hlist_head), GFP_KERNEL); hash 665 kernel/trace/ftrace.c if (!stat->hash) hash 670 kernel/trace/ftrace.c kfree(stat->hash); hash 671 kernel/trace/ftrace.c stat->hash = NULL; hash 701 kernel/trace/ftrace.c hhd = &stat->hash[key]; hash 720 kernel/trace/ftrace.c hlist_add_head_rcu(&rec->node, &stat->hash[key]); hash 773 kernel/trace/ftrace.c if (!stat->hash || !ftrace_profile_enabled) hash 823 kernel/trace/ftrace.c if (!stat->hash || !ftrace_profile_enabled) hash 1116 kernel/trace/ftrace.c ftrace_hash_key(struct ftrace_hash *hash, unsigned long ip) hash 1118 kernel/trace/ftrace.c if (hash->size_bits > 0) hash 1119 kernel/trace/ftrace.c return hash_long(ip, hash->size_bits); hash 1126 kernel/trace/ftrace.c __ftrace_lookup_ip(struct ftrace_hash *hash, unsigned long ip) hash 1132 kernel/trace/ftrace.c key = ftrace_hash_key(hash, ip); hash 1133 kernel/trace/ftrace.c hhd = &hash->buckets[key]; hash 1153 kernel/trace/ftrace.c ftrace_lookup_ip(struct ftrace_hash *hash, unsigned long ip) hash 1155 kernel/trace/ftrace.c if (ftrace_hash_empty(hash)) hash 1158 kernel/trace/ftrace.c return __ftrace_lookup_ip(hash, ip); hash 1161 kernel/trace/ftrace.c static void __add_hash_entry(struct ftrace_hash *hash, hash 1167 kernel/trace/ftrace.c key = ftrace_hash_key(hash, entry->ip); hash 1168 kernel/trace/ftrace.c hhd = &hash->buckets[key]; hash 1170 kernel/trace/ftrace.c hash->count++; hash 1173 kernel/trace/ftrace.c static int add_hash_entry(struct ftrace_hash *hash, unsigned long ip) hash 1182 kernel/trace/ftrace.c __add_hash_entry(hash, entry); hash 1188 kernel/trace/ftrace.c free_hash_entry(struct ftrace_hash *hash, hash 1193 kernel/trace/ftrace.c hash->count--; hash 1197 kernel/trace/ftrace.c remove_hash_entry(struct ftrace_hash *hash, hash 1201 kernel/trace/ftrace.c hash->count--; hash 1204 kernel/trace/ftrace.c static void ftrace_hash_clear(struct ftrace_hash *hash) hash 1209 kernel/trace/ftrace.c int size = 1 << hash->size_bits; hash 1212 kernel/trace/ftrace.c if (!hash->count) hash 1216 kernel/trace/ftrace.c hhd = &hash->buckets[i]; hash 1218 kernel/trace/ftrace.c free_hash_entry(hash, entry); hash 1220 kernel/trace/ftrace.c FTRACE_WARN_ON(hash->count); hash 1245 kernel/trace/ftrace.c static void free_ftrace_hash(struct ftrace_hash *hash) hash 1247 kernel/trace/ftrace.c if (!hash || hash == EMPTY_HASH) hash 1249 kernel/trace/ftrace.c ftrace_hash_clear(hash); hash 1250 kernel/trace/ftrace.c kfree(hash->buckets); hash 1251 kernel/trace/ftrace.c kfree(hash); hash 1256 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 1258 kernel/trace/ftrace.c hash = container_of(rcu, struct ftrace_hash, rcu); hash 1259 kernel/trace/ftrace.c free_ftrace_hash(hash); hash 1262 kernel/trace/ftrace.c static void free_ftrace_hash_rcu(struct ftrace_hash *hash) hash 1264 kernel/trace/ftrace.c if (!hash || hash == EMPTY_HASH) hash 1266 kernel/trace/ftrace.c call_rcu(&hash->rcu, __free_ftrace_hash_rcu); hash 1278 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 1281 kernel/trace/ftrace.c hash = kzalloc(sizeof(*hash), GFP_KERNEL); hash 1282 kernel/trace/ftrace.c if (!hash) hash 1286 kernel/trace/ftrace.c hash->buckets = kcalloc(size, sizeof(*hash->buckets), GFP_KERNEL); hash 1288 kernel/trace/ftrace.c if (!hash->buckets) { hash 1289 kernel/trace/ftrace.c kfree(hash); hash 1293 kernel/trace/ftrace.c hash->size_bits = size_bits; hash 1295 kernel/trace/ftrace.c return hash; hash 1328 kernel/trace/ftrace.c alloc_and_copy_ftrace_hash(int size_bits, struct ftrace_hash *hash) hash 1340 kernel/trace/ftrace.c if (hash) hash 1341 kernel/trace/ftrace.c new_hash->flags = hash->flags; hash 1344 kernel/trace/ftrace.c if (ftrace_hash_empty(hash)) hash 1347 kernel/trace/ftrace.c size = 1 << hash->size_bits; hash 1349 kernel/trace/ftrace.c hlist_for_each_entry(entry, &hash->buckets[i], hlist) { hash 1356 kernel/trace/ftrace.c FTRACE_WARN_ON(new_hash->count != hash->count); hash 1457 kernel/trace/ftrace.c struct ftrace_ops_hash *hash) hash 1465 kernel/trace/ftrace.c return (ftrace_hash_empty(hash->filter_hash) || hash 1466 kernel/trace/ftrace.c __ftrace_lookup_ip(hash->filter_hash, ip)) && hash 1467 kernel/trace/ftrace.c (ftrace_hash_empty(hash->notrace_hash) || hash 1468 kernel/trace/ftrace.c !__ftrace_lookup_ip(hash->notrace_hash, ip)); hash 1486 kernel/trace/ftrace.c struct ftrace_ops_hash hash; hash 1499 kernel/trace/ftrace.c rcu_assign_pointer(hash.filter_hash, ops->func_hash->filter_hash); hash 1500 kernel/trace/ftrace.c rcu_assign_pointer(hash.notrace_hash, ops->func_hash->notrace_hash); hash 1502 kernel/trace/ftrace.c if (hash_contains_ip(ip, &hash)) hash 1635 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 1659 kernel/trace/ftrace.c hash = ops->func_hash->filter_hash; hash 1661 kernel/trace/ftrace.c if (ftrace_hash_empty(hash)) hash 1665 kernel/trace/ftrace.c hash = ops->func_hash->notrace_hash; hash 1671 kernel/trace/ftrace.c if (ftrace_hash_empty(hash)) hash 1691 kernel/trace/ftrace.c in_hash = !!ftrace_lookup_ip(hash, rec->ip); hash 1782 kernel/trace/ftrace.c if (!all && count == hash->count) hash 1919 kernel/trace/ftrace.c struct ftrace_hash *hash = ops->func_hash->filter_hash; hash 1921 kernel/trace/ftrace.c if (ftrace_hash_empty(hash)) hash 1922 kernel/trace/ftrace.c hash = NULL; hash 1924 kernel/trace/ftrace.c return __ftrace_hash_update_ipmodify(ops, EMPTY_HASH, hash); hash 1930 kernel/trace/ftrace.c struct ftrace_hash *hash = ops->func_hash->filter_hash; hash 1932 kernel/trace/ftrace.c if (ftrace_hash_empty(hash)) hash 1933 kernel/trace/ftrace.c hash = NULL; hash 1935 kernel/trace/ftrace.c __ftrace_hash_update_ipmodify(ops, hash, EMPTY_HASH); hash 3059 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 3074 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 3098 kernel/trace/ftrace.c hash = iter->probe->ops.func_hash->filter_hash; hash 3104 kernel/trace/ftrace.c if (!hash || hash == EMPTY_HASH) hash 3107 kernel/trace/ftrace.c size = 1 << hash->size_bits; hash 3115 kernel/trace/ftrace.c hash = iter->probe->ops.func_hash->filter_hash; hash 3116 kernel/trace/ftrace.c size = 1 << hash->size_bits; hash 3120 kernel/trace/ftrace.c hhd = &hash->buckets[iter->pidx]; hash 3293 kernel/trace/ftrace.c !ftrace_lookup_ip(iter->hash, rec->ip)) || hash 3372 kernel/trace/ftrace.c ftrace_hash_empty(iter->hash)) { hash 3555 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 3582 kernel/trace/ftrace.c hash = ops->func_hash->notrace_hash; hash 3585 kernel/trace/ftrace.c hash = ops->func_hash->filter_hash; hash 3595 kernel/trace/ftrace.c iter->hash = alloc_ftrace_hash(size_bits); hash 3598 kernel/trace/ftrace.c iter->hash = alloc_and_copy_ftrace_hash(size_bits, hash); hash 3601 kernel/trace/ftrace.c if (!iter->hash) { hash 3606 kernel/trace/ftrace.c iter->hash = hash; hash 3619 kernel/trace/ftrace.c free_ftrace_hash(iter->hash); hash 3712 kernel/trace/ftrace.c enter_record(struct ftrace_hash *hash, struct dyn_ftrace *rec, int clear_filter) hash 3717 kernel/trace/ftrace.c entry = ftrace_lookup_ip(hash, rec->ip); hash 3723 kernel/trace/ftrace.c free_hash_entry(hash, entry); hash 3729 kernel/trace/ftrace.c ret = add_hash_entry(hash, rec->ip); hash 3735 kernel/trace/ftrace.c add_rec_by_index(struct ftrace_hash *hash, struct ftrace_glob *func_g, hash 3753 kernel/trace/ftrace.c enter_record(hash, rec, clear_filter); hash 3798 kernel/trace/ftrace.c match_records(struct ftrace_hash *hash, char *func, int len, char *mod) hash 3828 kernel/trace/ftrace.c found = add_rec_by_index(hash, &func_g, clear_filter); hash 3838 kernel/trace/ftrace.c ret = enter_record(hash, rec, clear_filter); hash 3853 kernel/trace/ftrace.c ftrace_match_records(struct ftrace_hash *hash, char *buff, int len) hash 3855 kernel/trace/ftrace.c return match_records(hash, buff, len, NULL); hash 3891 kernel/trace/ftrace.c struct ftrace_hash *hash, hash 3901 kernel/trace/ftrace.c ret = ftrace_hash_move(ops, enable, orig_hash, hash); hash 4073 kernel/trace/ftrace.c ftrace_mod_callback(struct trace_array *tr, struct ftrace_hash *hash, hash 4091 kernel/trace/ftrace.c ret = match_records(hash, func, strlen(func), module); hash 4137 kernel/trace/ftrace.c struct ftrace_hash hash; hash 4147 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 4154 kernel/trace/ftrace.c hash = alloc_ftrace_hash(FTRACE_HASH_DEFAULT_BITS); hash 4155 kernel/trace/ftrace.c return (struct ftrace_func_mapper *)hash; hash 4175 kernel/trace/ftrace.c entry = ftrace_lookup_ip(&mapper->hash, ip); hash 4197 kernel/trace/ftrace.c entry = ftrace_lookup_ip(&mapper->hash, ip); hash 4208 kernel/trace/ftrace.c __add_hash_entry(&mapper->hash, &map->entry); hash 4230 kernel/trace/ftrace.c entry = ftrace_lookup_ip(&mapper->hash, ip); hash 4237 kernel/trace/ftrace.c remove_hash_entry(&mapper->hash, entry); hash 4262 kernel/trace/ftrace.c if (free_func && mapper->hash.count) { hash 4263 kernel/trace/ftrace.c size = 1 << mapper->hash.size_bits; hash 4265 kernel/trace/ftrace.c hhd = &mapper->hash.buckets[i]; hash 4272 kernel/trace/ftrace.c free_ftrace_hash(&mapper->hash); hash 4318 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 4363 kernel/trace/ftrace.c hash = alloc_and_copy_ftrace_hash(FTRACE_HASH_DEFAULT_BITS, old_hash); hash 4365 kernel/trace/ftrace.c if (!hash) { hash 4370 kernel/trace/ftrace.c ret = ftrace_match_records(hash, glob, strlen(glob)); hash 4379 kernel/trace/ftrace.c size = 1 << hash->size_bits; hash 4381 kernel/trace/ftrace.c hlist_for_each_entry(entry, &hash->buckets[i], hlist) { hash 4414 kernel/trace/ftrace.c hash, 1); hash 4431 kernel/trace/ftrace.c free_ftrace_hash(hash); hash 4443 kernel/trace/ftrace.c hlist_for_each_entry(entry, &hash->buckets[i], hlist) { hash 4462 kernel/trace/ftrace.c struct ftrace_hash *hash = NULL; hash 4514 kernel/trace/ftrace.c hash = alloc_and_copy_ftrace_hash(FTRACE_HASH_DEFAULT_BITS, old_hash); hash 4515 kernel/trace/ftrace.c if (!hash) hash 4520 kernel/trace/ftrace.c size = 1 << hash->size_bits; hash 4522 kernel/trace/ftrace.c hlist_for_each_entry_safe(entry, tmp, &hash->buckets[i], hlist) { hash 4531 kernel/trace/ftrace.c remove_hash_entry(hash, entry); hash 4548 kernel/trace/ftrace.c if (ftrace_hash_empty(hash)) hash 4552 kernel/trace/ftrace.c hash, 1); hash 4555 kernel/trace/ftrace.c if (ftrace_enabled && !ftrace_hash_empty(hash)) hash 4570 kernel/trace/ftrace.c free_ftrace_hash(hash); hash 4641 kernel/trace/ftrace.c struct ftrace_hash *hash = iter->hash; hash 4650 kernel/trace/ftrace.c ret = ftrace_match_records(hash, func, len); hash 4665 kernel/trace/ftrace.c ret = p->func(tr, hash, func, command, next, enable); hash 4729 kernel/trace/ftrace.c ftrace_match_addr(struct ftrace_hash *hash, unsigned long ip, int remove) hash 4737 kernel/trace/ftrace.c entry = ftrace_lookup_ip(hash, ip); hash 4740 kernel/trace/ftrace.c free_hash_entry(hash, entry); hash 4744 kernel/trace/ftrace.c return add_hash_entry(hash, ip); hash 4752 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 4766 kernel/trace/ftrace.c hash = alloc_ftrace_hash(FTRACE_HASH_DEFAULT_BITS); hash 4768 kernel/trace/ftrace.c hash = alloc_and_copy_ftrace_hash(FTRACE_HASH_DEFAULT_BITS, *orig_hash); hash 4770 kernel/trace/ftrace.c if (!hash) { hash 4775 kernel/trace/ftrace.c if (buf && !ftrace_match_records(hash, buf, len)) { hash 4780 kernel/trace/ftrace.c ret = ftrace_match_addr(hash, ip, remove); hash 4786 kernel/trace/ftrace.c ret = ftrace_hash_move_and_update_ops(ops, orig_hash, hash, enable); hash 4792 kernel/trace/ftrace.c free_ftrace_hash(hash); hash 4941 kernel/trace/ftrace.c static int ftrace_graph_set_hash(struct ftrace_hash *hash, char *buffer); hash 4970 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 4972 kernel/trace/ftrace.c hash = alloc_ftrace_hash(FTRACE_HASH_DEFAULT_BITS); hash 4973 kernel/trace/ftrace.c if (WARN_ON(!hash)) hash 4979 kernel/trace/ftrace.c ret = ftrace_graph_set_hash(hash, func); hash 4986 kernel/trace/ftrace.c ftrace_graph_hash = hash; hash 4988 kernel/trace/ftrace.c ftrace_graph_notrace_hash = hash; hash 5036 kernel/trace/ftrace.c ftrace_match_records(iter->hash, parser->buffer, parser->idx); hash 5049 kernel/trace/ftrace.c iter->hash->flags |= FTRACE_HASH_FL_MOD; hash 5055 kernel/trace/ftrace.c iter->hash, filter_hash); hash 5059 kernel/trace/ftrace.c iter->hash = NULL; hash 5063 kernel/trace/ftrace.c free_ftrace_hash(iter->hash); hash 5116 kernel/trace/ftrace.c struct ftrace_hash *hash; hash 5133 kernel/trace/ftrace.c if (*pos >= fgd->hash->count) hash 5145 kernel/trace/ftrace.c for (i = idx; i < 1 << fgd->hash->size_bits; i++) { hash 5146 kernel/trace/ftrace.c head = &fgd->hash->buckets[i]; hash 5170 kernel/trace/ftrace.c fgd->hash = rcu_dereference_protected(ftrace_graph_hash, hash 5173 kernel/trace/ftrace.c fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, hash 5177 kernel/trace/ftrace.c if (ftrace_hash_empty(fgd->hash) && !*pos) hash 5240 kernel/trace/ftrace.c fgd->hash); hash 5271 kernel/trace/ftrace.c fgd->hash = NULL; hash 5291 kernel/trace/ftrace.c fgd->hash = rcu_dereference_protected(ftrace_graph_hash, hash 5319 kernel/trace/ftrace.c fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, hash 5402 kernel/trace/ftrace.c ftrace_graph_set_hash(struct ftrace_hash *hash, char *buffer) hash 5430 kernel/trace/ftrace.c entry = ftrace_lookup_ip(hash, rec->ip); hash 5437 kernel/trace/ftrace.c if (add_hash_entry(hash, rec->ip) < 0) hash 5441 kernel/trace/ftrace.c free_hash_entry(hash, entry); hash 5710 kernel/trace/ftrace.c clear_mod_from_hash(struct ftrace_page *pg, struct ftrace_hash *hash) hash 5716 kernel/trace/ftrace.c if (ftrace_hash_empty(hash)) hash 5721 kernel/trace/ftrace.c entry = __ftrace_lookup_ip(hash, rec->ip); hash 6072 kernel/trace/ftrace.c clear_func_from_hash(struct ftrace_init_func *func, struct ftrace_hash *hash) hash 6076 kernel/trace/ftrace.c entry = ftrace_lookup_ip(hash, func->ip); hash 7715 kernel/trace/trace.c ftrace_trace_snapshot_callback(struct trace_array *tr, struct ftrace_hash *hash, hash 887 kernel/trace/trace.h ftrace_lookup_ip(struct ftrace_hash *hash, unsigned long ip); hash 889 kernel/trace/trace.h static __always_inline bool ftrace_hash_empty(struct ftrace_hash *hash) hash 891 kernel/trace/trace.h return !hash || !(hash->count || (hash->flags & FTRACE_HASH_FL_MOD)); hash 942 kernel/trace/trace.h struct ftrace_hash *hash; hash 952 kernel/trace/trace.h hash = rcu_dereference_protected(ftrace_graph_hash, !preemptible()); hash 954 kernel/trace/trace.h if (ftrace_hash_empty(hash)) { hash 959 kernel/trace/trace.h if (ftrace_lookup_ip(hash, addr)) { hash 1054 kernel/trace/trace.h struct ftrace_hash *hash, hash 2693 kernel/trace/trace_events.c event_enable_func(struct trace_array *tr, struct ftrace_hash *hash, hash 639 kernel/trace/trace_functions.c struct ftrace_hash *hash, char *glob, hash 676 kernel/trace/trace_functions.c ftrace_trace_onoff_callback(struct trace_array *tr, struct ftrace_hash *hash, hash 690 kernel/trace/trace_functions.c return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, hash 695 kernel/trace/trace_functions.c ftrace_stacktrace_callback(struct trace_array *tr, struct ftrace_hash *hash, hash 705 kernel/trace/trace_functions.c return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, hash 710 kernel/trace/trace_functions.c ftrace_dump_callback(struct trace_array *tr, struct ftrace_hash *hash, hash 721 kernel/trace/trace_functions.c return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, hash 726 kernel/trace/trace_functions.c ftrace_cpudump_callback(struct trace_array *tr, struct ftrace_hash *hash, hash 737 kernel/trace/trace_functions.c return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, hash 3390 kernel/workqueue.c u32 hash = 0; hash 3392 kernel/workqueue.c hash = jhash_1word(attrs->nice, hash); hash 3393 kernel/workqueue.c hash = jhash(cpumask_bits(attrs->cpumask), hash 3394 kernel/workqueue.c BITS_TO_LONGS(nr_cpumask_bits) * sizeof(long), hash); hash 3395 kernel/workqueue.c return hash; hash 3589 kernel/workqueue.c u32 hash = wqattrs_hash(attrs); hash 3597 kernel/workqueue.c hash_for_each_possible(unbound_pool_hash, pool, hash_node, hash) { hash 3638 kernel/workqueue.c hash_add(unbound_pool_hash, &pool->hash_node, hash); hash 470 lib/debugobjects.c unsigned long hash; hash 472 lib/debugobjects.c hash = hash_long((addr >> ODEBUG_CHUNK_SHIFT), ODEBUG_HASH_BITS); hash 473 lib/debugobjects.c return &obj_hash[hash]; hash 205 lib/digsig.c unsigned char hash[SHA1_DIGEST_SIZE]; hash 244 lib/digsig.c crypto_shash_final(desc, hash); hash 250 lib/digsig.c hash, sizeof(hash)); hash 1536 lib/iov_iter.c struct ahash_request *hash = hashp; hash 1542 lib/iov_iter.c ahash_request_set_crypt(hash, &sg, NULL, copied); hash 1543 lib/iov_iter.c crypto_ahash_update(hash); hash 30 lib/oid_registry.c unsigned i, j, k, hash; hash 34 lib/oid_registry.c hash = datasize - 1; hash 37 lib/oid_registry.c hash += octets[i] * 33; hash 38 lib/oid_registry.c hash = (hash >> 24) ^ (hash >> 16) ^ (hash >> 8) ^ hash; hash 39 lib/oid_registry.c hash &= 0xff; hash 50 lib/oid_registry.c xhash = oid_search_table[j].hash; hash 51 lib/oid_registry.c if (xhash > hash) { hash 55 lib/oid_registry.c if (xhash < hash) { hash 53 lib/rhashtable.c int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) hash 59 lib/rhashtable.c return bit_spin_is_locked(0, (unsigned long *)&tbl->buckets[hash]); hash 480 lib/rhashtable.c struct bucket_table *tbl, unsigned int hash, hash 492 lib/rhashtable.c rht_for_each_from(head, rht_ptr(bkt, tbl, hash), tbl, hash) { hash 512 lib/rhashtable.c head = rht_dereference_bucket(head->next, tbl, hash); hash 532 lib/rhashtable.c unsigned int hash, hash 558 lib/rhashtable.c head = rht_ptr(bkt, tbl, hash); hash 586 lib/rhashtable.c unsigned int hash; hash 593 lib/rhashtable.c hash = rht_head_hashfn(ht, tbl, obj, ht->p); hash 596 lib/rhashtable.c bkt = rht_bucket_var(tbl, hash); hash 598 lib/rhashtable.c bkt = rht_bucket_insert(ht, tbl, hash); hash 605 lib/rhashtable.c hash, key, obj); hash 607 lib/rhashtable.c hash, obj, data); hash 1168 lib/rhashtable.c unsigned int hash) hash 1171 lib/rhashtable.c unsigned int index = hash & ((1 << tbl->nest) - 1); hash 1173 lib/rhashtable.c unsigned int subhash = hash; hash 1177 lib/rhashtable.c ntbl = rht_dereference_bucket_rcu(ntbl[index].table, tbl, hash); hash 1183 lib/rhashtable.c tbl, hash); hash 1197 lib/rhashtable.c unsigned int hash) hash 1203 lib/rhashtable.c return __rht_bucket_nested(tbl, hash) ?: &rhnull; hash 1209 lib/rhashtable.c unsigned int hash) hash 1212 lib/rhashtable.c unsigned int index = hash & ((1 << tbl->nest) - 1); hash 1217 lib/rhashtable.c hash >>= tbl->nest; hash 1222 lib/rhashtable.c index = hash & ((1 << shift) - 1); hash 1224 lib/rhashtable.c hash >>= shift; hash 1232 lib/rhashtable.c return &ntbl[hash].bucket; hash 61 lib/stackdepot.c u32 hash; /* Hash in the hastable */ hash 104 lib/stackdepot.c u32 hash, void **prealloc, gfp_t alloc_flags) hash 133 lib/stackdepot.c stack->hash = hash; hash 179 lib/stackdepot.c u32 hash) hash 184 lib/stackdepot.c if (found->hash == hash && hash 232 lib/stackdepot.c u32 hash; hash 237 lib/stackdepot.c hash = hash_stack(entries, nr_entries); hash 238 lib/stackdepot.c bucket = &stack_table[hash & STACK_HASH_MASK]; hash 246 lib/stackdepot.c nr_entries, hash); hash 274 lib/stackdepot.c found = find_stack(*bucket, entries, nr_entries, hash); hash 278 lib/stackdepot.c hash, &prealloc, alloc_flags); hash 6486 lib/test_bpf.c skb->hash = SKB_HASH; hash 93 lib/xz/xz_dec_stream.c struct xz_dec_hash hash; hash 115 lib/xz/xz_dec_stream.c struct xz_dec_hash hash; hash 259 lib/xz/xz_dec_stream.c s->block.hash.unpadded += s->block_header.size hash 263 lib/xz/xz_dec_stream.c s->block.hash.unpadded += check_sizes[s->check_type]; hash 266 lib/xz/xz_dec_stream.c s->block.hash.unpadded += 4; hash 269 lib/xz/xz_dec_stream.c s->block.hash.uncompressed += s->block.uncompressed; hash 270 lib/xz/xz_dec_stream.c s->block.hash.crc32 = xz_crc32( hash 271 lib/xz/xz_dec_stream.c (const uint8_t *)&s->block.hash, hash 272 lib/xz/xz_dec_stream.c sizeof(s->block.hash), s->block.hash.crc32); hash 323 lib/xz/xz_dec_stream.c s->index.hash.unpadded += s->vli; hash 328 lib/xz/xz_dec_stream.c s->index.hash.uncompressed += s->vli; hash 329 lib/xz/xz_dec_stream.c s->index.hash.crc32 = xz_crc32( hash 330 lib/xz/xz_dec_stream.c (const uint8_t *)&s->index.hash, hash 331 lib/xz/xz_dec_stream.c sizeof(s->index.hash), hash 332 lib/xz/xz_dec_stream.c s->index.hash.crc32); hash 696 lib/xz/xz_dec_stream.c if (!memeq(&s->block.hash, &s->index.hash, hash 697 lib/xz/xz_dec_stream.c sizeof(s->block.hash))) hash 3948 mm/hugetlb.c u32 hash; hash 3967 mm/hugetlb.c hash = hugetlb_fault_mutex_hash(h, mapping, idx, haddr); hash 3968 mm/hugetlb.c mutex_unlock(&hugetlb_fault_mutex_table[hash]); hash 3970 mm/hugetlb.c mutex_lock(&hugetlb_fault_mutex_table[hash]); hash 4098 mm/hugetlb.c u32 hash; hash 4103 mm/hugetlb.c hash = jhash2((u32 *)&key, sizeof(key)/sizeof(u32), 0); hash 4105 mm/hugetlb.c return hash & (num_fault_mutexes - 1); hash 4125 mm/hugetlb.c u32 hash; hash 4157 mm/hugetlb.c hash = hugetlb_fault_mutex_hash(h, mapping, idx, haddr); hash 4158 mm/hugetlb.c mutex_lock(&hugetlb_fault_mutex_table[hash]); hash 4243 mm/hugetlb.c mutex_unlock(&hugetlb_fault_mutex_table[hash]); hash 89 mm/khugepaged.c struct hlist_node hash; hash 388 mm/khugepaged.c hash_for_each_possible(mm_slots_hash, mm_slot, hash, (unsigned long)mm) hash 399 mm/khugepaged.c hash_add(mm_slots_hash, &mm_slot->hash, (long)mm); hash 492 mm/khugepaged.c hash_del(&mm_slot->hash); hash 1248 mm/khugepaged.c hash_del(&mm_slot->hash); hash 190 mm/userfaultfd.c u32 hash; hash 272 mm/userfaultfd.c hash = hugetlb_fault_mutex_hash(h, mapping, idx, dst_addr); hash 273 mm/userfaultfd.c mutex_lock(&hugetlb_fault_mutex_table[hash]); hash 278 mm/userfaultfd.c mutex_unlock(&hugetlb_fault_mutex_table[hash]); hash 285 mm/userfaultfd.c mutex_unlock(&hugetlb_fault_mutex_table[hash]); hash 292 mm/userfaultfd.c mutex_unlock(&hugetlb_fault_mutex_table[hash]); hash 413 net/appletalk/aarp.c int hash = sa->s_node % (AARP_HASH_SIZE - 1); hash 418 net/appletalk/aarp.c a = __aarp_find_entry(proxies[hash], dev, sa); hash 429 net/appletalk/aarp.c int hash = sa->s_node % (AARP_HASH_SIZE - 1); hash 430 net/appletalk/aarp.c struct aarp_entry *a = __aarp_find_entry(proxies[hash], dev, sa); hash 483 net/appletalk/aarp.c int hash, retval = -EPROTONOSUPPORT; hash 512 net/appletalk/aarp.c hash = sa->s_node % (AARP_HASH_SIZE - 1); hash 513 net/appletalk/aarp.c entry->next = proxies[hash]; hash 514 net/appletalk/aarp.c proxies[hash] = entry; hash 547 net/appletalk/aarp.c int hash; hash 603 net/appletalk/aarp.c hash = sa->s_node % (AARP_HASH_SIZE - 1); hash 613 net/appletalk/aarp.c a = __aarp_find_entry(resolved[hash], dev, sa); hash 623 net/appletalk/aarp.c a = __aarp_find_entry(unresolved[hash], dev, sa); hash 641 net/appletalk/aarp.c a->next = unresolved[hash]; hash 644 net/appletalk/aarp.c unresolved[hash] = a; hash 686 net/appletalk/aarp.c int hash) hash 696 net/appletalk/aarp.c a->next = resolved[hash]; hash 697 net/appletalk/aarp.c resolved[hash] = a; hash 717 net/appletalk/aarp.c int hash, ret = 0; hash 743 net/appletalk/aarp.c hash = ea->pa_src_node % (AARP_HASH_SIZE - 1); hash 766 net/appletalk/aarp.c a = __aarp_find_entry(proxies[hash], dev, &da); hash 783 net/appletalk/aarp.c a = __aarp_find_entry(unresolved[hash], dev, &sa); hash 789 net/appletalk/aarp.c __aarp_resolved(&unresolved[hash], a, hash); hash 743 net/batman-adv/bat_iv_ogm.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 751 net/batman-adv/bat_iv_ogm.c for (i = 0; i < hash->size; i++) { hash 752 net/batman-adv/bat_iv_ogm.c head = &hash->table[i]; hash 1822 net/batman-adv/bat_iv_ogm.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 1834 net/batman-adv/bat_iv_ogm.c for (i = 0; i < hash->size; i++) { hash 1835 net/batman-adv/bat_iv_ogm.c head = &hash->table[i]; hash 2086 net/batman-adv/bat_iv_ogm.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 2093 net/batman-adv/bat_iv_ogm.c while (bucket < hash->size) { hash 2094 net/batman-adv/bat_iv_ogm.c head = &hash->table[bucket]; hash 352 net/batman-adv/bat_v.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 364 net/batman-adv/bat_v.c for (i = 0; i < hash->size; i++) { hash 365 net/batman-adv/bat_v.c head = &hash->table[i]; hash 581 net/batman-adv/bat_v.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 588 net/batman-adv/bat_v.c while (bucket < hash->size) { hash 589 net/batman-adv/bat_v.c head = &hash->table[bucket]; hash 69 net/batman-adv/bridge_loop_avoidance.c u32 hash = 0; hash 71 net/batman-adv/bridge_loop_avoidance.c hash = jhash(&claim->addr, sizeof(claim->addr), hash); hash 72 net/batman-adv/bridge_loop_avoidance.c hash = jhash(&claim->vid, sizeof(claim->vid), hash); hash 74 net/batman-adv/bridge_loop_avoidance.c return hash % size; hash 87 net/batman-adv/bridge_loop_avoidance.c u32 hash = 0; hash 89 net/batman-adv/bridge_loop_avoidance.c hash = jhash(&claim->addr, sizeof(claim->addr), hash); hash 90 net/batman-adv/bridge_loop_avoidance.c hash = jhash(&claim->vid, sizeof(claim->vid), hash); hash 92 net/batman-adv/bridge_loop_avoidance.c return hash % size; hash 214 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash = bat_priv->bla.claim_hash; hash 220 net/batman-adv/bridge_loop_avoidance.c if (!hash) hash 223 net/batman-adv/bridge_loop_avoidance.c index = batadv_choose_claim(data, hash->size); hash 224 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[index]; hash 254 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash = bat_priv->bla.backbone_hash; hash 260 net/batman-adv/bridge_loop_avoidance.c if (!hash) hash 266 net/batman-adv/bridge_loop_avoidance.c index = batadv_choose_backbone_gw(&search_entry, hash->size); hash 267 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[index]; hash 293 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash; hash 300 net/batman-adv/bridge_loop_avoidance.c hash = backbone_gw->bat_priv->bla.claim_hash; hash 301 net/batman-adv/bridge_loop_avoidance.c if (!hash) hash 304 net/batman-adv/bridge_loop_avoidance.c for (i = 0; i < hash->size; i++) { hash 305 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[i]; hash 306 net/batman-adv/bridge_loop_avoidance.c list_lock = &hash->list_locks[i]; hash 589 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash; hash 604 net/batman-adv/bridge_loop_avoidance.c hash = bat_priv->bla.claim_hash; hash 605 net/batman-adv/bridge_loop_avoidance.c for (i = 0; i < hash->size; i++) { hash 606 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[i]; hash 1218 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash; hash 1222 net/batman-adv/bridge_loop_avoidance.c hash = bat_priv->bla.backbone_hash; hash 1223 net/batman-adv/bridge_loop_avoidance.c if (!hash) hash 1226 net/batman-adv/bridge_loop_avoidance.c for (i = 0; i < hash->size; i++) { hash 1227 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[i]; hash 1228 net/batman-adv/bridge_loop_avoidance.c list_lock = &hash->list_locks[i]; hash 1273 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash; hash 1276 net/batman-adv/bridge_loop_avoidance.c hash = bat_priv->bla.claim_hash; hash 1277 net/batman-adv/bridge_loop_avoidance.c if (!hash) hash 1280 net/batman-adv/bridge_loop_avoidance.c for (i = 0; i < hash->size; i++) { hash 1281 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[i]; hash 1328 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash; hash 1346 net/batman-adv/bridge_loop_avoidance.c hash = bat_priv->bla.backbone_hash; hash 1347 net/batman-adv/bridge_loop_avoidance.c if (!hash) hash 1350 net/batman-adv/bridge_loop_avoidance.c for (i = 0; i < hash->size; i++) { hash 1351 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[i]; hash 1426 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash; hash 1460 net/batman-adv/bridge_loop_avoidance.c hash = bat_priv->bla.backbone_hash; hash 1461 net/batman-adv/bridge_loop_avoidance.c if (!hash) hash 1464 net/batman-adv/bridge_loop_avoidance.c for (i = 0; i < hash->size; i++) { hash 1465 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[i]; hash 1663 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash = bat_priv->bla.backbone_hash; hash 1671 net/batman-adv/bridge_loop_avoidance.c if (!hash) hash 1674 net/batman-adv/bridge_loop_avoidance.c for (i = 0; i < hash->size; i++) { hash 1675 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[i]; hash 2038 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash = bat_priv->bla.claim_hash; hash 2059 net/batman-adv/bridge_loop_avoidance.c for (i = 0; i < hash->size; i++) { hash 2060 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[i]; hash 2169 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash, unsigned int bucket, hash 2176 net/batman-adv/bridge_loop_avoidance.c spin_lock_bh(&hash->list_locks[bucket]); hash 2177 net/batman-adv/bridge_loop_avoidance.c cb->seq = atomic_read(&hash->generation) << 1 | 1; hash 2179 net/batman-adv/bridge_loop_avoidance.c hlist_for_each_entry(claim, &hash->table[bucket], hash_entry) { hash 2193 net/batman-adv/bridge_loop_avoidance.c spin_unlock_bh(&hash->list_locks[bucket]); hash 2210 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash; hash 2229 net/batman-adv/bridge_loop_avoidance.c hash = bat_priv->bla.claim_hash; hash 2237 net/batman-adv/bridge_loop_avoidance.c while (bucket < hash->size) { hash 2239 net/batman-adv/bridge_loop_avoidance.c hash, bucket, &idx)) hash 2272 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash = bat_priv->bla.backbone_hash; hash 2292 net/batman-adv/bridge_loop_avoidance.c for (i = 0; i < hash->size; i++) { hash 2293 net/batman-adv/bridge_loop_avoidance.c head = &hash->table[i]; hash 2407 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash, hash 2414 net/batman-adv/bridge_loop_avoidance.c spin_lock_bh(&hash->list_locks[bucket]); hash 2415 net/batman-adv/bridge_loop_avoidance.c cb->seq = atomic_read(&hash->generation) << 1 | 1; hash 2417 net/batman-adv/bridge_loop_avoidance.c hlist_for_each_entry(backbone_gw, &hash->table[bucket], hash_entry) { hash 2431 net/batman-adv/bridge_loop_avoidance.c spin_unlock_bh(&hash->list_locks[bucket]); hash 2448 net/batman-adv/bridge_loop_avoidance.c struct batadv_hashtable *hash; hash 2467 net/batman-adv/bridge_loop_avoidance.c hash = bat_priv->bla.backbone_hash; hash 2475 net/batman-adv/bridge_loop_avoidance.c while (bucket < hash->size) { hash 2477 net/batman-adv/bridge_loop_avoidance.c hash, bucket, &idx)) hash 166 net/batman-adv/distributed-arp-table.c if (!bat_priv->dat.hash) hash 169 net/batman-adv/distributed-arp-table.c for (i = 0; i < bat_priv->dat.hash->size; i++) { hash 170 net/batman-adv/distributed-arp-table.c head = &bat_priv->dat.hash->table[i]; hash 171 net/batman-adv/distributed-arp-table.c list_lock = &bat_priv->dat.hash->list_locks[i]; hash 285 net/batman-adv/distributed-arp-table.c u32 hash = 0; hash 293 net/batman-adv/distributed-arp-table.c hash += key[i]; hash 294 net/batman-adv/distributed-arp-table.c hash += (hash << 10); hash 295 net/batman-adv/distributed-arp-table.c hash ^= (hash >> 6); hash 301 net/batman-adv/distributed-arp-table.c hash += key[i]; hash 302 net/batman-adv/distributed-arp-table.c hash += (hash << 10); hash 303 net/batman-adv/distributed-arp-table.c hash ^= (hash >> 6); hash 306 net/batman-adv/distributed-arp-table.c hash += (hash << 3); hash 307 net/batman-adv/distributed-arp-table.c hash ^= (hash >> 11); hash 308 net/batman-adv/distributed-arp-table.c hash += (hash << 15); hash 310 net/batman-adv/distributed-arp-table.c return hash % size; hash 328 net/batman-adv/distributed-arp-table.c struct batadv_hashtable *hash = bat_priv->dat.hash; hash 331 net/batman-adv/distributed-arp-table.c if (!hash) hash 337 net/batman-adv/distributed-arp-table.c index = batadv_hash_dat(&to_find, hash->size); hash 338 net/batman-adv/distributed-arp-table.c head = &hash->table[index]; hash 393 net/batman-adv/distributed-arp-table.c hash_added = batadv_hash_add(bat_priv->dat.hash, batadv_compare_dat, hash 565 net/batman-adv/distributed-arp-table.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 577 net/batman-adv/distributed-arp-table.c for (i = 0; i < hash->size; i++) { hash 578 net/batman-adv/distributed-arp-table.c head = &hash->table[i]; hash 794 net/batman-adv/distributed-arp-table.c if (!bat_priv->dat.hash) hash 799 net/batman-adv/distributed-arp-table.c batadv_hash_destroy(bat_priv->dat.hash); hash 801 net/batman-adv/distributed-arp-table.c bat_priv->dat.hash = NULL; hash 812 net/batman-adv/distributed-arp-table.c if (bat_priv->dat.hash) hash 815 net/batman-adv/distributed-arp-table.c bat_priv->dat.hash = batadv_hash_new(1024); hash 817 net/batman-adv/distributed-arp-table.c if (!bat_priv->dat.hash) hash 855 net/batman-adv/distributed-arp-table.c struct batadv_hashtable *hash = bat_priv->dat.hash; hash 871 net/batman-adv/distributed-arp-table.c for (i = 0; i < hash->size; i++) { hash 872 net/batman-adv/distributed-arp-table.c head = &hash->table[i]; hash 954 net/batman-adv/distributed-arp-table.c struct batadv_hashtable *hash, unsigned int bucket, hash 960 net/batman-adv/distributed-arp-table.c spin_lock_bh(&hash->list_locks[bucket]); hash 961 net/batman-adv/distributed-arp-table.c cb->seq = atomic_read(&hash->generation) << 1 | 1; hash 963 net/batman-adv/distributed-arp-table.c hlist_for_each_entry(dat_entry, &hash->table[bucket], hash_entry) { hash 968 net/batman-adv/distributed-arp-table.c spin_unlock_bh(&hash->list_locks[bucket]); hash 977 net/batman-adv/distributed-arp-table.c spin_unlock_bh(&hash->list_locks[bucket]); hash 995 net/batman-adv/distributed-arp-table.c struct batadv_hashtable *hash; hash 1014 net/batman-adv/distributed-arp-table.c hash = bat_priv->dat.hash; hash 1022 net/batman-adv/distributed-arp-table.c while (bucket < hash->size) { hash 1023 net/batman-adv/distributed-arp-table.c if (batadv_dat_cache_dump_bucket(msg, portid, cb, hash, bucket, hash 15 net/batman-adv/hash.c static void batadv_hash_init(struct batadv_hashtable *hash) hash 19 net/batman-adv/hash.c for (i = 0; i < hash->size; i++) { hash 20 net/batman-adv/hash.c INIT_HLIST_HEAD(&hash->table[i]); hash 21 net/batman-adv/hash.c spin_lock_init(&hash->list_locks[i]); hash 24 net/batman-adv/hash.c atomic_set(&hash->generation, 0); hash 31 net/batman-adv/hash.c void batadv_hash_destroy(struct batadv_hashtable *hash) hash 33 net/batman-adv/hash.c kfree(hash->list_locks); hash 34 net/batman-adv/hash.c kfree(hash->table); hash 35 net/batman-adv/hash.c kfree(hash); hash 46 net/batman-adv/hash.c struct batadv_hashtable *hash; hash 48 net/batman-adv/hash.c hash = kmalloc(sizeof(*hash), GFP_ATOMIC); hash 49 net/batman-adv/hash.c if (!hash) hash 52 net/batman-adv/hash.c hash->table = kmalloc_array(size, sizeof(*hash->table), GFP_ATOMIC); hash 53 net/batman-adv/hash.c if (!hash->table) hash 56 net/batman-adv/hash.c hash->list_locks = kmalloc_array(size, sizeof(*hash->list_locks), hash 58 net/batman-adv/hash.c if (!hash->list_locks) hash 61 net/batman-adv/hash.c hash->size = size; hash 62 net/batman-adv/hash.c batadv_hash_init(hash); hash 63 net/batman-adv/hash.c return hash; hash 66 net/batman-adv/hash.c kfree(hash->table); hash 68 net/batman-adv/hash.c kfree(hash); hash 77 net/batman-adv/hash.c void batadv_hash_set_lock_class(struct batadv_hashtable *hash, hash 82 net/batman-adv/hash.c for (i = 0; i < hash->size; i++) hash 83 net/batman-adv/hash.c lockdep_set_class(&hash->list_locks[i], key); hash 58 net/batman-adv/hash.h void batadv_hash_set_lock_class(struct batadv_hashtable *hash, hash 62 net/batman-adv/hash.h void batadv_hash_destroy(struct batadv_hashtable *hash); hash 75 net/batman-adv/hash.h static inline int batadv_hash_add(struct batadv_hashtable *hash, hash 87 net/batman-adv/hash.h if (!hash) hash 90 net/batman-adv/hash.h index = choose(data, hash->size); hash 91 net/batman-adv/hash.h head = &hash->table[index]; hash 92 net/batman-adv/hash.h list_lock = &hash->list_locks[index]; hash 106 net/batman-adv/hash.h atomic_inc(&hash->generation); hash 129 net/batman-adv/hash.h static inline void *batadv_hash_remove(struct batadv_hashtable *hash, hash 139 net/batman-adv/hash.h index = choose(data, hash->size); hash 140 net/batman-adv/hash.h head = &hash->table[index]; hash 142 net/batman-adv/hash.h spin_lock_bh(&hash->list_locks[index]); hash 149 net/batman-adv/hash.h atomic_inc(&hash->generation); hash 152 net/batman-adv/hash.h spin_unlock_bh(&hash->list_locks[index]); hash 390 net/batman-adv/icmp_socket.c struct batadv_socket_client *hash; hash 392 net/batman-adv/icmp_socket.c hash = batadv_socket_client_hash[icmph->uid]; hash 393 net/batman-adv/icmp_socket.c if (hash) hash 394 net/batman-adv/icmp_socket.c batadv_socket_add_packet(hash, icmph, icmp_len); hash 2110 net/batman-adv/multicast.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 2122 net/batman-adv/multicast.c for (i = 0; i < hash->size; i++) { hash 2123 net/batman-adv/multicast.c head = &hash->table[i]; hash 2252 net/batman-adv/multicast.c struct batadv_hashtable *hash, hash 2258 net/batman-adv/multicast.c spin_lock_bh(&hash->list_locks[bucket]); hash 2259 net/batman-adv/multicast.c cb->seq = atomic_read(&hash->generation) << 1 | 1; hash 2261 net/batman-adv/multicast.c hlist_for_each_entry(orig_node, &hash->table[bucket], hash_entry) { hash 2270 net/batman-adv/multicast.c spin_unlock_bh(&hash->list_locks[bucket]); hash 2279 net/batman-adv/multicast.c spin_unlock_bh(&hash->list_locks[bucket]); hash 2300 net/batman-adv/multicast.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 2304 net/batman-adv/multicast.c while (bucket_tmp < hash->size) { hash 2305 net/batman-adv/multicast.c if (batadv_mcast_flags_dump_bucket(msg, portid, cb, hash, hash 395 net/batman-adv/network-coding.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 400 net/batman-adv/network-coding.c if (!hash) hash 404 net/batman-adv/network-coding.c for (i = 0; i < hash->size; i++) { hash 405 net/batman-adv/network-coding.c head = &hash->table[i]; hash 426 net/batman-adv/network-coding.c struct batadv_hashtable *hash, hash 436 net/batman-adv/network-coding.c for (i = 0; i < hash->size; i++) { hash 437 net/batman-adv/network-coding.c head = &hash->table[i]; hash 438 net/batman-adv/network-coding.c lock = &hash->list_locks[i]; hash 497 net/batman-adv/network-coding.c u32 hash = 0; hash 499 net/batman-adv/network-coding.c hash = jhash(&nc_path->prev_hop, sizeof(nc_path->prev_hop), hash); hash 500 net/batman-adv/network-coding.c hash = jhash(&nc_path->next_hop, sizeof(nc_path->next_hop), hash); hash 502 net/batman-adv/network-coding.c return hash % size; hash 539 net/batman-adv/network-coding.c batadv_nc_hash_find(struct batadv_hashtable *hash, hash 546 net/batman-adv/network-coding.c if (!hash) hash 549 net/batman-adv/network-coding.c index = batadv_nc_hash_choose(data, hash->size); hash 550 net/batman-adv/network-coding.c head = &hash->table[index]; hash 667 net/batman-adv/network-coding.c struct batadv_hashtable *hash, hash 678 net/batman-adv/network-coding.c if (!hash) hash 682 net/batman-adv/network-coding.c for (i = 0; i < hash->size; i++) { hash 683 net/batman-adv/network-coding.c head = &hash->table[i]; hash 953 net/batman-adv/network-coding.c struct batadv_hashtable *hash, hash 963 net/batman-adv/network-coding.c nc_path = batadv_nc_hash_find(hash, (void *)&nc_path_key); hash 991 net/batman-adv/network-coding.c hash_added = batadv_hash_add(hash, batadv_nc_hash_compare, hash 1271 net/batman-adv/network-coding.c struct batadv_hashtable *hash = bat_priv->nc.coding_hash; hash 1274 net/batman-adv/network-coding.c if (!hash) hash 1280 net/batman-adv/network-coding.c idx = batadv_nc_hash_choose(&nc_path_key, hash->size); hash 1284 net/batman-adv/network-coding.c hlist_for_each_entry_rcu(nc_path, &hash->table[idx], hash_entry) { hash 1738 net/batman-adv/network-coding.c struct batadv_hashtable *hash = bat_priv->nc.decoding_hash; hash 1745 net/batman-adv/network-coding.c if (!hash) hash 1759 net/batman-adv/network-coding.c index = batadv_nc_hash_choose(&nc_path_key, hash->size); hash 1763 net/batman-adv/network-coding.c hlist_for_each_entry_rcu(nc_path, &hash->table[index], hash_entry) { hash 1892 net/batman-adv/network-coding.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 1904 net/batman-adv/network-coding.c for (i = 0; i < hash->size; i++) { hash 1905 net/batman-adv/network-coding.c head = &hash->table[i]; hash 60 net/batman-adv/originator.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 65 net/batman-adv/originator.c if (!hash) hash 68 net/batman-adv/originator.c index = batadv_choose_orig(data, hash->size); hash 69 net/batman-adv/originator.c head = &hash->table[index]; hash 967 net/batman-adv/originator.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 974 net/batman-adv/originator.c if (!hash) hash 981 net/batman-adv/originator.c for (i = 0; i < hash->size; i++) { hash 982 net/batman-adv/originator.c head = &hash->table[i]; hash 983 net/batman-adv/originator.c list_lock = &hash->list_locks[i]; hash 994 net/batman-adv/originator.c batadv_hash_destroy(hash); hash 1335 net/batman-adv/originator.c struct batadv_hashtable *hash = bat_priv->orig_hash; hash 1342 net/batman-adv/originator.c if (!hash) hash 1346 net/batman-adv/originator.c for (i = 0; i < hash->size; i++) { hash 1347 net/batman-adv/originator.c head = &hash->table[i]; hash 1348 net/batman-adv/originator.c list_lock = &hash->list_locks[i]; hash 80 net/batman-adv/originator.h u32 hash = 0; hash 82 net/batman-adv/originator.h hash = jhash(data, ETH_ALEN, hash); hash 83 net/batman-adv/originator.h return hash % size; hash 108 net/batman-adv/translation-table.c u32 hash = 0; hash 111 net/batman-adv/translation-table.c hash = jhash(&tt->addr, ETH_ALEN, hash); hash 112 net/batman-adv/translation-table.c hash = jhash(&tt->vid, sizeof(tt->vid), hash); hash 114 net/batman-adv/translation-table.c return hash % size; hash 127 net/batman-adv/translation-table.c batadv_tt_hash_find(struct batadv_hashtable *hash, const u8 *addr, hash 134 net/batman-adv/translation-table.c if (!hash) hash 140 net/batman-adv/translation-table.c index = batadv_choose_tt(&to_search, hash->size); hash 141 net/batman-adv/translation-table.c head = &hash->table[index]; hash 1078 net/batman-adv/translation-table.c struct batadv_hashtable *hash = bat_priv->tt.local_hash; hash 1100 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 1101 net/batman-adv/translation-table.c head = &hash->table[i]; hash 1218 net/batman-adv/translation-table.c struct batadv_hashtable *hash, unsigned int bucket, hash 1224 net/batman-adv/translation-table.c spin_lock_bh(&hash->list_locks[bucket]); hash 1225 net/batman-adv/translation-table.c cb->seq = atomic_read(&hash->generation) << 1 | 1; hash 1227 net/batman-adv/translation-table.c hlist_for_each_entry(common, &hash->table[bucket], hash_entry) { hash 1233 net/batman-adv/translation-table.c spin_unlock_bh(&hash->list_locks[bucket]); hash 1238 net/batman-adv/translation-table.c spin_unlock_bh(&hash->list_locks[bucket]); hash 1257 net/batman-adv/translation-table.c struct batadv_hashtable *hash; hash 1282 net/batman-adv/translation-table.c hash = bat_priv->tt.local_hash; hash 1284 net/batman-adv/translation-table.c while (bucket < hash->size) { hash 1286 net/batman-adv/translation-table.c hash, bucket, &idx)) hash 1435 net/batman-adv/translation-table.c struct batadv_hashtable *hash = bat_priv->tt.local_hash; hash 1440 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 1441 net/batman-adv/translation-table.c head = &hash->table[i]; hash 1442 net/batman-adv/translation-table.c list_lock = &hash->list_locks[i]; hash 1452 net/batman-adv/translation-table.c struct batadv_hashtable *hash; hash 1463 net/batman-adv/translation-table.c hash = bat_priv->tt.local_hash; hash 1465 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 1466 net/batman-adv/translation-table.c head = &hash->table[i]; hash 1467 net/batman-adv/translation-table.c list_lock = &hash->list_locks[i]; hash 1482 net/batman-adv/translation-table.c batadv_hash_destroy(hash); hash 1978 net/batman-adv/translation-table.c struct batadv_hashtable *hash = bat_priv->tt.global_hash; hash 1995 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 1996 net/batman-adv/translation-table.c head = &hash->table[i]; hash 2173 net/batman-adv/translation-table.c struct batadv_hashtable *hash; hash 2200 net/batman-adv/translation-table.c hash = bat_priv->tt.global_hash; hash 2202 net/batman-adv/translation-table.c while (bucket < hash->size) { hash 2203 net/batman-adv/translation-table.c head = &hash->table[bucket]; hash 2432 net/batman-adv/translation-table.c struct batadv_hashtable *hash = bat_priv->tt.global_hash; hash 2438 net/batman-adv/translation-table.c if (!hash) hash 2441 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 2442 net/batman-adv/translation-table.c head = &hash->table[i]; hash 2443 net/batman-adv/translation-table.c list_lock = &hash->list_locks[i]; hash 2498 net/batman-adv/translation-table.c struct batadv_hashtable *hash = bat_priv->tt.global_hash; hash 2507 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 2508 net/batman-adv/translation-table.c head = &hash->table[i]; hash 2509 net/batman-adv/translation-table.c list_lock = &hash->list_locks[i]; hash 2537 net/batman-adv/translation-table.c struct batadv_hashtable *hash; hash 2548 net/batman-adv/translation-table.c hash = bat_priv->tt.global_hash; hash 2550 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 2551 net/batman-adv/translation-table.c head = &hash->table[i]; hash 2552 net/batman-adv/translation-table.c list_lock = &hash->list_locks[i]; hash 2566 net/batman-adv/translation-table.c batadv_hash_destroy(hash); hash 2675 net/batman-adv/translation-table.c struct batadv_hashtable *hash = bat_priv->tt.global_hash; hash 2684 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 2685 net/batman-adv/translation-table.c head = &hash->table[i]; hash 2755 net/batman-adv/translation-table.c struct batadv_hashtable *hash = bat_priv->tt.local_hash; hash 2762 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 2763 net/batman-adv/translation-table.c head = &hash->table[i]; hash 2983 net/batman-adv/translation-table.c struct batadv_hashtable *hash, hash 3005 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 3006 net/batman-adv/translation-table.c head = &hash->table[i]; hash 3843 net/batman-adv/translation-table.c struct batadv_hashtable *hash = bat_priv->tt.local_hash; hash 3848 net/batman-adv/translation-table.c if (!hash) hash 3851 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 3852 net/batman-adv/translation-table.c head = &hash->table[i]; hash 3880 net/batman-adv/translation-table.c struct batadv_hashtable *hash = bat_priv->tt.local_hash; hash 3888 net/batman-adv/translation-table.c if (!hash) hash 3891 net/batman-adv/translation-table.c for (i = 0; i < hash->size; i++) { hash 3892 net/batman-adv/translation-table.c head = &hash->table[i]; hash 3893 net/batman-adv/translation-table.c list_lock = &hash->list_locks[i]; hash 1178 net/batman-adv/types.h struct batadv_hashtable *hash; hash 4749 net/bluetooth/hci_event.c memcpy(cp.hash, data->hash192, sizeof(cp.hash)); hash 3565 net/bluetooth/mgmt.c memcpy(mgmt_rp.hash192, rp->hash, sizeof(rp->hash)); hash 3673 net/bluetooth/mgmt.c cp->addr.type, cp->hash, hash 6053 net/bluetooth/mgmt.c h192 = rp->hash; hash 6162 net/bluetooth/mgmt.c u8 status, flags, role, addr[7], hash[16], rand[16]; hash 6222 net/bluetooth/mgmt.c smp_generate_oob(hdev, hash, rand) < 0) { hash 6269 net/bluetooth/mgmt.c hash, sizeof(hash)); hash 506 net/bluetooth/smp.c u8 hash[3]; hash 516 net/bluetooth/smp.c err = smp_ah(irk, &bdaddr->b[3], hash); hash 520 net/bluetooth/smp.c return !crypto_memneq(bdaddr->b, hash, 3); hash 548 net/bluetooth/smp.c int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]) hash 588 net/bluetooth/smp.c smp->local_rand, 0, hash); hash 194 net/bluetooth/smp.h int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]); hash 328 net/can/af_can.c unsigned int hash; hash 330 net/can/af_can.c hash = can_id; hash 331 net/can/af_can.c hash ^= can_id >> CAN_EFF_RCV_HASH_BITS; hash 332 net/can/af_can.c hash ^= can_id >> (2 * CAN_EFF_RCV_HASH_BITS); hash 334 net/can/af_can.c return hash & ((1 << CAN_EFF_RCV_HASH_BITS) - 1); hash 96 net/ceph/ceph_hash.c unsigned long hash = 0; hash 101 net/ceph/ceph_hash.c hash = (hash + (c << 4) + (c >> 4)) * 11; hash 103 net/ceph/ceph_hash.c return hash; hash 29 net/ceph/crush/hash.c __u32 hash = crush_hash_seed ^ a; hash 33 net/ceph/crush/hash.c crush_hashmix(b, x, hash); hash 34 net/ceph/crush/hash.c crush_hashmix(y, a, hash); hash 35 net/ceph/crush/hash.c return hash; hash 40 net/ceph/crush/hash.c __u32 hash = crush_hash_seed ^ a ^ b; hash 43 net/ceph/crush/hash.c crush_hashmix(a, b, hash); hash 44 net/ceph/crush/hash.c crush_hashmix(x, a, hash); hash 45 net/ceph/crush/hash.c crush_hashmix(b, y, hash); hash 46 net/ceph/crush/hash.c return hash; hash 51 net/ceph/crush/hash.c __u32 hash = crush_hash_seed ^ a ^ b ^ c; hash 54 net/ceph/crush/hash.c crush_hashmix(a, b, hash); hash 55 net/ceph/crush/hash.c crush_hashmix(c, x, hash); hash 56 net/ceph/crush/hash.c crush_hashmix(y, a, hash); hash 57 net/ceph/crush/hash.c crush_hashmix(b, x, hash); hash 58 net/ceph/crush/hash.c crush_hashmix(y, c, hash); hash 59 net/ceph/crush/hash.c return hash; hash 64 net/ceph/crush/hash.c __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d; hash 67 net/ceph/crush/hash.c crush_hashmix(a, b, hash); hash 68 net/ceph/crush/hash.c crush_hashmix(c, d, hash); hash 69 net/ceph/crush/hash.c crush_hashmix(a, x, hash); hash 70 net/ceph/crush/hash.c crush_hashmix(y, b, hash); hash 71 net/ceph/crush/hash.c crush_hashmix(c, x, hash); hash 72 net/ceph/crush/hash.c crush_hashmix(y, d, hash); hash 73 net/ceph/crush/hash.c return hash; hash 79 net/ceph/crush/hash.c __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d ^ e; hash 82 net/ceph/crush/hash.c crush_hashmix(a, b, hash); hash 83 net/ceph/crush/hash.c crush_hashmix(c, d, hash); hash 84 net/ceph/crush/hash.c crush_hashmix(e, x, hash); hash 85 net/ceph/crush/hash.c crush_hashmix(y, a, hash); hash 86 net/ceph/crush/hash.c crush_hashmix(b, x, hash); hash 87 net/ceph/crush/hash.c crush_hashmix(y, c, hash); hash 88 net/ceph/crush/hash.c crush_hashmix(d, x, hash); hash 89 net/ceph/crush/hash.c crush_hashmix(y, e, hash); hash 90 net/ceph/crush/hash.c return hash; hash 88 net/ceph/crush/mapper.c s = crush_hash32_3(bucket->hash, x, bucket->id, 0) % hash 113 net/ceph/crush/mapper.c i = crush_hash32_3(bucket->hash, x, bucket->id, p) % hash 148 net/ceph/crush/mapper.c __u64 w = crush_hash32_4(bucket->h.hash, x, bucket->h.items[i], hash 210 net/ceph/crush/mapper.c t = (__u64)crush_hash32_4(bucket->h.hash, x, n, r, hash 237 net/ceph/crush/mapper.c draw = crush_hash32_3(bucket->h.hash, x, bucket->h.items[i], r); hash 340 net/ceph/crush/mapper.c u = crush_hash32_3(bucket->h.hash, x, ids[i], r); hash 297 net/ceph/debugfs.c if (hoid->snapid == 0 && hoid->hash == 0 && !hoid->is_max && hash 1761 net/ceph/osd_client.c ceph_decode_32_safe(p, end, hoid->hash, e_inval); hash 1793 net/ceph/osd_client.c ceph_encode_32(p, hoid->hash); hash 1901 net/ceph/osd_client.c hoid->hash = t->pgid.seed; hash 2132 net/ceph/osd_client.c __le32 hash; hash 2185 net/ceph/osd_client.c pgid.seed = le32_to_cpu(head.hash); hash 3439 net/ceph/osd_client.c s64 hash = ceph_decode_64(p); hash 3440 net/ceph/osd_client.c if (hash != -1) { hash 425 net/ceph/osdmap.c b->hash = ceph_decode_8(p); hash 513 net/core/datagram.c struct ahash_request *hash) hash 516 net/core/datagram.c hash_and_copy_to_iter, hash); hash 207 net/core/dev.c unsigned int hash = full_name_hash(net, name, strnlen(name, IFNAMSIZ)); hash 209 net/core/dev.c return &net->dev_name_head[hash_32(hash, NETDEV_HASHBITS)]; hash 2785 net/core/dev.c u32 hash; hash 2797 net/core/dev.c hash = skb_get_rx_queue(skb); hash 2798 net/core/dev.c if (hash >= qoffset) hash 2799 net/core/dev.c hash -= qoffset; hash 2800 net/core/dev.c while (unlikely(hash >= qcount)) hash 2801 net/core/dev.c hash -= qcount; hash 2802 net/core/dev.c return hash + qoffset; hash 3956 net/core/dev.c u32 hash; hash 3979 net/core/dev.c hash = skb_get_hash(skb); hash 3980 net/core/dev.c if (!hash) hash 3990 net/core/dev.c ident = sock_flow_table->ents[hash & sock_flow_table->mask]; hash 3991 net/core/dev.c if ((ident ^ hash) & ~rps_cpu_mask) hash 3999 net/core/dev.c rflow = &flow_table->flows[hash & flow_table->mask]; hash 4031 net/core/dev.c tcpu = map->cpus[reciprocal_scale(hash, map->len)]; hash 5365 net/core/dev.c u32 hash = skb_get_hash_raw(skb); hash 5369 net/core/dev.c head = &napi->gro_hash[hash & (GRO_HASH_BUCKETS - 1)].list; hash 5375 net/core/dev.c if (hash != skb_get_hash_raw(p)) { hash 5464 net/core/dev.c u32 hash = skb_get_hash_raw(skb) & (GRO_HASH_BUCKETS - 1); hash 5532 net/core/dev.c napi->gro_hash[hash].count--; hash 5541 net/core/dev.c if (unlikely(napi->gro_hash[hash].count >= MAX_GRO_SKBS)) { hash 5544 net/core/dev.c napi->gro_hash[hash].count++; hash 5558 net/core/dev.c if (napi->gro_hash[hash].count) { hash 5559 net/core/dev.c if (!test_bit(hash, &napi->gro_bitmask)) hash 5560 net/core/dev.c __set_bit(hash, &napi->gro_bitmask); hash 5561 net/core/dev.c } else if (test_bit(hash, &napi->gro_bitmask)) { hash 5562 net/core/dev.c __clear_bit(hash, &napi->gro_bitmask); hash 6029 net/core/dev.c unsigned int hash = napi_id % HASH_SIZE(napi_hash); hash 6032 net/core/dev.c hlist_for_each_entry_rcu(napi, &napi_hash[hash], napi_hash_node) hash 9921 net/core/dev.c struct hlist_head *hash; hash 9923 net/core/dev.c hash = kmalloc_array(NETDEV_HASHENTRIES, sizeof(*hash), GFP_KERNEL); hash 9924 net/core/dev.c if (hash != NULL) hash 9926 net/core/dev.c INIT_HLIST_HEAD(&hash[i]); hash 9928 net/core/dev.c return hash; hash 364 net/core/filter.c BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, hash) != 4); hash 367 net/core/filter.c offsetof(struct sk_buff, hash)); hash 2702 net/core/filter.c BPF_CALL_2(bpf_set_hash, struct sk_buff *, skb, u32, hash) hash 2708 net/core/filter.c __skb_set_sw_hash(skb, hash, true); hash 7275 net/core/filter.c case offsetof(struct __sk_buff, hash): hash 7277 net/core/filter.c bpf_target_off(struct sk_buff, hash, 4, hash 8680 net/core/filter.c u32 hash; hash 8688 net/core/filter.c u32 hash) hash 8694 net/core/filter.c reuse_kern->hash = hash; hash 8701 net/core/filter.c u32 hash) hash 8706 net/core/filter.c bpf_init_reuseport_kern(&reuse_kern, reuse, sk, skb, hash); hash 8843 net/core/filter.c case offsetof(struct sk_reuseport_md, hash): hash 8920 net/core/filter.c case offsetof(struct sk_reuseport_md, hash): hash 8921 net/core/filter.c SK_REUSEPORT_LOAD_FIELD(hash); hash 1494 net/core/flow_dissector.c u32 hash; hash 1498 net/core/flow_dissector.c hash = siphash(flow_keys_hash_start(keys), hash 1500 net/core/flow_dissector.c if (!hash) hash 1501 net/core/flow_dissector.c hash = 1; hash 1503 net/core/flow_dissector.c return hash; hash 1579 net/core/flow_dissector.c u32 hash; hash 1583 net/core/flow_dissector.c hash = ___skb_get_hash(skb, &keys, &hashrnd); hash 1585 net/core/flow_dissector.c __skb_set_sw_hash(skb, hash, flow_keys_have_l4(&keys)); hash 208 net/core/neighbour.c hash_val = tbl->hash(pkey, ndel->dev, nht->hash_rnd); hash 483 net/core/neighbour.c unsigned int i, hash; hash 501 net/core/neighbour.c hash = tbl->hash(n->primary_key, n->dev, hash 504 net/core/neighbour.c hash >>= (32 - new_nht->hash_shift); hash 510 net/core/neighbour.c new_nht->hash_buckets[hash], hash 512 net/core/neighbour.c rcu_assign_pointer(new_nht->hash_buckets[hash], n); hash 553 net/core/neighbour.c hash_val = tbl->hash(pkey, NULL, nht->hash_rnd) >> (32 - nht->hash_shift); hash 624 net/core/neighbour.c hash_val = tbl->hash(n->primary_key, dev, nht->hash_rnd) >> (32 - nht->hash_shift); hash 218 net/core/net-procfs.c int hash; hash 229 net/core/net-procfs.c hash = 0; hash 232 net/core/net-procfs.c hash = ntohs(pt->type) & PTYPE_HASH_MASK; hash 234 net/core/net-procfs.c while (nxt == &ptype_base[hash]) { hash 235 net/core/net-procfs.c if (++hash >= PTYPE_HASH_SIZE) hash 237 net/core/net-procfs.c nxt = ptype_base[hash].next; hash 89 net/core/secure_seq.c u32 hash; hash 92 net/core/secure_seq.c hash = siphash(&combined, offsetofend(typeof(combined), dport), hash 94 net/core/secure_seq.c return seq_scale(hash); hash 136 net/core/secure_seq.c u32 hash; hash 139 net/core/secure_seq.c hash = siphash_3u32((__force u32)saddr, (__force u32)daddr, hash 142 net/core/secure_seq.c return seq_scale(hash); hash 758 net/core/skbuff.c skb->hash, skb->sw_hash, skb->l4_hash, hash 949 net/core/skbuff.c CHECK_SKB_FIELD(hash); hash 3541 net/core/sock.c proto_method_implemented(proto->hash), hash 520 net/core/sock_map.c u32 hash; hash 546 net/core/sock_map.c u32 hash) hash 548 net/core/sock_map.c return &htab->buckets[hash & (htab->buckets_num - 1)]; hash 552 net/core/sock_map.c sock_hash_lookup_elem_raw(struct hlist_head *head, u32 hash, void *key, hash 558 net/core/sock_map.c if (elem->hash == hash && hash 569 net/core/sock_map.c u32 key_size = map->key_size, hash; hash 575 net/core/sock_map.c hash = sock_hash_bucket_hash(key, key_size); hash 576 net/core/sock_map.c bucket = sock_hash_select_bucket(htab, hash); hash 577 net/core/sock_map.c elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); hash 597 net/core/sock_map.c bucket = sock_hash_select_bucket(htab, elem->hash); hash 604 net/core/sock_map.c elem_probe = sock_hash_lookup_elem_raw(&bucket->head, elem->hash, hash 617 net/core/sock_map.c u32 hash, key_size = map->key_size; hash 622 net/core/sock_map.c hash = sock_hash_bucket_hash(key, key_size); hash 623 net/core/sock_map.c bucket = sock_hash_select_bucket(htab, hash); hash 626 net/core/sock_map.c elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); hash 639 net/core/sock_map.c u32 hash, struct sock *sk, hash 659 net/core/sock_map.c new->hash = hash; hash 668 net/core/sock_map.c u32 key_size = map->key_size, hash; hash 692 net/core/sock_map.c hash = sock_hash_bucket_hash(key, key_size); hash 693 net/core/sock_map.c bucket = sock_hash_select_bucket(htab, hash); hash 696 net/core/sock_map.c elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); hash 705 net/core/sock_map.c elem_new = sock_hash_alloc_elem(htab, key, key_size, hash, sk, elem); hash 768 net/core/sock_map.c u32 hash, key_size = map->key_size; hash 774 net/core/sock_map.c hash = sock_hash_bucket_hash(key, key_size); hash 775 net/core/sock_map.c head = &sock_hash_select_bucket(htab, hash)->head; hash 776 net/core/sock_map.c elem = sock_hash_lookup_elem_raw(head, hash, key, key_size); hash 787 net/core/sock_map.c i = hash & (htab->buckets_num - 1); hash 266 net/core/sock_reuseport.c u32 hash, hash 292 net/core/sock_reuseport.c sk2 = bpf_run_sk_reuseport(reuse, sk, prog, skb, hash); hash 301 net/core/sock_reuseport.c i = j = reciprocal_scale(hash, socks); hash 951 net/dccp/ipv4.c .hash = inet_hash, hash 1039 net/dccp/ipv6.c .hash = inet6_hash, hash 246 net/decnet/af_decnet.c unsigned int hash = addr->sdn_objnum; hash 248 net/decnet/af_decnet.c if (hash == 0) { hash 249 net/decnet/af_decnet.c hash = addr->sdn_objnamel; hash 251 net/decnet/af_decnet.c hash ^= addr->sdn_objname[i]; hash 252 net/decnet/af_decnet.c hash ^= (hash << 3); hash 256 net/decnet/af_decnet.c return &dn_sk_hash[hash & DN_SK_HASH_MASK]; hash 83 net/decnet/dn_neigh.c .hash = dn_neigh_hash, hash 317 net/decnet/dn_route.c static int dn_insert_route(struct dn_route *rt, unsigned int hash, struct dn_route **rp) hash 323 net/decnet/dn_route.c rthp = &dn_rt_hash_table[hash].chain; hash 325 net/decnet/dn_route.c spin_lock_bh(&dn_rt_hash_table[hash].lock); hash 327 net/decnet/dn_route.c lockdep_is_held(&dn_rt_hash_table[hash].lock))) != NULL) { hash 332 net/decnet/dn_route.c dn_rt_hash_table[hash].chain); hash 333 net/decnet/dn_route.c rcu_assign_pointer(dn_rt_hash_table[hash].chain, rth); hash 336 net/decnet/dn_route.c spin_unlock_bh(&dn_rt_hash_table[hash].lock); hash 345 net/decnet/dn_route.c rcu_assign_pointer(rt->dn_next, dn_rt_hash_table[hash].chain); hash 346 net/decnet/dn_route.c rcu_assign_pointer(dn_rt_hash_table[hash].chain, rt); hash 349 net/decnet/dn_route.c spin_unlock_bh(&dn_rt_hash_table[hash].lock); hash 960 net/decnet/dn_route.c unsigned int hash; hash 1210 net/decnet/dn_route.c hash = dn_hash(rt->fld.saddr, rt->fld.daddr); hash 1212 net/decnet/dn_route.c dn_insert_route(rt, hash, (struct dn_route **)pprt); hash 1244 net/decnet/dn_route.c unsigned int hash = dn_hash(flp->saddr, flp->daddr); hash 1249 net/decnet/dn_route.c for (rt = rcu_dereference_bh(dn_rt_hash_table[hash].chain); rt; hash 1308 net/decnet/dn_route.c unsigned int hash; hash 1488 net/decnet/dn_route.c hash = dn_hash(rt->fld.saddr, rt->fld.daddr); hash 1490 net/decnet/dn_route.c dn_insert_route(rt, hash, &rt); hash 1521 net/decnet/dn_route.c unsigned int hash = dn_hash(cb->src, cb->dst); hash 1527 net/decnet/dn_route.c for(rt = rcu_dereference(dn_rt_hash_table[hash].chain); rt != NULL; hash 398 net/ieee802154/socket.c .hash = raw_hash, hash 960 net/ieee802154/socket.c .hash = dgram_hash, hash 1041 net/ieee802154/socket.c if (sk->sk_prot->hash) { hash 1042 net/ieee802154/socket.c rc = sk->sk_prot->hash(sk); hash 371 net/ipv4/af_inet.c err = sk->sk_prot->hash(sk); hash 155 net/ipv4/arp.c .hash = arp_hash, hash 63 net/ipv4/cipso_ipv4.c u32 hash; hash 241 net/ipv4/cipso_ipv4.c u32 hash; hash 246 net/ipv4/cipso_ipv4.c hash = cipso_v4_map_cache_hash(key, key_len); hash 247 net/ipv4/cipso_ipv4.c bkt = hash & (CIPSO_V4_CACHE_BUCKETS - 1); hash 250 net/ipv4/cipso_ipv4.c if (entry->hash == hash && hash 320 net/ipv4/cipso_ipv4.c entry->hash = cipso_v4_map_cache_hash(cipso_ptr, cipso_ptr_len); hash 324 net/ipv4/cipso_ipv4.c bkt = entry->hash & (CIPSO_V4_CACHE_BUCKETS - 1); hash 130 net/ipv4/devinet.c u32 hash = inet_addr_hash(net, ifa->ifa_local); hash 133 net/ipv4/devinet.c hlist_add_head_rcu(&ifa->hash, &inet_addr_lst[hash]); hash 139 net/ipv4/devinet.c hlist_del_init_rcu(&ifa->hash); hash 183 net/ipv4/devinet.c u32 hash = inet_addr_hash(net, addr); hash 186 net/ipv4/devinet.c hlist_for_each_entry_rcu(ifa, &inet_addr_lst[hash], hash) hash 711 net/ipv4/devinet.c hlist_for_each_entry_rcu(ifa, &inet_addr_lst[i], hash) { hash 746 net/ipv4/devinet.c hlist_for_each_entry_safe(ifa, n, &inet_addr_lst[i], hash) { hash 869 net/ipv4/devinet.c INIT_HLIST_NODE(&ifa->hash); hash 1156 net/ipv4/devinet.c INIT_HLIST_NODE(&ifa->hash); hash 1558 net/ipv4/devinet.c INIT_HLIST_NODE(&ifa->hash); hash 164 net/ipv4/fib_semantics.c struct fnhe_hash_bucket *hash; hash 167 net/ipv4/fib_semantics.c hash = rcu_dereference_protected(nhc->nhc_exceptions, 1); hash 168 net/ipv4/fib_semantics.c if (!hash) hash 173 net/ipv4/fib_semantics.c fnhe = rcu_dereference_protected(hash[i].chain, 1); hash 187 net/ipv4/fib_semantics.c kfree(hash); hash 372 net/ipv4/fib_semantics.c unsigned int hash; hash 374 net/ipv4/fib_semantics.c hash = fib_info_hashfn_1(fib_devindex_hashfn(cfg->fc_nh_id), hash 378 net/ipv4/fib_semantics.c hash = fib_info_hashfn_result(hash); hash 379 net/ipv4/fib_semantics.c head = &fib_info_hash[hash]; hash 403 net/ipv4/fib_semantics.c unsigned int hash; hash 405 net/ipv4/fib_semantics.c hash = fib_info_hashfn(nfi); hash 406 net/ipv4/fib_semantics.c head = &fib_info_hash[hash]; hash 435 net/ipv4/fib_semantics.c unsigned int hash; hash 439 net/ipv4/fib_semantics.c hash = fib_devindex_hashfn(dev->ifindex); hash 440 net/ipv4/fib_semantics.c head = &fib_info_devhash[hash]; hash 1217 net/ipv4/fib_semantics.c static void fib_info_hash_free(struct hlist_head *hash, int bytes) hash 1219 net/ipv4/fib_semantics.c if (!hash) hash 1223 net/ipv4/fib_semantics.c kfree(hash); hash 1225 net/ipv4/fib_semantics.c free_pages((unsigned long) hash, get_order(bytes)); hash 1560 net/ipv4/fib_semantics.c unsigned int hash; hash 1564 net/ipv4/fib_semantics.c hash = fib_devindex_hashfn(nexthop_nh->fib_nh_dev->ifindex); hash 1565 net/ipv4/fib_semantics.c head = &fib_info_devhash[hash]; hash 1815 net/ipv4/fib_semantics.c unsigned int hash = fib_laddr_hashfn(local); hash 1816 net/ipv4/fib_semantics.c struct hlist_head *head = &fib_info_laddrhash[hash]; hash 1904 net/ipv4/fib_semantics.c unsigned int hash = fib_devindex_hashfn(dev->ifindex); hash 1905 net/ipv4/fib_semantics.c struct hlist_head *head = &fib_info_devhash[hash]; hash 1927 net/ipv4/fib_semantics.c unsigned int hash = fib_devindex_hashfn(dev->ifindex); hash 1928 net/ipv4/fib_semantics.c struct hlist_head *head = &fib_info_devhash[hash]; hash 2074 net/ipv4/fib_semantics.c unsigned int hash; hash 2090 net/ipv4/fib_semantics.c hash = fib_devindex_hashfn(dev->ifindex); hash 2091 net/ipv4/fib_semantics.c head = &fib_info_devhash[hash]; hash 2158 net/ipv4/fib_semantics.c void fib_select_multipath(struct fib_result *res, int hash) hash 2165 net/ipv4/fib_semantics.c nexthop_path_fib_result(res, hash); hash 2180 net/ipv4/fib_semantics.c if (hash > atomic_read(&nexthop_nh->fib_nh_upper_bound)) hash 1376 net/ipv4/igmp.c u32 hash; hash 1380 net/ipv4/igmp.c hash = ip_mc_hash(im); hash 1381 net/ipv4/igmp.c im->next_hash = mc_hash[hash]; hash 1382 net/ipv4/igmp.c rcu_assign_pointer(mc_hash[hash], im); hash 1396 net/ipv4/igmp.c hash = ip_mc_hash(im); hash 1397 net/ipv4/igmp.c im->next_hash = mc_hash[hash]; hash 1398 net/ipv4/igmp.c RCU_INIT_POINTER(mc_hash[hash], im); hash 2707 net/ipv4/igmp.c u32 hash = hash_32((__force u32)mc_addr, MC_HASH_SZ_LOG); hash 2709 net/ipv4/igmp.c for (im = rcu_dereference(mc_hash[hash]); hash 913 net/ipv4/inet_connection_sock.c err = sk->sk_prot->hash(sk); hash 177 net/ipv4/inet_hashtables.c u32 hash; hash 181 net/ipv4/inet_hashtables.c hash = ipv6_portaddr_hash(sock_net(sk), hash 186 net/ipv4/inet_hashtables.c hash = ipv4_portaddr_hash(sock_net(sk), hash 189 net/ipv4/inet_hashtables.c return inet_lhash2_bucket(h, hash); hash 359 net/ipv4/inet_hashtables.c unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport); hash 360 net/ipv4/inet_hashtables.c unsigned int slot = hash & hashinfo->ehash_mask; hash 365 net/ipv4/inet_hashtables.c if (sk->sk_hash != hash) hash 408 net/ipv4/inet_hashtables.c unsigned int hash = inet_ehashfn(net, daddr, lport, hash 410 net/ipv4/inet_hashtables.c struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); hash 411 net/ipv4/inet_hashtables.c spinlock_t *lock = inet_ehash_lockp(hinfo, hash); hash 419 net/ipv4/inet_hashtables.c if (sk2->sk_hash != hash) hash 438 net/ipv4/inet_hashtables.c sk->sk_hash = hash; hash 88 net/ipv4/ip_tunnel.c unsigned int hash; hash 92 net/ipv4/ip_tunnel.c hash = ip_tunnel_hash(key, remote); hash 93 net/ipv4/ip_tunnel.c head = &itn->tunnels[hash]; hash 125 net/ipv4/ip_tunnel.c hash = ip_tunnel_hash(key, 0); hash 126 net/ipv4/ip_tunnel.c head = &itn->tunnels[hash]; hash 387 net/ipv4/netfilter/ipt_CLUSTERIP.c clusterip_responsible(const struct clusterip_config *config, u_int32_t hash) hash 389 net/ipv4/netfilter/ipt_CLUSTERIP.c return test_bit(hash - 1, &config->local_nodes); hash 402 net/ipv4/netfilter/ipt_CLUSTERIP.c u_int32_t hash; hash 423 net/ipv4/netfilter/ipt_CLUSTERIP.c hash = clusterip_hashfn(skb, cipinfo->config); hash 427 net/ipv4/netfilter/ipt_CLUSTERIP.c ct->mark = hash; hash 444 net/ipv4/netfilter/ipt_CLUSTERIP.c pr_debug("hash=%u ct_hash=%u ", hash, ct->mark); hash 445 net/ipv4/netfilter/ipt_CLUSTERIP.c if (!clusterip_responsible(cipinfo->config, hash)) { hash 52 net/ipv4/nexthop.c unsigned int hash; hash 56 net/ipv4/nexthop.c hash = nh_dev_hashfn(dev->ifindex); hash 57 net/ipv4/nexthop.c head = &net->nexthop.devhash[hash]; hash 490 net/ipv4/nexthop.c struct nexthop *nexthop_select_path(struct nexthop *nh, int hash) hash 504 net/ipv4/nexthop.c if (hash > atomic_read(&nhge->upper_bound)) hash 1070 net/ipv4/nexthop.c unsigned int hash = nh_dev_hashfn(dev->ifindex); hash 1072 net/ipv4/nexthop.c struct hlist_head *head = &net->nexthop.devhash[hash]; hash 1767 net/ipv4/nexthop.c unsigned int hash = nh_dev_hashfn(dev->ifindex); hash 1769 net/ipv4/nexthop.c struct hlist_head *head = &net->nexthop.devhash[hash]; hash 52 net/ipv4/ping.c struct hlist_nulls_head hash[PING_HTABLE_SIZE]; hash 74 net/ipv4/ping.c return &table->hash[ping_hashfn(net, num, PING_HTABLE_MASK)]; hash 1002 net/ipv4/ping.c .hash = ping_hash, hash 1022 net/ipv4/ping.c hslot = &ping_table.hash[state->bucket]; hash 1180 net/ipv4/ping.c INIT_HLIST_NULLS_HEAD(&ping_table.hash[i], i); hash 169 net/ipv4/raw.c static int raw_v4_input(struct sk_buff *skb, const struct iphdr *iph, int hash) hash 179 net/ipv4/raw.c head = &raw_v4_hashinfo.ht[hash]; hash 209 net/ipv4/raw.c int hash; hash 212 net/ipv4/raw.c hash = protocol & (RAW_HTABLE_SIZE - 1); hash 213 net/ipv4/raw.c raw_sk = sk_head(&raw_v4_hashinfo.ht[hash]); hash 218 net/ipv4/raw.c if (raw_sk && !raw_v4_input(skb, ip_hdr(skb), hash)) hash 288 net/ipv4/raw.c int hash; hash 293 net/ipv4/raw.c hash = protocol & (RAW_HTABLE_SIZE - 1); hash 296 net/ipv4/raw.c raw_sk = sk_head(&raw_v4_hashinfo.ht[hash]); hash 976 net/ipv4/raw.c .hash = raw_hash_sk, hash 487 net/ipv4/route.c u32 ip_idents_reserve(u32 hash, int segs) hash 489 net/ipv4/route.c u32 *p_tstamp = ip_tstamps + hash % IP_IDENTS_SZ; hash 490 net/ipv4/route.c atomic_t *p_id = ip_idents + hash % IP_IDENTS_SZ; hash 508 net/ipv4/route.c u32 hash, id; hash 515 net/ipv4/route.c hash = siphash_3u32((__force u32)iph->daddr, hash 519 net/ipv4/route.c id = ip_idents_reserve(hash, segs); hash 605 net/ipv4/route.c static struct fib_nh_exception *fnhe_oldest(struct fnhe_hash_bucket *hash) hash 609 net/ipv4/route.c oldest = rcu_dereference(hash->chain); hash 647 net/ipv4/route.c struct fnhe_hash_bucket *hash; hash 659 net/ipv4/route.c hash = rcu_dereference(nhc->nhc_exceptions); hash 660 net/ipv4/route.c if (!hash) { hash 661 net/ipv4/route.c hash = kcalloc(FNHE_HASH_SIZE, sizeof(*hash), GFP_ATOMIC); hash 662 net/ipv4/route.c if (!hash) hash 664 net/ipv4/route.c rcu_assign_pointer(nhc->nhc_exceptions, hash); hash 667 net/ipv4/route.c hash += hval; hash 670 net/ipv4/route.c for (fnhe = rcu_dereference(hash->chain); fnhe; hash 696 net/ipv4/route.c fnhe = fnhe_oldest(hash); hash 702 net/ipv4/route.c fnhe->fnhe_next = hash->chain; hash 703 net/ipv4/route.c rcu_assign_pointer(hash->chain, fnhe); hash 1327 net/ipv4/route.c struct fnhe_hash_bucket *hash; hash 1333 net/ipv4/route.c hash = rcu_dereference_protected(nhc->nhc_exceptions, hash 1335 net/ipv4/route.c hash += hval; hash 1337 net/ipv4/route.c fnhe_p = &hash->chain; hash 1362 net/ipv4/route.c struct fnhe_hash_bucket *hash = rcu_dereference(nhc->nhc_exceptions); hash 1366 net/ipv4/route.c if (!hash) hash 1371 net/ipv4/route.c for (fnhe = rcu_dereference(hash[hval].chain); fnhe; hash 3729 net/ipv4/tcp.c struct crypto_ahash *hash; hash 3732 net/ipv4/tcp.c hash = crypto_alloc_ahash("md5", 0, CRYPTO_ALG_ASYNC); hash 3733 net/ipv4/tcp.c if (IS_ERR(hash)) hash 3752 net/ipv4/tcp.c req = ahash_request_alloc(hash, GFP_KERNEL); hash 2592 net/ipv4/tcp_ipv4.c .hash = inet_hash, hash 26 net/ipv4/tcp_metrics.c struct net *net, unsigned int hash); hash 149 net/ipv4/tcp_metrics.c unsigned int hash) hash 161 net/ipv4/tcp_metrics.c tm = __tcp_get_metrics(saddr, daddr, net, hash); hash 174 net/ipv4/tcp_metrics.c oldest = deref_locked(tcp_metrics_hash[hash].chain); hash 193 net/ipv4/tcp_metrics.c tm->tcpm_next = tcp_metrics_hash[hash].chain; hash 194 net/ipv4/tcp_metrics.c rcu_assign_pointer(tcp_metrics_hash[hash].chain, tm); hash 213 net/ipv4/tcp_metrics.c struct net *net, unsigned int hash) hash 218 net/ipv4/tcp_metrics.c for (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm; hash 234 net/ipv4/tcp_metrics.c unsigned int hash; hash 243 net/ipv4/tcp_metrics.c hash = ipv4_addr_hash(inet_rsk(req)->ir_rmt_addr); hash 249 net/ipv4/tcp_metrics.c hash = ipv6_addr_hash(&inet_rsk(req)->ir_v6_rmt_addr); hash 257 net/ipv4/tcp_metrics.c hash ^= net_hash_mix(net); hash 258 net/ipv4/tcp_metrics.c hash = hash_32(hash, tcp_metrics_hash_log); hash 260 net/ipv4/tcp_metrics.c for (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm; hash 277 net/ipv4/tcp_metrics.c unsigned int hash; hash 283 net/ipv4/tcp_metrics.c hash = ipv4_addr_hash(inet_sk(sk)->inet_daddr); hash 290 net/ipv4/tcp_metrics.c hash = ipv4_addr_hash(inet_sk(sk)->inet_daddr); hash 294 net/ipv4/tcp_metrics.c hash = ipv6_addr_hash(&sk->sk_v6_daddr); hash 302 net/ipv4/tcp_metrics.c hash ^= net_hash_mix(net); hash 303 net/ipv4/tcp_metrics.c hash = hash_32(hash, tcp_metrics_hash_log); hash 305 net/ipv4/tcp_metrics.c tm = __tcp_get_metrics(&saddr, &daddr, net, hash); hash 309 net/ipv4/tcp_metrics.c tm = tcpm_new(dst, &saddr, &daddr, hash); hash 773 net/ipv4/tcp_metrics.c unsigned int *hash, int optional, int v4, int v6) hash 780 net/ipv4/tcp_metrics.c if (hash) hash 781 net/ipv4/tcp_metrics.c *hash = ipv4_addr_hash(inetpeer_get_addr_v4(addr)); hash 792 net/ipv4/tcp_metrics.c if (hash) hash 793 net/ipv4/tcp_metrics.c *hash = ipv6_addr_hash(inetpeer_get_addr_v6(addr)); hash 800 net/ipv4/tcp_metrics.c unsigned int *hash, int optional) hash 802 net/ipv4/tcp_metrics.c return __parse_nl_addr(info, addr, hash, optional, hash 818 net/ipv4/tcp_metrics.c unsigned int hash; hash 825 net/ipv4/tcp_metrics.c ret = parse_nl_addr(info, &daddr, &hash, 0); hash 842 net/ipv4/tcp_metrics.c hash ^= net_hash_mix(net); hash 843 net/ipv4/tcp_metrics.c hash = hash_32(hash, tcp_metrics_hash_log); hash 846 net/ipv4/tcp_metrics.c for (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm; hash 903 net/ipv4/tcp_metrics.c unsigned int hash; hash 908 net/ipv4/tcp_metrics.c ret = parse_nl_addr(info, &daddr, &hash, 1); hash 919 net/ipv4/tcp_metrics.c hash ^= net_hash_mix(net); hash 920 net/ipv4/tcp_metrics.c hash = hash_32(hash, tcp_metrics_hash_log); hash 921 net/ipv4/tcp_metrics.c hb = tcp_metrics_hash + hash; hash 418 net/ipv4/udp.c u32 hash = 0; hash 428 net/ipv4/udp.c hash = udp_ehashfn(net, daddr, hnum, hash 430 net/ipv4/udp.c result = reuseport_select_sock(sk, hash, skb, hash 2388 net/ipv4/udp.c struct udp_hslot *hslot = &udp_table.hash[slot]; hash 2791 net/ipv4/udp.c .hash = udp_lib_hash, hash 2821 net/ipv4/udp.c struct udp_hslot *hslot = &afinfo->udp_table->hash[state->bucket]; hash 2852 net/ipv4/udp.c spin_unlock_bh(&afinfo->udp_table->hash[state->bucket].lock); hash 2897 net/ipv4/udp.c spin_unlock_bh(&afinfo->udp_table->hash[state->bucket].lock); hash 3003 net/ipv4/udp.c table->hash = alloc_large_system_hash(name, hash 3013 net/ipv4/udp.c table->hash2 = table->hash + (table->mask + 1); hash 3015 net/ipv4/udp.c INIT_HLIST_HEAD(&table->hash[i].head); hash 3016 net/ipv4/udp.c table->hash[i].count = 0; hash 3017 net/ipv4/udp.c spin_lock_init(&table->hash[i].lock); hash 107 net/ipv4/udp_diag.c struct udp_hslot *hslot = &table->hash[slot]; hash 51 net/ipv4/udplite.c .hash = udp_lib_hash, hash 999 net/ipv6/addrconf.c struct net_device *dev, unsigned int hash) hash 1003 net/ipv6/addrconf.c hlist_for_each_entry(ifp, &inet6_addr_lst[hash], addr_lst) { hash 1016 net/ipv6/addrconf.c unsigned int hash = inet6_addr_hash(dev_net(dev), &ifa->addr); hash 1022 net/ipv6/addrconf.c if (ipv6_chk_same_addr(dev_net(dev), &ifa->addr, dev, hash)) { hash 1026 net/ipv6/addrconf.c hlist_add_head_rcu(&ifa->addr_lst, &inet6_addr_lst[hash]); hash 1909 net/ipv6/addrconf.c unsigned int hash = inet6_addr_hash(net, addr); hash 1920 net/ipv6/addrconf.c hlist_for_each_entry_rcu(ifp, &inet6_addr_lst[hash], addr_lst) { hash 1998 net/ipv6/addrconf.c unsigned int hash = inet6_addr_hash(net, addr); hash 2002 net/ipv6/addrconf.c hlist_for_each_entry_rcu(ifp, &inet6_addr_lst[hash], addr_lst) { hash 4388 net/ipv6/addrconf.c unsigned int hash = inet6_addr_hash(net, addr); hash 4393 net/ipv6/addrconf.c hlist_for_each_entry_rcu(ifp, &inet6_addr_lst[hash], addr_lst) { hash 246 net/ipv6/af_inet6.c err = sk->sk_prot->hash(sk); hash 219 net/ipv6/anycast.c unsigned int hash = inet6_acaddr_hash(net, &aca->aca_addr); hash 222 net/ipv6/anycast.c hlist_add_head_rcu(&aca->aca_addr_lst, &inet6_acaddr_lst[hash]); hash 440 net/ipv6/anycast.c unsigned int hash = inet6_acaddr_hash(net, addr); hash 442 net/ipv6/anycast.c hlist_for_each_entry_rcu(aca, &inet6_acaddr_lst[hash], hash 74 net/ipv6/calipso.c u32 hash; hash 203 net/ipv6/calipso.c u32 hash; hash 208 net/ipv6/calipso.c hash = calipso_map_cache_hash(key, key_len); hash 209 net/ipv6/calipso.c bkt = hash & (CALIPSO_CACHE_BUCKETS - 1); hash 212 net/ipv6/calipso.c if (entry->hash == hash && hash 284 net/ipv6/calipso.c entry->hash = calipso_map_cache_hash(calipso_ptr, calipso_ptr_len); hash 288 net/ipv6/calipso.c bkt = entry->hash & (CALIPSO_CACHE_BUCKETS - 1); hash 63 net/ipv6/inet6_hashtables.c unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); hash 64 net/ipv6/inet6_hashtables.c unsigned int slot = hash & hashinfo->ehash_mask; hash 70 net/ipv6/inet6_hashtables.c if (sk->sk_hash != hash) hash 212 net/ipv6/inet6_hashtables.c const unsigned int hash = inet6_ehashfn(net, daddr, lport, saddr, hash 214 net/ipv6/inet6_hashtables.c struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); hash 215 net/ipv6/inet6_hashtables.c spinlock_t *lock = inet_ehash_lockp(hinfo, hash); hash 223 net/ipv6/inet6_hashtables.c if (sk2->sk_hash != hash) hash 242 net/ipv6/inet6_hashtables.c sk->sk_hash = hash; hash 60 net/ipv6/ip6_flowlabel.c #define for_each_fl_rcu(hash, fl) \ hash 61 net/ipv6/ip6_flowlabel.c for (fl = rcu_dereference_bh(fl_ht[(hash)]); \ hash 103 net/ipv6/ip6_gre.c u32 hash = ipv6_addr_hash(addr); hash 105 net/ipv6/ip6_gre.c return hash_32(hash, IP6_GRE_HASH_SIZE_SHIFT); hash 72 net/ipv6/ip6_tunnel.c u32 hash = ipv6_addr_hash(addr1) ^ ipv6_addr_hash(addr2); hash 74 net/ipv6/ip6_tunnel.c return hash_32(hash, IP6_TUNNEL_HASH_SIZE_SHIFT); hash 139 net/ipv6/ip6_tunnel.c unsigned int hash = HASH(remote, local); hash 144 net/ipv6/ip6_tunnel.c for_each_ip6_tunnel_rcu(ip6n->tnls_r_l[hash]) { hash 152 net/ipv6/ip6_tunnel.c hash = HASH(&any, local); hash 153 net/ipv6/ip6_tunnel.c for_each_ip6_tunnel_rcu(ip6n->tnls_r_l[hash]) { hash 160 net/ipv6/ip6_tunnel.c hash = HASH(remote, &any); hash 161 net/ipv6/ip6_tunnel.c for_each_ip6_tunnel_rcu(ip6n->tnls_r_l[hash]) { hash 55 net/ipv6/ip6_vti.c u32 hash = ipv6_addr_hash(addr1) ^ ipv6_addr_hash(addr2); hash 57 net/ipv6/ip6_vti.c return hash_32(hash, IP6_VTI_HASH_SIZE_SHIFT); hash 92 net/ipv6/ip6_vti.c unsigned int hash = HASH(remote, local); hash 97 net/ipv6/ip6_vti.c for_each_vti6_tunnel_rcu(ip6n->tnls_r_l[hash]) { hash 105 net/ipv6/ip6_vti.c hash = HASH(&any, local); hash 106 net/ipv6/ip6_vti.c for_each_vti6_tunnel_rcu(ip6n->tnls_r_l[hash]) { hash 112 net/ipv6/ip6_vti.c hash = HASH(remote, &any); hash 113 net/ipv6/ip6_vti.c for_each_vti6_tunnel_rcu(ip6n->tnls_r_l[hash]) { hash 112 net/ipv6/ndisc.c .hash = ndisc_hash, hash 25 net/ipv6/output_core.c u32 hash, id; hash 32 net/ipv6/output_core.c hash = siphash(&combined, sizeof(combined), &net->ipv4.ip_id_key); hash 38 net/ipv6/output_core.c id = ip_idents_reserve(hash, 1); hash 176 net/ipv6/ping.c .hash = ping_hash, hash 163 net/ipv6/raw.c __u8 hash; hash 169 net/ipv6/raw.c hash = nexthdr & (RAW_HTABLE_SIZE - 1); hash 172 net/ipv6/raw.c sk = sk_head(&raw_v6_hashinfo.ht[hash]); hash 365 net/ipv6/raw.c int hash; hash 369 net/ipv6/raw.c hash = nexthdr & (RAW_HTABLE_SIZE - 1); hash 372 net/ipv6/raw.c sk = sk_head(&raw_v6_hashinfo.ht[hash]); hash 1293 net/ipv6/raw.c .hash = raw_hash_sk, hash 95 net/ipv6/seg6_iptunnel.c u32 hash; hash 98 net/ipv6/seg6_iptunnel.c hash = skb_get_hash(skb); hash 99 net/ipv6/seg6_iptunnel.c hash = rol32(hash, 16); hash 100 net/ipv6/seg6_iptunnel.c flowlabel = (__force __be32)hash & IPV6_FLOWLABEL_MASK; hash 2026 net/ipv6/tcp_ipv6.c .hash = inet6_hash, hash 153 net/ipv6/udp.c u32 hash = 0; hash 163 net/ipv6/udp.c hash = udp6_ehashfn(net, daddr, hnum, hash 166 net/ipv6/udp.c result = reuseport_select_sock(sk, hash, skb, hash 1669 net/ipv6/udp.c .hash = udp_lib_hash, hash 47 net/ipv6/udplite.c .hash = udp_lib_hash, hash 247 net/l2tp/l2tp_core.c int hash; hash 252 net/l2tp/l2tp_core.c for (hash = 0; hash < L2TP_HASH_SIZE; hash++) { hash 253 net/l2tp/l2tp_core.c hlist_for_each_entry(session, &tunnel->session_hlist[hash], hlist) { hash 275 net/l2tp/l2tp_core.c int hash; hash 279 net/l2tp/l2tp_core.c for (hash = 0; hash < L2TP_HASH_SIZE_2; hash++) { hash 280 net/l2tp/l2tp_core.c hlist_for_each_entry_rcu(session, &pn->l2tp_session_hlist[hash], global_hlist) { hash 1191 net/l2tp/l2tp_core.c int hash; hash 1203 net/l2tp/l2tp_core.c for (hash = 0; hash < L2TP_HASH_SIZE; hash++) { hash 1205 net/l2tp/l2tp_core.c hlist_for_each_safe(walk, tmp, &tunnel->session_hlist[hash]) { hash 1718 net/l2tp/l2tp_core.c int hash; hash 1723 net/l2tp/l2tp_core.c for (hash = 0; hash < L2TP_HASH_SIZE_2; hash++) hash 1724 net/l2tp/l2tp_core.c INIT_HLIST_HEAD(&pn->l2tp_session_hlist[hash]); hash 1735 net/l2tp/l2tp_core.c int hash; hash 1747 net/l2tp/l2tp_core.c for (hash = 0; hash < L2TP_HASH_SIZE_2; hash++) hash 1748 net/l2tp/l2tp_core.c WARN_ON_ONCE(!hlist_empty(&pn->l2tp_session_hlist[hash])); hash 124 net/l2tp/l2tp_debugfs.c int hash; hash 129 net/l2tp/l2tp_debugfs.c for (hash = 0; hash < L2TP_HASH_SIZE; hash++) { hash 130 net/l2tp/l2tp_debugfs.c hlist_for_each_safe(walk, tmp, &tunnel->session_hlist[hash]) { hash 612 net/l2tp/l2tp_ip.c .hash = l2tp_ip_hash, hash 745 net/l2tp/l2tp_ip6.c .hash = l2tp_ip6_hash, hash 163 net/mpls/af_mpls.c u32 hash = 0; hash 179 net/mpls/af_mpls.c hash = jhash_1word(dec.label, hash); hash 202 net/mpls/af_mpls.c hash = jhash_3words(ntohl(v4hdr->saddr), hash 204 net/mpls/af_mpls.c v4hdr->protocol, hash); hash 211 net/mpls/af_mpls.c hash = __ipv6_addr_jhash(&v6hdr->saddr, hash); hash 212 net/mpls/af_mpls.c hash = __ipv6_addr_jhash(&v6hdr->daddr, hash); hash 213 net/mpls/af_mpls.c hash = jhash_1word(v6hdr->nexthdr, hash); hash 220 net/mpls/af_mpls.c return hash; hash 236 net/mpls/af_mpls.c u32 hash = 0; hash 251 net/mpls/af_mpls.c hash = mpls_multipath_hash(rt, skb); hash 252 net/mpls/af_mpls.c nh_index = hash % alive; hash 165 net/netfilter/ipvs/ip_vs_conn.c unsigned int hash; hash 172 net/netfilter/ipvs/ip_vs_conn.c hash = ip_vs_conn_hashkey_conn(cp); hash 174 net/netfilter/ipvs/ip_vs_conn.c ct_write_lock_bh(hash); hash 180 net/netfilter/ipvs/ip_vs_conn.c hlist_add_head_rcu(&cp->c_list, &ip_vs_conn_tab[hash]); hash 189 net/netfilter/ipvs/ip_vs_conn.c ct_write_unlock_bh(hash); hash 201 net/netfilter/ipvs/ip_vs_conn.c unsigned int hash; hash 205 net/netfilter/ipvs/ip_vs_conn.c hash = ip_vs_conn_hashkey_conn(cp); hash 207 net/netfilter/ipvs/ip_vs_conn.c ct_write_lock_bh(hash); hash 219 net/netfilter/ipvs/ip_vs_conn.c ct_write_unlock_bh(hash); hash 229 net/netfilter/ipvs/ip_vs_conn.c unsigned int hash; hash 235 net/netfilter/ipvs/ip_vs_conn.c hash = ip_vs_conn_hashkey_conn(cp); hash 237 net/netfilter/ipvs/ip_vs_conn.c ct_write_lock_bh(hash); hash 250 net/netfilter/ipvs/ip_vs_conn.c ct_write_unlock_bh(hash); hash 265 net/netfilter/ipvs/ip_vs_conn.c unsigned int hash; hash 268 net/netfilter/ipvs/ip_vs_conn.c hash = ip_vs_conn_hashkey_param(p, false); hash 272 net/netfilter/ipvs/ip_vs_conn.c hlist_for_each_entry_rcu(cp, &ip_vs_conn_tab[hash], c_list) { hash 351 net/netfilter/ipvs/ip_vs_conn.c unsigned int hash; hash 354 net/netfilter/ipvs/ip_vs_conn.c hash = ip_vs_conn_hashkey_param(p, false); hash 358 net/netfilter/ipvs/ip_vs_conn.c hlist_for_each_entry_rcu(cp, &ip_vs_conn_tab[hash], c_list) { hash 403 net/netfilter/ipvs/ip_vs_conn.c unsigned int hash; hash 409 net/netfilter/ipvs/ip_vs_conn.c hash = ip_vs_conn_hashkey_param(p, true); hash 413 net/netfilter/ipvs/ip_vs_conn.c hlist_for_each_entry_rcu(cp, &ip_vs_conn_tab[hash], c_list) { hash 1271 net/netfilter/ipvs/ip_vs_conn.c unsigned int hash = prandom_u32() & ip_vs_conn_tab_mask; hash 1273 net/netfilter/ipvs/ip_vs_conn.c hlist_for_each_entry_rcu(cp, &ip_vs_conn_tab[hash], c_list) { hash 295 net/netfilter/ipvs/ip_vs_ctl.c unsigned int hash; hash 307 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_svc_hashkey(svc->ipvs, svc->af, svc->protocol, hash 309 net/netfilter/ipvs/ip_vs_ctl.c hlist_add_head_rcu(&svc->s_list, &ip_vs_svc_table[hash]); hash 314 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_svc_fwm_hashkey(svc->ipvs, svc->fwmark); hash 315 net/netfilter/ipvs/ip_vs_ctl.c hlist_add_head_rcu(&svc->f_list, &ip_vs_svc_fwm_table[hash]); hash 358 net/netfilter/ipvs/ip_vs_ctl.c unsigned int hash; hash 362 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_svc_hashkey(ipvs, af, protocol, vaddr, vport); hash 364 net/netfilter/ipvs/ip_vs_ctl.c hlist_for_each_entry_rcu(svc, &ip_vs_svc_table[hash], s_list) { hash 385 net/netfilter/ipvs/ip_vs_ctl.c unsigned int hash; hash 389 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_svc_fwm_hashkey(ipvs, fwmark); hash 391 net/netfilter/ipvs/ip_vs_ctl.c hlist_for_each_entry_rcu(svc, &ip_vs_svc_fwm_table[hash], f_list) { hash 511 net/netfilter/ipvs/ip_vs_ctl.c unsigned int hash; hash 542 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_rs_hashkey(dest->af, &dest->addr, port); hash 544 net/netfilter/ipvs/ip_vs_ctl.c hlist_add_head_rcu(&dest->d_list, &ipvs->rs_table[hash]); hash 564 net/netfilter/ipvs/ip_vs_ctl.c unsigned int hash; hash 568 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_rs_hashkey(af, daddr, dport); hash 570 net/netfilter/ipvs/ip_vs_ctl.c hlist_for_each_entry_rcu(dest, &ipvs->rs_table[hash], d_list) { hash 595 net/netfilter/ipvs/ip_vs_ctl.c unsigned int hash; hash 599 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_rs_hashkey(af, daddr, dport); hash 601 net/netfilter/ipvs/ip_vs_ctl.c hlist_for_each_entry_rcu(dest, &ipvs->rs_table[hash], d_list) { hash 626 net/netfilter/ipvs/ip_vs_ctl.c unsigned int hash; hash 629 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_rs_hashkey(af, daddr, tun_port); hash 631 net/netfilter/ipvs/ip_vs_ctl.c hlist_for_each_entry_rcu(dest, &ipvs->rs_table[hash], d_list) { hash 170 net/netfilter/ipvs/ip_vs_lblc.c unsigned int hash = ip_vs_lblc_hashkey(en->af, &en->addr); hash 172 net/netfilter/ipvs/ip_vs_lblc.c hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); hash 182 net/netfilter/ipvs/ip_vs_lblc.c unsigned int hash = ip_vs_lblc_hashkey(af, addr); hash 185 net/netfilter/ipvs/ip_vs_lblc.c hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) hash 333 net/netfilter/ipvs/ip_vs_lblcr.c unsigned int hash = ip_vs_lblcr_hashkey(en->af, &en->addr); hash 335 net/netfilter/ipvs/ip_vs_lblcr.c hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); hash 345 net/netfilter/ipvs/ip_vs_lblcr.c unsigned int hash = ip_vs_lblcr_hashkey(af, addr); hash 348 net/netfilter/ipvs/ip_vs_lblcr.c hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) hash 239 net/netfilter/ipvs/ip_vs_mh.c unsigned int hash = ip_vs_mh_hashkey(svc->af, addr, port, &s->hash1, 0) hash 241 net/netfilter/ipvs/ip_vs_mh.c struct ip_vs_dest *dest = rcu_dereference(s->lookup[hash].dest); hash 252 net/netfilter/ipvs/ip_vs_mh.c unsigned int hash, ihash; hash 272 net/netfilter/ipvs/ip_vs_mh.c hash = ip_vs_mh_hashkey(svc->af, addr, port, &s->hash1, hash 274 net/netfilter/ipvs/ip_vs_mh.c dest = rcu_dereference(s->lookup[hash].dest); hash 51 net/netfilter/ipvs/ip_vs_proto.c unsigned int hash = IP_VS_PROTO_HASH(pp->protocol); hash 53 net/netfilter/ipvs/ip_vs_proto.c pp->next = ip_vs_proto_table[hash]; hash 54 net/netfilter/ipvs/ip_vs_proto.c ip_vs_proto_table[hash] = pp; hash 68 net/netfilter/ipvs/ip_vs_proto.c unsigned int hash = IP_VS_PROTO_HASH(pp->protocol); hash 76 net/netfilter/ipvs/ip_vs_proto.c pd->next = ipvs->proto_data_table[hash]; hash 77 net/netfilter/ipvs/ip_vs_proto.c ipvs->proto_data_table[hash] = pd; hash 84 net/netfilter/ipvs/ip_vs_proto.c ipvs->proto_data_table[hash] = pd->next; hash 99 net/netfilter/ipvs/ip_vs_proto.c unsigned int hash = IP_VS_PROTO_HASH(pp->protocol); hash 101 net/netfilter/ipvs/ip_vs_proto.c pp_p = &ip_vs_proto_table[hash]; hash 121 net/netfilter/ipvs/ip_vs_proto.c unsigned int hash = IP_VS_PROTO_HASH(pd->pp->protocol); hash 123 net/netfilter/ipvs/ip_vs_proto.c pd_p = &ipvs->proto_data_table[hash]; hash 143 net/netfilter/ipvs/ip_vs_proto.c unsigned int hash = IP_VS_PROTO_HASH(proto); hash 145 net/netfilter/ipvs/ip_vs_proto.c for (pp = ip_vs_proto_table[hash]; pp; pp = pp->next) { hash 161 net/netfilter/ipvs/ip_vs_proto.c unsigned int hash = IP_VS_PROTO_HASH(proto); hash 163 net/netfilter/ipvs/ip_vs_proto.c for (pd = ipvs->proto_data_table[hash]; pd; pd = pd->next) { hash 491 net/netfilter/ipvs/ip_vs_proto_sctp.c __u16 hash; hash 496 net/netfilter/ipvs/ip_vs_proto_sctp.c hash = sctp_app_hashkey(port); hash 498 net/netfilter/ipvs/ip_vs_proto_sctp.c list_for_each_entry(i, &ipvs->sctp_apps[hash], p_list) { hash 504 net/netfilter/ipvs/ip_vs_proto_sctp.c list_add_rcu(&inc->p_list, &ipvs->sctp_apps[hash]); hash 522 net/netfilter/ipvs/ip_vs_proto_sctp.c int hash; hash 530 net/netfilter/ipvs/ip_vs_proto_sctp.c hash = sctp_app_hashkey(cp->vport); hash 532 net/netfilter/ipvs/ip_vs_proto_sctp.c list_for_each_entry_rcu(inc, &ipvs->sctp_apps[hash], p_list) { hash 617 net/netfilter/ipvs/ip_vs_proto_tcp.c __u16 hash; hash 622 net/netfilter/ipvs/ip_vs_proto_tcp.c hash = tcp_app_hashkey(port); hash 624 net/netfilter/ipvs/ip_vs_proto_tcp.c list_for_each_entry(i, &ipvs->tcp_apps[hash], p_list) { hash 630 net/netfilter/ipvs/ip_vs_proto_tcp.c list_add_rcu(&inc->p_list, &ipvs->tcp_apps[hash]); hash 652 net/netfilter/ipvs/ip_vs_proto_tcp.c int hash; hash 661 net/netfilter/ipvs/ip_vs_proto_tcp.c hash = tcp_app_hashkey(cp->vport); hash 663 net/netfilter/ipvs/ip_vs_proto_tcp.c list_for_each_entry_rcu(inc, &ipvs->tcp_apps[hash], p_list) { hash 364 net/netfilter/ipvs/ip_vs_proto_udp.c __u16 hash; hash 369 net/netfilter/ipvs/ip_vs_proto_udp.c hash = udp_app_hashkey(port); hash 371 net/netfilter/ipvs/ip_vs_proto_udp.c list_for_each_entry(i, &ipvs->udp_apps[hash], p_list) { hash 377 net/netfilter/ipvs/ip_vs_proto_udp.c list_add_rcu(&inc->p_list, &ipvs->udp_apps[hash]); hash 398 net/netfilter/ipvs/ip_vs_proto_udp.c int hash; hash 407 net/netfilter/ipvs/ip_vs_proto_udp.c hash = udp_app_hashkey(cp->vport); hash 409 net/netfilter/ipvs/ip_vs_proto_udp.c list_for_each_entry_rcu(inc, &ipvs->udp_apps[hash], p_list) { hash 107 net/netfilter/ipvs/ip_vs_sh.c unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); hash 108 net/netfilter/ipvs/ip_vs_sh.c struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); hash 125 net/netfilter/ipvs/ip_vs_sh.c unsigned int hash, ihash; hash 144 net/netfilter/ipvs/ip_vs_sh.c hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset); hash 145 net/netfilter/ipvs/ip_vs_sh.c dest = rcu_dereference(s->buckets[hash].dest); hash 303 net/netfilter/nf_conncount.c unsigned int hash, hash 316 net/netfilter/nf_conncount.c spin_lock_bh(&nf_conncount_locks[hash]); hash 351 net/netfilter/nf_conncount.c schedule_gc_worker(data, hash); hash 380 net/netfilter/nf_conncount.c spin_unlock_bh(&nf_conncount_locks[hash]); hash 394 net/netfilter/nf_conncount.c unsigned int hash; hash 397 net/netfilter/nf_conncount.c hash = jhash2(key, data->keylen, conncount_rnd) % CONNCOUNT_SLOTS; hash 398 net/netfilter/nf_conncount.c root = &data->root[hash]; hash 441 net/netfilter/nf_conncount.c return insert_tree(net, data, root, hash, key, tuple, zone); hash 203 net/netfilter/nf_conntrack_core.c static u32 scale_hash(u32 hash) hash 205 net/netfilter/nf_conntrack_core.c return reciprocal_scale(hash, nf_conntrack_htable_size); hash 633 net/netfilter/nf_conntrack_core.c unsigned int hash, reply_hash; hash 641 net/netfilter/nf_conntrack_core.c hash = hash_conntrack(net, hash 645 net/netfilter/nf_conntrack_core.c } while (nf_conntrack_double_lock(net, hash, reply_hash, sequence)); hash 648 net/netfilter/nf_conntrack_core.c nf_conntrack_double_unlock(hash, reply_hash); hash 731 net/netfilter/nf_conntrack_core.c const struct nf_conntrack_tuple *tuple, u32 hash) hash 740 net/netfilter/nf_conntrack_core.c bucket = reciprocal_scale(hash, hsize); hash 770 net/netfilter/nf_conntrack_core.c const struct nf_conntrack_tuple *tuple, u32 hash) hash 777 net/netfilter/nf_conntrack_core.c h = ____nf_conntrack_find(net, zone, tuple, hash); hash 809 net/netfilter/nf_conntrack_core.c unsigned int hash, hash 813 net/netfilter/nf_conntrack_core.c &nf_conntrack_hash[hash]); hash 823 net/netfilter/nf_conntrack_core.c unsigned int hash, reply_hash; hash 833 net/netfilter/nf_conntrack_core.c hash = hash_conntrack(net, hash 837 net/netfilter/nf_conntrack_core.c } while (nf_conntrack_double_lock(net, hash, reply_hash, sequence)); hash 840 net/netfilter/nf_conntrack_core.c hlist_nulls_for_each_entry(h, n, &nf_conntrack_hash[hash], hnnode) hash 853 net/netfilter/nf_conntrack_core.c __nf_conntrack_hash_insert(ct, hash, reply_hash); hash 854 net/netfilter/nf_conntrack_core.c nf_conntrack_double_unlock(hash, reply_hash); hash 860 net/netfilter/nf_conntrack_core.c nf_conntrack_double_unlock(hash, reply_hash); hash 931 net/netfilter/nf_conntrack_core.c unsigned int hash, reply_hash; hash 958 net/netfilter/nf_conntrack_core.c hash = *(unsigned long *)&ct->tuplehash[IP_CT_DIR_REPLY].hnnode.pprev; hash 959 net/netfilter/nf_conntrack_core.c hash = scale_hash(hash); hash 963 net/netfilter/nf_conntrack_core.c } while (nf_conntrack_double_lock(net, hash, reply_hash, sequence)); hash 977 net/netfilter/nf_conntrack_core.c nf_conntrack_double_unlock(hash, reply_hash); hash 998 net/netfilter/nf_conntrack_core.c hlist_nulls_for_each_entry(h, n, &nf_conntrack_hash[hash], hnnode) hash 1025 net/netfilter/nf_conntrack_core.c __nf_conntrack_hash_insert(ct, hash, reply_hash); hash 1026 net/netfilter/nf_conntrack_core.c nf_conntrack_double_unlock(hash, reply_hash); hash 1041 net/netfilter/nf_conntrack_core.c nf_conntrack_double_unlock(hash, reply_hash); hash 1058 net/netfilter/nf_conntrack_core.c unsigned int hash, hsize; hash 1067 net/netfilter/nf_conntrack_core.c hash = __hash_conntrack(net, tuple, hsize); hash 1069 net/netfilter/nf_conntrack_core.c hlist_nulls_for_each_entry_rcu(h, n, &ct_hash[hash], hnnode) { hash 1103 net/netfilter/nf_conntrack_core.c if (get_nulls_value(n) != hash) { hash 1163 net/netfilter/nf_conntrack_core.c static noinline int early_drop(struct net *net, unsigned int hash) hash 1174 net/netfilter/nf_conntrack_core.c bucket = reciprocal_scale(hash, hsize); hash 1349 net/netfilter/nf_conntrack_core.c gfp_t gfp, u32 hash) hash 1358 net/netfilter/nf_conntrack_core.c if (!early_drop(net, hash)) { hash 1380 net/netfilter/nf_conntrack_core.c *(unsigned long *)(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode.pprev) = hash; hash 1434 net/netfilter/nf_conntrack_core.c unsigned int dataoff, u32 hash) hash 1452 net/netfilter/nf_conntrack_core.c hash); hash 1535 net/netfilter/nf_conntrack_core.c u32 hash; hash 1546 net/netfilter/nf_conntrack_core.c hash = hash_conntrack_raw(&tuple, state->net); hash 1547 net/netfilter/nf_conntrack_core.c h = __nf_conntrack_find_get(state->net, zone, &tuple, hash); hash 1550 net/netfilter/nf_conntrack_core.c skb, dataoff, hash); hash 2024 net/netfilter/nf_conntrack_core.c const struct nf_conntrack_tuple_hash *hash; hash 2041 net/netfilter/nf_conntrack_core.c hash = nf_conntrack_find_get(dev_net(skb->dev), hash 2044 net/netfilter/nf_conntrack_core.c if (!hash) hash 2047 net/netfilter/nf_conntrack_core.c ct = nf_ct_tuplehash_to_ctrack(hash); hash 2048 net/netfilter/nf_conntrack_core.c src_tuple = nf_ct_tuple(ct, !hash->tuple.dst.dir); hash 2309 net/netfilter/nf_conntrack_core.c struct hlist_nulls_head *hash; hash 2318 net/netfilter/nf_conntrack_core.c hash = kvmalloc_array(nr_slots, sizeof(struct hlist_nulls_head), hash 2321 net/netfilter/nf_conntrack_core.c if (hash && nulls) hash 2323 net/netfilter/nf_conntrack_core.c INIT_HLIST_NULLS_HEAD(&hash[i], i); hash 2325 net/netfilter/nf_conntrack_core.c return hash; hash 2333 net/netfilter/nf_conntrack_core.c struct hlist_nulls_head *hash, *old_hash; hash 2340 net/netfilter/nf_conntrack_core.c hash = nf_ct_alloc_hashtable(&hashsize, 1); hash 2341 net/netfilter/nf_conntrack_core.c if (!hash) hash 2346 net/netfilter/nf_conntrack_core.c kvfree(hash); hash 2368 net/netfilter/nf_conntrack_core.c hlist_nulls_add_head_rcu(&h->hnnode, &hash[bucket]); hash 2374 net/netfilter/nf_conntrack_core.c nf_conntrack_hash = hash; hash 81 net/netfilter/nf_conntrack_expect.c unsigned int hash, seed; hash 87 net/netfilter/nf_conntrack_expect.c hash = jhash2(tuple->dst.u3.all, ARRAY_SIZE(tuple->dst.u3.all), hash 91 net/netfilter/nf_conntrack_expect.c return reciprocal_scale(hash, nf_ct_expect_hsize); hash 99 net/netfilter/nf_conntrack_standalone.c struct hlist_nulls_head *hash; hash 114 net/netfilter/nf_conntrack_standalone.c hlist_nulls_first_rcu(&st->hash[st->bucket])); hash 133 net/netfilter/nf_conntrack_standalone.c hlist_nulls_first_rcu(&st->hash[st->bucket])); hash 156 net/netfilter/nf_conntrack_standalone.c nf_conntrack_get_ht(&st->hash, &st->htable_size); hash 295 net/netfilter/nf_conntrack_standalone.c struct nf_conntrack_tuple_hash *hash = v; hash 296 net/netfilter/nf_conntrack_standalone.c struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(hash); hash 311 net/netfilter/nf_conntrack_standalone.c if (NF_CT_DIRECTION(hash)) hash 192 net/netfilter/nf_nat_core.c unsigned int hash; hash 197 net/netfilter/nf_nat_core.c hash = jhash2((u32 *)&tuple->src, sizeof(tuple->src) / sizeof(u32), hash 200 net/netfilter/nf_nat_core.c return reciprocal_scale(hash, nf_nat_htable_size); hash 428 net/netfilter/nft_set_hash.c u32 hash; hash 430 net/netfilter/nft_set_hash.c hash = jhash(key, set->klen, priv->seed); hash 431 net/netfilter/nft_set_hash.c hash = reciprocal_scale(hash, priv->buckets); hash 432 net/netfilter/nft_set_hash.c hlist_for_each_entry_rcu(he, &priv->table[hash], node) { hash 448 net/netfilter/nft_set_hash.c u32 hash; hash 450 net/netfilter/nft_set_hash.c hash = jhash(elem->key.val.data, set->klen, priv->seed); hash 451 net/netfilter/nft_set_hash.c hash = reciprocal_scale(hash, priv->buckets); hash 452 net/netfilter/nft_set_hash.c hlist_for_each_entry_rcu(he, &priv->table[hash], node) { hash 467 net/netfilter/nft_set_hash.c u32 hash, k1, k2; hash 470 net/netfilter/nft_set_hash.c hash = jhash_1word(k1, priv->seed); hash 471 net/netfilter/nft_set_hash.c hash = reciprocal_scale(hash, priv->buckets); hash 472 net/netfilter/nft_set_hash.c hlist_for_each_entry_rcu(he, &priv->table[hash], node) { hash 487 net/netfilter/nft_set_hash.c u32 hash, k1; hash 491 net/netfilter/nft_set_hash.c hash = jhash_1word(k1, priv->seed); hash 493 net/netfilter/nft_set_hash.c hash = jhash(key, set->klen, priv->seed); hash 495 net/netfilter/nft_set_hash.c hash = reciprocal_scale(hash, priv->buckets); hash 497 net/netfilter/nft_set_hash.c return hash; hash 507 net/netfilter/nft_set_hash.c u32 hash; hash 509 net/netfilter/nft_set_hash.c hash = nft_jhash(set, priv, &this->ext); hash 510 net/netfilter/nft_set_hash.c hlist_for_each_entry(he, &priv->table[hash], node) { hash 518 net/netfilter/nft_set_hash.c hlist_add_head_rcu(&this->node, &priv->table[hash]); hash 546 net/netfilter/nft_set_hash.c u32 hash; hash 548 net/netfilter/nft_set_hash.c hash = nft_jhash(set, priv, &this->ext); hash 549 net/netfilter/nft_set_hash.c hlist_for_each_entry(he, &priv->table[hash], node) { hash 118 net/netfilter/xt_HMARK.c u32 hash; hash 125 net/netfilter/xt_HMARK.c hash = jhash_3words(src, dst, t->uports.v32, info->hashrnd); hash 126 net/netfilter/xt_HMARK.c hash = hash ^ (t->proto & info->proto_mask); hash 128 net/netfilter/xt_HMARK.c return reciprocal_scale(hash, info->hmodulus) + info->hoffset; hash 24 net/netfilter/xt_RATEEST.c struct hlist_head hash[RATEEST_HSIZE]; hash 43 net/netfilter/xt_RATEEST.c hlist_add_head(&est->list, &xn->hash[h]); hash 53 net/netfilter/xt_RATEEST.c hlist_for_each_entry(est, &xn->hash[h], list) { hash 196 net/netfilter/xt_RATEEST.c for (i = 0; i < ARRAY_SIZE(xn->hash); i++) hash 197 net/netfilter/xt_RATEEST.c INIT_HLIST_HEAD(&xn->hash[i]); hash 42 net/netfilter/xt_cluster.c u_int32_t hash = 0; hash 46 net/netfilter/xt_cluster.c hash = xt_cluster_hash_ipv4(nf_ct_orig_ipv4_src(ct), info); hash 49 net/netfilter/xt_cluster.c hash = xt_cluster_hash_ipv6(nf_ct_orig_ipv6_src(ct), info); hash 56 net/netfilter/xt_cluster.c return reciprocal_scale(hash, info->total_nodes); hash 85 net/netfilter/xt_cluster.c unsigned long hash; hash 114 net/netfilter/xt_cluster.c hash = xt_cluster_hash(ct->master, info); hash 116 net/netfilter/xt_cluster.c hash = xt_cluster_hash(ct, info); hash 118 net/netfilter/xt_cluster.c return !!((1 << hash) & info->node_mask) ^ hash 135 net/netfilter/xt_hashlimit.c struct hlist_head hash[0]; /* hashtable itself */ hash 186 net/netfilter/xt_hashlimit.c u_int32_t hash = jhash2((const u32 *)dst, hash 195 net/netfilter/xt_hashlimit.c return reciprocal_scale(hash, ht->cfg.size); hash 203 net/netfilter/xt_hashlimit.c u_int32_t hash = hash_dst(ht, dst); hash 205 net/netfilter/xt_hashlimit.c if (!hlist_empty(&ht->hash[hash])) { hash 206 net/netfilter/xt_hashlimit.c hlist_for_each_entry_rcu(ent, &ht->hash[hash], node) hash 252 net/netfilter/xt_hashlimit.c hlist_add_head_rcu(&ent->node, &ht->hash[hash_dst(ht, dst)]); hash 298 net/netfilter/xt_hashlimit.c hinfo = vmalloc(struct_size(hinfo, hash, size)); hash 317 net/netfilter/xt_hashlimit.c INIT_HLIST_HEAD(&hinfo->hash[i]); hash 370 net/netfilter/xt_hashlimit.c hlist_for_each_entry_safe(dh, n, &ht->hash[i], node) { hash 1176 net/netfilter/xt_hashlimit.c if (!hlist_empty(&htable->hash[*bucket])) { hash 1177 net/netfilter/xt_hashlimit.c hlist_for_each_entry(ent, &htable->hash[*bucket], node) hash 1190 net/netfilter/xt_hashlimit.c if (!hlist_empty(&htable->hash[*bucket])) { hash 1191 net/netfilter/xt_hashlimit.c hlist_for_each_entry(ent, &htable->hash[*bucket], node) hash 1204 net/netfilter/xt_hashlimit.c if (!hlist_empty(&htable->hash[*bucket])) { hash 1205 net/netfilter/xt_hashlimit.c hlist_for_each_entry(ent, &htable->hash[*bucket], node) hash 503 net/netlink/af_netlink.c return rhashtable_lookup_fast(&table->hash, &arg, hash 512 net/netlink/af_netlink.c return rhashtable_lookup_insert_key(&table->hash, &arg, hash 598 net/netlink/af_netlink.c if (!rhashtable_remove_fast(&table->hash, &nlk_sk(sk)->node, hash 2545 net/netlink/af_netlink.c rhashtable_walk_enter(&nl_table[iter->link].hash, &iter->hti); hash 2766 net/netlink/af_netlink.c if (rhashtable_init(&nl_table[i].hash, hash 2769 net/netlink/af_netlink.c rhashtable_destroy(&nl_table[i].hash); hash 58 net/netlink/af_netlink.h struct rhashtable hash; hash 117 net/netlink/diag.c rhashtable_walk_enter(&tbl->hash, hti); hash 1020 net/openvswitch/actions.c u32 hash = 0; hash 1023 net/openvswitch/actions.c hash = skb_get_hash(skb); hash 1024 net/openvswitch/actions.c hash = jhash_1word(hash, hash_act->hash_basis); hash 1025 net/openvswitch/actions.c if (!hash) hash 1026 net/openvswitch/actions.c hash = 0x1; hash 1028 net/openvswitch/actions.c key->ovs_flow_hash = hash; hash 209 net/openvswitch/flow.h u32 hash; hash 276 net/openvswitch/flow_table.c static struct hlist_head *find_bucket(struct table_instance *ti, u32 hash) hash 278 net/openvswitch/flow_table.c hash = jhash_1word(hash, ti->hash_seed); hash 279 net/openvswitch/flow_table.c return &ti->buckets[hash & (ti->n_buckets - 1)]; hash 287 net/openvswitch/flow_table.c head = find_bucket(ti, flow->flow_table.hash); hash 296 net/openvswitch/flow_table.c head = find_bucket(ti, flow->ufid_table.hash); hash 432 net/openvswitch/flow_table.c u32 hash; hash 436 net/openvswitch/flow_table.c hash = flow_hash(&masked_key, &mask->range); hash 437 net/openvswitch/flow_table.c head = find_bucket(ti, hash); hash 439 net/openvswitch/flow_table.c if (flow->mask == mask && flow->flow_table.hash == hash && hash 517 net/openvswitch/flow_table.c u32 hash; hash 519 net/openvswitch/flow_table.c hash = ufid_hash(ufid); hash 520 net/openvswitch/flow_table.c head = find_bucket(ti, hash); hash 522 net/openvswitch/flow_table.c if (flow->ufid_table.hash == hash && hash 650 net/openvswitch/flow_table.c flow->flow_table.hash = flow_hash(&flow->key, &flow->mask->range); hash 673 net/openvswitch/flow_table.c flow->ufid_table.hash = ufid_hash(&flow->id); hash 57 net/openvswitch/vport.c unsigned int hash = jhash(name, strlen(name), (unsigned long) net); hash 58 net/openvswitch/vport.c return &dev_table[hash & (VPORT_HASH_BUCKETS - 1)]; hash 402 net/openvswitch/vport.c u32 hash; hash 409 net/openvswitch/vport.c hash = skb_get_hash(skb); hash 410 net/openvswitch/vport.c ids_index = hash - ids->n_ids * reciprocal_divide(hash, ids->rn_ids); hash 177 net/phonet/datagram.c .hash = pn_sock_hash, hash 1333 net/phonet/pep.c .hash = pn_sock_hash, hash 194 net/phonet/socket.c err = sk->sk_prot->hash(sk); hash 60 net/rds/connection.c u32 lhash, fhash, hash; hash 71 net/rds/connection.c hash = __inet_ehashfn(lhash, 0, fhash, 0, rds_hash_secret); hash 73 net/rds/connection.c return &rds_conn_hash[hash & RDS_CONNECTION_HASH_MASK]; hash 1048 net/rds/send.c int hash; hash 1051 net/rds/send.c hash = RDS_MPATH_HASH(rs, RDS_MPATH_WORKERS); hash 1053 net/rds/send.c hash = RDS_MPATH_HASH(rs, conn->c_npaths); hash 1054 net/rds/send.c if (conn->c_npaths == 0 && hash != 0) { hash 1070 net/rds/send.c hash = 0; hash 1073 net/rds/send.c hash = 0; hash 1075 net/rds/send.c return hash; hash 79 net/sched/cls_api.c u32 hash = destroy_obj_hashfn(tp); hash 85 net/sched/cls_api.c destroy_ht_node, hash) { hash 53 net/sched/cls_tcindex.c u32 hash; /* hash table size; 0 if undefined */ hash 90 net/sched/cls_tcindex.c fp = &p->h[key % p->hash]; hash 152 net/sched/cls_tcindex.c p->hash = DEFAULT_HASH_SIZE; hash 212 net/sched/cls_tcindex.c for (i = 0; i < p->hash; i++) { hash 260 net/sched/cls_tcindex.c return p->hash > (p->mask >> p->shift); hash 297 net/sched/cls_tcindex.c for (i = 0; i < cp->hash; i++) hash 306 net/sched/cls_tcindex.c cp->perfect = kcalloc(cp->hash, sizeof(struct tcindex_filter_result), hash 311 net/sched/cls_tcindex.c for (i = 0; i < cp->hash; i++) { hash 357 net/sched/cls_tcindex.c cp->hash = p->hash; hash 364 net/sched/cls_tcindex.c cp->hash = nla_get_u32(tb[TCA_TCINDEX_HASH]); hash 372 net/sched/cls_tcindex.c if (!cp->hash) { hash 377 net/sched/cls_tcindex.c cp->hash = (cp->mask >> cp->shift) + 1; hash 379 net/sched/cls_tcindex.c cp->hash = DEFAULT_HASH_SIZE; hash 387 net/sched/cls_tcindex.c cp->alloc_hash = cp->hash; hash 388 net/sched/cls_tcindex.c for (i = 0; i < min(cp->hash, p->hash); i++) hash 407 net/sched/cls_tcindex.c cp->hash > cp->alloc_hash) hash 409 net/sched/cls_tcindex.c } else if (cp->h && cp->hash != cp->alloc_hash) { hash 418 net/sched/cls_tcindex.c cp->alloc_hash = cp->hash; hash 437 net/sched/cls_tcindex.c struct tcindex_filter __rcu **hash; hash 439 net/sched/cls_tcindex.c hash = kcalloc(cp->hash, hash 443 net/sched/cls_tcindex.c if (!hash) hash 446 net/sched/cls_tcindex.c cp->h = hash; hash 495 net/sched/cls_tcindex.c fp = cp->h + (handle % cp->hash); hash 559 net/sched/cls_tcindex.c for (i = 0; i < p->hash; i++) { hash 573 net/sched/cls_tcindex.c for (i = 0; i < p->hash; i++) { hash 596 net/sched/cls_tcindex.c for (i = 0; i < p->hash; i++) { hash 616 net/sched/cls_tcindex.c for (i = 0; p->h && i < p->hash; i++) { hash 647 net/sched/cls_tcindex.c if (nla_put_u32(skb, TCA_TCINDEX_HASH, p->hash) || hash 662 net/sched/cls_tcindex.c for (i = 0; !t->tcm_handle && i < p->hash; i++) { hash 268 net/sched/sch_api.c hash_for_each_possible_rcu(qdisc_dev(root)->qdisc_hash, q, hash, handle) { hash 279 net/sched/sch_api.c hash_add_rcu(qdisc_dev(q)->qdisc_hash, &q->hash, q->handle); hash 290 net/sched/sch_api.c hash_del_rcu(&q->hash); hash 674 net/sched/sch_api.c ohash = clhash->hash; hash 684 net/sched/sch_api.c clhash->hash = nhash; hash 697 net/sched/sch_api.c clhash->hash = qdisc_class_hash_alloc(size); hash 698 net/sched/sch_api.c if (!clhash->hash) hash 709 net/sched/sch_api.c kvfree(clhash->hash); hash 720 net/sched/sch_api.c hlist_add_head(&cl->hnode, &clhash->hash[h]); hash 1706 net/sched/sch_api.c hash_for_each(qdisc_dev(root)->qdisc_hash, b, q, hash) { hash 2180 net/sched/sch_api.c hash_for_each(qdisc_dev(root)->qdisc_hash, b, q, hash) { hash 1601 net/sched/sch_cake.c goto hash; hash 1623 net/sched/sch_cake.c hash: hash 893 net/sched/sch_cbq.c hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { hash 935 net/sched/sch_cbq.c hlist_for_each_entry(c, &q->clhash.hash[h], hash 1046 net/sched/sch_cbq.c hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { hash 1463 net/sched/sch_cbq.c hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { hash 1469 net/sched/sch_cbq.c hlist_for_each_entry_safe(cl, next, &q->clhash.hash[h], hash 1761 net/sched/sch_cbq.c hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { hash 288 net/sched/sch_drr.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { hash 440 net/sched/sch_drr.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { hash 460 net/sched/sch_drr.c hlist_for_each_entry_safe(cl, next, &q->clhash.hash[i], hash 262 net/sched/sch_fq.c unsigned long hash = skb_get_hash(skb) & q->orphan_mask; hash 267 net/sched/sch_fq.c sk = (struct sock *)((hash << 1) | 1UL); hash 270 net/sched/sch_fq.c unsigned long hash = skb_get_hash(skb) & q->orphan_mask; hash 279 net/sched/sch_fq.c sk = (struct sock *)((hash << 1) | 1UL); hash 1351 net/sched/sch_hfsc.c hlist_for_each_entry(cl, &q->clhash.hash[i], hash 1482 net/sched/sch_hfsc.c hlist_for_each_entry(cl, &q->clhash.hash[i], cl_common.hnode) hash 1500 net/sched/sch_hfsc.c hlist_for_each_entry(cl, &q->clhash.hash[i], cl_common.hnode) { hash 1506 net/sched/sch_hfsc.c hlist_for_each_entry_safe(cl, next, &q->clhash.hash[i], hash 180 net/sched/sch_hhf.c static struct hh_flow_state *seek_list(const u32 hash, hash 202 net/sched/sch_hhf.c } else if (flow->hash_id == hash) { hash 250 net/sched/sch_hhf.c u32 tmp_hash, hash; hash 267 net/sched/sch_hhf.c hash = skb_get_hash_perturb(skb, &q->perturbation); hash 270 net/sched/sch_hhf.c flow_pos = hash & HHF_BIT_MASK; hash 271 net/sched/sch_hhf.c flow = seek_list(hash, &q->hh_flows[flow_pos], q); hash 278 net/sched/sch_hhf.c tmp_hash = hash; hash 310 net/sched/sch_hhf.c flow->hash_id = hash; hash 956 net/sched/sch_htb.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { hash 1235 net/sched/sch_htb.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { hash 1241 net/sched/sch_htb.c hlist_for_each_entry_safe(cl, next, &q->clhash.hash[i], hash 1545 net/sched/sch_htb.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { hash 662 net/sched/sch_qfq.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { hash 1458 net/sched/sch_qfq.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { hash 1479 net/sched/sch_qfq.c hlist_for_each_entry_safe(cl, next, &q->clhash.hash[i], hash 129 net/sched/sch_sfb.c u32 hash = sfbhash & SFB_BUCKET_MASK; hash 132 net/sched/sch_sfb.c if (b[hash].qlen < 0xFFFF) hash 133 net/sched/sch_sfb.c b[hash].qlen++; hash 158 net/sched/sch_sfb.c u32 hash = sfbhash & SFB_BUCKET_MASK; hash 161 net/sched/sch_sfb.c if (b[hash].qlen > 0) hash 162 net/sched/sch_sfb.c b[hash].qlen--; hash 329 net/sched/sch_sfb.c u32 hash = sfbhash & SFB_BUCKET_MASK; hash 330 net/sched/sch_sfb.c struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; hash 362 net/sched/sch_sfb.c u32 hash = sfbhash & SFB_BUCKET_MASK; hash 363 net/sched/sch_sfb.c struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; hash 106 net/sched/sch_sfq.c unsigned short hash; /* hash value (index in ht[]) */ hash 321 net/sched/sch_sfq.c q->ht[slot->hash] = SFQ_EMPTY_SLOT; hash 349 net/sched/sch_sfq.c unsigned int hash, dropped; hash 356 net/sched/sch_sfq.c hash = sfq_classify(skb, sch, &ret); hash 357 net/sched/sch_sfq.c if (hash == 0) { hash 363 net/sched/sch_sfq.c hash--; hash 365 net/sched/sch_sfq.c x = q->ht[hash]; hash 371 net/sched/sch_sfq.c q->ht[hash] = x; hash 373 net/sched/sch_sfq.c slot->hash = hash; hash 507 net/sched/sch_sfq.c q->ht[slot->hash] = SFQ_EMPTY_SLOT; hash 558 net/sched/sch_sfq.c q->ht[slot->hash] = SFQ_EMPTY_SLOT; hash 563 net/sched/sch_sfq.c unsigned int hash = sfq_hash(q, skb); hash 564 net/sched/sch_sfq.c sfq_index x = q->ht[hash]; hash 577 net/sched/sch_sfq.c q->ht[hash] = x; hash 579 net/sched/sch_sfq.c slot->hash = hash; hash 837 net/sctp/input.c int hash; hash 840 net/sctp/input.c hash = sctp_ep_hashfn(net, ntohs(lport)); hash 841 net/sctp/input.c head = &sctp_ep_hashtable[hash]; hash 167 net/sctp/proc.c int hash = *(loff_t *)v; hash 169 net/sctp/proc.c if (hash >= sctp_ep_hashsize) hash 172 net/sctp/proc.c head = &sctp_ep_hashtable[hash]; hash 180 net/sctp/proc.c sctp_sk(sk)->type, sk->sk_state, hash, hash 5357 net/sctp/socket.c int hash = 0; hash 5361 net/sctp/socket.c for (head = sctp_ep_hashtable; hash < sctp_ep_hashsize; hash 5362 net/sctp/socket.c hash++, head++) { hash 9516 net/sctp/socket.c .hash = sctp_hash, hash 9558 net/sctp/socket.c .hash = sctp_hash, hash 106 net/smc/af_smc.c .hash = smc_hash_sk, hash 118 net/smc/af_smc.c .hash = smc_hash_sk, hash 237 net/smc/af_smc.c sk->sk_prot->hash(sk); hash 69 net/sunrpc/auth_gss/auth_gss.c struct hlist_node hash; hash 1034 net/sunrpc/auth_gss/auth_gss.c INIT_HLIST_NODE(&gss_auth->hash); hash 1140 net/sunrpc/auth_gss/auth_gss.c if (hash_hashed(&gss_auth->hash)) { hash 1142 net/sunrpc/auth_gss/auth_gss.c hash_del(&gss_auth->hash); hash 1175 net/sunrpc/auth_gss/auth_gss.c hash, hash 1194 net/sunrpc/auth_gss/auth_gss.c hash_add(gss_auth_hash_table, &new->hash, hashval); hash 293 net/sunrpc/auth_gss/svcauth_gss.c int hash = rsi_hash(item); hash 295 net/sunrpc/auth_gss/svcauth_gss.c ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); hash 305 net/sunrpc/auth_gss/svcauth_gss.c int hash = rsi_hash(new); hash 308 net/sunrpc/auth_gss/svcauth_gss.c &old->h, hash); hash 564 net/sunrpc/auth_gss/svcauth_gss.c int hash = rsc_hash(item); hash 566 net/sunrpc/auth_gss/svcauth_gss.c ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); hash 576 net/sunrpc/auth_gss/svcauth_gss.c int hash = rsc_hash(new); hash 579 net/sunrpc/auth_gss/svcauth_gss.c &old->h, hash); hash 61 net/sunrpc/cache.c int hash) hash 63 net/sunrpc/cache.c struct hlist_head *head = &detail->hash_table[hash]; hash 82 net/sunrpc/cache.c int hash) hash 85 net/sunrpc/cache.c struct hlist_head *head = &detail->hash_table[hash]; hash 128 net/sunrpc/cache.c struct cache_head *key, int hash) hash 132 net/sunrpc/cache.c ret = sunrpc_cache_find_rcu(detail, key, hash); hash 136 net/sunrpc/cache.c return sunrpc_cache_add_entry(detail, key, hash); hash 165 net/sunrpc/cache.c struct cache_head *new, struct cache_head *old, int hash) hash 201 net/sunrpc/cache.c hlist_add_head(&tmp->cache_list, &detail->hash_table[hash]); hash 570 net/sunrpc/cache.c hlist_del_init(&dreq->hash); hash 579 net/sunrpc/cache.c int hash = DFR_HASH(item); hash 582 net/sunrpc/cache.c hlist_add_head(&dreq->hash, &cache_defer_hash[hash]); hash 634 net/sunrpc/cache.c if (!hlist_unhashed(&sleeper.handle.hash)) { hash 705 net/sunrpc/cache.c int hash = DFR_HASH(item); hash 710 net/sunrpc/cache.c hlist_for_each_entry_safe(dreq, tmp, &cache_defer_hash[hash], hash) hash 1320 net/sunrpc/cache.c unsigned int hash, entry; hash 1326 net/sunrpc/cache.c hash = n >> 32; hash 1329 net/sunrpc/cache.c hlist_for_each_entry_rcu(ch, &cd->hash_table[hash], cache_list) hash 1334 net/sunrpc/cache.c hash++; hash 1336 net/sunrpc/cache.c } while(hash < cd->hash_size && hash 1337 net/sunrpc/cache.c hlist_empty(&cd->hash_table[hash])); hash 1338 net/sunrpc/cache.c if (hash >= cd->hash_size) hash 1342 net/sunrpc/cache.c hlist_first_rcu(&cd->hash_table[hash])), hash 1349 net/sunrpc/cache.c int hash = (*pos >> 32); hash 1353 net/sunrpc/cache.c hash = 0; hash 1355 net/sunrpc/cache.c hash++; hash 1364 net/sunrpc/cache.c while (hash < cd->hash_size && hash 1365 net/sunrpc/cache.c hlist_empty(&cd->hash_table[hash])) { hash 1366 net/sunrpc/cache.c hash++; hash 1369 net/sunrpc/cache.c if (hash >= cd->hash_size) hash 1373 net/sunrpc/cache.c hlist_first_rcu(&cd->hash_table[hash])), hash 151 net/sunrpc/svcauth.c hlist_del_rcu(&dom->hash); hash 172 net/sunrpc/svcauth.c hlist_for_each_entry(hp, head, hash) { hash 180 net/sunrpc/svcauth.c hlist_add_head_rcu(&new->hash, head); hash 194 net/sunrpc/svcauth.c hlist_for_each_entry_rcu(hp, head, hash) { hash 78 net/tipc/monitor.c struct hlist_node hash; hash 158 net/tipc/monitor.c hlist_for_each_entry(peer, &mon->peers[thash], hash) { hash 334 net/tipc/monitor.c hlist_del(&peer->hash); hash 370 net/tipc/monitor.c hlist_add_head(&p->hash, &mon->peers[tipc_hashfn(addr)]); hash 656 net/tipc/monitor.c hlist_del(&peer->hash); hash 328 net/tipc/name_table.c service_head = &nt->services[hash(type)]; hash 352 net/tipc/name_table.c sc = tipc_service_create(type, &nt->services[hash(type)]); hash 688 net/tipc/name_table.c sc = tipc_service_create(type, &nt->services[hash(type)]); hash 905 net/tipc/name_table.c i = hash(*last_type); hash 108 net/tipc/node.c struct hlist_node hash; hash 266 net/tipc/node.c hlist_for_each_entry_rcu(node, &tn->node_htable[thash], hash) { hash 405 net/tipc/node.c INIT_HLIST_NODE(&n->hash); hash 436 net/tipc/node.c hlist_add_head_rcu(&n->hash, &tn->node_htable[tipc_hashfn(addr)]); hash 469 net/tipc/node.c hlist_del_rcu(&node->hash); hash 705 net/tls/tls_main.c err = ctx->sk_proto->hash(sk); hash 708 net/tls/tls_main.c if (dev->hash) { hash 711 net/tls/tls_main.c err |= dev->hash(dev, sk); hash 762 net/tls/tls_main.c prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_hw_hash; hash 128 net/unix/af_unix.c unsigned long hash = (unsigned long)addr; hash 130 net/unix/af_unix.c hash ^= hash >> 16; hash 131 net/unix/af_unix.c hash ^= hash >> 8; hash 132 net/unix/af_unix.c hash %= UNIX_HASH_SIZE; hash 133 net/unix/af_unix.c return &unix_socket_table[UNIX_HASH_SIZE + hash]; hash 136 net/unix/af_unix.c #define UNIX_ABSTRACT(sk) (unix_sk(sk)->addr->hash < UNIX_HASH_SIZE) hash 174 net/unix/af_unix.c unsigned int hash = (__force unsigned int)csum_fold(n); hash 176 net/unix/af_unix.c hash ^= hash>>8; hash 177 net/unix/af_unix.c return hash&(UNIX_HASH_SIZE-1); hash 275 net/unix/af_unix.c int len, int type, unsigned int hash) hash 279 net/unix/af_unix.c sk_for_each(s, &unix_socket_table[hash ^ type]) { hash 297 net/unix/af_unix.c unsigned int hash) hash 302 net/unix/af_unix.c s = __unix_find_socket_byname(net, sunname, len, type, hash); hash 878 net/unix/af_unix.c addr->hash = unix_hash_fold(csum_partial(addr->name, addr->len, 0)); hash 884 net/unix/af_unix.c addr->hash)) { hash 899 net/unix/af_unix.c addr->hash ^= sk->sk_type; hash 903 net/unix/af_unix.c __unix_insert_socket(&unix_socket_table[addr->hash], sk); hash 913 net/unix/af_unix.c int type, unsigned int hash, int *error) hash 948 net/unix/af_unix.c u = unix_find_socket_byname(net, sunname, len, type, hash); hash 1003 net/unix/af_unix.c unsigned int hash; hash 1018 net/unix/af_unix.c err = unix_mkname(sunaddr, addr_len, &hash); hash 1049 net/unix/af_unix.c addr->hash = hash ^ sk->sk_type; hash 1053 net/unix/af_unix.c addr->hash = UNIX_HASH_SIZE; hash 1054 net/unix/af_unix.c hash = d_backing_inode(path.dentry)->i_ino & (UNIX_HASH_SIZE - 1); hash 1057 net/unix/af_unix.c list = &unix_socket_table[hash]; hash 1062 net/unix/af_unix.c sk->sk_type, hash)) { hash 1067 net/unix/af_unix.c list = &unix_socket_table[addr->hash]; hash 1118 net/unix/af_unix.c unsigned int hash; hash 1126 net/unix/af_unix.c err = unix_mkname(sunaddr, alen, &hash); hash 1136 net/unix/af_unix.c other = unix_find_other(net, sunaddr, alen, sock->type, hash, &err); hash 1222 net/unix/af_unix.c unsigned int hash; hash 1227 net/unix/af_unix.c err = unix_mkname(sunaddr, addr_len, &hash); hash 1257 net/unix/af_unix.c other = unix_find_other(net, sunaddr, addr_len, sk->sk_type, hash, &err); hash 1591 net/unix/af_unix.c unsigned int hash; hash 1608 net/unix/af_unix.c err = unix_mkname(sunaddr, msg->msg_namelen, &hash); hash 1663 net/unix/af_unix.c hash, &err); hash 484 net/xfrm/xfrm_policy.c unsigned int hash; hash 489 net/xfrm/xfrm_policy.c hash = __sel_hash(sel, family, hmask, dbits, sbits); hash 491 net/xfrm/xfrm_policy.c if (hash == hmask + 1) hash 495 net/xfrm/xfrm_policy.c lockdep_is_held(&net->xfrm.xfrm_policy_lock)) + hash; hash 504 net/xfrm/xfrm_policy.c unsigned int hash; hash 509 net/xfrm/xfrm_policy.c hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); hash 512 net/xfrm/xfrm_policy.c lockdep_is_held(&net->xfrm.xfrm_policy_lock)) + hash; hash 11 samples/bpf/hash_func01.h __u32 hash = initval; hash 23 samples/bpf/hash_func01.h hash += get16bits (data); hash 24 samples/bpf/hash_func01.h tmp = (get16bits (data+2) << 11) ^ hash; hash 25 samples/bpf/hash_func01.h hash = (hash << 16) ^ tmp; hash 27 samples/bpf/hash_func01.h hash += hash >> 11; hash 32 samples/bpf/hash_func01.h case 3: hash += get16bits (data); hash 33 samples/bpf/hash_func01.h hash ^= hash << 16; hash 34 samples/bpf/hash_func01.h hash ^= ((signed char)data[sizeof (__u16)]) << 18; hash 35 samples/bpf/hash_func01.h hash += hash >> 11; hash 37 samples/bpf/hash_func01.h case 2: hash += get16bits (data); hash 38 samples/bpf/hash_func01.h hash ^= hash << 11; hash 39 samples/bpf/hash_func01.h hash += hash >> 17; hash 41 samples/bpf/hash_func01.h case 1: hash += (signed char)*data; hash 42 samples/bpf/hash_func01.h hash ^= hash << 10; hash 43 samples/bpf/hash_func01.h hash += hash >> 1; hash 47 samples/bpf/hash_func01.h hash ^= hash << 3; hash 48 samples/bpf/hash_func01.h hash += hash >> 5; hash 49 samples/bpf/hash_func01.h hash ^= hash << 4; hash 50 samples/bpf/hash_func01.h hash += hash >> 17; hash 51 samples/bpf/hash_func01.h hash ^= hash << 25; hash 52 samples/bpf/hash_func01.h hash += hash >> 6; hash 54 samples/bpf/hash_func01.h return hash; hash 47 samples/bpf/test_lwt_bpf.c printk("len %d hash %d protocol %d\n", skb->len, skb->hash, hash 167 scripts/basic/fixdep.c unsigned int hash; hash 177 scripts/basic/fixdep.c unsigned int i, hash = 2166136261U; hash 180 scripts/basic/fixdep.c hash = (hash ^ str[i]) * 0x01000193; hash 181 scripts/basic/fixdep.c return hash; hash 187 scripts/basic/fixdep.c static int is_defined_config(const char *name, int len, unsigned int hash) hash 191 scripts/basic/fixdep.c for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) { hash 192 scripts/basic/fixdep.c if (aux->hash == hash && aux->len == len && hash 202 scripts/basic/fixdep.c static void define_config(const char *name, int len, unsigned int hash) hash 212 scripts/basic/fixdep.c aux->hash = hash; hash 213 scripts/basic/fixdep.c aux->next = hashtab[hash % HASHSZ]; hash 214 scripts/basic/fixdep.c hashtab[hash % HASHSZ] = aux; hash 222 scripts/basic/fixdep.c unsigned int hash = strhash(m, slen); hash 224 scripts/basic/fixdep.c if (is_defined_config(m, slen, hash)) hash 227 scripts/basic/fixdep.c define_config(m, slen, hash); hash 69 scripts/gcc-plugins/randomize_layout_plugin.c unsigned long hash = 0; hash 72 scripts/gcc-plugins/randomize_layout_plugin.c hash = partial_name_hash(*name++, hash); hash 73 scripts/gcc-plugins/randomize_layout_plugin.c return (unsigned int)hash; hash 796 scripts/kconfig/symbol.c unsigned hash = 2166136261U; hash 798 scripts/kconfig/symbol.c hash = (hash ^ *s) * 0x01000193; hash 799 scripts/kconfig/symbol.c return hash; hash 806 scripts/kconfig/symbol.c int hash; hash 816 scripts/kconfig/symbol.c hash = strhash(name) % SYMBOL_HASHSIZE; hash 818 scripts/kconfig/symbol.c for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) { hash 828 scripts/kconfig/symbol.c hash = 0; hash 837 scripts/kconfig/symbol.c symbol->next = symbol_hash[hash]; hash 838 scripts/kconfig/symbol.c symbol_hash[hash] = symbol; hash 846 scripts/kconfig/symbol.c int hash = 0; hash 858 scripts/kconfig/symbol.c hash = strhash(name) % SYMBOL_HASHSIZE; hash 860 scripts/kconfig/symbol.c for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) { hash 216 scripts/mod/modpost.c unsigned int hash; hash 219 scripts/mod/modpost.c hash = tdb_hash(name) % SYMBOL_HASH_SIZE; hash 220 scripts/mod/modpost.c new = symbolhash[hash] = alloc_symbol(name, 0, symbolhash[hash]); hash 41 scripts/mod/sumversion.c uint32_t hash[MD4_HASH_WORDS]; hash 88 scripts/mod/sumversion.c static void md4_transform(uint32_t *hash, uint32_t const *in) hash 92 scripts/mod/sumversion.c a = hash[0]; hash 93 scripts/mod/sumversion.c b = hash[1]; hash 94 scripts/mod/sumversion.c c = hash[2]; hash 95 scripts/mod/sumversion.c d = hash[3]; hash 148 scripts/mod/sumversion.c hash[0] += a; hash 149 scripts/mod/sumversion.c hash[1] += b; hash 150 scripts/mod/sumversion.c hash[2] += c; hash 151 scripts/mod/sumversion.c hash[3] += d; hash 157 scripts/mod/sumversion.c md4_transform(ctx->hash, ctx->block); hash 162 scripts/mod/sumversion.c mctx->hash[0] = 0x67452301; hash 163 scripts/mod/sumversion.c mctx->hash[1] = 0xefcdab89; hash 164 scripts/mod/sumversion.c mctx->hash[2] = 0x98badcfe; hash 165 scripts/mod/sumversion.c mctx->hash[3] = 0x10325476; hash 218 scripts/mod/sumversion.c md4_transform(mctx->hash, mctx->block); hash 219 scripts/mod/sumversion.c cpu_to_le32_array(mctx->hash, sizeof(mctx->hash) / sizeof(uint32_t)); hash 222 scripts/mod/sumversion.c mctx->hash[0], mctx->hash[1], mctx->hash[2], mctx->hash[3]); hash 57 scripts/sign-file.c uint8_t hash; /* Digest algorithm [0] */ hash 1111 security/apparmor/apparmorfs.c if (profile->hash) { hash 1113 security/apparmor/apparmorfs.c seq_printf(seq, "%.2x", profile->hash[i]); hash 1124 security/apparmor/apparmorfs.c SEQ_PROFILE_FOPS(hash); hash 1275 security/apparmor/apparmorfs.c if (data->hash) { hash 1277 security/apparmor/apparmorfs.c seq_printf(seq, "%.2x", data->hash[i]); hash 1286 security/apparmor/apparmorfs.c SEQ_RAWDATA_FOPS(hash); hash 1639 security/apparmor/apparmorfs.c if (profile->hash) { hash 31 security/apparmor/crypto.c char *hash = NULL; hash 37 security/apparmor/crypto.c hash = kzalloc(apparmor_hash_size, GFP_KERNEL); hash 38 security/apparmor/crypto.c if (!hash) hash 49 security/apparmor/crypto.c error = crypto_shash_final(desc, hash); hash 53 security/apparmor/crypto.c return hash; hash 56 security/apparmor/crypto.c kfree(hash); hash 74 security/apparmor/crypto.c profile->hash = kzalloc(apparmor_hash_size, GFP_KERNEL); hash 75 security/apparmor/crypto.c if (!profile->hash) hash 89 security/apparmor/crypto.c error = crypto_shash_final(desc, profile->hash); hash 96 security/apparmor/crypto.c kfree(profile->hash); hash 97 security/apparmor/crypto.c profile->hash = NULL; hash 158 security/apparmor/include/policy.h unsigned char *hash; hash 67 security/apparmor/include/policy_unpack.h unsigned char *hash; hash 243 security/apparmor/policy.c kzfree(profile->hash); hash 142 security/apparmor/policy_unpack.c if (aa_g_hash_policy && memcmp(l->hash, r->hash, aa_hash_size()) != 0) hash 163 security/apparmor/policy_unpack.c kzfree(d->hash); hash 1103 security/apparmor/policy_unpack.c udata->hash = aa_calc_hash(udata->data, udata->size); hash 1104 security/apparmor/policy_unpack.c if (IS_ERR(udata->hash)) { hash 1105 security/apparmor/policy_unpack.c error = PTR_ERR(udata->hash); hash 1106 security/apparmor/policy_unpack.c udata->hash = NULL; hash 137 security/integrity/ima/ima.h int ima_calc_file_hash(struct file *file, struct ima_digest_data *hash); hash 139 security/integrity/ima/ima.h struct ima_digest_data *hash); hash 142 security/integrity/ima/ima.h struct ima_digest_data *hash); hash 143 security/integrity/ima/ima.h int __init ima_calc_boot_aggregate(struct ima_digest_data *hash); hash 102 security/integrity/ima/ima_api.c } hash; hash 108 security/integrity/ima/ima_api.c hash.hdr.algo = HASH_ALGO_SHA1; hash 111 security/integrity/ima/ima_api.c num_fields, &hash.hdr); hash 118 security/integrity/ima/ima_api.c memcpy(entry->digest, hash.hdr.digest, hash.hdr.length); hash 220 security/integrity/ima/ima_api.c } hash; hash 239 security/integrity/ima/ima_api.c hash.hdr.algo = algo; hash 242 security/integrity/ima/ima_api.c memset(&hash.digest, 0, sizeof(hash.digest)); hash 245 security/integrity/ima/ima_api.c result = ima_calc_buffer_hash(buf, size, &hash.hdr); hash 247 security/integrity/ima/ima_api.c result = ima_calc_file_hash(file, &hash.hdr); hash 252 security/integrity/ima/ima_api.c length = sizeof(hash.hdr) + hash.hdr.length; hash 260 security/integrity/ima/ima_api.c memcpy(iint->ima_hash, &hash, length); hash 341 security/integrity/ima/ima_api.c char *hash; hash 348 security/integrity/ima/ima_api.c hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL); hash 349 security/integrity/ima/ima_api.c if (!hash) hash 353 security/integrity/ima/ima_api.c hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]); hash 354 security/integrity/ima/ima_api.c hash[i * 2] = '\0'; hash 363 security/integrity/ima/ima_api.c audit_log_format(ab, " hash=\"%s:%s\"", algo_name, hash); hash 370 security/integrity/ima/ima_api.c kfree(hash); hash 205 security/integrity/ima/ima_crypto.c struct ima_digest_data *hash, hash 216 security/integrity/ima/ima_crypto.c hash->length = crypto_ahash_digestsize(tfm); hash 307 security/integrity/ima/ima_crypto.c ahash_request_set_crypt(req, NULL, hash->digest, 0); hash 315 security/integrity/ima/ima_crypto.c static int ima_calc_file_ahash(struct file *file, struct ima_digest_data *hash) hash 320 security/integrity/ima/ima_crypto.c tfm = ima_alloc_atfm(hash->algo); hash 324 security/integrity/ima/ima_crypto.c rc = ima_calc_file_hash_atfm(file, hash, tfm); hash 332 security/integrity/ima/ima_crypto.c struct ima_digest_data *hash, hash 342 security/integrity/ima/ima_crypto.c hash->length = crypto_shash_digestsize(tfm); hash 376 security/integrity/ima/ima_crypto.c rc = crypto_shash_final(shash, hash->digest); hash 380 security/integrity/ima/ima_crypto.c static int ima_calc_file_shash(struct file *file, struct ima_digest_data *hash) hash 385 security/integrity/ima/ima_crypto.c tfm = ima_alloc_tfm(hash->algo); hash 389 security/integrity/ima/ima_crypto.c rc = ima_calc_file_hash_tfm(file, hash, tfm); hash 409 security/integrity/ima/ima_crypto.c int ima_calc_file_hash(struct file *file, struct ima_digest_data *hash) hash 421 security/integrity/ima/ima_crypto.c hash->length = hash_digest_size[ima_hash_algo]; hash 422 security/integrity/ima/ima_crypto.c hash->algo = ima_hash_algo; hash 449 security/integrity/ima/ima_crypto.c rc = ima_calc_file_ahash(f, hash); hash 454 security/integrity/ima/ima_crypto.c rc = ima_calc_file_shash(f, hash); hash 469 security/integrity/ima/ima_crypto.c struct ima_digest_data *hash, hash 477 security/integrity/ima/ima_crypto.c hash->length = crypto_shash_digestsize(tfm); hash 507 security/integrity/ima/ima_crypto.c rc = crypto_shash_final(shash, hash->digest); hash 514 security/integrity/ima/ima_crypto.c struct ima_digest_data *hash) hash 519 security/integrity/ima/ima_crypto.c tfm = ima_alloc_tfm(hash->algo); hash 524 security/integrity/ima/ima_crypto.c hash, tfm); hash 532 security/integrity/ima/ima_crypto.c struct ima_digest_data *hash, hash 540 security/integrity/ima/ima_crypto.c hash->length = crypto_ahash_digestsize(tfm); hash 563 security/integrity/ima/ima_crypto.c ahash_request_set_crypt(req, NULL, hash->digest, 0); hash 572 security/integrity/ima/ima_crypto.c struct ima_digest_data *hash) hash 577 security/integrity/ima/ima_crypto.c tfm = ima_alloc_atfm(hash->algo); hash 581 security/integrity/ima/ima_crypto.c rc = calc_buffer_ahash_atfm(buf, len, hash, tfm); hash 589 security/integrity/ima/ima_crypto.c struct ima_digest_data *hash, hash 598 security/integrity/ima/ima_crypto.c hash->length = crypto_shash_digestsize(tfm); hash 614 security/integrity/ima/ima_crypto.c rc = crypto_shash_final(shash, hash->digest); hash 619 security/integrity/ima/ima_crypto.c struct ima_digest_data *hash) hash 624 security/integrity/ima/ima_crypto.c tfm = ima_alloc_tfm(hash->algo); hash 628 security/integrity/ima/ima_crypto.c rc = calc_buffer_shash_tfm(buf, len, hash, tfm); hash 635 security/integrity/ima/ima_crypto.c struct ima_digest_data *hash) hash 640 security/integrity/ima/ima_crypto.c rc = calc_buffer_ahash(buf, len, hash); hash 645 security/integrity/ima/ima_crypto.c return calc_buffer_shash(buf, len, hash); hash 685 security/integrity/ima/ima_crypto.c int __init ima_calc_boot_aggregate(struct ima_digest_data *hash) hash 690 security/integrity/ima/ima_crypto.c tfm = ima_alloc_tfm(hash->algo); hash 694 security/integrity/ima/ima_crypto.c hash->length = crypto_shash_digestsize(tfm); hash 695 security/integrity/ima/ima_crypto.c rc = ima_calc_boot_aggregate_tfm(hash->digest, tfm); hash 55 security/integrity/ima/ima_init.c } hash; hash 58 security/integrity/ima/ima_init.c memset(&hash, 0, sizeof(hash)); hash 59 security/integrity/ima/ima_init.c iint->ima_hash = &hash.hdr; hash 64 security/integrity/ima/ima_init.c result = ima_calc_boot_aggregate(&hash.hdr); hash 649 security/integrity/ima/ima_main.c } hash = {}; hash 659 security/integrity/ima/ima_main.c iint.ima_hash = &hash.hdr; hash 139 security/integrity/ima/ima_queue.c static int ima_pcr_extend(const u8 *hash, int pcr) hash 148 security/integrity/ima/ima_queue.c memcpy(digests[i].digest, hash, TPM_DIGEST_SIZE); hash 274 security/integrity/ima/ima_template_lib.c } hash; hash 280 security/integrity/ima/ima_template_lib.c memset(&hash, 0, sizeof(hash)); hash 295 security/integrity/ima/ima_template_lib.c hash.hdr.algo = ima_template_hash_algo_allowed(ima_hash_algo) ? hash 297 security/integrity/ima/ima_template_lib.c result = ima_calc_file_hash(event_data->file, &hash.hdr); hash 304 security/integrity/ima/ima_template_lib.c cur_digest = hash.hdr.digest; hash 305 security/integrity/ima/ima_template_lib.c cur_digestsize = hash.hdr.length; hash 79 security/integrity/platform_certs/load_uefi.c char *hash, *p; hash 81 security/integrity/platform_certs/load_uefi.c hash = kmalloc(type_len + len * 2 + 1, GFP_KERNEL); hash 82 security/integrity/platform_certs/load_uefi.c if (!hash) hash 84 security/integrity/platform_certs/load_uefi.c p = memcpy(hash, type, type_len); hash 90 security/integrity/platform_certs/load_uefi.c mark_hash_blacklisted(hash); hash 91 security/integrity/platform_certs/load_uefi.c kfree(hash); hash 168 security/keys/keyring.c unsigned long hash, type; hash 195 security/keys/keyring.c hash = acc; hash 197 security/keys/keyring.c hash ^= acc >> 32; hash 203 security/keys/keyring.c if (index_key->type != &key_type_keyring && (hash & fan_mask) == 0) hash 204 security/keys/keyring.c hash |= (hash >> (ASSOC_ARRAY_KEY_CHUNK_SIZE - level_shift)) | 1; hash 205 security/keys/keyring.c else if (index_key->type == &key_type_keyring && (hash & fan_mask) != 0) hash 206 security/keys/keyring.c hash = (hash + (hash << level_shift)) & ~fan_mask; hash 207 security/keys/keyring.c index_key->hash = hash; hash 278 security/keys/keyring.c return index_key->hash; hash 334 security/keys/keyring.c seg_a = a->hash; hash 335 security/keys/keyring.c seg_b = b->hash; hash 763 security/keys/trusted.c opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; hash 822 security/keys/trusted.c opt->hash = i; hash 834 security/keys/trusted.c digest_len = hash_digest_size[opt->hash]; hash 41 security/selinux/ss/avtab.c u32 hash = 0; hash 48 security/selinux/ss/avtab.c hash ^= v; \ hash 49 security/selinux/ss/avtab.c hash = (hash << r2) | (hash >> (32 - r2)); \ hash 50 security/selinux/ss/avtab.c hash = hash * m + n; \ hash 59 security/selinux/ss/avtab.c hash ^= hash >> 16; hash 60 security/selinux/ss/avtab.c hash *= 0x85ebca6b; hash 61 security/selinux/ss/avtab.c hash ^= hash >> 13; hash 62 security/selinux/ss/avtab.c hash *= 0xc2b2ae35; hash 63 security/selinux/ss/avtab.c hash ^= hash >> 16; hash 65 security/selinux/ss/avtab.c return hash & mask; hash 405 security/selinux/ss/policydb.c unsigned long hash; hash 409 security/selinux/ss/policydb.c hash = ft->stype ^ ft->ttype ^ ft->tclass; hash 413 security/selinux/ss/policydb.c hash = partial_name_hash(focus, hash); hash 414 security/selinux/ss/policydb.c return hash & (h->size - 1); hash 404 security/smack/smack_access.c unsigned int hash; hash 407 security/smack/smack_access.c hash = full_name_hash(NULL, skp->smk_known, strlen(skp->smk_known)); hash 408 security/smack/smack_access.c head = &smack_known_hash[hash & (SMACK_HASH_SLOTS - 1)]; hash 423 security/smack/smack_access.c unsigned int hash; hash 427 security/smack/smack_access.c hash = full_name_hash(NULL, string, strlen(string)); hash 428 security/smack/smack_access.c head = &smack_known_hash[hash & (SMACK_HASH_SLOTS - 1)]; hash 506 security/tomoyo/common.h u32 hash; /* = full_name_hash(name, strlen(name)) */ hash 1168 security/tomoyo/common.h return a->hash != b->hash || strcmp(a->name, b->name); hash 155 security/tomoyo/memory.c unsigned int hash; hash 162 security/tomoyo/memory.c hash = full_name_hash(NULL, (const unsigned char *) name, len - 1); hash 163 security/tomoyo/memory.c head = &tomoyo_name_list[hash_long(hash, TOMOYO_HASH_BITS)]; hash 167 security/tomoyo/memory.c if (hash != ptr->entry.hash || strcmp(name, ptr->entry.name) || hash 663 security/tomoyo/util.c ptr->hash = full_name_hash(NULL, name, len); hash 46 tools/bpf/bpftool/btf.c struct hlist_node hash; hash 570 tools/bpf/bpftool/btf.c hash_for_each_safe(tab->table, bkt, tmp, obj, hash) { hash 571 tools/bpf/bpftool/btf.c hash_del(&obj->hash); hash 667 tools/bpf/bpftool/btf.c hash_add(tab->table, &obj_node->hash, obj_node->btf_id); hash 714 tools/bpf/bpftool/btf.c hash_for_each_possible(btf_prog_table->table, obj, hash, info->id) { hash 721 tools/bpf/bpftool/btf.c hash_for_each_possible(btf_map_table->table, obj, hash, info->id) { hash 743 tools/bpf/bpftool/btf.c hash_for_each_possible(btf_prog_table->table, obj, hash, hash 752 tools/bpf/bpftool/btf.c hash_for_each_possible(btf_map_table->table, obj, hash, hash 413 tools/bpf/bpftool/common.c hash_add(tab->table, &obj_node->hash, obj_node->id); hash 429 tools/bpf/bpftool/common.c hash_for_each_safe(tab->table, bkt, tmp, obj, hash) { hash 430 tools/bpf/bpftool/common.c hash_del(&obj->hash); hash 120 tools/bpf/bpftool/main.h struct hlist_node hash; hash 552 tools/bpf/bpftool/map.c hash_for_each_possible(map_table.table, obj, hash, info->id) { hash 618 tools/bpf/bpftool/map.c hash_for_each_possible(map_table.table, obj, hash, info->id) { hash 261 tools/bpf/bpftool/prog.c hash_for_each_possible(prog_table.table, obj, hash, info->id) { hash 320 tools/bpf/bpftool/prog.c hash_for_each_possible(prog_table.table, obj, hash, info->id) { hash 2986 tools/include/uapi/linux/bpf.h __u32 hash; hash 3214 tools/include/uapi/linux/bpf.h __u32 hash; /* A hash of the packet 4 tuples */ hash 1318 tools/lib/bpf/btf.c #define for_each_dedup_cand(d, node, hash) \ hash 1319 tools/lib/bpf/btf.c hashmap__for_each_key_entry(d->dedup_table, node, (void *)hash) hash 1321 tools/lib/bpf/btf.c static int btf_dedup_table_add(struct btf_dedup *d, long hash, __u32 type_id) hash 1324 tools/lib/bpf/btf.c (void *)hash, (void *)(long)type_id); hash 119 tools/lib/bpf/hashmap.c const void *key, size_t hash, hash 128 tools/lib/bpf/hashmap.c for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; hash 37 tools/objtool/check.c hash_for_each_possible(file->insn_hash, insn, hash, offset) hash 269 tools/objtool/check.c hash_add(file->insn_hash, &insn->hash, insn->offset); hash 2428 tools/objtool/check.c hash_del(&insn->hash); hash 30 tools/objtool/check.h struct hlist_node hash; hash 53 tools/objtool/elf.c hash_for_each_possible(sec->symbol_hash, sym, hash, idx) hash 107 tools/objtool/elf.c hash_for_each_possible(sec->rela->rela_hash, rela, hash, o) hash 292 tools/objtool/elf.c hash_add(sym->sec->symbol_hash, &sym->hash, sym->idx); hash 396 tools/objtool/elf.c hash_add(sec->rela_hash, &rela->hash, rela->offset); hash 672 tools/objtool/elf.c hash_del(&sym->hash); hash 677 tools/objtool/elf.c hash_del(&rela->hash); hash 44 tools/objtool/elf.h struct hlist_node hash; hash 58 tools/objtool/elf.h struct hlist_node hash; hash 114 tools/objtool/orc_gen.c hash_add(ip_relasec->rela_hash, &rela->hash, rela->offset); hash 220 tools/perf/arch/arm/util/cs-etm.c u32 hash; hash 232 tools/perf/arch/arm/util/cs-etm.c ret = perf_pmu__scan_file(pmu, path, "%x", &hash); hash 240 tools/perf/arch/arm/util/cs-etm.c evsel->core.attr.config2 |= hash; hash 188 tools/perf/lib/evlist.c int hash; hash 193 tools/perf/lib/evlist.c hash = hash_64(sid->id, PERF_EVLIST__HLIST_BITS); hash 194 tools/perf/lib/evlist.c hlist_add_head(&sid->node, &evlist->heads[hash]); hash 1418 tools/perf/util/auxtrace.c hlist_for_each_entry_safe(entry, tmp, &c->hashtable[i], hash) { hash 1419 tools/perf/util/auxtrace.c hlist_del(&entry->hash); hash 1455 tools/perf/util/auxtrace.c hlist_add_head(&entry->hash, &c->hashtable[hash_32(key, c->bits)]); hash 1469 tools/perf/util/auxtrace.c hlist_for_each_entry(entry, hlist, hash) { hash 481 tools/perf/util/auxtrace.h struct hlist_node hash; hash 446 tools/perf/util/evlist.c int hash; hash 448 tools/perf/util/evlist.c hash = hash_64(id, PERF_EVLIST__HLIST_BITS); hash 449 tools/perf/util/evlist.c head = &evlist->core.heads[hash]; hash 517 tools/perf/util/evlist.c int hash; hash 534 tools/perf/util/evlist.c hash = hash_64(id, PERF_EVLIST__HLIST_BITS); hash 535 tools/perf/util/evlist.c head = &evlist->core.heads[hash]; hash 319 tools/testing/selftests/bpf/bpf_helpers.h static unsigned int (*bpf_set_hash)(void *ctx, __u32 hash) = hash 59 tools/testing/selftests/bpf/prog_tests/skb_ctx.c skb.hash = 1; hash 62 tools/testing/selftests/bpf/prog_tests/skb_ctx.c skb.hash = 0; hash 222 tools/testing/selftests/bpf/progs/test_l4lb.c __u32 hash = get_packet_hash(pckt, is_ipv6) % RING_SIZE; hash 223 tools/testing/selftests/bpf/progs/test_l4lb.c __u32 key = RING_SIZE * vip_info->vip_num + hash; hash 218 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c __u32 hash = get_packet_hash(pckt, is_ipv6); hash 219 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c __u32 key = RING_SIZE * vip_info->vip_num + hash % RING_SIZE; hash 222 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c if (hash != 0x358459b7 /* jhash of ipv4 packet */ && hash 223 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c hash != 0x2f4bc6bb /* jhash of ipv6 packet */) hash 38 tools/testing/selftests/bpf/progs/test_pkt_md_access.c TEST_FIELD(__u8, hash, 0xFF); hash 39 tools/testing/selftests/bpf/progs/test_pkt_md_access.c TEST_FIELD(__u16, hash, 0xFFFF); hash 40 tools/testing/selftests/bpf/progs/test_pkt_md_access.c TEST_FIELD(__u32, hash, 0xFFFFFFFF); hash 83 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c data_check.hash = reuse_md->hash; hash 70 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c .hash = 0xef, hash 555 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u32 *real_pos, hash, key; hash 564 tools/testing/selftests/bpf/progs/test_xdp_noinline.c hash = get_packet_hash(pckt, hash_16bytes); hash 565 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (hash != 0x358459b7 /* jhash of ipv4 packet */ && hash 566 tools/testing/selftests/bpf/progs/test_xdp_noinline.c hash != 0x2f4bc6bb /* jhash of ipv6 packet */) hash 568 tools/testing/selftests/bpf/progs/test_xdp_noinline.c key = 2 * vip_info->vip_num + hash % 2; hash 291 tools/testing/selftests/bpf/test_select_reuseport.c CHECK(!result.hash, "data_check result.hash empty", hash 292 tools/testing/selftests/bpf/test_select_reuseport.c "result.hash:%u", result.hash); hash 33 tools/testing/selftests/bpf/test_select_reuseport_common.h __u32 hash; hash 15 tools/testing/selftests/bpf/test_tcpnotify.h __u8 hash; hash 39 tools/testing/selftests/bpf/test_tcpnotify_user.c t->source != 0xbe || t->hash != 0xef) hash 50 tools/testing/selftests/bpf/verifier/cgroup_skb.c offsetof(struct __sk_buff, hash)), hash 484 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash)), hash 507 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash)), hash 510 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash) + 3), hash 521 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash) + 1), hash 531 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash) + 2), hash 542 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash) + 3), hash 545 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash)), hash 628 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash)), hash 651 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash)), hash 654 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash) + 2), hash 666 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash) + 2), hash 669 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash)), hash 681 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash) + 1), hash 684 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash) + 3), hash 698 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash) + 3), hash 701 tools/testing/selftests/bpf/verifier/ctx_skb.c offsetof(struct __sk_buff, hash) + 1), hash 134 tools/testing/selftests/vDSO/parse_vdso.c ELF(Word) *hash = 0; hash 152 tools/testing/selftests/vDSO/parse_vdso.c hash = (ELF(Word) *) hash 168 tools/testing/selftests/vDSO/parse_vdso.c if (!vdso_info.symstrings || !vdso_info.symtab || !hash) hash 175 tools/testing/selftests/vDSO/parse_vdso.c vdso_info.nbucket = hash[0]; hash 176 tools/testing/selftests/vDSO/parse_vdso.c vdso_info.nchain = hash[1]; hash 177 tools/testing/selftests/vDSO/parse_vdso.c vdso_info.bucket = &hash[2]; hash 178 tools/testing/selftests/vDSO/parse_vdso.c vdso_info.chain = &hash[vdso_info.nbucket + 2]; hash 185 tools/testing/selftests/vDSO/parse_vdso.c const char *name, ELF(Word) hash) hash 218 tools/testing/selftests/vDSO/parse_vdso.c return def->vd_hash == hash