Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 86) sorted by relevance

1234

/arch/powerpc/mm/
Dhugepage-hash64.c27 unsigned long hidx, shift, vpn, hash, slot; in invalidate_old_hpte() local
60 hash = hpt_hash(vpn, shift, ssize); in invalidate_old_hpte()
62 hash = ~hash; in invalidate_old_hpte()
64 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in invalidate_old_hpte()
81 unsigned long vpn, hash, shift, slot; in __hash_page_thp() local
153 hash = hpt_hash(vpn, shift, ssize); in __hash_page_thp()
156 hash = ~hash; in __hash_page_thp()
157 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_thp()
179 hash = hpt_hash(vpn, shift, ssize); in __hash_page_thp()
192 hpte_group = ((hash & htab_hash_mask) * HPTES_PER_GROUP) & ~0x7UL; in __hash_page_thp()
[all …]
Dhugetlbpage-hash64.c17 extern long hpte_insert_repeating(unsigned long hash, unsigned long vpn,
75 unsigned long hash, slot; in __hash_page_huge() local
77 hash = hpt_hash(vpn, shift, ssize); in __hash_page_huge()
79 hash = ~hash; in __hash_page_huge()
80 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_huge()
89 unsigned long hash = hpt_hash(vpn, shift, ssize); in __hash_page_huge() local
107 slot = hpte_insert_repeating(hash, vpn, pa, rflags, 0, in __hash_page_huge()
Dhash_native_64.c327 unsigned long hash; in native_hpte_find() local
332 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in native_hpte_find()
336 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in native_hpte_find()
430 unsigned long hidx, vpn = 0, hash, slot; in native_hugepage_invalidate() local
445 hash = hpt_hash(vpn, shift, ssize); in native_hugepage_invalidate()
447 hash = ~hash; in native_hugepage_invalidate()
449 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in native_hugepage_invalidate()
626 unsigned long hash, index, hidx, shift, slot; in native_flush_hash_range() local
648 hash = hpt_hash(vpn, shift, ssize); in native_flush_hash_range()
651 hash = ~hash; in native_flush_hash_range()
[all …]
Dhash_utils_64.c199 unsigned long hash, hpteg; in htab_bolt_mapping() local
231 hash = hpt_hash(vpn, shift, ssize); in htab_bolt_mapping()
232 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in htab_bolt_mapping()
1283 unsigned long hash, index, shift, hidx, slot; in flush_hash_page() local
1287 hash = hpt_hash(vpn, shift, ssize); in flush_hash_page()
1290 hash = ~hash; in flush_hash_page()
1291 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in flush_hash_page()
1354 long hpte_insert_repeating(unsigned long hash, unsigned long vpn, in hpte_insert_repeating() argument
1362 hpte_group = ((hash & htab_hash_mask) * in hpte_insert_repeating()
1371 hpte_group = ((~hash & htab_hash_mask) * in hpte_insert_repeating()
[all …]
/arch/x86/boot/compressed/
Daslr.c37 static unsigned long rotate_xor(unsigned long hash, const void *area, in rotate_xor() argument
43 for (i = 0; i < size / sizeof(hash); i++) { in rotate_xor()
45 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor()
46 hash ^= ptr[i]; in rotate_xor()
49 return hash; in rotate_xor()
55 unsigned long hash = 0; in get_random_boot() local
57 hash = rotate_xor(hash, build_str, sizeof(build_str)); in get_random_boot()
58 hash = rotate_xor(hash, real_mode, sizeof(*real_mode)); in get_random_boot()
60 return hash; in get_random_boot()
/arch/x86/um/vdso/
Dvdso-layout.lds.S11 .hash : { *(.hash) } :text
12 .gnu.hash : { *(.gnu.hash) }
/arch/tile/kernel/vdso/
Dvdso.lds.S28 .hash : { *(.hash) } :text
29 .gnu.hash : { *(.gnu.hash) }
/arch/arm/vdso/
Dvdso.lds.S37 .hash : { *(.hash) } :text
38 .gnu.hash : { *(.gnu.hash) }
/arch/sh/kernel/vsyscall/
Dvsyscall.lds.S22 .hash : { *(.hash) } :text
23 .gnu.hash : { *(.gnu.hash) }
/arch/arm64/kernel/vdso/
Dvdso.lds.S34 .hash : { *(.hash) } :text
35 .gnu.hash : { *(.gnu.hash) }
/arch/sparc/crypto/
Dmd5_glue.c36 mctx->hash[0] = cpu_to_le32(0x67452301); in md5_sparc64_init()
37 mctx->hash[1] = cpu_to_le32(0xefcdab89); in md5_sparc64_init()
38 mctx->hash[2] = cpu_to_le32(0x98badcfe); in md5_sparc64_init()
39 mctx->hash[3] = cpu_to_le32(0x10325476); in md5_sparc64_init()
54 md5_sparc64_transform(sctx->hash, (u8 *)sctx->block, 1); in __md5_sparc64_update()
59 md5_sparc64_transform(sctx->hash, data + done, rounds); in __md5_sparc64_update()
108 dst[i] = sctx->hash[i]; in md5_sparc64_final()
Dcrc32c_glue.c30 static int crc32c_sparc64_setkey(struct crypto_shash *hash, const u8 *key, in crc32c_sparc64_setkey() argument
33 u32 *mctx = crypto_shash_ctx(hash); in crc32c_sparc64_setkey()
36 crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); in crc32c_sparc64_setkey()
/arch/mips/vdso/
Dvdso.lds.S39 .hash : { *(.hash) } :text
40 .gnu.hash : { *(.gnu.hash) }
/arch/x86/vdso/
Dvdso-layout.lds.S42 .hash : { *(.hash) } :text
43 .gnu.hash : { *(.gnu.hash) }
/arch/ia64/kernel/
Dgate.lds.S15 .hash : { *(.hash) } :readable
16 .gnu.hash : { *(.gnu.hash) }
/arch/s390/kernel/vdso32/
Dvdso32.lds.S15 .hash : { *(.hash) } :text
16 .gnu.hash : { *(.gnu.hash) }
/arch/s390/kernel/vdso64/
Dvdso64.lds.S15 .hash : { *(.hash) } :text
16 .gnu.hash : { *(.gnu.hash) }
/arch/powerpc/kernel/vdso32/
Dvdso32.lds.S19 .hash : { *(.hash) } :text
20 .gnu.hash : { *(.gnu.hash) }
/arch/powerpc/kernel/vdso64/
Dvdso64.lds.S19 .hash : { *(.hash) } :text
20 .gnu.hash : { *(.gnu.hash) }
/arch/powerpc/platforms/pseries/
Dlpar.c333 unsigned long hash; in pSeries_lpar_hpte_find() local
338 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in pSeries_lpar_hpte_find()
342 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in pSeries_lpar_hpte_find()
452 unsigned long shift, hidx, vpn = 0, hash, slot; in pSeries_lpar_hugepage_invalidate() local
466 hash = hpt_hash(vpn, shift, ssize); in pSeries_lpar_hugepage_invalidate()
468 hash = ~hash; in pSeries_lpar_hugepage_invalidate()
470 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in pSeries_lpar_hugepage_invalidate()
521 unsigned long hash, index, shift, hidx, slot; in pSeries_lpar_flush_hash_range() local
535 hash = hpt_hash(vpn, shift, ssize); in pSeries_lpar_flush_hash_range()
538 hash = ~hash; in pSeries_lpar_flush_hash_range()
[all …]
/arch/powerpc/kvm/
Dbook3s_64_mmu_host.c86 ulong hash, hpteg; in kvmppc_mmu_map_page() local
156 hash = hpt_hash(vpn, mmu_psize_defs[hpsize].shift, MMU_SEGSIZE_256M); in kvmppc_mmu_map_page()
167 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in kvmppc_mmu_map_page()
181 hash = ~hash; in kvmppc_mmu_map_page()
192 hash = ~hash; in kvmppc_mmu_map_page()
193 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in kvmppc_mmu_map_page()
Dbook3s_32_mmu_host.c120 u32 page, hash; in kvmppc_mmu_get_pteg() local
125 hash = ((vsid ^ page) << 6); in kvmppc_mmu_get_pteg()
127 hash = ~hash; in kvmppc_mmu_get_pteg()
129 hash &= htabmask; in kvmppc_mmu_get_pteg()
131 pteg |= hash; in kvmppc_mmu_get_pteg()
134 htab, hash, htabmask, pteg); in kvmppc_mmu_get_pteg()
/arch/powerpc/boot/
DzImage.lds.S36 .hash : { *(.hash) }
/arch/um/kernel/
Ddyn.lds.S22 .hash : { *(.hash) }
23 .gnu.hash : { *(.gnu.hash) }
/arch/x86/crypto/
Dcrc32-pclmul_glue.c91 static int crc32_pclmul_setkey(struct crypto_shash *hash, const u8 *key, in crc32_pclmul_setkey() argument
94 u32 *mctx = crypto_shash_ctx(hash); in crc32_pclmul_setkey()
97 crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); in crc32_pclmul_setkey()

1234