/linux-5.19.10/arch/powerpc/kvm/ |
D | book3s_64_vio.c | 354 static long kvmppc_tce_to_ua(struct kvm *kvm, unsigned long tce, in kvmppc_tce_to_ua() argument 357 unsigned long gfn = tce >> PAGE_SHIFT; in kvmppc_tce_to_ua() 365 (tce & ~(PAGE_MASK | TCE_PCI_READ | TCE_PCI_WRITE)); in kvmppc_tce_to_ua() 371 unsigned long tce) in kvmppc_tce_validate() argument 373 unsigned long gpa = tce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in kvmppc_tce_validate() 374 enum dma_data_direction dir = iommu_tce_direction(tce); in kvmppc_tce_validate() 385 if (kvmppc_tce_to_ua(stt->kvm, tce, &ua)) in kvmppc_tce_validate() 411 unsigned long idx, unsigned long tce) in kvmppc_tce_put() argument 423 if (!tce) in kvmppc_tce_put() 432 tbl[idx % TCES_PER_PAGE] = tce; in kvmppc_tce_put() [all …]
|
D | book3s_pr_papr.c | 305 unsigned long tce = kvmppc_get_gpr(vcpu, 6); in kvmppc_h_pr_put_tce() local 308 rc = kvmppc_h_put_tce(vcpu, liobn, ioba, tce); in kvmppc_h_pr_put_tce() 319 unsigned long tce = kvmppc_get_gpr(vcpu, 6); in kvmppc_h_pr_put_tce_indirect() local 324 tce, npages); in kvmppc_h_pr_put_tce_indirect()
|
/linux-5.19.10/drivers/vfio/ |
D | vfio_iommu_spapr_tce.c | 391 unsigned long tce, unsigned long shift, in tce_iommu_prereg_ua_to_hpa() argument 397 mem = mm_iommu_lookup(container->mm, tce, 1ULL << shift); in tce_iommu_prereg_ua_to_hpa() 401 ret = mm_iommu_ua_to_hpa(mem, tce, shift, phpa); in tce_iommu_prereg_ua_to_hpa() 485 static int tce_iommu_use_page(unsigned long tce, unsigned long *hpa) in tce_iommu_use_page() argument 488 enum dma_data_direction direction = iommu_tce_direction(tce); in tce_iommu_use_page() 490 if (pin_user_pages_fast(tce & PAGE_MASK, 1, in tce_iommu_use_page() 502 unsigned long entry, unsigned long tce, unsigned long pages, in tce_iommu_build() argument 510 unsigned long offset = tce & IOMMU_PAGE_MASK(tbl) & ~PAGE_MASK; in tce_iommu_build() 512 ret = tce_iommu_use_page(tce, &hpa); in tce_iommu_build() 530 tce, ret); in tce_iommu_build() [all …]
|
/linux-5.19.10/arch/powerpc/platforms/powernv/ |
D | pci-ioda-tce.c | 92 unsigned long oldtce, tce = be64_to_cpu(READ_ONCE(tmp[n])); in pnv_tce() local 94 if (!tce) { in pnv_tce() 105 tce = __pa(tmp2) | TCE_PCI_READ | TCE_PCI_WRITE; in pnv_tce() 107 cpu_to_be64(tce))); in pnv_tce() 111 tce = oldtce; in pnv_tce() 115 tmp = __va(tce & ~(TCE_PCI_READ | TCE_PCI_WRITE)); in pnv_tce()
|
D | Makefile | 7 KASAN_SANITIZE_pci-ioda-tce.o := n 22 obj-$(CONFIG_PCI) += pci.o pci-ioda.o pci-ioda-tce.o
|
/linux-5.19.10/arch/powerpc/platforms/pseries/ |
D | iommu.c | 163 u64 proto_tce, tce; in tce_build_pSeriesLP() local 174 tce = proto_tce | rpn << tceshift; in tce_build_pSeriesLP() 175 rc = plpar_tce_put((u64)liobn, (u64)tcenum << tceshift, tce); in tce_build_pSeriesLP() 188 printk("\ttce val = 0x%llx\n", tce ); in tce_build_pSeriesLP() 669 long *tce, enum dma_data_direction *direction) in tce_exchange_pseries() argument 675 unsigned long newtce = *tce | proto_tce; in tce_exchange_pseries() 685 *tce = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in tce_exchange_pseries()
|
/linux-5.19.10/arch/powerpc/kernel/ |
D | iommu.c | 1009 enum dma_data_direction iommu_tce_direction(unsigned long tce) in iommu_tce_direction() argument 1011 if ((tce & TCE_PCI_READ) && (tce & TCE_PCI_WRITE)) in iommu_tce_direction() 1013 else if (tce & TCE_PCI_READ) in iommu_tce_direction() 1015 else if (tce & TCE_PCI_WRITE) in iommu_tce_direction()
|
/linux-5.19.10/arch/powerpc/include/asm/ |
D | iommu.h | 309 extern enum dma_data_direction iommu_tce_direction(unsigned long tce);
|
D | kvm_ppc.h | 185 unsigned long ioba, unsigned long tce); 757 unsigned long ioba, unsigned long tce);
|
/linux-5.19.10/Documentation/admin-guide/pm/ |
D | amd-pstate.rst | 296 …extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_cor…
|
/linux-5.19.10/drivers/net/ethernet/broadcom/ |
D | cnic_defs.h | 3311 struct ustorm_fcoe_tce tce; member 3602 struct xstorm_fcoe_tce tce; member
|
/linux-5.19.10/Documentation/virt/kvm/ |
D | api.rst | 7887 IBM pSeries (sPAPR) guest starts using them if "hcall-multi-tce" is
|