Lines Matching full:ua

78 				unsigned long tce, unsigned long *ua)  in kvmppc_rm_tce_to_ua()  argument
87 *ua = __gfn_to_hva_memslot(memslot, gfn) | in kvmppc_rm_tce_to_ua()
107 unsigned long ua = 0; in kvmppc_rm_tce_validate() local
116 if (kvmppc_rm_tce_to_ua(stt->kvm, tce, &ua)) in kvmppc_rm_tce_validate()
124 mem = mm_iommu_lookup_rm(stt->kvm->mm, ua, 1ULL << shift); in kvmppc_rm_tce_validate()
128 if (mm_iommu_ua_to_hpa_rm(mem, ua, shift, &hpa)) in kvmppc_rm_tce_validate()
230 * kvmppc_rm_tce_iommu_do_map() updates the UA cache after in iommu_tce_xchg_no_kill_rm()
231 * calling this so we still get here a valid UA. in iommu_tce_xchg_no_kill_rm()
320 unsigned long entry, unsigned long ua, in kvmppc_rm_tce_iommu_do_map() argument
332 mem = mm_iommu_lookup_rm(kvm->mm, ua, 1ULL << tbl->it_page_shift); in kvmppc_rm_tce_iommu_do_map()
336 if (WARN_ON_ONCE_RM(mm_iommu_ua_to_hpa_rm(mem, ua, tbl->it_page_shift, in kvmppc_rm_tce_iommu_do_map()
356 *pua = cpu_to_be64(ua); in kvmppc_rm_tce_iommu_do_map()
363 unsigned long entry, unsigned long ua, in kvmppc_rm_tce_iommu_map() argument
374 io_entry + i, ua + pgoff, dir); in kvmppc_rm_tce_iommu_map()
388 unsigned long entry, ua = 0; in kvmppc_rm_h_put_tce() local
411 if ((dir != DMA_NONE) && kvmppc_rm_tce_to_ua(vcpu->kvm, tce, &ua)) in kvmppc_rm_h_put_tce()
422 stit->tbl, entry, ua, dir); in kvmppc_rm_h_put_tce()
438 unsigned long ua, unsigned long *phpa) in kvmppc_rm_ua_to_hpa() argument
456 ptep = find_kvm_host_pte(vcpu->kvm, mmu_seq, ua, &shift); in kvmppc_rm_ua_to_hpa()
474 *phpa = (pte_pfn(pte) << PAGE_SHIFT) | (ua & ((1ULL << shift) - 1)) | in kvmppc_rm_ua_to_hpa()
475 (ua & ~PAGE_MASK); in kvmppc_rm_ua_to_hpa()
487 unsigned long tces, entry, ua = 0; in kvmppc_rm_h_put_tce_indirect() local
529 if (kvmppc_rm_tce_to_ua(vcpu->kvm, tce_list, &ua)) in kvmppc_rm_h_put_tce_indirect()
532 mem = mm_iommu_lookup_rm(vcpu->kvm->mm, ua, IOMMU_PAGE_SIZE_4K); in kvmppc_rm_h_put_tce_indirect()
534 prereg = mm_iommu_ua_to_hpa_rm(mem, ua, in kvmppc_rm_h_put_tce_indirect()
545 if (kvmppc_rm_tce_to_ua(vcpu->kvm, tce_list, &ua)) in kvmppc_rm_h_put_tce_indirect()
549 if (kvmppc_rm_ua_to_hpa(vcpu, mmu_seq, ua, &tces)) { in kvmppc_rm_h_put_tce_indirect()
566 ua = 0; in kvmppc_rm_h_put_tce_indirect()
567 if (kvmppc_rm_tce_to_ua(vcpu->kvm, tce, &ua)) { in kvmppc_rm_h_put_tce_indirect()
574 stit->tbl, entry + i, ua, in kvmppc_rm_h_put_tce_indirect()