Symbol: pgprot
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
174
extern inline pte_t pfn_pte(unsigned long physpfn, pgprot_t pgprot)
arch/alpha/include/asm/pgtable.h
175
{ 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
525
.pgprot = PAGE_KERNEL,
arch/arm64/mm/init.c
533
.pgprot = PAGE_KERNEL_ROX,
arch/arm64/mm/init.c
539
.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
1980
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
340
#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
233
.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
280
static inline pte_t mk_pte_phys(phys_addr_t physpage, pgprot_t pgprot)
arch/microblaze/include/asm/pgtable.h
283
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
576
.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
277
static inline pte_t __mk_pte(void *page, pgprot_t pgprot)
arch/openrisc/include/asm/pgtable.h
281
pte_val(pte) = __pa(page) | pgprot_val(pgprot);
arch/openrisc/include/asm/pgtable.h
285
#define mk_pte_phys(physpage, pgprot) \
arch/openrisc/include/asm/pgtable.h
289
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
341
#define __mk_pte(addr,pgprot) \
arch/parisc/include/asm/pgtable.h
345
pte_val(__pte) = ((((addr)>>PAGE_SHIFT)<<PFN_PTE_SHIFT) + pgprot_val(pgprot)); \
arch/parisc/include/asm/pgtable.h
350
static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot)
arch/parisc/include/asm/pgtable.h
353
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
992
.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
244
static pmd_t pmd_set_protbits(pmd_t pmd, pgprot_t pgprot)
arch/powerpc/mm/book3s64/pgtable.c
246
return __pmd(pmd_val(pmd) | pgprot_val(pgprot));
arch/powerpc/mm/book3s64/pgtable.c
249
static pud_t pud_set_protbits(pud_t pud, pgprot_t pgprot)
arch/powerpc/mm/book3s64/pgtable.c
251
return __pud(pud_val(pud) | pgprot_val(pgprot));
arch/powerpc/mm/book3s64/pgtable.c
259
pmd_t pfn_pmd(unsigned long pfn, pgprot_t pgprot)
arch/powerpc/mm/book3s64/pgtable.c
265
return __pmd_mkhuge(pmd_set_protbits(__pmd(pmdv), pgprot));
arch/powerpc/mm/book3s64/pgtable.c
268
pud_t pfn_pud(unsigned long pfn, pgprot_t pgprot)
arch/powerpc/mm/book3s64/pgtable.c
274
return __pud_mkhuge(pud_set_protbits(__pud(pudv), pgprot));
arch/powerpc/mm/mem.c
433
.pgprot = prot,
arch/powerpc/mm/mem.c
441
.pgprot = kprobes_prot,
arch/powerpc/mm/mem.c
447
.pgprot = PAGE_KERNEL,
arch/powerpc/mm/mem.c
87
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
1263
uintptr_t fixed_map_size, const pgprot_t *pgprot)
arch/riscv/mm/init.c
1274
pgprot ? *pgprot : pgprot_from_va(va));
arch/riscv/mm/init.c
1543
.pgprot = PAGE_KERNEL,
arch/riscv/mm/init.c
1549
.pgprot = PAGE_KERNEL_READ_EXEC,
arch/riscv/mm/init.c
1555
.pgprot = PAGE_KERNEL,
arch/riscv/mm/init.c
1806
create_linear_mapping_range(start, start + size, 0, &params->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
267
if (WARN_ON_ONCE(pgprot_val(params->pgprot) != pgprot_val(PAGE_KERNEL)))
arch/s390/mm/init.c
310
.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
259
static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot)
arch/sparc/include/asm/pgtable_32.h
261
return __pte((pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot));
arch/sparc/include/asm/pgtable_32.h
279
static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot)
arch/sparc/include/asm/pgtable_32.h
281
return __pte(((page) >> 4) | pgprot_val(pgprot));
arch/sparc/include/asm/pgtable_32.h
284
static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space)
arch/sparc/include/asm/pgtable_32.h
286
return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot));
arch/sparc/include/asm/pgtable_64.h
230
static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot)
arch/sparc/include/asm/pgtable_64.h
232
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
270
static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot)
arch/um/include/asm/pgtable.h
274
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
711
static inline pgprotval_t massage_pgprot(pgprot_t pgprot)
arch/x86/include/asm/pgtable.h
713
pgprotval_t protval = pgprot_val(pgprot);
arch/x86/include/asm/pgtable.h
721
static inline pgprotval_t check_pgprot(pgprot_t pgprot)
arch/x86/include/asm/pgtable.h
723
pgprotval_t massaged_val = massage_pgprot(pgprot);
arch/x86/include/asm/pgtable.h
727
WARN_ONCE(pgprot_val(pgprot) != massaged_val,
arch/x86/include/asm/pgtable.h
730
(u64)pgprot_val(pgprot),
arch/x86/include/asm/pgtable.h
731
(u64)pgprot_val(pgprot) ^ massaged_val,
arch/x86/include/asm/pgtable.h
738
static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot)
arch/x86/include/asm/pgtable.h
742
WARN_ON_ONCE((pgprot_val(pgprot) & (_PAGE_DIRTY | _PAGE_RW)) ==
arch/x86/include/asm/pgtable.h
744
pfn ^= protnone_mask(pgprot_val(pgprot));
arch/x86/include/asm/pgtable.h
746
return __pte(pfn | check_pgprot(pgprot));
arch/x86/include/asm/pgtable.h
749
static inline pmd_t pfn_pmd(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 __pmd(pfn | check_pgprot(pgprot));
arch/x86/include/asm/pgtable.h
757
static inline pud_t pfn_pud(unsigned long page_nr, pgprot_t pgprot)
arch/x86/include/asm/pgtable.h
760
pfn ^= protnone_mask(pgprot_val(pgprot));
arch/x86/include/asm/pgtable.h
762
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
1251
pgprot_t pgprot;
arch/x86/mm/pat/set_memory.c
1285
pgprot = pgprot_4k_2_large(pte_pgprot(first));
arch/x86/mm/pat/set_memory.c
1286
pgprot_val(pgprot) |= _PAGE_PSE;
arch/x86/mm/pat/set_memory.c
1287
_pmd = pfn_pmd(pfn, pgprot);
arch/x86/mm/pat/set_memory.c
1562
unsigned num_pages, pmd_t *pmd, pgprot_t pgprot)
arch/x86/mm/pat/set_memory.c
1568
pgprot = pgprot_clear_protnone_bits(pgprot);
arch/x86/mm/pat/set_memory.c
1571
set_pte(pte, pfn_pte(cpa->pfn, pgprot));
arch/x86/mm/pat/set_memory.c
1581
unsigned num_pages, pud_t *pud, pgprot_t pgprot)
arch/x86/mm/pat/set_memory.c
1606
populate_pte(cpa, start, pre_end, cur_pages, pmd, pgprot);
arch/x86/mm/pat/set_memory.c
1617
pmd_pgprot = pgprot_4k_2_large(pgprot);
arch/x86/mm/pat/set_memory.c
1648
pmd, pgprot);
arch/x86/mm/pat/set_memory.c
1654
pgprot_t pgprot)
arch/x86/mm/pat/set_memory.c
1685
pud, pgprot);
arch/x86/mm/pat/set_memory.c
1697
pud_pgprot = pgprot_4k_2_large(pgprot);
arch/x86/mm/pat/set_memory.c
1722
pud, pgprot);
arch/x86/mm/pat/set_memory.c
1737
pgprot_t pgprot = __pgprot(_KERNPG_TABLE);
arch/x86/mm/pat/set_memory.c
1765
pgprot_val(pgprot) &= ~pgprot_val(cpa->mask_clr);
arch/x86/mm/pat/set_memory.c
1766
pgprot_val(pgprot) |= pgprot_val(cpa->mask_set);
arch/x86/mm/pat/set_memory.c
1768
ret = populate_pud(cpa, addr, p4d, pgprot);
arch/x86/mm/pat/set_memory.c
1937
alias_cpa.mask_clr.pgprot &= ~_PAGE_NX;
arch/x86/mm/pat/set_memory.c
1938
alias_cpa.mask_set.pgprot &= ~_PAGE_NX;
arch/x86/mm/pat/set_memory.c
1968
alias_cpa.mask_clr.pgprot &= ~_PAGE_NX;
arch/x86/mm/pat/set_memory.c
1969
alias_cpa.mask_set.pgprot &= ~_PAGE_NX;
arch/x86/mm/pat/set_memory.c
2312
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
2268
static inline pte_t mk_pte(const struct page *page, pgprot_t pgprot)
include/linux/mm.h
2270
return pfn_pte(page_to_pfn(page), pgprot);
include/linux/mm.h
2283
static inline pte_t folio_mk_pte(const struct folio *folio, pgprot_t pgprot)
include/linux/mm.h
2285
return pfn_pte(folio_pfn(folio), pgprot);
include/linux/mm.h
2299
static inline pmd_t folio_mk_pmd(const struct folio *folio, pgprot_t pgprot)
include/linux/mm.h
2301
return pmd_mkhuge(pfn_pmd(folio_pfn(folio), pgprot));
include/linux/mm.h
2315
static inline pud_t folio_mk_pud(const struct folio *folio, pgprot_t pgprot)
include/linux/mm.h
2317
return pud_mkhuge(pfn_pud(folio_pfn(folio), pgprot));
include/linux/mm.h
2879
pgprot_t pgprot;
include/linux/mm.h
4036
action->remap.pgprot = desc->page_prot;
include/linux/mm.h
4128
unsigned long pfn, unsigned long size, pgprot_t pgprot);
include/linux/mm.h
4142
unsigned long pfn, pgprot_t pgprot);
include/linux/mm_types.h
830
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
466
pgprot_t pgprot = range->pgprot;
mm/execmem.c
474
p = execmem_vmalloc(range, size, pgprot, vm_flags);
mm/execmem.c
48
pgprot, vm_flags, NUMA_NO_NODE,
mm/execmem.c
515
if (!r->alignment || !r->start || !r->end || !pgprot_val(r->pgprot)) {
mm/execmem.c
543
r->pgprot = PAGE_KERNEL;
mm/execmem.c
545
r->pgprot = default_range->pgprot;
mm/execmem.c
569
info->ranges[EXECMEM_DEFAULT].pgprot = PAGE_KERNEL_EXEC;
mm/execmem.c
82
pgprot_t pgprot, unsigned long vm_flags)
mm/huge_memory.c
1612
pgprot_t pgprot = vma->vm_page_prot;
mm/huge_memory.c
1627
pfnmap_setup_cachemode_pfn(pfn, &pgprot);
mm/huge_memory.c
1629
return insert_pmd(vma, addr, vmf->pmd, fop, pgprot, write);
mm/huge_memory.c
1720
pgprot_t pgprot = vma->vm_page_prot;
mm/huge_memory.c
1735
pfnmap_setup_cachemode_pfn(pfn, &pgprot);
mm/huge_memory.c
1737
return insert_pud(vma, addr, vmf->pud, fop, pgprot, write);
mm/hugetlb_vmemmap.c
215
pgprot_t pgprot = PAGE_KERNEL_RO;
mm/hugetlb_vmemmap.c
221
pgprot = PAGE_KERNEL;
mm/hugetlb_vmemmap.c
232
entry = mk_pte(walk->reuse_page, pgprot);
mm/hugetlb_vmemmap.c
259
pgprot_t pgprot = PAGE_KERNEL;
mm/hugetlb_vmemmap.c
276
set_pte_at(&init_mm, addr, pte, mk_pte(page, pgprot));
mm/hugetlb_vmemmap.c
68
pgprot_t pgprot = PAGE_KERNEL;
mm/hugetlb_vmemmap.c
70
entry = mk_pte(head + i, pgprot);
mm/internal.h
1753
unsigned long pfn, unsigned long size, pgprot_t pgprot);
mm/memory.c
2711
unsigned long pfn, pgprot_t pgprot)
mm/memory.c
2728
if (!pfn_modify_allowed(pfn, pgprot))
mm/memory.c
2731
pfnmap_setup_cachemode_pfn(pfn, &pgprot);
mm/memory.c
2733
return insert_pfn(vma, addr, pfn, pgprot, false);
mm/memory.c
2781
pgprot_t pgprot = vma->vm_page_prot;
mm/memory.c
2790
pfnmap_setup_cachemode_pfn(pfn, &pgprot);
mm/memory.c
2792
if (!pfn_modify_allowed(pfn, pgprot))
mm/memory.c
2811
err = insert_page(vma, addr, page, pgprot, mkwrite);
mm/memory.c
2813
return insert_pfn(vma, addr, pfn, pgprot, mkwrite);
mm/memory.c
2827
pgprot_t pgprot = vmf->vma->vm_page_prot;
mm/memory.c
2834
err = insert_page(vmf->vma, addr, page, pgprot, write);
mm/memory.c
6729
pgprot_t pgprot, unsigned long pfn_base,
mm/memory.c
6737
args->pgprot = pgprot;
mm/memory.c
6918
prot = args.pgprot;
mm/memory.c
6933
if ((pgprot_val(prot) != pgprot_val(args.pgprot)) ||
mm/memory_hotplug.c
1453
struct mhp_params params = { .pgprot =
mm/memory_hotplug.c
1500
struct mhp_params params = { .pgprot = pgprot_mhp(PAGE_KERNEL) };
mm/memory_hotplug.c
397
if (WARN_ON_ONCE(!pgprot_val(params->pgprot)))
mm/memremap.c
189
&params->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);
mm/util.c
1359
action->remap.pgprot);
mm/util.c
1364
action->remap.pgprot);
tools/testing/vma/include/dup.h
369
#define pgprot_val(x) ((x).pgprot)
tools/testing/vma/include/dup.h
440
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;