/linux-2.6.39/arch/powerpc/mm/ |
D | 40x_mmu.c | 113 pmd_val(*pmdp++) = val; in mmu_mapin_ram() 114 pmd_val(*pmdp++) = val; in mmu_mapin_ram() 115 pmd_val(*pmdp++) = val; in mmu_mapin_ram() 116 pmd_val(*pmdp++) = val; in mmu_mapin_ram() 128 pmd_val(*pmdp) = val; in mmu_mapin_ram()
|
/linux-2.6.39/arch/powerpc/include/asm/ |
D | pgalloc-32.h | 25 (pmd_val(*(pmd)) = __pa(pte) | _PMD_PRESENT) 27 (pmd_val(*(pmd)) = (page_to_pfn(pte) << PAGE_SHIFT) | _PMD_PRESENT) 31 (pmd_val(*(pmd)) = (unsigned long)pte | _PMD_PRESENT) 33 (pmd_val(*(pmd)) = (unsigned long)lowmem_page_address(pte) | _PMD_PRESENT)
|
D | pgtable-ppc32.h | 132 #define pmd_none(pmd) (!pmd_val(pmd)) 133 #define pmd_bad(pmd) (pmd_val(pmd) & _PMD_BAD) 134 #define pmd_present(pmd) (pmd_val(pmd) & _PMD_PRESENT_MASK) 135 #define pmd_clear(pmdp) do { pmd_val(*(pmdp)) = 0; } while (0) 288 ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK)) 290 pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT) 293 ((unsigned long) (pmd_val(pmd) & PAGE_MASK)) 295 pfn_to_page((__pa(pmd_val(pmd)) >> PAGE_SHIFT))
|
D | pgtable-ppc64.h | 160 #define pmd_set(pmdp, pmdval) (pmd_val(*(pmdp)) = (pmdval)) 161 #define pmd_none(pmd) (!pmd_val(pmd)) 162 #define pmd_bad(pmd) (!is_kernel_addr(pmd_val(pmd)) \ 163 || (pmd_val(pmd) & PMD_BAD_BITS)) 164 #define pmd_present(pmd) (pmd_val(pmd) != 0) 165 #define pmd_clear(pmdp) (pmd_val(*(pmdp)) = 0) 166 #define pmd_page_vaddr(pmd) (pmd_val(pmd) & ~PMD_MASKED_BITS) 341 printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e))
|
/linux-2.6.39/arch/um/include/asm/ |
D | pgtable.h | 104 #define pmd_none(x) (!((unsigned long)pmd_val(x) & ~_PAGE_NEWPAGE)) 105 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) 107 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) 108 #define pmd_clear(xp) do { pmd_val(*(xp)) = _PAGE_NEWPAGE; } while (0) 110 #define pmd_newpage(x) (pmd_val(x) & _PAGE_NEWPAGE) 111 #define pmd_mkuptodate(x) (pmd_val(x) &= ~_PAGE_NEWPAGE) 116 #define pmd_page(pmd) phys_to_page(pmd_val(pmd) & PAGE_MASK) 324 #define pmd_page_vaddr(pmd) ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK)) 328 ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
|
/linux-2.6.39/arch/s390/include/asm/ |
D | hugetlb.h | 81 register unsigned long reg2 asm("2") = pmd_val(*pmdp); in __pmd_csp() 82 register unsigned long reg3 asm("3") = pmd_val(*pmdp) | in __pmd_csp() 90 pmd_val(*pmdp) = _SEGMENT_ENTRY_INV | _SEGMENT_ENTRY; in __pmd_csp() 98 if (!(pmd_val(*pmdp) & _SEGMENT_ENTRY_INV)) { in __pmd_idte() 106 pmd_val(*pmdp) = _SEGMENT_ENTRY_INV | _SEGMENT_ENTRY; in __pmd_idte()
|
/linux-2.6.39/arch/cris/include/asm/ |
D | pgtable.h | 99 #define pmd_none(x) (!pmd_val(x)) 103 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_KERNEL)) != _PAGE_TABLE) 104 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) 105 #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0) 227 { pmd_val(*pmdp) = _PAGE_TABLE | (unsigned long) ptep; } in pmd_set() 229 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT)) 230 #define pmd_page_vaddr(pmd) ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
|
/linux-2.6.39/arch/mips/include/asm/ |
D | pgtable-64.h | 145 printk("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e)) 160 #define pmd_val(x) ((x).pmd) macro 173 return pmd_val(pmd) == (unsigned long) invalid_pte_table; in pmd_none() 176 #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK) 180 return pmd_val(pmd) != (unsigned long) invalid_pte_table; in pmd_present() 185 pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); in pmd_clear()
|
D | pgtable-32.h | 95 return pmd_val(pmd) == (unsigned long) invalid_pte_table; in pmd_none() 98 #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK) 102 return pmd_val(pmd) != (unsigned long) invalid_pte_table; in pmd_present() 107 pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); in pmd_clear()
|
/linux-2.6.39/arch/alpha/include/asm/ |
D | pgtable.h | 226 { pmd_val(*pmdp) = _PAGE_TABLE | ((((unsigned long) ptep) - PAGE_OFFSET) << (32-PAGE_SHIFT)); } in pmd_set() 235 return ((pmd_val(pmd) & _PFN_MASK) >> (32-PAGE_SHIFT)) + PAGE_OFFSET; in pmd_page_vaddr() 239 #define pmd_page(pmd) (mem_map + ((pmd_val(pmd) & _PFN_MASK) >> 32)) 253 extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } in pmd_none() 254 extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~_PFN_MASK) != _PAGE_TABLE; } in pmd_bad() 255 extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } in pmd_present() 256 extern inline void pmd_clear(pmd_t * pmdp) { pmd_val(*pmdp) = 0; } in pmd_clear() 362 printk("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e))
|
/linux-2.6.39/arch/m32r/include/asm/ |
D | pgtable.h | 183 #define pmd_none(x) (!pmd_val(x)) 184 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) 186 #define pmd_bad(x) ((pmd_val(x) & ~PAGE_MASK) != _KERNPG_TABLE) 307 pmd_val(*pmdp) = (((unsigned long) ptep) & PAGE_MASK); in pmd_set() 311 ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK)) 314 #define pmd_page(pmd) (mem_map + ((pmd_val(pmd) >> PAGE_SHIFT) - PFN_BASE))
|
/linux-2.6.39/arch/blackfin/include/asm/ |
D | pgtable.h | 26 #define pmd_none(x) (!pmd_val(x)) 27 #define pmd_present(x) (pmd_val(x)) 29 #define pmd_bad(x) (pmd_val(x) & ~PAGE_MASK)
|
/linux-2.6.39/arch/score/include/asm/ |
D | pgtable.h | 50 return pmd_val(pmd) == (unsigned long) invalid_pte_table; in pmd_none() 53 #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK) 57 return pmd_val(pmd) != (unsigned long) invalid_pte_table; in pmd_present() 62 pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); in pmd_clear() 106 #define pmd_phys(pmd) __pa((void *)pmd_val(pmd)) 130 #define pmd_page_vaddr(pmd) pmd_val(pmd)
|
/linux-2.6.39/arch/sh/include/asm/ |
D | pgtable_64.h | 66 #define pmd_present(pmd_entry) (pmd_val(pmd_entry) & _PAGE_PRESENT) 68 #define pmd_none(pmd_entry) (pmd_val((pmd_entry)) == _PMD_EMPTY) 69 #define pmd_bad(pmd_entry) ((pmd_val(pmd_entry) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) 72 ((unsigned long) __va(pmd_val(pmd_entry) & PAGE_MASK)) 75 (virt_to_page(pmd_val(pmd))) 84 ((pte_t *) ((pmd_val(*(dir))) & PAGE_MASK) + pte_index((addr)))
|
D | pgtable-3level.h | 28 printk("%s:%d: bad pmd %016llx.\n", __FILE__, __LINE__, pmd_val(e)) 31 #define pmd_val(x) ((x).pmd) macro
|
/linux-2.6.39/arch/m68k/include/asm/ |
D | sun3_pgtable.h | 122 ((unsigned long) __va (pmd_val (pmd) & PAGE_MASK)) 139 static inline int pmd_none2 (pmd_t *pmd) { return !pmd_val (*pmd); } in pmd_none2() 144 static inline int pmd_present2 (pmd_t *pmd) { return pmd_val (*pmd) & SUN3_PMD_VALID; } in pmd_present2() 147 static inline void pmd_clear (pmd_t *pmdp) { pmd_val (*pmdp) = 0; } in pmd_clear() 158 printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e))
|
D | motorola_pgtable.h | 125 #define __pmd_page(pmd) ((unsigned long)__va(pmd_val(pmd) & _TABLE_MASK)) 137 #define pmd_none(pmd) (!pmd_val(pmd)) 138 #define pmd_bad(pmd) ((pmd_val(pmd) & _DESCTYPE_MASK) != _PAGE_TABLE) 139 #define pmd_present(pmd) (pmd_val(pmd) & _PAGE_TABLE) 146 #define pmd_page(pmd) virt_to_page(__va(pmd_val(pmd))) 158 printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e))
|
/linux-2.6.39/arch/frv/include/asm/ |
D | pgtable.h | 163 printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e)) 165 printk("%s:%d: bad pud %08lx.\n", __FILE__, __LINE__, pmd_val(pud_val(e))) 167 printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pmd_val(pud_val(pgd_val(e)))) 360 #define pmd_none(x) (!pmd_val(x)) 361 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) 362 #define pmd_bad(x) (pmd_val(x) & xAMPRx_SS) 366 ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK)) 369 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT))
|
/linux-2.6.39/arch/microblaze/include/asm/ |
D | pgtable.h | 176 __FILE__, __LINE__, pmd_val(e)) 314 #define pmd_none(pmd) (!pmd_val(pmd)) 315 #define pmd_bad(pmd) ((pmd_val(pmd) & _PMD_PRESENT) == 0) 316 #define pmd_present(pmd) ((pmd_val(pmd) & _PMD_PRESENT) != 0) 317 #define pmd_clear(pmdp) do { pmd_val(*(pmdp)) = 0; } while (0) 484 #define pmd_page_kernel(pmd) ((unsigned long) (pmd_val(pmd) & PAGE_MASK)) 487 #define pmd_page(pmd) (pfn_to_page(__pa(pmd_val(pmd)) >> PAGE_SHIFT))
|
/linux-2.6.39/arch/unicore32/include/asm/ |
D | pgtable.h | 206 #define pmd_none(pmd) (!pmd_val(pmd)) 207 #define pmd_present(pmd) (pmd_val(pmd) & PMD_PRESENT) 208 #define pmd_bad(pmd) (((pmd_val(pmd) & \ 223 #define pmd_page_vaddr(pmd) ((pte_t *)__va(pmd_val(pmd) & PAGE_MASK)) 224 #define pmd_page(pmd) pfn_to_page(__phys_to_pfn(pmd_val(pmd)))
|
/linux-2.6.39/arch/s390/mm/ |
D | gup.c | 60 if ((pmd_val(pmd) & mask) != result) in gup_huge_pmd() 62 VM_BUG_ON(!pfn_valid(pmd_val(pmd) >> PAGE_SHIFT)); in gup_huge_pmd() 80 if (unlikely(pmd_val(pmd) != pmd_val(*pmdp))) { in gup_huge_pmd()
|
D | hugetlbpage.c | 31 pmd_val(*pmdp) = pte_val(pteval); in set_huge_pte_at() 34 pmd_val(*pmdp) = pte_val(shadow_pteval); in set_huge_pte_at() 120 return !!(pmd_val(pmd) & _SEGMENT_ENTRY_LARGE); in pmd_huge()
|
/linux-2.6.39/arch/avr32/include/asm/ |
D | pgtable.h | 257 #define pmd_none(x) (!pmd_val(x)) 258 #define pmd_present(x) (pmd_val(x)) 265 #define pmd_bad(x) (pmd_val(x) & ~PAGE_MASK) 303 #define pmd_page_vaddr(pmd) pmd_val(pmd) 304 #define pmd_page(pmd) (virt_to_page(pmd_val(pmd)))
|
/linux-2.6.39/arch/xtensa/include/asm/ |
D | pgalloc.h | 25 (pmd_val(*(pmdp)) = ((unsigned long)ptep)) 27 (pmd_val(*(pmdp)) = ((unsigned long)page_to_virt(page)))
|
D | pgtable.h | 199 #define pmd_page_vaddr(pmd) ((unsigned long)(pmd_val(pmd) & PAGE_MASK)) 200 #define pmd_page(pmd) virt_to_page(pmd_val(pmd)) 212 #define pmd_none(pmd) (!pmd_val(pmd)) 213 #define pmd_present(pmd) (pmd_val(pmd) & PAGE_MASK) 214 #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK)
|