Home
last modified time | relevance | path

Searched refs:pte_index (Results 1 – 25 of 32) sorted by relevance

12

/arch/powerpc/kvm/
Dbook3s_hv_rm_mmu.c75 unsigned long *rmap, long pte_index, int realmode) in kvmppc_add_revmap_chain() argument
90 tail->forw = pte_index; in kvmppc_add_revmap_chain()
91 head->back = pte_index; in kvmppc_add_revmap_chain()
93 rev->forw = rev->back = pte_index; in kvmppc_add_revmap_chain()
95 pte_index | KVMPPC_RMAP_PRESENT; in kvmppc_add_revmap_chain()
102 static void remove_revmap_chain(struct kvm *kvm, long pte_index, in remove_revmap_chain() argument
127 if (head == pte_index) { in remove_revmap_chain()
129 if (head == pte_index) in remove_revmap_chain()
164 long pte_index, unsigned long pteh, unsigned long ptel, in kvmppc_do_h_enter() argument
274 if (pte_index >= kvm->arch.hpt_npte) in kvmppc_do_h_enter()
[all …]
Dbook3s_pr_papr.c26 static unsigned long get_pteg_addr(struct kvm_vcpu *vcpu, long pte_index) in get_pteg_addr() argument
31 pte_index <<= 4; in get_pteg_addr()
32 pte_index &= ((1 << ((vcpu_book3s->sdr1 & 0x1f) + 11)) - 1) << 7 | 0x70; in get_pteg_addr()
34 pteg_addr |= pte_index; in get_pteg_addr()
42 long pte_index = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_enter() local
48 i = pte_index & 7; in kvmppc_h_pr_enter()
49 pte_index &= ~7UL; in kvmppc_h_pr_enter()
50 pteg_addr = get_pteg_addr(vcpu, pte_index); in kvmppc_h_pr_enter()
75 kvmppc_set_gpr(vcpu, 4, pte_index | i); in kvmppc_h_pr_enter()
88 unsigned long pte_index = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_remove() local
[all …]
Dbook3s_64_mmu_hv.c47 long pte_index, unsigned long pteh,
358 long pte_index, unsigned long pteh, in kvmppc_virtmode_do_h_enter() argument
388 ret = kvmppc_do_h_enter(kvm, flags, pte_index, pteh, ptel, in kvmppc_virtmode_do_h_enter()
406 long pte_index, unsigned long pteh, in kvmppc_virtmode_h_enter() argument
409 return kvmppc_virtmode_do_h_enter(vcpu->kvm, flags, pte_index, in kvmppc_virtmode_h_enter()
/arch/x86/include/asm/
Dpgtable_32.h51 pte_index((address)))
55 ((pte_t *)page_address(pmd_page(*(dir))) + pte_index((address)))
/arch/powerpc/include/asm/
Dkvm_book3s.h164 unsigned long *rmap, long pte_index, int realmode);
166 unsigned long pte_index);
168 unsigned long pte_index);
174 long pte_index, unsigned long pteh, unsigned long ptel);
176 long pte_index, unsigned long pteh, unsigned long ptel,
179 unsigned long pte_index, unsigned long avpn,
Dpgtable-ppc32.h304 #define pte_index(address) \ macro
307 ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(addr))
309 ((pte_t *) kmap_atomic(pmd_page(*(dir))) + pte_index(addr))
Dkvm_book3s_64.h120 unsigned long pte_index) in compute_tlbie_rb() argument
156 va_low = pte_index >> 3; in compute_tlbie_rb()
/arch/m68k/include/asm/
Dsun3_pgtable.h218 #define pte_index(address) ((address >> PAGE_SHIFT) & (PTRS_PER_PTE-1)) macro
219 #define pte_offset_kernel(pmd, address) ((pte_t *) __pmd_page(*pmd) + pte_index(address))
220 #define pte_offset_map(pmd, address) ((pte_t *)page_address(pmd_page(*pmd)) + pte_index(address))
/arch/avr32/include/asm/
Dpgtable.h315 #define pte_index(address) \ macro
318 ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(address))
320 ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(address))
/arch/m32r/include/asm/
Dpgtable.h329 #define pte_index(address) \ macro
332 ((pte_t *)pmd_page_vaddr(*(dir)) + pte_index(address))
334 ((pte_t *)page_address(pmd_page(*(dir))) + pte_index(address))
/arch/sh/include/asm/
Dpgtable_64.h78 #define pte_index(address) \ macro
81 #define __pte_offset(address) pte_index(address)
84 ((pte_t *) ((pmd_val(*(dir))) & PAGE_MASK) + pte_index((addr)))
Dpgtable_32.h423 #define pte_index(address) ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) macro
424 #define __pte_offset(address) pte_index(address)
427 ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(address))
/arch/metag/include/asm/
Dpgtable.h290 # define pte_index(pmd, address) \ macro
294 # define pte_index(pmd, address) \ macro
298 ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(*(dir), address))
/arch/um/include/asm/
Dpgtable.h342 #define pte_index(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) macro
344 ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(address))
346 ((pte_t *)page_address(pmd_page(*(dir))) + pte_index(address))
/arch/arm/include/asm/
Dpgtable.h201 #define pte_index(addr) (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) macro
203 #define pte_offset_kernel(pmd,addr) (pmd_page_vaddr(*(pmd)) + pte_index(addr))
205 #define pte_offset_map(pmd,addr) (__pte_map(pmd) + pte_index(addr))
/arch/frv/include/asm/
Dpgtable.h447 #define pte_index(address) \ macro
450 ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(address))
454 ((pte_t *)kmap_atomic(pmd_page(*(dir))) + pte_index(address))
458 ((pte_t *)page_address(pmd_page(*(dir))) + pte_index(address))
/arch/microblaze/include/asm/
Dpgtable.h493 #define pte_index(address) \ macro
496 ((pte_t *) pmd_page_kernel(*(dir)) + pte_index(addr))
498 ((pte_t *) kmap_atomic(pmd_page(*(dir))) + pte_index(addr))
/arch/mn10300/include/asm/
Dpgtable.h457 #define pte_index(address) \ macro
461 ((pte_t *) pmd_page_kernel(*(dir)) + pte_index(address))
475 ((pte_t *) page_address(pmd_page(*(dir))) + pte_index(address))
/arch/xtensa/include/asm/
Dpgtable.h371 #define pte_index(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) macro
373 ((pte_t*) pmd_page_vaddr(*(dir)) + pte_index(addr))
/arch/tile/include/asm/
Dpgtable.h521 static inline unsigned long pte_index(unsigned long address) in pte_index() function
528 return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); in pte_offset_kernel()
/arch/parisc/include/asm/
Dpgtable.h413 #define pte_index(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE-1)) macro
415 ((pte_t *) pmd_page_vaddr(*(pmd)) + pte_index(address))
/arch/s390/mm/
Dgup.c29 ptep = ((pte_t *) pmd_deref(pmd)) + pte_index(addr); in gup_pte_range()
/arch/ia64/include/asm/
Dpgtable.h405 #define pte_index(addr) (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) macro
406 #define pte_offset_kernel(dir,addr) ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(addr))
/arch/sparc/include/asm/
Dpgtable_64.h872 #define pte_index(dir, address) \ macro
875 #define pte_offset_kernel pte_index
876 #define pte_offset_map pte_index
/arch/x86/mm/
Dinit_32.c118 int pte_idx = pte_index(vaddr); in populate_extra_pte()
344 pte_ofs = pte_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET); in kernel_physical_mapping_init()

12