arch/alpha/include/asm/page.h
28
typedef struct { unsigned long pgprot; } pgprot_t;
arch/alpha/include/asm/page.h
33
#define pgprot_val(x) ((x).pgprot)
arch/alpha/include/asm/pgtable.h
168
extern inline pte_t pfn_pte(unsigned long physpfn, pgprot_t pgprot)
arch/alpha/include/asm/pgtable.h
169
{ pte_t pte; pte_val(pte) = (PHYS_TWIDDLE(physpfn) << 32) | pgprot_val(pgprot); return pte; }
arch/arc/include/asm/page.h
80
unsigned long pgprot;
arch/arc/include/asm/page.h
83
#define pgprot_val(x) ((x).pgprot)
arch/arm/include/asm/pgtable-2level-types.h
24
typedef struct { pteval_t pgprot; } pgprot_t;
arch/arm/include/asm/pgtable-2level-types.h
29
#define pgprot_val(x) ((x).pgprot)
arch/arm/include/asm/pgtable-3level-types.h
27
typedef struct { pteval_t pgprot; } pgprot_t;
arch/arm/include/asm/pgtable-3level-types.h
32
#define pgprot_val(x) ((x).pgprot)
arch/arm/mm/init.c
465
.pgprot = PAGE_KERNEL_EXEC,
arch/arm64/include/asm/pgtable-types.h
57
typedef struct { ptdesc_t pgprot; } pgprot_t;
arch/arm64/include/asm/pgtable-types.h
58
#define pgprot_val(x) ((x).pgprot)
arch/arm64/mm/init.c
537
.pgprot = PAGE_KERNEL,
arch/arm64/mm/init.c
545
.pgprot = PAGE_KERNEL_ROX,
arch/arm64/mm/init.c
551
.pgprot = PAGE_KERNEL,
arch/arm64/mm/ioremap.c
18
pgprot_t pgprot)
arch/arm64/mm/ioremap.c
36
WARN_ON(ioremap_prot_hook(phys_addr, size, &pgprot))) {
arch/arm64/mm/ioremap.c
40
return generic_ioremap_prot(phys_addr, size, pgprot);
arch/arm64/mm/mmu.c
2003
size, params->pgprot, pgd_pgtable_alloc_init_mm,
arch/csky/include/asm/page.h
52
typedef struct { unsigned long pgprot; } pgprot_t;
arch/csky/include/asm/page.h
56
#define pgprot_val(x) ((x).pgprot)
arch/csky/include/asm/pgtable.h
46
#define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \
arch/csky/include/asm/pgtable.h
47
pgprot_val(pgprot))
arch/hexagon/include/asm/page.h
65
typedef struct { unsigned long pgprot; } pgprot_t;
arch/hexagon/include/asm/page.h
70
#define pgprot_val(x) ((x).pgprot)
arch/hexagon/include/asm/pgtable.h
337
#define pfn_pte(pfn, pgprot) __pte((pfn << PAGE_SHIFT) | pgprot_val(pgprot))
arch/loongarch/include/asm/page.h
56
typedef struct { unsigned long pgprot; } pgprot_t;
arch/loongarch/include/asm/page.h
57
#define pgprot_val(x) ((x).pgprot)
arch/loongarch/mm/init.c
230
.pgprot = PAGE_KERNEL,
arch/m68k/include/asm/page.h
26
typedef struct { unsigned long pgprot; } pgprot_t;
arch/m68k/include/asm/page.h
41
#define pgprot_val(x) ((x).pgprot)
arch/m68k/include/asm/sun3_pgtable.h
104
#define pfn_pte(pfn, pgprot) \
arch/m68k/include/asm/sun3_pgtable.h
105
({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; })
arch/microblaze/include/asm/page.h
56
typedef struct { unsigned long pgprot; } pgprot_t;
arch/microblaze/include/asm/page.h
61
# define pgprot_val(x) ((x).pgprot)
arch/microblaze/include/asm/pgtable.h
270
static inline pte_t mk_pte_phys(phys_addr_t physpage, pgprot_t pgprot)
arch/microblaze/include/asm/pgtable.h
273
pte_val(pte) = physpage | pgprot_val(pgprot);
arch/mips/include/asm/page.h
136
typedef struct { unsigned long pgprot; } pgprot_t;
arch/mips/include/asm/page.h
137
#define pgprot_val(x) ((x).pgprot)
arch/mips/mm/init.c
567
.pgprot = PAGE_KERNEL,
arch/nios2/include/asm/page.h
59
typedef struct { unsigned long pgprot; } pgprot_t;
arch/nios2/include/asm/page.h
63
#define pgprot_val(x) ((x).pgprot)
arch/nios2/mm/init.c
146
.pgprot = PAGE_KERNEL_EXEC,
arch/nios2/mm/ioremap.c
28
pgprot_t pgprot = __pgprot(_PAGE_GLOBAL | _PAGE_PRESENT | _PAGE_READ
arch/nios2/mm/ioremap.c
43
set_pte(pte, pfn_pte(pfn, pgprot));
arch/openrisc/include/asm/page.h
45
unsigned long pgprot;
arch/openrisc/include/asm/page.h
51
#define pgprot_val(x) ((x).pgprot)
arch/openrisc/include/asm/pgtable.h
273
static inline pte_t __mk_pte(void *page, pgprot_t pgprot)
arch/openrisc/include/asm/pgtable.h
277
pte_val(pte) = __pa(page) | pgprot_val(pgprot);
arch/openrisc/include/asm/pgtable.h
281
#define mk_pte_phys(physpage, pgprot) \
arch/openrisc/include/asm/pgtable.h
285
pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
arch/openrisc/mm/fault.c
157
if ((vector == 0x400) && !(vma->vm_page_prot.pgprot & _PAGE_EXEC))
arch/parisc/include/asm/page.h
38
typedef struct { unsigned long pgprot; } pgprot_t;
arch/parisc/include/asm/page.h
49
#define pgprot_val(x) ((x).pgprot)
arch/parisc/include/asm/pgtable.h
330
#define __mk_pte(addr,pgprot) \
arch/parisc/include/asm/pgtable.h
334
pte_val(__pte) = ((((addr)>>PAGE_SHIFT)<<PFN_PTE_SHIFT) + pgprot_val(pgprot)); \
arch/parisc/include/asm/pgtable.h
339
static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot)
arch/parisc/include/asm/pgtable.h
342
pte_val(pte) = (pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot);
arch/parisc/mm/init.c
345
pgprot_t pgprot, int force)
arch/parisc/mm/init.c
400
prot = pgprot;
arch/parisc/mm/init.c
986
.pgprot = PAGE_KERNEL_RWX,
arch/powerpc/include/asm/book3s/32/pgtable.h
452
static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot)
arch/powerpc/include/asm/book3s/32/pgtable.h
455
pgprot_val(pgprot));
arch/powerpc/include/asm/book3s/64/pgtable.h
1105
extern pmd_t pfn_pmd(unsigned long pfn, pgprot_t pgprot);
arch/powerpc/include/asm/book3s/64/pgtable.h
1106
extern pud_t pfn_pud(unsigned long pfn, pgprot_t pgprot);
arch/powerpc/include/asm/book3s/64/pgtable.h
564
static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot)
arch/powerpc/include/asm/book3s/64/pgtable.h
569
return __pte(((pte_basic_t)pfn << PAGE_SHIFT) | pgprot_val(pgprot) | _PAGE_PTE);
arch/powerpc/include/asm/nohash/pgtable.h
263
static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) {
arch/powerpc/include/asm/nohash/pgtable.h
265
pgprot_val(pgprot)); }
arch/powerpc/include/asm/pgtable-be-types.h
67
typedef struct { unsigned long pgprot; } pgprot_t;
arch/powerpc/include/asm/pgtable-be-types.h
68
#define pgprot_val(x) ((x).pgprot)
arch/powerpc/include/asm/pgtable-types.h
70
typedef struct { unsigned long pgprot; } pgprot_t;
arch/powerpc/include/asm/pgtable-types.h
71
#define pgprot_val(x) ((x).pgprot)
arch/powerpc/mm/book3s64/pgtable.c
222
static pmd_t pmd_set_protbits(pmd_t pmd, pgprot_t pgprot)
arch/powerpc/mm/book3s64/pgtable.c
224
return __pmd(pmd_val(pmd) | pgprot_val(pgprot));
arch/powerpc/mm/book3s64/pgtable.c
227
static pud_t pud_set_protbits(pud_t pud, pgprot_t pgprot)
arch/powerpc/mm/book3s64/pgtable.c
229
return __pud(pud_val(pud) | pgprot_val(pgprot));
arch/powerpc/mm/book3s64/pgtable.c
237
pmd_t pfn_pmd(unsigned long pfn, pgprot_t pgprot)
arch/powerpc/mm/book3s64/pgtable.c
243
return __pmd_mkhuge(pmd_set_protbits(__pmd(pmdv), pgprot));
arch/powerpc/mm/book3s64/pgtable.c
246
pud_t pfn_pud(unsigned long pfn, pgprot_t pgprot)
arch/powerpc/mm/book3s64/pgtable.c
252
return __pud_mkhuge(pud_set_protbits(__pud(pudv), pgprot));
arch/powerpc/mm/mem.c
430
.pgprot = prot,
arch/powerpc/mm/mem.c
438
.pgprot = kprobes_prot,
arch/powerpc/mm/mem.c
444
.pgprot = PAGE_KERNEL,
arch/powerpc/mm/mem.c
84
params->pgprot);
arch/powerpc/platforms/powernv/memtrace.c
199
struct mhp_params params = { .pgprot = PAGE_KERNEL };
arch/riscv/include/asm/page.h
70
unsigned long pgprot;
arch/riscv/include/asm/page.h
77
#define pgprot_val(x) ((x).pgprot)
arch/riscv/mm/init.c
1260
uintptr_t fixed_map_size, const pgprot_t *pgprot)
arch/riscv/mm/init.c
1271
pgprot ? *pgprot : pgprot_from_va(va));
arch/riscv/mm/init.c
1540
.pgprot = PAGE_KERNEL,
arch/riscv/mm/init.c
1546
.pgprot = PAGE_KERNEL_READ_EXEC,
arch/riscv/mm/init.c
1552
.pgprot = PAGE_KERNEL,
arch/riscv/mm/init.c
1803
create_linear_mapping_range(start, start + size, 0, ¶ms->pgprot);
arch/s390/include/asm/page.h
109
DEFINE_PGVAL_FUNC(pgprot)
arch/s390/include/asm/page.h
79
typedef struct { unsigned long pgprot; } pgprot_t;
arch/s390/include/asm/pgtable.h
1344
static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot)
arch/s390/include/asm/pgtable.h
1348
__pte = __pte(physpage | pgprot_val(pgprot));
arch/s390/include/asm/pgtable.h
1468
#define pfn_pte(pfn, pgprot) mk_pte_phys(((pfn) << PAGE_SHIFT), (pgprot))
arch/s390/include/asm/pgtable.h
1534
static inline unsigned long massage_pgprot_pmd(pgprot_t pgprot)
arch/s390/include/asm/pgtable.h
1540
if (pgprot_val(pgprot) == pgprot_val(PAGE_NONE))
arch/s390/include/asm/pgtable.h
1542
if (pgprot_val(pgprot) == pgprot_val(PAGE_RO))
arch/s390/include/asm/pgtable.h
1544
if (pgprot_val(pgprot) == pgprot_val(PAGE_RX))
arch/s390/include/asm/pgtable.h
1546
if (pgprot_val(pgprot) == pgprot_val(PAGE_RW))
arch/s390/include/asm/pgtable.h
1583
static inline pmd_t mk_pmd_phys(unsigned long physpage, pgprot_t pgprot)
arch/s390/include/asm/pgtable.h
1585
return __pmd(physpage + massage_pgprot_pmd(pgprot));
arch/s390/include/asm/pgtable.h
1772
#define pfn_pmd(pfn, pgprot) mk_pmd_phys(((pfn) << PAGE_SHIFT), (pgprot))
arch/s390/mm/init.c
265
if (WARN_ON_ONCE(pgprot_val(params->pgprot) != pgprot_val(PAGE_KERNEL)))
arch/s390/mm/init.c
308
.pgprot = PAGE_KERNEL,
arch/sh/include/asm/page.h
64
typedef struct { unsigned long long pgprot; } pgprot_t;
arch/sh/include/asm/page.h
72
typedef struct { unsigned long pgprot; } pgprot_t;
arch/sh/include/asm/page.h
79
#define pgprot_val(x) ((x).pgprot)
arch/sh/mm/ioremap.c
103
return generic_ioremap_prot(phys_addr, size, pgprot);
arch/sh/mm/ioremap.c
76
pgprot_t pgprot)
arch/sh/mm/ioremap.c
84
mapped = __ioremap_29bit(phys_addr, size, pgprot);
arch/sh/mm/ioremap.c
92
return ioremap_fixed(phys_addr, size, pgprot);
arch/sh/mm/ioremap.c
98
mapped = pmb_remap_caller(phys_addr, size, pgprot,
arch/sparc/include/asm/page_32.h
58
typedef struct { unsigned long pgprot; } pgprot_t;
arch/sparc/include/asm/page_32.h
66
#define pgprot_val(x) ((x).pgprot)
arch/sparc/include/asm/page_64.h
72
typedef struct { unsigned long pgprot; } pgprot_t;
arch/sparc/include/asm/page_64.h
79
#define pgprot_val(x) ((x).pgprot)
arch/sparc/include/asm/pgtable_32.h
251
static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot)
arch/sparc/include/asm/pgtable_32.h
253
return __pte((pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot));
arch/sparc/include/asm/pgtable_32.h
271
static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot)
arch/sparc/include/asm/pgtable_32.h
273
return __pte(((page) >> 4) | pgprot_val(pgprot));
arch/sparc/include/asm/pgtable_32.h
276
static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space)
arch/sparc/include/asm/pgtable_32.h
278
return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot));
arch/sparc/include/asm/pgtable_64.h
227
static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot)
arch/sparc/include/asm/pgtable_64.h
229
pte_t pte = pfn_pte(page_nr, pgprot);
arch/sparc/mm/execmem.c
14
.pgprot = PAGE_KERNEL,
arch/um/include/asm/page.h
60
typedef struct { unsigned long pgprot; } pgprot_t;
arch/um/include/asm/page.h
65
#define pgprot_val(x) ((x).pgprot)
arch/um/include/asm/pgtable-4level.h
105
static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot)
arch/um/include/asm/pgtable-4level.h
107
return __pmd((page_nr << PAGE_SHIFT) | pgprot_val(pgprot));
arch/um/include/asm/pgtable.h
261
static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot)
arch/um/include/asm/pgtable.h
265
pte_set_val(pte, pfn_to_phys(pfn), pgprot);
arch/x86/include/asm/memtype.h
27
enum page_cache_mode pgprot2cachemode(pgprot_t pgprot);
arch/x86/include/asm/pgtable.h
703
static inline pgprotval_t massage_pgprot(pgprot_t pgprot)
arch/x86/include/asm/pgtable.h
705
pgprotval_t protval = pgprot_val(pgprot);
arch/x86/include/asm/pgtable.h
713
static inline pgprotval_t check_pgprot(pgprot_t pgprot)
arch/x86/include/asm/pgtable.h
715
pgprotval_t massaged_val = massage_pgprot(pgprot);
arch/x86/include/asm/pgtable.h
719
WARN_ONCE(pgprot_val(pgprot) != massaged_val,
arch/x86/include/asm/pgtable.h
722
(u64)pgprot_val(pgprot),
arch/x86/include/asm/pgtable.h
723
(u64)pgprot_val(pgprot) ^ massaged_val,
arch/x86/include/asm/pgtable.h
730
static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot)
arch/x86/include/asm/pgtable.h
734
WARN_ON_ONCE((pgprot_val(pgprot) & (_PAGE_DIRTY | _PAGE_RW)) ==
arch/x86/include/asm/pgtable.h
736
pfn ^= protnone_mask(pgprot_val(pgprot));
arch/x86/include/asm/pgtable.h
738
return __pte(pfn | check_pgprot(pgprot));
arch/x86/include/asm/pgtable.h
741
static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot)
arch/x86/include/asm/pgtable.h
744
pfn ^= protnone_mask(pgprot_val(pgprot));
arch/x86/include/asm/pgtable.h
746
return __pmd(pfn | check_pgprot(pgprot));
arch/x86/include/asm/pgtable.h
749
static inline pud_t pfn_pud(unsigned long page_nr, pgprot_t pgprot)
arch/x86/include/asm/pgtable.h
752
pfn ^= protnone_mask(pgprot_val(pgprot));
arch/x86/include/asm/pgtable.h
754
return __pud(pfn | check_pgprot(pgprot));
arch/x86/include/asm/pgtable_types.h
201
#define pgprot_val(x) ((x).pgprot)
arch/x86/include/asm/pgtable_types.h
293
typedef struct pgprot { pgprotval_t pgprot; } pgprot_t;
arch/x86/include/asm/pgtable_types.h
500
static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot)
arch/x86/include/asm/pgtable_types.h
502
return __pgprot(protval_4k_2_large(pgprot_val(pgprot)));
arch/x86/include/asm/pgtable_types.h
510
static inline pgprot_t pgprot_large_2_4k(pgprot_t pgprot)
arch/x86/include/asm/pgtable_types.h
512
return __pgprot(protval_large_2_4k(pgprot_val(pgprot)));
arch/x86/include/asm/xen/page.h
314
static inline pte_t mfn_pte(unsigned long page_nr, pgprot_t pgprot)
arch/x86/include/asm/xen/page.h
319
massage_pgprot(pgprot);
arch/x86/kernel/alternative.c
2542
pgprot_t pgprot;
arch/x86/kernel/alternative.c
2570
pgprot = __pgprot(pgprot_val(PAGE_KERNEL) & ~_PAGE_GLOBAL);
arch/x86/kernel/alternative.c
2584
pte = mk_pte(pages[0], pgprot);
arch/x86/kernel/alternative.c
2588
pte = mk_pte(pages[1], pgprot);
arch/x86/mm/init.c
103
masked = pgprot_val(pgprot) & _PAGE_CACHE_MASK;
arch/x86/mm/init.c
1070
pgprot_t pgprot;
arch/x86/mm/init.c
1079
pgprot = PAGE_KERNEL_ROX;
arch/x86/mm/init.c
1082
pgprot = PAGE_KERNEL;
arch/x86/mm/init.c
1092
.pgprot = pgprot,
arch/x86/mm/init.c
1099
.pgprot = PAGE_KERNEL_ROX,
arch/x86/mm/init.c
1106
.pgprot = pgprot,
arch/x86/mm/init.c
1113
.pgprot = PAGE_KERNEL,
arch/x86/mm/init.c
1120
.pgprot = PAGE_KERNEL,
arch/x86/mm/init.c
99
enum page_cache_mode pgprot2cachemode(pgprot_t pgprot)
arch/x86/mm/init_64.c
998
init_memory_mapping(start, start + size, params->pgprot);
arch/x86/mm/pat/set_memory.c
1252
pgprot_t pgprot;
arch/x86/mm/pat/set_memory.c
1286
pgprot = pgprot_4k_2_large(pte_pgprot(first));
arch/x86/mm/pat/set_memory.c
1287
pgprot_val(pgprot) |= _PAGE_PSE;
arch/x86/mm/pat/set_memory.c
1288
_pmd = pfn_pmd(pfn, pgprot);
arch/x86/mm/pat/set_memory.c
1567
unsigned num_pages, pmd_t *pmd, pgprot_t pgprot)
arch/x86/mm/pat/set_memory.c
1573
pgprot = pgprot_clear_protnone_bits(pgprot);
arch/x86/mm/pat/set_memory.c
1576
set_pte(pte, pfn_pte(cpa->pfn, pgprot));
arch/x86/mm/pat/set_memory.c
1586
unsigned num_pages, pud_t *pud, pgprot_t pgprot)
arch/x86/mm/pat/set_memory.c
1611
populate_pte(cpa, start, pre_end, cur_pages, pmd, pgprot);
arch/x86/mm/pat/set_memory.c
1622
pmd_pgprot = pgprot_4k_2_large(pgprot);
arch/x86/mm/pat/set_memory.c
1653
pmd, pgprot);
arch/x86/mm/pat/set_memory.c
1659
pgprot_t pgprot)
arch/x86/mm/pat/set_memory.c
1690
pud, pgprot);
arch/x86/mm/pat/set_memory.c
1702
pud_pgprot = pgprot_4k_2_large(pgprot);
arch/x86/mm/pat/set_memory.c
1727
pud, pgprot);
arch/x86/mm/pat/set_memory.c
1742
pgprot_t pgprot = __pgprot(_KERNPG_TABLE);
arch/x86/mm/pat/set_memory.c
1778
pgprot_val(pgprot) &= ~pgprot_val(cpa->mask_clr);
arch/x86/mm/pat/set_memory.c
1779
pgprot_val(pgprot) |= pgprot_val(cpa->mask_set);
arch/x86/mm/pat/set_memory.c
1781
ret = populate_pud(cpa, addr, p4d, pgprot);
arch/x86/mm/pat/set_memory.c
1950
alias_cpa.mask_clr.pgprot &= ~_PAGE_NX;
arch/x86/mm/pat/set_memory.c
1951
alias_cpa.mask_set.pgprot &= ~_PAGE_NX;
arch/x86/mm/pat/set_memory.c
1981
alias_cpa.mask_clr.pgprot &= ~_PAGE_NX;
arch/x86/mm/pat/set_memory.c
1982
alias_cpa.mask_set.pgprot &= ~_PAGE_NX;
arch/x86/mm/pat/set_memory.c
2325
clr.pgprot |= _PAGE_NX;
arch/xtensa/include/asm/page.h
100
#define pgprot_val(x) ((x).pgprot)
arch/xtensa/include/asm/page.h
95
typedef struct { unsigned long pgprot; } pgprot_t;
drivers/gpu/drm/i915/gem/i915_gem_pages.c
281
pgprot_t pgprot;
drivers/gpu/drm/i915/gem/i915_gem_pages.c
308
pgprot = PAGE_KERNEL;
drivers/gpu/drm/i915/gem/i915_gem_pages.c
311
pgprot = pgprot_writecombine(PAGE_KERNEL_IO);
drivers/gpu/drm/i915/gem/i915_gem_pages.c
325
vaddr = vmap(pages, n_pages, 0, pgprot);
drivers/gpu/drm/panthor/panthor_device.c
415
pgprot_t pgprot;
drivers/gpu/drm/panthor/panthor_device.c
439
pgprot = vma->vm_page_prot;
drivers/gpu/drm/panthor/panthor_device.c
441
pgprot = pgprot_noncached(pgprot);
drivers/gpu/drm/panthor/panthor_device.c
443
ret = vmf_insert_pfn_prot(vma, vmf->address, pfn, pgprot);
include/linux/execmem.h
102
pgprot_t pgprot;
include/linux/memory_hotplug.h
70
pgprot_t pgprot;
include/linux/mm.h
2536
static inline pte_t mk_pte(const struct page *page, pgprot_t pgprot)
include/linux/mm.h
2538
return pfn_pte(page_to_pfn(page), pgprot);
include/linux/mm.h
2551
static inline pte_t folio_mk_pte(const struct folio *folio, pgprot_t pgprot)
include/linux/mm.h
2553
return pfn_pte(folio_pfn(folio), pgprot);
include/linux/mm.h
2567
static inline pmd_t folio_mk_pmd(const struct folio *folio, pgprot_t pgprot)
include/linux/mm.h
2569
return pmd_mkhuge(pfn_pmd(folio_pfn(folio), pgprot));
include/linux/mm.h
2583
static inline pud_t folio_mk_pud(const struct folio *folio, pgprot_t pgprot)
include/linux/mm.h
2585
return pud_mkhuge(pfn_pud(folio_pfn(folio), pgprot));
include/linux/mm.h
3121
pgprot_t pgprot;
include/linux/mm.h
4284
action->remap.pgprot = desc->page_prot;
include/linux/mm.h
4497
unsigned long pfn, unsigned long size, pgprot_t pgprot);
include/linux/mm.h
4514
unsigned long pfn, pgprot_t pgprot);
include/linux/mm_types.h
831
pgprot_t pgprot;
mm/execmem.c
29
pgprot_t pgprot, unsigned long vm_flags)
mm/execmem.c
42
pgprot, vm_flags, NUMA_NO_NODE,
mm/execmem.c
469
pgprot_t pgprot = range->pgprot;
mm/execmem.c
477
p = execmem_vmalloc(range, size, pgprot, vm_flags);
mm/execmem.c
48
pgprot, vm_flags, NUMA_NO_NODE,
mm/execmem.c
518
if (!r->alignment || !r->start || !r->end || !pgprot_val(r->pgprot)) {
mm/execmem.c
546
r->pgprot = PAGE_KERNEL;
mm/execmem.c
548
r->pgprot = default_range->pgprot;
mm/execmem.c
572
info->ranges[EXECMEM_DEFAULT].pgprot = PAGE_KERNEL_EXEC;
mm/execmem.c
82
pgprot_t pgprot, unsigned long vm_flags)
mm/huge_memory.c
1673
pgprot_t pgprot = vma->vm_page_prot;
mm/huge_memory.c
1688
pfnmap_setup_cachemode_pfn(pfn, &pgprot);
mm/huge_memory.c
1690
return insert_pmd(vma, addr, vmf->pmd, fop, pgprot, write);
mm/huge_memory.c
1781
pgprot_t pgprot = vma->vm_page_prot;
mm/huge_memory.c
1796
pfnmap_setup_cachemode_pfn(pfn, &pgprot);
mm/huge_memory.c
1798
return insert_pud(vma, addr, vmf->pud, fop, pgprot, write);
mm/hugetlb_vmemmap.c
69
pgprot_t pgprot = PAGE_KERNEL;
mm/hugetlb_vmemmap.c
71
entry = mk_pte(head + i, pgprot);
mm/internal.h
1851
const pgprot_t orig_pgprot = action->remap.pgprot;
mm/internal.h
1857
action->remap.pgprot = pgprot_decrypted(orig_pgprot);
mm/memory.c
2739
unsigned long pfn, pgprot_t pgprot)
mm/memory.c
2756
if (!pfn_modify_allowed(pfn, pgprot))
mm/memory.c
2759
pfnmap_setup_cachemode_pfn(pfn, &pgprot);
mm/memory.c
2761
return insert_pfn(vma, addr, pfn, pgprot, false);
mm/memory.c
2809
pgprot_t pgprot = vma->vm_page_prot;
mm/memory.c
2818
pfnmap_setup_cachemode_pfn(pfn, &pgprot);
mm/memory.c
2820
if (!pfn_modify_allowed(pfn, pgprot))
mm/memory.c
2839
err = insert_page(vma, addr, page, pgprot, mkwrite);
mm/memory.c
2841
return insert_pfn(vma, addr, pfn, pgprot, mkwrite);
mm/memory.c
2855
pgprot_t pgprot = vmf->vma->vm_page_prot;
mm/memory.c
2862
err = insert_page(vmf->vma, addr, page, pgprot, write);
mm/memory.c
3205
const pgprot_t prot = action->remap.pgprot;
mm/memory.c
6823
pgprot_t pgprot, unsigned long pfn_base,
mm/memory.c
6831
args->pgprot = pgprot;
mm/memory.c
7012
prot = args.pgprot;
mm/memory.c
7027
if ((pgprot_val(prot) != pgprot_val(args.pgprot)) ||
mm/memory_hotplug.c
1445
struct mhp_params params = { .pgprot =
mm/memory_hotplug.c
1492
struct mhp_params params = { .pgprot = pgprot_mhp(PAGE_KERNEL) };
mm/memory_hotplug.c
389
if (WARN_ON_ONCE(!pgprot_val(params->pgprot)))
mm/memremap.c
189
¶ms->pgprot);
mm/memremap.c
271
.pgprot = PAGE_KERNEL,
mm/memremap.c
312
params.pgprot = pgprot_decrypted(params.pgprot);
mm/memremap.c
317
params.pgprot = pgprot_noncached(params.pgprot);
tools/testing/vma/include/dup.h
388
#define pgprot_val(x) ((x).pgprot)
tools/testing/vma/include/dup.h
470
pgprot_t pgprot;
tools/testing/vma/include/stubs.h
115
unsigned long pfn, unsigned long size, pgprot_t pgprot)
tools/testing/vma/vma_internal.h
51
typedef struct pgprot { pgprotval_t pgprot; } pgprot_t;