Home
last modified time | relevance | path

Searched refs:pmd_val (Results 1 – 25 of 99) sorted by relevance

1234

/linux-2.6.39/arch/powerpc/mm/
D40x_mmu.c113 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/
Dpgalloc-32.h25 (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)
Dpgtable-ppc32.h132 #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))
Dpgtable-ppc64.h160 #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/
Dpgtable.h104 #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/
Dhugetlb.h81 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/
Dpgtable.h99 #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/
Dpgtable-64.h145 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()
Dpgtable-32.h95 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/
Dpgtable.h226 { 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/
Dpgtable.h183 #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/
Dpgtable.h26 #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/
Dpgtable.h50 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/
Dpgtable_64.h66 #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)))
Dpgtable-3level.h28 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/
Dsun3_pgtable.h122 ((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))
Dmotorola_pgtable.h125 #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/
Dpgtable.h163 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/
Dpgtable.h176 __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/
Dpgtable.h206 #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/
Dgup.c60 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()
Dhugetlbpage.c31 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/
Dpgtable.h257 #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/
Dpgalloc.h25 (pmd_val(*(pmdp)) = ((unsigned long)ptep))
27 (pmd_val(*(pmdp)) = ((unsigned long)page_to_virt(page)))
Dpgtable.h199 #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)

1234