Home
last modified time | relevance | path

Searched refs:__pte (Results 1 – 25 of 88) sorted by relevance

1234

/arch/sh/include/asm/
Dpgtable_64.h231 #define pte_clear(mm,addr,xp) (set_pte_at(mm, addr, xp, __pte(_PTE_EMPTY)))
267 static inline pte_t pte_wrprotect(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_WRITE)); r… in pte_wrprotect()
268 static inline pte_t pte_mkclean(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_DIRTY)); ret… in pte_mkclean()
269 static inline pte_t pte_mkold(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_ACCESSED)); re… in pte_mkold()
270 static inline pte_t pte_mkwrite(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) | _PAGE_WRITE)); retu… in pte_mkwrite()
271 static inline pte_t pte_mkdirty(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) | _PAGE_DIRTY)); retu… in pte_mkdirty()
272 static inline pte_t pte_mkyoung(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) | _PAGE_ACCESSED)); r… in pte_mkyoung()
273 static inline pte_t pte_mkhuge(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) | _PAGE_SZHUGE)); retu… in pte_mkhuge()
274 static inline pte_t pte_mkspecial(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) | _PAGE_SPECIAL)); … in pte_mkspecial()
283 pte_t __pte; \
[all …]
Dpage.h81 #define __pte(x) \ macro
82 ({ pte_t __pte = {(x), ((unsigned long long)(x)) >> 32}; __pte; })
88 #define __pte(x) ((pte_t) { (x) } ) macro
94 #define __pte(x) ((pte_t) { (x) } ) macro
/arch/sparc/include/asm/
Dpgtable_32.h155 set_pte(ptep, __pte(0)); in __pte_clear()
182 set_pte((pte_t *)&pmdp->pmdv[i], __pte(0)); in pmd_clear()
202 set_pte((pte_t *)pgdp, __pte(0)); in pgd_clear()
239 return __pte(pte_val(pte) & ~SRMMU_WRITE); in pte_wrprotect()
244 return __pte(pte_val(pte) & ~SRMMU_DIRTY); in pte_mkclean()
249 return __pte(pte_val(pte) & ~SRMMU_REF); in pte_mkold()
254 return __pte(pte_val(pte) | SRMMU_WRITE); in pte_mkwrite()
259 return __pte(pte_val(pte) | SRMMU_DIRTY); in pte_mkdirty()
264 return __pte(pte_val(pte) | SRMMU_REF); in pte_mkyoung()
292 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte()
[all …]
Dpgtable_64.h244 return __pte(paddr | pgprot_val(prot)); in pfn_pte()
321 return __pte((pte_val(pte) & mask) | (pgprot_val(prot) & ~mask)); in pte_modify()
327 pte_t pte = __pte(pmd_val(pmd)); in pmd_modify()
348 return __pte(off); in pgoff_to_pte()
391 return __pte(pte_val(pte) | mask); in pte_mkhuge()
396 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge()
427 return __pte(val); in pte_mkdirty()
451 return __pte(val); in pte_mkclean()
469 return __pte(val | mask); in pte_mkwrite()
493 return __pte(val); in pte_wrprotect()
[all …]
Dpage_32.h70 #define __pte(x) ((pte_t) { (x) } ) macro
98 #define __pte(x) (x) macro
/arch/xtensa/mm/
Dmmu.c88 write_dtlb_entry(__pte(xtensa_kio_paddr + CA_WRITEBACK), in init_mmu()
90 write_itlb_entry(__pte(xtensa_kio_paddr + CA_WRITEBACK), in init_mmu()
92 write_dtlb_entry(__pte(xtensa_kio_paddr + CA_BYPASS), in init_mmu()
94 write_itlb_entry(__pte(xtensa_kio_paddr + CA_BYPASS), in init_mmu()
/arch/ia64/include/asm/
Dpgtable.h253 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; })
262 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; })
265 (__pte((pte_val(_pte) & ~_PAGE_CHG_MASK) | (pgprot_val(newprot) & _PAGE_CHG_MASK)))
310 #define pte_wrprotect(pte) (__pte(pte_val(pte) & ~_PAGE_AR_RW))
311 #define pte_mkwrite(pte) (__pte(pte_val(pte) | _PAGE_AR_RW))
312 #define pte_mkold(pte) (__pte(pte_val(pte) & ~_PAGE_A))
313 #define pte_mkyoung(pte) (__pte(pte_val(pte) | _PAGE_A))
314 #define pte_mkclean(pte) (__pte(pte_val(pte) & ~_PAGE_D))
315 #define pte_mkdirty(pte) (__pte(pte_val(pte) | _PAGE_D))
316 #define pte_mkhuge(pte) (__pte(pte_val(pte)))
[all …]
/arch/powerpc/mm/
Dhugetlbpage-hash64.c70 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_huge()
91 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_huge()
115 *ptep = __pte(old_pte); in __hash_page_huge()
127 *ptep = __pte(new_pte & ~_PAGE_BUSY); in __hash_page_huge()
Dpgtable.c74 pte = __pte(pte_val(pte) & ~_PAGE_HPTEFLAGS); in set_pte_filter()
125 return __pte(pte_val(pte) & ~_PAGE_EXEC); in set_pte_filter()
164 return __pte(pte_val(pte) | _PAGE_EXEC); in set_access_flags_filter()
/arch/mips/include/asm/
Dpage.h121 #define __pte(x) ({ pte_t __pte = {(x), ((unsigned long long)(x)) >> 32}; __pte; }) macro
125 #define __pte(x) ((pte_t) { (x) } ) macro
130 #define __pte(x) ((pte_t) { (x) } ) macro
/arch/avr32/include/asm/
Dpgtable.h189 set_pte_at(mm, addr, xp, __pte(0)); \
224 set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_RW)); in pte_wrprotect()
229 set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_DIRTY)); in pte_mkclean()
234 set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_ACCESSED)); in pte_mkold()
239 set_pte(&pte, __pte(pte_val(pte) | _PAGE_RW)); in pte_mkwrite()
244 set_pte(&pte, __pte(pte_val(pte) | _PAGE_DIRTY)); in pte_mkdirty()
249 set_pte(&pte, __pte(pte_val(pte) | _PAGE_ACCESSED)); in pte_mkyoung()
296 set_pte(&pte, __pte((pte_val(pte) & _PAGE_CHG_MASK) in pte_modify()
/arch/arm/include/asm/
Dpgtable-2level-types.h43 #define __pte(x) ((pte_t) { (x) } ) macro
61 #define __pte(x) (x) macro
Dpgtable-3level-types.h46 #define __pte(x) ((pte_t) { (x) } ) macro
63 #define __pte(x) (x) macro
/arch/unicore32/include/asm/
Dpage.h45 #define __pte(x) ((pte_t) { (x) }) macro
61 #define __pte(x) (x) macro
/arch/cris/include/asm/
Dpgtable.h191 pte_t __pte; \
193 pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
194 __pte; \
254 #define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot))
294 #define pgoff_to_pte(x) __pte(((x) << 6) | _PAGE_FILE)
/arch/tile/gxio/
Diorpc_mpipe.c55 pte_t __pte; in gxio_mpipe_init_buffer_stack_aux() local
59 __result = va_to_cpa_and_pte(mem_va, &__cpa, &__pte); in gxio_mpipe_init_buffer_stack_aux()
64 params->buffer.kernel.pte = __pte; in gxio_mpipe_init_buffer_stack_aux()
111 pte_t __pte; in gxio_mpipe_init_notif_ring_aux() local
115 __result = va_to_cpa_and_pte(mem_va, &__cpa, &__pte); in gxio_mpipe_init_notif_ring_aux()
120 params->buffer.kernel.pte = __pte; in gxio_mpipe_init_notif_ring_aux()
297 pte_t __pte; in gxio_mpipe_init_edma_ring_aux() local
301 __result = va_to_cpa_and_pte(mem_va, &__cpa, &__pte); in gxio_mpipe_init_edma_ring_aux()
306 params->buffer.kernel.pte = __pte; in gxio_mpipe_init_edma_ring_aux()
/arch/arm64/include/asm/
Dpgtable-types.h39 #define __pte(x) ((pte_t) { (x) } ) macro
65 #define __pte(x) (x) macro
/arch/arc/include/asm/
Dpage.h52 #define __pte(x) ((pte_t) { (x) }) macro
68 #define __pte(x) (x) macro
Dpgtable.h254 #define pte_clear(mm, addr, ptep) set_pte_at(mm, addr, ptep, __pte(0))
279 #define pgoff_to_pte(x) __pte(x)
282 #define pfn_pte(pfn, prot) (__pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot)))
319 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
/arch/m32r/include/asm/
Dpgtable-2level.h65 #define ptep_get_and_clear(mm,addr,xp) __pte(xchg(&(xp)->pte, 0))
70 #define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot))
/arch/alpha/include/asm/
Dpage.h40 #define __pte(x) ((pte_t) { (x) } ) macro
59 #define __pte(x) (x) macro
/arch/openrisc/include/asm/
Dpgtable.h330 pte_t __pte; \
332 pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
333 __pte; \
407 #define pfn_pte(pfn, prot) __pte((((pfn) << PAGE_SHIFT)) | pgprot_val(prot))
445 #define pgoff_to_pte(x) __pte(((x) << 6) | _PAGE_FILE)
/arch/powerpc/include/asm/
Dpgtable.h107 return __pte(((pte_basic_t)(pfn) << PTE_RPN_SHIFT) | in pfn_pte()
162 *ptep = __pte((pte_val(*ptep) & _PAGE_HASHPTE) in __set_pte_at()
177 *ptep = __pte((pte_val(*ptep) & _PAGE_HASHPTE) in __set_pte_at()
198 *ptep = __pte((pte_val(*ptep) & _PAGE_HASHPTE) in __set_pte_at()
Dpgtable-ppc32.h185 *p = __pte((old & ~clr) | set); in pte_update()
216 *p = __pte((old & ~(unsigned long long)clr) | set); in pte_update()
251 return __pte(pte_update(ptep, ~_PAGE_HASHPTE, 0)); in ptep_get_and_clear()
/arch/x86/mm/kmemcheck/
Dkmemcheck.c104 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT)); in kmemcheck_show_addr()
117 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); in kmemcheck_hide_addr()
279 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT)); in kmemcheck_show_pages()
280 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_HIDDEN)); in kmemcheck_show_pages()
305 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); in kmemcheck_hide_pages()
306 set_pte(pte, __pte(pte_val(*pte) | _PAGE_HIDDEN)); in kmemcheck_hide_pages()

1234