Lines Matching refs:rmapp

766 			      unsigned long *rmapp, unsigned long gfn)  in kvmppc_unmap_hpte()  argument
776 *rmapp &= ~(KVMPPC_RMAP_PRESENT | KVMPPC_RMAP_INDEX); in kvmppc_unmap_hpte()
783 *rmapp = (*rmapp & ~KVMPPC_RMAP_INDEX) | j; in kvmppc_unmap_hpte()
796 *rmapp |= rcbits << KVMPPC_RMAP_RC_SHIFT; in kvmppc_unmap_hpte()
811 unsigned long *rmapp; in kvm_unmap_rmapp() local
813 rmapp = &memslot->arch.rmap[gfn - memslot->base_gfn]; in kvm_unmap_rmapp()
815 lock_rmap(rmapp); in kvm_unmap_rmapp()
816 if (!(*rmapp & KVMPPC_RMAP_PRESENT)) { in kvm_unmap_rmapp()
817 unlock_rmap(rmapp); in kvm_unmap_rmapp()
826 i = *rmapp & KVMPPC_RMAP_INDEX; in kvm_unmap_rmapp()
830 unlock_rmap(rmapp); in kvm_unmap_rmapp()
836 kvmppc_unmap_hpte(kvm, i, memslot, rmapp, gfn); in kvm_unmap_rmapp()
837 unlock_rmap(rmapp); in kvm_unmap_rmapp()
862 unsigned long *rmapp; in kvmppc_core_flush_memslot_hv() local
865 rmapp = memslot->arch.rmap; in kvmppc_core_flush_memslot_hv()
878 if (*rmapp & KVMPPC_RMAP_PRESENT) in kvmppc_core_flush_memslot_hv()
880 ++rmapp; in kvmppc_core_flush_memslot_hv()
891 unsigned long *rmapp; in kvm_age_rmapp() local
893 rmapp = &memslot->arch.rmap[gfn - memslot->base_gfn]; in kvm_age_rmapp()
895 lock_rmap(rmapp); in kvm_age_rmapp()
896 if (*rmapp & KVMPPC_RMAP_REFERENCED) { in kvm_age_rmapp()
897 *rmapp &= ~KVMPPC_RMAP_REFERENCED; in kvm_age_rmapp()
900 if (!(*rmapp & KVMPPC_RMAP_PRESENT)) { in kvm_age_rmapp()
901 unlock_rmap(rmapp); in kvm_age_rmapp()
905 i = head = *rmapp & KVMPPC_RMAP_INDEX; in kvm_age_rmapp()
916 unlock_rmap(rmapp); in kvm_age_rmapp()
935 unlock_rmap(rmapp); in kvm_age_rmapp()
962 unsigned long *rmapp; in kvm_test_age_rmapp() local
964 rmapp = &memslot->arch.rmap[gfn - memslot->base_gfn]; in kvm_test_age_rmapp()
965 if (*rmapp & KVMPPC_RMAP_REFERENCED) in kvm_test_age_rmapp()
968 lock_rmap(rmapp); in kvm_test_age_rmapp()
969 if (*rmapp & KVMPPC_RMAP_REFERENCED) in kvm_test_age_rmapp()
972 if (*rmapp & KVMPPC_RMAP_PRESENT) { in kvm_test_age_rmapp()
973 i = head = *rmapp & KVMPPC_RMAP_INDEX; in kvm_test_age_rmapp()
984 unlock_rmap(rmapp); in kvm_test_age_rmapp()
1019 static int kvm_test_clear_dirty_npages(struct kvm *kvm, unsigned long *rmapp) in kvm_test_clear_dirty_npages() argument
1029 lock_rmap(rmapp); in kvm_test_clear_dirty_npages()
1030 if (!(*rmapp & KVMPPC_RMAP_PRESENT)) { in kvm_test_clear_dirty_npages()
1031 unlock_rmap(rmapp); in kvm_test_clear_dirty_npages()
1035 i = head = *rmapp & KVMPPC_RMAP_INDEX; in kvm_test_clear_dirty_npages()
1062 unlock_rmap(rmapp); in kvm_test_clear_dirty_npages()
1096 unlock_rmap(rmapp); in kvm_test_clear_dirty_npages()
1122 unsigned long *rmapp; in kvmppc_hv_get_dirty_log_hpt() local
1125 rmapp = memslot->arch.rmap; in kvmppc_hv_get_dirty_log_hpt()
1127 int npages = kvm_test_clear_dirty_npages(kvm, rmapp); in kvmppc_hv_get_dirty_log_hpt()
1135 ++rmapp; in kvmppc_hv_get_dirty_log_hpt()
1267 unsigned long *rmapp; in resize_hpt_rehash_hpte() local
1268 rmapp = &memslot->arch.rmap[gfn - memslot->base_gfn]; in resize_hpt_rehash_hpte()
1270 lock_rmap(rmapp); in resize_hpt_rehash_hpte()
1271 kvmppc_unmap_hpte(kvm, idx, memslot, rmapp, gfn); in resize_hpt_rehash_hpte()
1272 unlock_rmap(rmapp); in resize_hpt_rehash_hpte()