Lines Matching refs:ttep

111 #define	TTE_CSZ(ttep)	((ttep)->tte_size)  argument
128 #define TTE_TO_TTEPFN(ttep) \ argument
129 ((((ttep)->tte_pahi << TTE_PASHIFT) | (ttep)->tte_palo) & \
130 TTE_PFNMASK(TTE_CSZ(ttep)))
134 #define TTE_TO_PFN(vaddr, ttep) \ argument
135 (sfmmu_ttetopfn(ttep, vaddr))
222 #define MAKE_TTE_MASK(ttep) \ argument
224 (ttep)->tte_bit.v = 1; \
225 (ttep)->tte_bit.nfo = 1; \
226 (ttep)->tte_bit.pahi = 0xffffff; \
227 (ttep)->tte_bit.palo = 0x7ffff; \
228 (ttep)->tte_bit.ie = 1; \
229 (ttep)->tte_bit.e = 1; \
230 (ttep)->tte_bit.cp = 1; \
231 (ttep)->tte_bit.cv = 1; \
232 (ttep)->tte_bit.p = 1; \
233 (ttep)->tte_bit.x = 1; \
234 (ttep)->tte_bit.w = 1; \
235 (ttep)->tte_bit.sz = 7; \
241 #define TTE_IS_VALID(ttep) ((ttep)->tte_inthi < 0) argument
242 #define TTE_SET_INVALID(ttep) ((ttep)->tte_val = 0) argument
243 #define TTE_IS_8K(ttep) (TTE_CSZ(ttep) == TTE8K) argument
244 #define TTE_IS_WRITABLE(ttep) ((ttep)->tte_wr_perm) argument
245 #define TTE_IS_EXECUTABLE(ttep) ((ttep)->tte_exec_perm) argument
246 #define TTE_IS_PRIVILEGED(ttep) ((ttep)->tte_priv) argument
247 #define TTE_IS_NOSYNC(ttep) ((ttep)->tte_no_sync) argument
248 #define TTE_IS_LOCKED(ttep) ((ttep)->tte_lock) argument
249 #define TTE_IS_SIDEFFECT(ttep) ((ttep)->tte_se) argument
250 #define TTE_IS_NFO(ttep) ((ttep)->tte_nfo) argument
252 #define TTE_IS_REF(ttep) ((ttep)->tte_ref) argument
253 #define TTE_IS_MOD(ttep) ((ttep)->tte_hwwr) argument
254 #define TTE_IS_IE(ttep) ((ttep)->tte_ie) argument
255 #define TTE_SET_SUSPEND(ttep) ((ttep)->tte_suspend = 1) argument
256 #define TTE_CLR_SUSPEND(ttep) ((ttep)->tte_suspend = 0) argument
257 #define TTE_IS_SUSPEND(ttep) ((ttep)->tte_suspend) argument
258 #define TTE_SET_REF(ttep) ((ttep)->tte_ref = 1) argument
259 #define TTE_CLR_REF(ttep) ((ttep)->tte_ref = 0) argument
260 #define TTE_SET_LOCKED(ttep) ((ttep)->tte_lock = 1) argument
261 #define TTE_CLR_LOCKED(ttep) ((ttep)->tte_lock = 0) argument
262 #define TTE_SET_MOD(ttep) ((ttep)->tte_hwwr = 1) argument
263 #define TTE_CLR_MOD(ttep) ((ttep)->tte_hwwr = 0) argument
264 #define TTE_SET_RM(ttep) \ argument
265 (((ttep)->tte_intlo) = \
266 (ttep)->tte_intlo | TTE_HWWR_INT | TTE_REF_INT)
267 #define TTE_CLR_RM(ttep) \ argument
268 (((ttep)->tte_intlo) = \
269 (ttep)->tte_intlo & ~(TTE_HWWR_INT | TTE_REF_INT))
271 #define TTE_SET_WRT(ttep) ((ttep)->tte_wr_perm = 1) argument
272 #define TTE_CLR_WRT(ttep) ((ttep)->tte_wr_perm = 0) argument
273 #define TTE_SET_EXEC(ttep) ((ttep)->tte_exec_perm = 1) argument
274 #define TTE_CLR_EXEC(ttep) ((ttep)->tte_exec_perm = 0) argument
275 #define TTE_SET_PRIV(ttep) ((ttep)->tte_priv = 1) argument
276 #define TTE_CLR_PRIV(ttep) ((ttep)->tte_priv = 0) argument
278 #define TTE_IS_VCACHEABLE(ttep) ((ttep)->tte_cv) argument
279 #define TTE_SET_VCACHEABLE(ttep) ((ttep)->tte_cv = 1) argument
280 #define TTE_CLR_VCACHEABLE(ttep) ((ttep)->tte_cv = 0) argument
281 #define TTE_IS_PCACHEABLE(ttep) ((ttep)->tte_cp) argument
282 #define TTE_SET_PCACHEABLE(ttep) ((ttep)->tte_cp = 1) argument
283 #define TTE_CLR_PCACHEABLE(ttep) ((ttep)->tte_cp = 0) argument
306 #define TTE_SET_LOFLAGS(ttep, flags, newflags) \ argument
307 ((ttep)->tte_intlo = ((ttep)->tte_intlo & ~(flags)) | (newflags))
309 #define TTE_GET_LOFLAGS(ttep, flags) ((ttep)->tte_intlo & flags) argument