Lines Matching refs:pai
73 int pai;
85 pai = ppn_to_pai(pn);
87 if (!IS_MANAGED_PAGE(pai)) {
96 LOCK_PVH(pai);
100 current = pmap_phys_attributes[pai] & PHYS_CACHEABILITY_MASK;
101 pmap_phys_attributes[pai] &= ~PHYS_CACHEABILITY_MASK;
102 pmap_phys_attributes[pai] |= template;
104 UNLOCK_PVH(pai);
137 int pai;
139 pai = ppn_to_pai(pn);
141 if (!IS_MANAGED_PAGE(pai))
144 if (pmap_phys_attributes[pai] & PHYS_NOENCRYPT)
154 int pai;
156 pai = ppn_to_pai(pn);
158 if (IS_MANAGED_PAGE(pai)) {
159 LOCK_PVH(pai);
161 pmap_phys_attributes[pai] |= PHYS_NOENCRYPT;
163 UNLOCK_PVH(pai);
171 int pai;
173 pai = ppn_to_pai(pn);
175 if (IS_MANAGED_PAGE(pai)) {
180 if (pmap_phys_attributes[pai] & PHYS_NOENCRYPT) {
181 LOCK_PVH(pai);
183 pmap_phys_attributes[pai] &= ~PHYS_NOENCRYPT;
185 UNLOCK_PVH(pai);
200 int pai;
202 pai = ppn_to_pai(pn);
204 if (IS_MANAGED_PAGE(pai)) {
205 LOCK_PVH(pai);
214 int pai;
216 pai = ppn_to_pai(pn);
218 if (IS_MANAGED_PAGE(pai)) {
219 UNLOCK_PVH(pai);
390 int pai;
397 pai = ppn_to_pai(pn);
399 if (!IS_MANAGED_PAGE(pai)) {
404 LOCK_PVH(pai);
405 pmap_phys_attributes[pai] |= bits;
406 UNLOCK_PVH(pai);