/arch/powerpc/kvm/ |
D | book3s_hv_rm_mmu.c | 74 unsigned long *rmap, long pte_index, int realmode) in kvmppc_add_revmap_chain() argument 89 tail->forw = pte_index; in kvmppc_add_revmap_chain() 90 head->back = pte_index; in kvmppc_add_revmap_chain() 92 rev->forw = rev->back = pte_index; in kvmppc_add_revmap_chain() 94 pte_index | KVMPPC_RMAP_PRESENT; in kvmppc_add_revmap_chain() 101 static void remove_revmap_chain(struct kvm *kvm, long pte_index, in remove_revmap_chain() argument 126 if (head == pte_index) { in remove_revmap_chain() 128 if (head == pte_index) in remove_revmap_chain() 165 long pte_index, unsigned long pteh, unsigned long ptel, in kvmppc_do_h_enter() argument 273 if (pte_index >= kvm->arch.hpt_npte) in kvmppc_do_h_enter() [all …]
|
D | book3s_pr_papr.c | 24 static unsigned long get_pteg_addr(struct kvm_vcpu *vcpu, long pte_index) in get_pteg_addr() argument 29 pte_index <<= 4; in get_pteg_addr() 30 pte_index &= ((1 << ((vcpu_book3s->sdr1 & 0x1f) + 11)) - 1) << 7 | 0x70; in get_pteg_addr() 32 pteg_addr |= pte_index; in get_pteg_addr() 40 long pte_index = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_enter() local 44 pte_index &= ~7UL; in kvmppc_h_pr_enter() 45 pteg_addr = get_pteg_addr(vcpu, pte_index); in kvmppc_h_pr_enter() 51 pte_index &= ~7UL; in kvmppc_h_pr_enter() 68 kvmppc_set_gpr(vcpu, 4, pte_index | i); in kvmppc_h_pr_enter() 76 unsigned long pte_index = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_remove() local [all …]
|
D | book3s_64_mmu_hv.c | 47 long pte_index, unsigned long pteh, 368 long pte_index, unsigned long pteh, in kvmppc_virtmode_do_h_enter() argument 398 ret = kvmppc_do_h_enter(kvm, flags, pte_index, pteh, ptel, in kvmppc_virtmode_do_h_enter() 416 long pte_index, unsigned long pteh, in kvmppc_virtmode_h_enter() argument 419 return kvmppc_virtmode_do_h_enter(vcpu->kvm, flags, pte_index, in kvmppc_virtmode_h_enter()
|
/arch/x86/include/asm/ |
D | pgtable_32.h | 54 pte_index((address))) 58 ((pte_t *)page_address(pmd_page(*(dir))) + pte_index((address)))
|
/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 154 unsigned long *rmap, long pte_index, int realmode); 156 unsigned long pte_index); 158 unsigned long pte_index); 164 long pte_index, unsigned long pteh, unsigned long ptel); 166 long pte_index, unsigned long pteh, unsigned long ptel, 169 unsigned long pte_index, unsigned long avpn,
|
D | pgtable-ppc32.h | 306 #define pte_index(address) \ macro 309 ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(addr)) 311 ((pte_t *) kmap_atomic(pmd_page(*(dir))) + pte_index(addr))
|
D | kvm_book3s_64.h | 81 unsigned long pte_index) in compute_tlbie_rb() argument 86 va_low = pte_index >> 3; in compute_tlbie_rb()
|
/arch/m68k/include/asm/ |
D | sun3_pgtable.h | 218 #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/m32r/include/asm/ |
D | pgtable.h | 329 #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/avr32/include/asm/ |
D | pgtable.h | 315 #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/sh/include/asm/ |
D | pgtable_64.h | 78 #define pte_index(address) \ macro 81 #define __pte_offset(address) pte_index(address) 84 ((pte_t *) ((pmd_val(*(dir))) & PAGE_MASK) + pte_index((addr)))
|
D | pgtable_32.h | 423 #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/um/include/asm/ |
D | pgtable.h | 344 #define pte_index(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) macro 346 ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(address)) 348 ((pte_t *)page_address(pmd_page(*(dir))) + pte_index(address))
|
/arch/arm/include/asm/ |
D | pgtable.h | 199 #define pte_index(addr) (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) macro 201 #define pte_offset_kernel(pmd,addr) (pmd_page_vaddr(*(pmd)) + pte_index(addr)) 203 #define pte_offset_map(pmd,addr) (__pte_map(pmd) + pte_index(addr))
|
/arch/frv/include/asm/ |
D | pgtable.h | 447 #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/metag/include/asm/ |
D | pgtable.h | 290 # 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/microblaze/include/asm/ |
D | pgtable.h | 496 #define pte_index(address) \ macro 499 ((pte_t *) pmd_page_kernel(*(dir)) + pte_index(addr)) 501 ((pte_t *) kmap_atomic(pmd_page(*(dir))) + pte_index(addr))
|
/arch/mn10300/include/asm/ |
D | pgtable.h | 457 #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/ |
D | pgtable.h | 323 #define pte_index(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) macro 325 ((pte_t*) pmd_page_vaddr(*(dir)) + pte_index(addr))
|
/arch/tile/include/asm/ |
D | pgtable.h | 524 static inline unsigned long pte_index(unsigned long address) in pte_index() function 531 return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); in pte_offset_kernel()
|
/arch/sparc/include/asm/ |
D | pgtable_64.h | 775 #define pte_index(dir, address) \ macro 778 #define pte_offset_kernel pte_index 779 #define pte_offset_map pte_index
|
/arch/parisc/include/asm/ |
D | pgtable.h | 413 #define pte_index(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE-1)) macro 415 ((pte_t *) pmd_page_vaddr(*(pmd)) + pte_index(address))
|
/arch/arm64/include/asm/ |
D | pgtable.h | 123 #define pte_offset_kernel(dir,addr) (pmd_page_vaddr(*(dir)) + pte_index(addr)) 358 #define pte_index(addr) (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) macro
|
/arch/ia64/include/asm/ |
D | pgtable.h | 405 #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/s390/mm/ |
D | gup.c | 29 ptep = ((pte_t *) pmd_deref(pmd)) + pte_index(addr); in gup_pte_range()
|