/linux-4.19.296/include/asm-generic/ |
D | 5level-fixup.h | 16 #define pud_alloc(mm, p4d, address) \ argument 17 ((unlikely(pgd_none(*(p4d))) && __pud_alloc(mm, p4d, address)) ? \ 18 NULL : pud_offset(p4d, address)) 22 #define p4d_none(p4d) 0 argument 23 #define p4d_bad(p4d) 0 argument 24 #define p4d_present(p4d) 1 argument 25 #define p4d_ERROR(p4d) do { } while (0) argument 26 #define p4d_clear(p4d) pgd_clear(p4d) argument 27 #define p4d_val(p4d) pgd_val(p4d) argument 28 #define p4d_populate(mm, p4d, pud) pgd_populate(mm, p4d, pud) argument [all …]
|
D | pgtable-nopud.h | 19 typedef struct { p4d_t p4d; } pud_t; member 31 static inline int p4d_none(p4d_t p4d) { return 0; } in p4d_none() argument 32 static inline int p4d_bad(p4d_t p4d) { return 0; } in p4d_bad() argument 33 static inline int p4d_present(p4d_t p4d) { return 1; } in p4d_present() argument 34 static inline void p4d_clear(p4d_t *p4d) { } in p4d_clear() argument 35 #define pud_ERROR(pud) (p4d_ERROR((pud).p4d)) 37 #define p4d_populate(mm, p4d, pud) do { } while (0) argument 44 static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address) in pud_offset() argument 46 return (pud_t *)p4d; in pud_offset() 49 #define pud_val(x) (p4d_val((x).p4d)) [all …]
|
D | pgtable-nop4d.h | 26 #define p4d_ERROR(p4d) (pgd_ERROR((p4d).pgd)) argument 28 #define pgd_populate(mm, pgd, p4d) do { } while (0) argument
|
D | pgtable.h | 368 #define p4d_access_permitted(p4d, write) \ argument 369 (p4d_present(p4d) && (!(write) || p4d_write(p4d))) 538 static inline int p4d_none_or_clear_bad(p4d_t *p4d) in p4d_none_or_clear_bad() argument 540 if (p4d_none(*p4d)) in p4d_none_or_clear_bad() 542 if (unlikely(p4d_bad(*p4d))) { in p4d_none_or_clear_bad() 543 p4d_clear_bad(p4d); in p4d_none_or_clear_bad() 1005 int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot); 1006 int p4d_clear_huge(p4d_t *p4d); 1008 static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot) in p4d_set_huge() argument 1012 static inline int p4d_clear_huge(p4d_t *p4d) in p4d_clear_huge() argument [all …]
|
/linux-4.19.296/lib/ |
D | ioremap.c | 106 static inline int ioremap_pud_range(p4d_t *p4d, unsigned long addr, in ioremap_pud_range() argument 113 pud = pud_alloc(&init_mm, p4d, addr); in ioremap_pud_range() 136 p4d_t *p4d; in ioremap_p4d_range() local 140 p4d = p4d_alloc(&init_mm, pgd, addr); in ioremap_p4d_range() 141 if (!p4d) in ioremap_p4d_range() 149 if (p4d_set_huge(p4d, phys_addr + addr, prot)) in ioremap_p4d_range() 153 if (ioremap_pud_range(p4d, addr, next, phys_addr + addr, prot)) in ioremap_p4d_range() 155 } while (p4d++, addr = next, addr != end); in ioremap_p4d_range()
|
/linux-4.19.296/include/linux/ |
D | mm.h | 1737 static inline int __pud_alloc(struct mm_struct *mm, p4d_t *p4d, in __pud_alloc() argument 1746 int __pud_alloc(struct mm_struct *mm, p4d_t *p4d, unsigned long address); 1840 static inline pud_t *pud_alloc(struct mm_struct *mm, p4d_t *p4d, in pud_alloc() argument 1843 return (unlikely(p4d_none(*p4d)) && __pud_alloc(mm, p4d, address)) ? in pud_alloc() 1844 NULL : pud_offset(p4d, address); in pud_alloc() 2713 pud_t *vmemmap_pud_populate(p4d_t *p4d, unsigned long addr, int node);
|
/linux-4.19.296/fs/ |
D | userfaultfd.c | 285 p4d_t *p4d; in userfaultfd_must_wait() local 296 p4d = p4d_offset(pgd, address); in userfaultfd_must_wait() 297 if (!p4d_present(*p4d)) in userfaultfd_must_wait() 299 pud = pud_offset(p4d, address); in userfaultfd_must_wait()
|