Lines Matching refs:pte
204 static inline int pte_none(pte_t pte) in pte_none() argument
206 return !(pte_val(pte) & ~_PAGE_GLOBAL); in pte_none()
209 static inline int pte_present(pte_t pte) in pte_present() argument
211 return pte_val(pte) & _PAGE_PRESENT; in pte_present()
312 static inline int pte_read(pte_t pte) in pte_read() argument
314 return pte_val(pte) & _PAGE_READ; in pte_read()
317 static inline int pte_write(pte_t pte) in pte_write() argument
319 return pte_val(pte) & _PAGE_WRITE; in pte_write()
322 static inline int pte_dirty(pte_t pte) in pte_dirty() argument
324 return pte_val(pte) & _PAGE_MODIFIED; in pte_dirty()
327 static inline int pte_young(pte_t pte) in pte_young() argument
329 return pte_val(pte) & _PAGE_ACCESSED; in pte_young()
332 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
334 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); in pte_wrprotect()
335 return pte; in pte_wrprotect()
338 static inline pte_t pte_rdprotect(pte_t pte) in pte_rdprotect() argument
340 pte_val(pte) &= ~(_PAGE_READ | _PAGE_SILENT_READ); in pte_rdprotect()
341 return pte; in pte_rdprotect()
344 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
346 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_SILENT_WRITE); in pte_mkclean()
347 return pte; in pte_mkclean()
350 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
352 pte_val(pte) &= ~(_PAGE_ACCESSED|_PAGE_SILENT_READ); in pte_mkold()
353 return pte; in pte_mkold()
356 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
358 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
359 if (pte_val(pte) & _PAGE_MODIFIED) in pte_mkwrite()
360 pte_val(pte) |= _PAGE_SILENT_WRITE; in pte_mkwrite()
361 return pte; in pte_mkwrite()
364 static inline pte_t pte_mkread(pte_t pte) in pte_mkread() argument
366 pte_val(pte) |= _PAGE_READ; in pte_mkread()
367 if (pte_val(pte) & _PAGE_ACCESSED) in pte_mkread()
368 pte_val(pte) |= _PAGE_SILENT_READ; in pte_mkread()
369 return pte; in pte_mkread()
372 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
374 pte_val(pte) |= _PAGE_MODIFIED; in pte_mkdirty()
375 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
376 pte_val(pte) |= _PAGE_SILENT_WRITE; in pte_mkdirty()
377 return pte; in pte_mkdirty()
380 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
382 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
383 if (pte_val(pte) & _PAGE_READ) in pte_mkyoung()
384 pte_val(pte) |= _PAGE_SILENT_READ; in pte_mkyoung()
385 return pte; in pte_mkyoung()
431 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
433 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
473 pte_t pte);
475 pte_t pte);
478 unsigned long address, pte_t pte) in update_mmu_cache() argument
480 __update_tlb(vma, address, pte); in update_mmu_cache()
481 __update_cache(vma, address, pte); in update_mmu_cache()
489 { pte_t pte; pte_val(pte) = (type << 32) | (offset << 40); return pte; } in mk_swap_pte() local
494 #define pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument