Home
last modified time | relevance | path

Searched refs:pshift (Results 1 – 12 of 12) sorted by relevance

/arch/powerpc/mm/
Dhugetlbpage.c46 unsigned int pshift, spinlock_t *ptl) in __hugepte_alloc() argument
53 if (pshift >= pdshift) { in __hugepte_alloc()
55 num_hugepd = 1 << (pshift - pdshift); in __hugepte_alloc()
60 cachep = PGT_CACHE(pdshift - pshift); in __hugepte_alloc()
71 BUG_ON(pshift > HUGEPD_SHIFT_MASK); in __hugepte_alloc()
94 hugepd_populate(hpdp, new, pshift); in __hugepte_alloc()
118 unsigned pshift = __ffs(sz); in huge_pte_alloc() local
126 if (pshift == PGDIR_SHIFT) in huge_pte_alloc()
129 else if (pshift > PUD_SHIFT) { in huge_pte_alloc()
140 if (pshift == PUD_SHIFT) in huge_pte_alloc()
[all …]
Dslice.c283 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_bottomup() local
289 info.align_mask = PAGE_MASK & ((1ul << pshift) - 1); in slice_find_area_bottomup()
329 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_topdown() local
336 info.align_mask = PAGE_MASK & ((1ul << pshift) - 1); in slice_find_area_topdown()
438 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_get_unmapped_area() local
439 unsigned long page_size = 1UL << pshift; in slice_get_unmapped_area()
/arch/powerpc/include/asm/nohash/
Dhugetlb-book3e.h31 static inline void hugepd_populate(hugepd_t *hpdp, pte_t *new, unsigned int pshift) in hugepd_populate() argument
34 *hpdp = __hugepd(((unsigned long)new & ~PD_HUGE) | pshift); in hugepd_populate()
/arch/powerpc/include/asm/nohash/32/
Dhugetlb-8xx.h33 static inline void hugepd_populate(hugepd_t *hpdp, pte_t *new, unsigned int pshift) in hugepd_populate() argument
36 (pshift == PAGE_SHIFT_8M ? _PMD_PAGE_8M : _PMD_PAGE_512K)); in hugepd_populate()
/arch/powerpc/include/asm/book3s/64/
Dhugetlb.h102 static inline void hugepd_populate(hugepd_t *hpdp, pte_t *new, unsigned int pshift) in hugepd_populate() argument
104 *hpdp = __hugepd(__pa(new) | HUGEPD_VAL_BITS | (shift_to_mmu_psize(pshift) << 2)); in hugepd_populate()
/arch/powerpc/kvm/
Dbook3s_hv_rm_mmu.c1084 unsigned int pshift; in mmio_cache_search() local
1090 pshift = entry->slb_base_pshift; in mmio_cache_search()
1091 if ((entry->eaddr >> pshift) == (eaddr >> pshift) && in mmio_cache_search()
1119 unsigned int pshift; in kvmppc_hv_find_lock_hpte() local
1130 pshift = 12; in kvmppc_hv_find_lock_hpte()
1134 pshift = slb_base_page_shift[(slb_v & SLB_VSID_LP) >> 4]; in kvmppc_hv_find_lock_hpte()
1144 hash = (vsid ^ ((eaddr & somask) >> pshift)) & kvmppc_hpt_mask(&kvm->arch.hpt); in kvmppc_hv_find_lock_hpte()
1148 if (pshift >= 24) in kvmppc_hv_find_lock_hpte()
1149 avpn &= ~((1UL << (pshift - 16)) - 1); in kvmppc_hv_find_lock_hpte()
1181 kvmppc_hpte_base_page_shift(v, r) == pshift) in kvmppc_hv_find_lock_hpte()
[all …]
Dbook3s_64_mmu_hv.c1254 int pshift; in resize_hpt_rehash_hpte() local
1323 pshift = kvmppc_hpte_base_page_shift(vpte, rpte); in resize_hpt_rehash_hpte()
1324 avpn = HPTE_V_AVPN_VAL(vpte) & ~(((1ul << pshift) - 1) >> 23); in resize_hpt_rehash_hpte()
1336 if (pshift < 23) in resize_hpt_rehash_hpte()
1337 offset |= ((vsid ^ pteg) & old_hash_mask) << pshift; in resize_hpt_rehash_hpte()
1339 hash = vsid ^ (offset >> pshift); in resize_hpt_rehash_hpte()
1346 if (pshift < 23) in resize_hpt_rehash_hpte()
1347 offset |= ((vsid ^ (vsid << 25) ^ pteg) & old_hash_mask) << pshift; in resize_hpt_rehash_hpte()
1349 hash = vsid ^ (vsid << 25) ^ (offset >> pshift); in resize_hpt_rehash_hpte()
1852 int pshift; in kvm_htab_write() local
[all …]
Dbook3s_64_mmu_radix.c296 unsigned int pshift, unsigned int lpid) in kvmppc_radix_tlbie_page() argument
303 if (pshift) in kvmppc_radix_tlbie_page()
304 psize = 1UL << pshift; in kvmppc_radix_tlbie_page()
306 pshift = PAGE_SHIFT; in kvmppc_radix_tlbie_page()
315 psi = shift_to_mmu_psize(pshift); in kvmppc_radix_tlbie_page()
/arch/powerpc/include/asm/
Dkvm_book3s.h196 unsigned int pshift, unsigned int lpid);
/arch/powerpc/mm/book3s64/
Dhash_utils.c735 unsigned pshift = mmu_psize_defs[mmu_virtual_psize].shift; in htab_shift_for_mem_size() local
743 pteg_shift = memshift - (pshift + 1); in htab_shift_for_mem_size()
/arch/x86/kernel/apic/
Dx2apic_uv_x.c734 static __init void map_high(char *id, unsigned long base, int pshift, int bshift, int max_pnode, en… in map_high() argument
738 paddr = base << pshift; in map_high()
/arch/x86/kvm/
Dx86.c1662 s8 *pshift, u32 *pmultiplier) in kvm_get_time_scale() argument
1685 *pshift = shift; in kvm_get_time_scale()