Lines Matching refs:tce
32 #include <asm/tce.h>
324 ret = anon_inode_getfd("kvm-spapr-tce", &kvm_spapr_tce_fops,
343 static long kvmppc_tce_to_ua(struct kvm *kvm, unsigned long tce,
346 unsigned long gfn = tce >> PAGE_SHIFT;
354 (tce & ~(PAGE_MASK | TCE_PCI_READ | TCE_PCI_WRITE));
360 unsigned long tce)
362 unsigned long gpa = tce & ~(TCE_PCI_READ | TCE_PCI_WRITE);
363 enum dma_data_direction dir = iommu_tce_direction(tce);
374 if (kvmppc_tce_to_ua(stt->kvm, tce, &ua))
400 unsigned long idx, unsigned long tce)
412 if (!tce)
421 tbl[idx % TCES_PER_PAGE] = tce;
562 unsigned long ioba, unsigned long tce)
570 /* udbg_printf("H_PUT_TCE(): liobn=0x%lx ioba=0x%lx, tce=0x%lx\n", */
571 /* liobn, ioba, tce); */
583 ret = kvmppc_tce_validate(stt, tce);
587 dir = iommu_tce_direction(tce);
589 if ((dir != DMA_NONE) && kvmppc_tce_to_ua(vcpu->kvm, tce, &ua)) {
611 kvmppc_tce_put(stt, entry, tce);
628 u64 tce;
658 if (get_user(tce, tces + i)) {
662 tce = be64_to_cpu(tce);
664 ret = kvmppc_tce_validate(stt, tce);
680 if (get_user(tce, tces + i)) {
684 tce = be64_to_cpu(tce);
686 if (kvmppc_tce_to_ua(vcpu->kvm, tce, &ua)) {
694 iommu_tce_direction(tce));
703 kvmppc_tce_put(stt, entry + i, tce);