Home
last modified time | relevance | path

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

12345

/linux-3.4.99/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-3.4.99/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)
340 printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e))
/linux-3.4.99/arch/um/include/asm/
Dpgtable.h106 #define pmd_none(x) (!((unsigned long)pmd_val(x) & ~_PAGE_NEWPAGE))
107 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
109 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
110 #define pmd_clear(xp) do { pmd_val(*(xp)) = _PAGE_NEWPAGE; } while (0)
112 #define pmd_newpage(x) (pmd_val(x) & _PAGE_NEWPAGE)
113 #define pmd_mkuptodate(x) (pmd_val(x) &= ~_PAGE_NEWPAGE)
118 #define pmd_page(pmd) phys_to_page(pmd_val(pmd) & PAGE_MASK)
332 #define pmd_page_vaddr(pmd) ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
336 ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
/linux-3.4.99/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-3.4.99/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-3.4.99/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.h79 return pmd_val(pmd) == (unsigned long) invalid_pte_table; in pmd_none()
82 #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK)
86 return pmd_val(pmd) != (unsigned long) invalid_pte_table; in pmd_present()
91 pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); in pmd_clear()
/linux-3.4.99/arch/c6x/include/asm/
Dpgtable.h33 #define pmd_none(x) (!pmd_val(x))
34 #define pmd_present(x) (pmd_val(x))
36 #define pmd_bad(x) (pmd_val(x) & ~PAGE_MASK)
/linux-3.4.99/arch/alpha/include/asm/
Dpgtable.h227 { pmd_val(*pmdp) = _PAGE_TABLE | ((((unsigned long) ptep) - PAGE_OFFSET) << (32-PAGE_SHIFT)); } in pmd_set()
236 return ((pmd_val(pmd) & _PFN_MASK) >> (32-PAGE_SHIFT)) + PAGE_OFFSET; in pmd_page_vaddr()
240 #define pmd_page(pmd) (mem_map + ((pmd_val(pmd) & _PFN_MASK) >> 32))
254 extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } in pmd_none()
255 extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~_PFN_MASK) != _PAGE_TABLE; } in pmd_bad()
256 extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } in pmd_present()
257 extern inline void pmd_clear(pmd_t * pmdp) { pmd_val(*pmdp) = 0; } in pmd_clear()
363 printk("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e))
/linux-3.4.99/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-3.4.99/arch/openrisc/include/asm/
Dpgtable.h228 #define pmd_none(x) (!pmd_val(x))
229 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK)) != _KERNPG_TABLE)
230 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
231 #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0)
370 pmd_val(*pmdp) = _KERNPG_TABLE | (unsigned long) ptep; in pmd_set()
373 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT))
374 #define pmd_page_kernel(pmd) ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
/linux-3.4.99/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-3.4.99/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-3.4.99/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-3.4.99/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.h126 #define __pmd_page(pmd) ((unsigned long)__va(pmd_val(pmd) & _TABLE_MASK))
138 #define pmd_none(pmd) (!pmd_val(pmd))
139 #define pmd_bad(pmd) ((pmd_val(pmd) & _DESCTYPE_MASK) != _PAGE_TABLE)
140 #define pmd_present(pmd) (pmd_val(pmd) & _PAGE_TABLE)
147 #define pmd_page(pmd) virt_to_page(__va(pmd_val(pmd)))
159 printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e))
/linux-3.4.99/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-3.4.99/arch/microblaze/include/asm/
Dpgtable.h175 __FILE__, __LINE__, pmd_val(e))
313 #define pmd_none(pmd) (!pmd_val(pmd))
314 #define pmd_bad(pmd) ((pmd_val(pmd) & _PMD_PRESENT) == 0)
315 #define pmd_present(pmd) ((pmd_val(pmd) & _PMD_PRESENT) != 0)
316 #define pmd_clear(pmdp) do { pmd_val(*(pmdp)) = 0; } while (0)
483 #define pmd_page_kernel(pmd) ((unsigned long) (pmd_val(pmd) & PAGE_MASK))
486 #define pmd_page(pmd) (pfn_to_page(__pa(pmd_val(pmd)) >> PAGE_SHIFT))
/linux-3.4.99/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-3.4.99/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()
81 if (unlikely(pmd_val(pmd) != pmd_val(*pmdp))) { in gup_huge_pmd()
/linux-3.4.99/arch/arm/include/asm/
Dpgtable-2level-types.h39 #define pmd_val(x) ((x).pmd) macro
57 #define pmd_val(x) (x) macro
/linux-3.4.99/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)))

12345