Lines Matching refs:ua
168 unsigned long *ua, unsigned long **prmap) in kvmppc_gpa_to_ua() argument
177 *ua = __gfn_to_hva_memslot(memslot, gfn) | in kvmppc_gpa_to_ua()
249 unsigned long entry, unsigned long ua, in kvmppc_rm_tce_iommu_map() argument
261 mem = mm_iommu_lookup_rm(kvm->mm, ua, 1ULL << tbl->it_page_shift); in kvmppc_rm_tce_iommu_map()
265 if (WARN_ON_ONCE_RM(mm_iommu_ua_to_hpa_rm(mem, ua, tbl->it_page_shift, in kvmppc_rm_tce_iommu_map()
289 *pua = ua; in kvmppc_rm_tce_iommu_map()
300 unsigned long entry, ua = 0; in kvmppc_rm_h_put_tce() local
324 tce & ~(TCE_PCI_READ | TCE_PCI_WRITE), &ua, NULL)) in kvmppc_rm_h_put_tce()
335 stit->tbl, entry, ua, dir); in kvmppc_rm_h_put_tce()
353 unsigned long ua, unsigned long *phpa) in kvmppc_rm_ua_to_hpa() argument
367 ptep = __find_linux_pte(vcpu->arch.pgdir, ua, NULL, &shift); in kvmppc_rm_ua_to_hpa()
382 *phpa = (pte_pfn(pte) << PAGE_SHIFT) | (ua & ((1ULL << shift) - 1)) | in kvmppc_rm_ua_to_hpa()
383 (ua & ~PAGE_MASK); in kvmppc_rm_ua_to_hpa()
394 unsigned long tces, entry, ua = 0; in kvmppc_rm_h_put_tce_indirect() local
430 if (kvmppc_gpa_to_ua(vcpu->kvm, tce_list, &ua, NULL)) in kvmppc_rm_h_put_tce_indirect()
433 mem = mm_iommu_lookup_rm(vcpu->kvm->mm, ua, IOMMU_PAGE_SIZE_4K); in kvmppc_rm_h_put_tce_indirect()
435 prereg = mm_iommu_ua_to_hpa_rm(mem, ua, in kvmppc_rm_h_put_tce_indirect()
446 if (kvmppc_gpa_to_ua(vcpu->kvm, tce_list, &ua, &rmap)) in kvmppc_rm_h_put_tce_indirect()
462 if (kvmppc_rm_ua_to_hpa(vcpu, ua, &tces)) { in kvmppc_rm_h_put_tce_indirect()
475 ua = 0; in kvmppc_rm_h_put_tce_indirect()
478 &ua, NULL)) { in kvmppc_rm_h_put_tce_indirect()
485 stit->tbl, entry + i, ua, in kvmppc_rm_h_put_tce_indirect()