Lines Matching refs:pte
232 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read() argument
233 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() argument
234 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() argument
235 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() argument
236 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() argument
238 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
240 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect()
241 return pte; in pte_wrprotect()
244 static inline pte_t pte_rdprotect(pte_t pte) in pte_rdprotect() argument
246 pte_val(pte) &= ~(_PAGE_READ); in pte_rdprotect()
247 return pte; in pte_rdprotect()
250 static inline pte_t pte_exprotect(pte_t pte) in pte_exprotect() argument
252 pte_val(pte) &= ~(_PAGE_EXEC); in pte_exprotect()
253 return pte; in pte_exprotect()
256 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
258 pte_val(pte) &= ~(_PAGE_DIRTY); in pte_mkclean()
259 return pte; in pte_mkclean()
262 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
264 pte_val(pte) &= ~(_PAGE_ACCESSED); in pte_mkold()
265 return pte; in pte_mkold()
268 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
270 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
271 return pte; in pte_mkwrite()
274 static inline pte_t pte_mkread(pte_t pte) in pte_mkread() argument
276 pte_val(pte) |= _PAGE_READ; in pte_mkread()
277 return pte; in pte_mkread()
280 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec() argument
282 pte_val(pte) |= _PAGE_EXEC; in pte_mkexec()
283 return pte; in pte_mkexec()
286 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
288 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
289 return pte; in pte_mkdirty()
292 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
294 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
295 return pte; in pte_mkyoung()
311 pte_t pte; in __mk_pte() local
313 pte_val(pte) = __pa(page) | pgprot_val(pgprot); in __mk_pte()
314 return pte; in __mk_pte()
327 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
329 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
330 return pte; in pte_modify()
341 static inline unsigned long __pte_page(pte_t pte) in __pte_page() argument
344 return (unsigned long)__va(pte_val(pte) & PAGE_MASK); in __pte_page()
347 #define pte_pagenr(pte) ((__pte_page(pte) - PAGE_OFFSET) >> PAGE_SHIFT) argument
352 #define pte_page(pte) (mem_map+pte_pagenr(pte)) argument
374 #define pte_pfn(x) ((unsigned long)(((x).pte)) >> PAGE_SHIFT)
389 unsigned long address, pte_t *pte) in update_tlb() argument
394 unsigned long address, pte_t *pte);
397 unsigned long address, pte_t *pte) in update_mmu_cache() argument
399 update_tlb(vma, address, pte); in update_mmu_cache()
400 update_cache(vma, address, pte); in update_mmu_cache()
412 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument