Lines Matching refs:flags
114 #define l1e_from_pfn(pfn, flags) \ argument
115 ((l1_pgentry_t) { ((intpte_t)(pfn) << PAGE_SHIFT) | put_pte_flags(flags) })
116 #define l2e_from_pfn(pfn, flags) \ argument
117 ((l2_pgentry_t) { ((intpte_t)(pfn) << PAGE_SHIFT) | put_pte_flags(flags) })
118 #define l3e_from_pfn(pfn, flags) \ argument
119 ((l3_pgentry_t) { ((intpte_t)(pfn) << PAGE_SHIFT) | put_pte_flags(flags) })
120 #define l4e_from_pfn(pfn, flags) \ argument
121 ((l4_pgentry_t) { ((intpte_t)(pfn) << PAGE_SHIFT) | put_pte_flags(flags) })
131 static inline l1_pgentry_t l1e_from_paddr(paddr_t pa, unsigned int flags) in l1e_from_paddr() argument
134 return (l1_pgentry_t) { pa | put_pte_flags(flags) }; in l1e_from_paddr()
136 static inline l2_pgentry_t l2e_from_paddr(paddr_t pa, unsigned int flags) in l2e_from_paddr() argument
139 return (l2_pgentry_t) { pa | put_pte_flags(flags) }; in l2e_from_paddr()
141 static inline l3_pgentry_t l3e_from_paddr(paddr_t pa, unsigned int flags) in l3e_from_paddr() argument
144 return (l3_pgentry_t) { pa | put_pte_flags(flags) }; in l3e_from_paddr()
146 static inline l4_pgentry_t l4e_from_paddr(paddr_t pa, unsigned int flags) in l4e_from_paddr() argument
149 return (l4_pgentry_t) { pa | put_pte_flags(flags) }; in l4e_from_paddr()
160 #define l1e_from_page(page, flags) l1e_from_pfn(__page_to_mfn(page), (flags)) argument
161 #define l2e_from_page(page, flags) l2e_from_pfn(__page_to_mfn(page), (flags)) argument
162 #define l3e_from_page(page, flags) l3e_from_pfn(__page_to_mfn(page), (flags)) argument
163 #define l4e_from_page(page, flags) l4e_from_pfn(__page_to_mfn(page), (flags)) argument
166 #define l1e_add_flags(x, flags) ((x).l1 |= put_pte_flags(flags)) argument
167 #define l2e_add_flags(x, flags) ((x).l2 |= put_pte_flags(flags)) argument
168 #define l3e_add_flags(x, flags) ((x).l3 |= put_pte_flags(flags)) argument
169 #define l4e_add_flags(x, flags) ((x).l4 |= put_pte_flags(flags)) argument
172 #define l1e_remove_flags(x, flags) ((x).l1 &= ~put_pte_flags(flags)) argument
173 #define l2e_remove_flags(x, flags) ((x).l2 &= ~put_pte_flags(flags)) argument
174 #define l3e_remove_flags(x, flags) ((x).l3 &= ~put_pte_flags(flags)) argument
175 #define l4e_remove_flags(x, flags) ((x).l4 &= ~put_pte_flags(flags)) argument
178 #define l1e_flip_flags(x, flags) ((x).l1 ^= put_pte_flags(flags)) argument
181 #define l1e_has_changed(x,y,flags) \ argument
182 ( !!(((x).l1 ^ (y).l1) & ((PADDR_MASK&PAGE_MASK)|put_pte_flags(flags))) )
183 #define l2e_has_changed(x,y,flags) \ argument
184 ( !!(((x).l2 ^ (y).l2) & ((PADDR_MASK&PAGE_MASK)|put_pte_flags(flags))) )
185 #define l3e_has_changed(x,y,flags) \ argument
186 ( !!(((x).l3 ^ (y).l3) & ((PADDR_MASK&PAGE_MASK)|put_pte_flags(flags))) )
187 #define l4e_has_changed(x,y,flags) \ argument
188 ( !!(((x).l4 ^ (y).l4) & ((PADDR_MASK&PAGE_MASK)|put_pte_flags(flags))) )
356 static inline unsigned int pte_flags_to_cacheattr(unsigned int flags) in pte_flags_to_cacheattr() argument
358 return ((flags >> 5) & 4) | ((flags >> 3) & 3); in pte_flags_to_cacheattr()