Home
last modified time | relevance | path

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

12

/arch/powerpc/mm/
Dhugetlbpage-hash64.c70 unsigned long hash, slot; in __hash_page_huge() local
72 hash = hpt_hash(va, shift, ssize); in __hash_page_huge()
74 hash = ~hash; in __hash_page_huge()
75 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_huge()
84 unsigned long hash = hpt_hash(va, shift, ssize); in __hash_page_huge() local
90 hpte_group = ((hash & htab_hash_mask) * in __hash_page_huge()
109 hpte_group = ((~hash & htab_hash_mask) * in __hash_page_huge()
116 hpte_group = ((hash & htab_hash_mask) * in __hash_page_huge()
Dhash_native_64.c265 unsigned long hash; in native_hpte_find() local
270 hash = hpt_hash(va, mmu_psize_defs[psize].shift, ssize); in native_hpte_find()
274 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in native_hpte_find()
468 unsigned long va, hash, index, hidx, shift, slot; in native_flush_hash_range() local
486 hash = hpt_hash(va, shift, ssize); in native_flush_hash_range()
489 hash = ~hash; in native_flush_hash_range()
490 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in native_flush_hash_range()
Dhash_utils_64.c193 unsigned long hash, hpteg; in htab_bolt_mapping() local
202 hash = hpt_hash(va, shift, ssize); in htab_bolt_mapping()
203 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in htab_bolt_mapping()
1161 unsigned long hash, index, shift, hidx, slot; in flush_hash_page() local
1165 hash = hpt_hash(va, shift, ssize); in flush_hash_page()
1168 hash = ~hash; in flush_hash_page()
1169 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in flush_hash_page()
1211 unsigned long hash, hpteg; in kernel_map_linear_page() local
1217 hash = hpt_hash(va, PAGE_SHIFT, mmu_kernel_ssize); in kernel_map_linear_page()
1218 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in kernel_map_linear_page()
[all …]
/arch/x86/vdso/
Dvdso-layout.lds.S11 .hash : { *(.hash) } :text
12 .gnu.hash : { *(.gnu.hash) }
/arch/x86/um/vdso/
Dvdso-layout.lds.S11 .hash : { *(.hash) } :text
12 .gnu.hash : { *(.gnu.hash) }
/arch/sh/kernel/vsyscall/
Dvsyscall.lds.S22 .hash : { *(.hash) } :text
23 .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.S15 .hash : { *(.hash) } :text
16 .gnu.hash : { *(.gnu.hash) }
/arch/powerpc/kernel/vdso64/
Dvdso64.lds.S15 .hash : { *(.hash) } :text
16 .gnu.hash : { *(.gnu.hash) }
/arch/powerpc/kvm/
Dbook3s_64_mmu_host.c84 ulong hash, hpteg, va; in kvmppc_mmu_map_page() local
130 hash = hpt_hash(va, PTE_SIZE, MMU_SEGSIZE_256M); in kvmppc_mmu_map_page()
133 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in kvmppc_mmu_map_page()
146 hash = ~hash; in kvmppc_mmu_map_page()
158 hash = ~hash; in kvmppc_mmu_map_page()
159 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()
Dbook3s_64_mmu.c111 u64 hash, pteg, htabsize; in kvmppc_mmu_book3s_64_get_pteg() local
118 hash = slbe->vsid ^ page; in kvmppc_mmu_book3s_64_get_pteg()
120 hash = ~hash; in kvmppc_mmu_book3s_64_get_pteg()
121 hash &= ((1ULL << 39ULL) - 1ULL); in kvmppc_mmu_book3s_64_get_pteg()
122 hash &= htabsize; in kvmppc_mmu_book3s_64_get_pteg()
123 hash <<= 7ULL; in kvmppc_mmu_book3s_64_get_pteg()
126 pteg |= hash; in kvmppc_mmu_book3s_64_get_pteg()
Dbook3s_32_mmu.c118 u32 page, hash, pteg, htabmask; in kvmppc_mmu_book3s_32_get_pteg() local
124 hash = ((sr_vsid(sre) ^ page) << 6); in kvmppc_mmu_book3s_32_get_pteg()
126 hash = ~hash; in kvmppc_mmu_book3s_32_get_pteg()
127 hash &= htabmask; in kvmppc_mmu_book3s_32_get_pteg()
129 pteg = (vcpu_book3s->sdr1 & 0xffff0000) | hash; in kvmppc_mmu_book3s_32_get_pteg()
Dbook3s_hv_rm_mmu.c658 unsigned long vsid, hash; in kvmppc_hv_find_lock_hpte() local
681 hash = (vsid ^ ((eaddr & somask) >> pshift)) & HPT_HASH_MASK; in kvmppc_hv_find_lock_hpte()
692 hpte = (unsigned long *)(kvm->arch.hpt_virt + (hash << 7)); in kvmppc_hv_find_lock_hpte()
717 return (hash << 3) + (i >> 1); in kvmppc_hv_find_lock_hpte()
726 hash = hash ^ HPT_HASH_MASK; in kvmppc_hv_find_lock_hpte()
/arch/powerpc/boot/
DzImage.lds.S28 .hash : { *(.hash) }
/arch/x86/crypto/
Dcrc32c-intel.c88 static int crc32c_intel_setkey(struct crypto_shash *hash, const u8 *key, in crc32c_intel_setkey() argument
91 u32 *mctx = crypto_shash_ctx(hash); in crc32c_intel_setkey()
94 crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); in crc32c_intel_setkey()
/arch/parisc/kernel/
Dvmlinux.lds.S174 *(.hash)
175 *(.gnu.hash)
/arch/um/kernel/
Ddyn.lds.S24 .hash : { *(.hash) }
25 .gnu.hash : { *(.gnu.hash) }
/arch/powerpc/platforms/pseries/
Dlpar.c306 unsigned long hash; in pSeries_lpar_hpte_find() local
311 hash = hpt_hash(va, mmu_psize_defs[psize].shift, ssize); in pSeries_lpar_hpte_find()
315 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in pSeries_lpar_hpte_find()
397 unsigned long hash, index, shift, hidx, slot; in pSeries_lpar_flush_hash_range() local
411 hash = hpt_hash(va, shift, ssize); in pSeries_lpar_flush_hash_range()
414 hash = ~hash; in pSeries_lpar_flush_hash_range()
415 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in pSeries_lpar_flush_hash_range()
/arch/powerpc/platforms/cell/
Dbeat_htab.c225 unsigned long hash; in beat_lpar_hpte_find() local
230 hash = hpt_hash(va, mmu_psize_defs[psize].shift, MMU_SEGSIZE_256M); in beat_lpar_hpte_find()
234 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in beat_lpar_hpte_find()
248 hash = ~hash; in beat_lpar_hpte_find()
/arch/powerpc/kernel/
Dvmlinux.lds.S178 .hash : AT(ADDR(.hash) - LOAD_OFFSET) { *(.hash) }
/arch/powerpc/include/asm/
Dmmu-hash64.h236 unsigned long hash, vsid; in hpt_hash() local
239 hash = (va >> 28) ^ ((va & 0x0fffffffUL) >> shift); in hpt_hash()
242 hash = vsid ^ (vsid << 25) ^ ((va & 0xffffffffffUL) >> shift); in hpt_hash()
244 return hash & 0x7fffffffffUL; in hpt_hash()
/arch/sparc/mm/
Dtsb.c39 unsigned long hash = tsb_hash(v, PAGE_SHIFT, in flush_tsb_kernel_range() local
41 struct tsb *ent = &swapper_tsb[hash]; in flush_tsb_kernel_range()
52 unsigned long tag, ent, hash; in __flush_tsb_one_entry() local
55 hash = tsb_hash(v, hash_shift, nentries); in __flush_tsb_one_entry()
56 ent = tsb + (hash * sizeof(struct tsb)); in __flush_tsb_one_entry()

12