Home
last modified time | relevance | path

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

123456

/arch/s390/mm/
Dhugetlbpage.c36 pmd_val(pmd) = pte_val(pte) & PAGE_MASK; in __pte_to_pmd()
37 pmd_val(pmd) |= (pte_val(pte) & _PAGE_READ) >> 4; in __pte_to_pmd()
38 pmd_val(pmd) |= (pte_val(pte) & _PAGE_WRITE) >> 4; in __pte_to_pmd()
39 pmd_val(pmd) |= (pte_val(pte) & _PAGE_INVALID) >> 5; in __pte_to_pmd()
40 pmd_val(pmd) |= (pte_val(pte) & _PAGE_PROTECT); in __pte_to_pmd()
41 pmd_val(pmd) |= (pte_val(pte) & _PAGE_DIRTY) << 10; in __pte_to_pmd()
42 pmd_val(pmd) |= (pte_val(pte) & _PAGE_YOUNG) << 10; in __pte_to_pmd()
43 pmd_val(pmd) |= (pte_val(pte) & _PAGE_SOFT_DIRTY) << 13; in __pte_to_pmd()
45 pmd_val(pmd) = _SEGMENT_ENTRY_INVALID; in __pte_to_pmd()
74 pte_val(pte) = pmd_val(pmd) & _SEGMENT_ENTRY_ORIGIN_LARGE; in __pmd_to_pte()
[all …]
/arch/arm/include/asm/
Dpgtable-3level.h145 #define pmd_table(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \
147 #define pmd_sect(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \
175 #define pmd_bad(pmd) (!(pmd_val(pmd) & 2))
211 #define pmd_isset(pmd, val) ((u32)(val) == (val) ? pmd_val(pmd) & (val) \
212 : !!(pmd_val(pmd) & (val)))
213 #define pmd_isclear(pmd, val) (!(pmd_val(pmd) & (val)))
235 #define pmd_trans_huge(pmd) (pmd_val(pmd) && !pmd_table(pmd))
246 static inline pmd_t pmd_##fn(pmd_t pmd) { pmd_val(pmd) op; return pmd; }
256 #define pmd_mkhuge(pmd) (__pmd(pmd_val(pmd) & ~PMD_TABLE_BIT))
258 #define pmd_pfn(pmd) (((pmd_val(pmd) & PMD_MASK) & PHYS_MASK) >> PAGE_SHIFT)
[all …]
Dpgtable-2level-types.h39 #define pmd_val(x) ((x).pmd) macro
57 #define pmd_val(x) (x) macro
Dpgtable-2level.h194 #define pmd_large(pmd) (pmd_val(pmd) & 2)
195 #define pmd_bad(pmd) (pmd_val(pmd) & 2)
196 #define pmd_present(pmd) (pmd_val(pmd))
/arch/mips/include/asm/
Dpgtable.h91 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd))
98 #define pmd_page_vaddr(pmd) pmd_val(pmd)
491 return !!(pmd_val(pmd) & _PAGE_HUGE); in pmd_trans_huge()
496 pmd_val(pmd) |= _PAGE_HUGE; in pmd_mkhuge()
503 return !!(pmd_val(pmd) & _PAGE_SPLITTING); in pmd_trans_splitting()
508 pmd_val(pmd) |= _PAGE_SPLITTING; in pmd_mksplitting()
525 return !!(pmd_val(pmd) & _PAGE_WRITE); in pmd_write()
530 pmd_val(pmd) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); in pmd_wrprotect()
536 pmd_val(pmd) |= _PAGE_WRITE; in pmd_mkwrite()
537 if (pmd_val(pmd) & _PAGE_MODIFIED) in pmd_mkwrite()
[all …]
Dpgtable-64.h146 printk("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e))
161 #define pmd_val(x) ((x).pmd) macro
173 return pmd_val(pmd) == (unsigned long) invalid_pte_table; in pmd_none()
180 if (unlikely(pmd_val(pmd) & _PAGE_HUGE)) in pmd_bad()
184 if (unlikely(pmd_val(pmd) & ~PAGE_MASK)) in pmd_bad()
193 if (unlikely(pmd_val(pmd) & _PAGE_HUGE)) in pmd_present()
194 return pmd_val(pmd) & _PAGE_PRESENT; in pmd_present()
197 return pmd_val(pmd) != (unsigned long) invalid_pte_table; in pmd_present()
202 pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); in pmd_clear()
/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()
/arch/s390/include/asm/
Dpgtable.h93 printk("%s:%d: bad pmd %p.\n", __FILE__, __LINE__, (void *) pmd_val(e))
496 return pmd_val(pmd) != _SEGMENT_ENTRY_INVALID; in pmd_present()
501 return pmd_val(pmd) == _SEGMENT_ENTRY_INVALID; in pmd_none()
506 return (pmd_val(pmd) & _SEGMENT_ENTRY_LARGE) != 0; in pmd_large()
516 return (pmd_val(pmd) & origin_mask) >> PAGE_SHIFT; in pmd_pfn()
522 return (pmd_val(pmd) & ~_SEGMENT_ENTRY_BITS_LARGE) != 0; in pmd_bad()
523 return (pmd_val(pmd) & ~_SEGMENT_ENTRY_BITS) != 0; in pmd_bad()
542 return (pmd_val(pmd) & _SEGMENT_ENTRY_WRITE) != 0; in pmd_write()
549 dirty = (pmd_val(pmd) & _SEGMENT_ENTRY_DIRTY) != 0; in pmd_dirty()
557 young = (pmd_val(pmd) & _SEGMENT_ENTRY_YOUNG) != 0; in pmd_young()
[all …]
/arch/powerpc/include/asm/
Dpgtable-ppc64.h151 #define pmd_set(pmdp, pmdval) (pmd_val(*(pmdp)) = (pmdval))
152 #define pmd_none(pmd) (!pmd_val(pmd))
153 #define pmd_bad(pmd) (!is_kernel_addr(pmd_val(pmd)) \
154 || (pmd_val(pmd) & PMD_BAD_BITS))
156 #define pmd_clear(pmdp) (pmd_val(*(pmdp)) = 0)
157 #define pmd_page_vaddr(pmd) (pmd_val(pmd) & ~PMD_MASKED_BITS)
345 pr_err("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e))
471 return (pmd_val(pmd) & 0x3) && (pmd_val(pmd) & _PAGE_THP_HUGE); in pmd_trans_huge()
477 return pmd_val(pmd) & _PAGE_SPLITTING; in pmd_trans_splitting()
497 return ((pmd_val(pmd) & 0x3) != 0x0); in pmd_large()
[all …]
Dpgtable-ppc32.h130 #define pmd_none(pmd) (!pmd_val(pmd))
131 #define pmd_bad(pmd) (pmd_val(pmd) & _PMD_BAD)
132 #define pmd_present(pmd) (pmd_val(pmd) & _PMD_PRESENT_MASK)
133 #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))
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)
/arch/arm/mm/
Dhugetlbpage.c46 return pmd_val(pmd) && !(pmd_val(pmd) & PMD_TABLE_BIT); in pmd_huge()
/arch/nios2/include/asm/
Dpgtable.h188 return (pmd_val(pmd) != (unsigned long) invalid_pte_table) in pmd_present()
189 && (pmd_val(pmd) != 0UL); in pmd_present()
194 pmd_val(*pmdp) = (unsigned long) invalid_pte_table; in pmd_clear()
220 return (pmd_val(pmd) == in pmd_none()
221 (unsigned long) invalid_pte_table) || (pmd_val(pmd) == 0UL); in pmd_none()
224 #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK)
249 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd))
251 #define pmd_page_vaddr(pmd) pmd_val(pmd)
/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)
/arch/sparc/include/asm/
Dpgtable_64.h100 __FILE__, __LINE__, &(e), pmd_val(e), __builtin_return_address(0))
339 pte_t pte = __pte(pmd_val(pmd)); in pmd_modify()
409 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge()
659 pte_t pte = __pte(pmd_val(pmd)); in pmd_large()
666 pte_t pte = __pte(pmd_val(pmd)); in pmd_pfn()
674 pte_t pte = __pte(pmd_val(pmd)); in pmd_write()
682 pte_t pte = __pte(pmd_val(pmd)); in pmd_dirty()
689 pte_t pte = __pte(pmd_val(pmd)); in pmd_young()
696 pte_t pte = __pte(pmd_val(pmd)); in pmd_trans_huge()
703 pte_t pte = __pte(pmd_val(pmd)); in pmd_trans_splitting()
[all …]
/arch/um/include/asm/
Dpgtable.h99 #define pmd_none(x) (!((unsigned long)pmd_val(x) & ~_PAGE_NEWPAGE))
100 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
102 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
103 #define pmd_clear(xp) do { pmd_val(*(xp)) = _PAGE_NEWPAGE; } while (0)
105 #define pmd_newpage(x) (pmd_val(x) & _PAGE_NEWPAGE)
106 #define pmd_mkuptodate(x) (pmd_val(x) &= ~_PAGE_NEWPAGE)
111 #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))
/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)
226 { pmd_val(*pmdp) = _PAGE_TABLE | (unsigned long) ptep; } in pmd_set()
228 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT))
229 #define pmd_page_vaddr(pmd) ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
/arch/arc/include/asm/
Dpgtable.h254 #define pmd_page(pmd) virt_to_page(pmd_val(pmd) & PAGE_MASK)
257 #define pmd_page_vaddr(pmd) (pmd_val(pmd) & PAGE_MASK)
262 pmd_val(*pmdp) = (unsigned long)ptep; in pmd_set()
269 #define pmd_none(x) (!pmd_val(x))
270 #define pmd_bad(x) ((pmd_val(x) & ~PAGE_MASK))
271 #define pmd_present(x) (pmd_val(x))
272 #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0)
Dhugepage.h18 return __pte(pmd_val(pmd)); in pmd_pte()
44 #define pmd_trans_huge(pmd) (pmd_val(pmd) & _PAGE_HW_SZ)
55 return __pmd((pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HW_SZ)) | pgprot_val(newprot)); in pmd_modify()
/arch/metag/include/asm/
Dpgtable.h112 #define pmd_none(x) (!pmd_val(x))
113 #define pmd_bad(x) ((pmd_val(x) & ~(PAGE_MASK | _PAGE_SZ_MASK)) \
115 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
116 #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0)
164 unsigned long paddr = pmd_val(pmd) & PAGE_MASK; in pmd_page_vaddr()
170 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT))
171 #define pmd_page_shift(pmd) (12 + ((pmd_val(pmd) & _PAGE_SZ_MASK) \
/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()
353 printk("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e))
/arch/sparc/mm/
Dtlb.c176 if ((pmd_val(pmd) ^ pmd_val(orig)) & _PAGE_PMD_HUGE) { in set_pmd_at()
185 if (pmd_val(pmd) & _PAGE_PMD_HUGE) { in set_pmd_at()
210 pte_t orig_pte = __pte(pmd_val(orig)); in set_pmd_at()
230 pmd_val(entry) &= ~_PAGE_VALID; in pmdp_invalidate()
240 if ((pmd_val(entry) & _PAGE_PMD_HUGE) && in pmdp_invalidate()
/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)
/arch/m32r/include/asm/
Dpgtable.h180 #define pmd_none(x) (!pmd_val(x))
181 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
183 #define pmd_bad(x) ((pmd_val(x) & ~PAGE_MASK) != _KERNPG_TABLE)
296 pmd_val(*pmdp) = (((unsigned long) ptep) & PAGE_MASK); in pmd_set()
300 ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
303 #define pmd_page(pmd) (mem_map + ((pmd_val(pmd) >> PAGE_SHIFT) - PFN_BASE))
/arch/sh/include/asm/
Dpgtable-3level.h28 printk("%s:%d: bad pmd %016llx.\n", __FILE__, __LINE__, pmd_val(e))
31 #define pmd_val(x) ((x).pmd) macro

123456