Home
last modified time | relevance | path

Searched refs:pteval_t (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v5.4/arch/arm/include/asm/
Dpgtable-2level-hwdef.h58 #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0)
59 #define PTE_TYPE_FAULT (_AT(pteval_t, 0) << 0)
60 #define PTE_TYPE_LARGE (_AT(pteval_t, 1) << 0)
61 #define PTE_TYPE_SMALL (_AT(pteval_t, 2) << 0)
62 #define PTE_TYPE_EXT (_AT(pteval_t, 3) << 0) /* v5 */
63 #define PTE_BUFFERABLE (_AT(pteval_t, 1) << 2)
64 #define PTE_CACHEABLE (_AT(pteval_t, 1) << 3)
69 #define PTE_EXT_XN (_AT(pteval_t, 1) << 0) /* v6 */
70 #define PTE_EXT_AP_MASK (_AT(pteval_t, 3) << 4)
71 #define PTE_EXT_AP0 (_AT(pteval_t, 1) << 4)
[all …]
Dpgtable-2level.h117 #define L_PTE_VALID (_AT(pteval_t, 1) << 0) /* Valid */
118 #define L_PTE_PRESENT (_AT(pteval_t, 1) << 0)
119 #define L_PTE_YOUNG (_AT(pteval_t, 1) << 1)
120 #define L_PTE_DIRTY (_AT(pteval_t, 1) << 6)
121 #define L_PTE_RDONLY (_AT(pteval_t, 1) << 7)
122 #define L_PTE_USER (_AT(pteval_t, 1) << 8)
123 #define L_PTE_XN (_AT(pteval_t, 1) << 9)
124 #define L_PTE_SHARED (_AT(pteval_t, 1) << 10) /* shared(v6), coherent(xsc3) */
125 #define L_PTE_NONE (_AT(pteval_t, 1) << 11)
160 #define L_PTE_MT_UNCACHED (_AT(pteval_t, 0x00) << 2) /* 0000 */
[all …]
Dpgtable-3level.h66 #define L_PTE_VALID (_AT(pteval_t, 1) << 0) /* Valid */
67 #define L_PTE_PRESENT (_AT(pteval_t, 3) << 0) /* Present */
68 #define L_PTE_USER (_AT(pteval_t, 1) << 6) /* AP[1] */
69 #define L_PTE_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */
70 #define L_PTE_YOUNG (_AT(pteval_t, 1) << 10) /* AF */
71 #define L_PTE_XN (_AT(pteval_t, 1) << 54) /* XN */
72 #define L_PTE_DIRTY (_AT(pteval_t, 1) << 55)
73 #define L_PTE_SPECIAL (_AT(pteval_t, 1) << 56)
74 #define L_PTE_NONE (_AT(pteval_t, 1) << 57) /* PROT_NONE */
75 #define L_PTE_RDONLY (_AT(pteval_t, 1) << 58) /* READ ONLY */
[all …]
Dpgtable-3level-hwdef.h58 #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0)
59 #define PTE_TYPE_FAULT (_AT(pteval_t, 0) << 0)
60 #define PTE_TYPE_PAGE (_AT(pteval_t, 3) << 0)
61 #define PTE_TABLE_BIT (_AT(pteval_t, 1) << 1)
62 #define PTE_BUFFERABLE (_AT(pteval_t, 1) << 2) /* AttrIndx[0] */
63 #define PTE_CACHEABLE (_AT(pteval_t, 1) << 3) /* AttrIndx[1] */
64 #define PTE_AP2 (_AT(pteval_t, 1) << 7) /* AP[2] */
65 #define PTE_EXT_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */
66 #define PTE_EXT_AF (_AT(pteval_t, 1) << 10) /* Access Flag */
67 #define PTE_EXT_NG (_AT(pteval_t, 1) << 11) /* nG */
[all …]
Dpgtable-2level-types.h12 typedef u32 pteval_t; typedef
21 typedef struct { pteval_t pte; } pte_t;
24 typedef struct { pteval_t pgprot; } pgprot_t;
39 typedef pteval_t pte_t;
42 typedef pteval_t pgprot_t;
Dpgtable-3level-types.h13 typedef u64 pteval_t; typedef
24 typedef struct { pteval_t pte; } pte_t;
27 typedef struct { pteval_t pgprot; } pgprot_t;
41 typedef pteval_t pte_t;
44 typedef pteval_t pgprot_t;
Dpgtable.h237 pteval_t mask = L_PTE_PRESENT | L_PTE_USER; in pte_access_permitted()
238 pteval_t needed = mask; in pte_access_permitted()
323 const pteval_t mask = L_PTE_XN | L_PTE_RDONLY | L_PTE_USER | in pte_modify()
/Linux-v5.4/arch/x86/include/asm/
Dpgtable_types.h42 #define _PAGE_PRESENT (_AT(pteval_t, 1) << _PAGE_BIT_PRESENT)
43 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW)
44 #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER)
45 #define _PAGE_PWT (_AT(pteval_t, 1) << _PAGE_BIT_PWT)
46 #define _PAGE_PCD (_AT(pteval_t, 1) << _PAGE_BIT_PCD)
47 #define _PAGE_ACCESSED (_AT(pteval_t, 1) << _PAGE_BIT_ACCESSED)
48 #define _PAGE_DIRTY (_AT(pteval_t, 1) << _PAGE_BIT_DIRTY)
49 #define _PAGE_PSE (_AT(pteval_t, 1) << _PAGE_BIT_PSE)
50 #define _PAGE_GLOBAL (_AT(pteval_t, 1) << _PAGE_BIT_GLOBAL)
51 #define _PAGE_SOFTW1 (_AT(pteval_t, 1) << _PAGE_BIT_SOFTW1)
[all …]
Dpgtable-2level_types.h8 typedef unsigned long pteval_t; typedef
16 pteval_t pte;
17 pteval_t pte_low;
Dparavirt.h362 static inline pte_t __pte(pteval_t val) in __pte()
364 pteval_t ret; in __pte()
366 if (sizeof(pteval_t) > sizeof(long)) in __pte()
367 ret = PVOP_CALLEE2(pteval_t, mmu.make_pte, val, (u64)val >> 32); in __pte()
369 ret = PVOP_CALLEE1(pteval_t, mmu.make_pte, val); in __pte()
374 static inline pteval_t pte_val(pte_t pte) in pte_val()
376 pteval_t ret; in pte_val()
378 if (sizeof(pteval_t) > sizeof(long)) in pte_val()
379 ret = PVOP_CALLEE2(pteval_t, mmu.pte_val, in pte_val()
382 ret = PVOP_CALLEE1(pteval_t, mmu.pte_val, pte.pte); in pte_val()
[all …]
Dpgtable-3level_types.h8 typedef u64 pteval_t; typedef
19 pteval_t pte;
Dpgtable-3level.h155 res.pte = (pteval_t)arch_atomic64_xchg((atomic64_t *)ptep, 0); in native_ptep_get_and_clear()
270 #define __swp_pteval_entry(type, offset) ((pteval_t) { \
271 (~(pteval_t)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \
272 | ((pteval_t)(type) << (64 - SWP_TYPE_BITS)) })
Dpgtable_64_types.h14 typedef unsigned long pteval_t; typedef
21 typedef struct { pteval_t pte; } pte_t;
Dpgtable.h299 static inline pte_t pte_set_flags(pte_t pte, pteval_t set) in pte_set_flags()
301 pteval_t v = native_pte_val(pte); in pte_set_flags()
306 static inline pte_t pte_clear_flags(pte_t pte, pteval_t clear) in pte_clear_flags()
308 pteval_t v = native_pte_val(pte); in pte_clear_flags()
605 pteval_t val = pte_val(pte), oldval = val; in pte_modify()
/Linux-v5.4/arch/arm64/include/asm/
Dpgtable-hwdef.h144 #define PTE_VALID (_AT(pteval_t, 1) << 0)
145 #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0)
146 #define PTE_TYPE_PAGE (_AT(pteval_t, 3) << 0)
147 #define PTE_TABLE_BIT (_AT(pteval_t, 1) << 1)
148 #define PTE_USER (_AT(pteval_t, 1) << 6) /* AP[1] */
149 #define PTE_RDONLY (_AT(pteval_t, 1) << 7) /* AP[2] */
150 #define PTE_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */
151 #define PTE_AF (_AT(pteval_t, 1) << 10) /* Access Flag */
152 #define PTE_NG (_AT(pteval_t, 1) << 11) /* nG */
153 #define PTE_DBM (_AT(pteval_t, 1) << 51) /* Dirty Bit Management */
[all …]
Dpgtable-types.h14 typedef u64 pteval_t; typedef
22 typedef struct { pteval_t pte; } pte_t;
42 typedef struct { pteval_t pgprot; } pgprot_t;
Dpgtable-prot.h17 #define PTE_DIRTY (_AT(pteval_t, 1) << 55)
18 #define PTE_SPECIAL (_AT(pteval_t, 1) << 56)
19 #define PTE_DEVMAP (_AT(pteval_t, 1) << 57)
20 #define PTE_PROT_NONE (_AT(pteval_t, 1) << 58) /* only when !PTE_VALID */
/Linux-v5.4/include/trace/events/
Dxen.h128 TRACE_DEFINE_SIZEOF(pteval_t);
135 __field(pteval_t, pteval)
141 (int)sizeof(pteval_t) * 2, (unsigned long long)pte_val(native_make_pte(__entry->pteval)),
142 (int)sizeof(pteval_t) * 2, (unsigned long long)__entry->pteval)
160 __field(pteval_t, pteval)
168 (int)sizeof(pteval_t) * 2, (unsigned long long)pte_val(native_make_pte(__entry->pteval)),
169 (int)sizeof(pteval_t) * 2, (unsigned long long)__entry->pteval)
282 __field(pteval_t, pteval)
290 (int)sizeof(pteval_t) * 2, (unsigned long long)pte_val(native_make_pte(__entry->pteval)),
291 (int)sizeof(pteval_t) * 2, (unsigned long long)__entry->pteval)
/Linux-v5.4/arch/arm/mm/
Dmm.h45 pteval_t prot_pte;
46 pteval_t prot_pte_s2;
/Linux-v5.4/arch/arm64/kernel/
Defi.c20 static __init pteval_t create_mapping_protection(efi_memory_desc_t *md) in create_mapping_protection()
61 pteval_t prot_val = create_mapping_protection(md); in efi_create_mapping()
/Linux-v5.4/arch/x86/include/asm/xen/
Dpage.h36 #define XEN_PTE_MFN_MASK ((pteval_t)(((signed long)PAGE_MASK) & \
330 static inline pteval_t pte_val_ma(pte_t pte) in pte_val_ma()
335 static inline pte_t __pte_ma(pteval_t x) in __pte_ma()
/Linux-v5.4/arch/x86/mm/
Dkmmio.c38 pteval_t old_presence; /* page presence prior to arming */
141 static void clear_pte_presence(pte_t *pte, bool clear, pteval_t *old) in clear_pte_presence()
143 pteval_t v = pte_val(*pte); in clear_pte_presence()
Dmem_encrypt_identity.c66 pteval_t pte_flags;
205 pmdval_t pmd_flags, pteval_t pte_flags) in __sme_map_range()
/Linux-v5.4/arch/x86/xen/
Dmmu_pv.c333 static pteval_t pte_mfn_to_pfn(pteval_t val) in pte_mfn_to_pfn()
339 pteval_t flags = val & PTE_FLAGS_MASK; in pte_mfn_to_pfn()
343 val = ((pteval_t)pfn << PAGE_SHIFT) | flags; in pte_mfn_to_pfn()
349 static pteval_t pte_pfn_to_mfn(pteval_t val) in pte_pfn_to_mfn()
353 pteval_t flags = val & PTE_FLAGS_MASK; in pte_pfn_to_mfn()
369 val = ((pteval_t)mfn << PAGE_SHIFT) | flags; in pte_pfn_to_mfn()
375 __visible pteval_t xen_pte_val(pte_t pte) in xen_pte_val()
377 pteval_t pteval = pte.pte; in xen_pte_val()
389 __visible pte_t xen_make_pte(pteval_t pte) in xen_make_pte()
1540 __visible pte_t xen_make_pte_init(pteval_t pte) in xen_make_pte_init()
/Linux-v5.4/arch/x86/kernel/
Despfix_64.c140 pteval_t ptemask; in init_espfix_ap()

12