/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | book3s_64_vio_hv.c | 78 unsigned long tce, unsigned long *ua) in kvmppc_rm_tce_to_ua() argument 80 unsigned long gfn = tce >> PAGE_SHIFT; in kvmppc_rm_tce_to_ua() 88 (tce & ~(PAGE_MASK | TCE_PCI_READ | TCE_PCI_WRITE)); in kvmppc_rm_tce_to_ua() 102 unsigned long tce) in kvmppc_rm_tce_validate() argument 104 unsigned long gpa = tce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in kvmppc_rm_tce_validate() 105 enum dma_data_direction dir = iommu_tce_direction(tce); in kvmppc_rm_tce_validate() 116 if (kvmppc_rm_tce_to_ua(stt->kvm, tce, &ua)) in kvmppc_rm_tce_validate() 168 unsigned long idx, unsigned long tce) in kvmppc_rm_tce_put() argument 180 WARN_ON_ONCE_RM(tce != 0); in kvmppc_rm_tce_put() 185 tbl[idx % TCES_PER_PAGE] = tce; in kvmppc_rm_tce_put() [all …]
|
D | book3s_64_vio.c | 343 static long kvmppc_tce_to_ua(struct kvm *kvm, unsigned long tce, in kvmppc_tce_to_ua() argument 346 unsigned long gfn = tce >> PAGE_SHIFT; in kvmppc_tce_to_ua() 354 (tce & ~(PAGE_MASK | TCE_PCI_READ | TCE_PCI_WRITE)); in kvmppc_tce_to_ua() 360 unsigned long tce) in kvmppc_tce_validate() argument 362 unsigned long gpa = tce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in kvmppc_tce_validate() 363 enum dma_data_direction dir = iommu_tce_direction(tce); in kvmppc_tce_validate() 374 if (kvmppc_tce_to_ua(stt->kvm, tce, &ua)) in kvmppc_tce_validate() 400 unsigned long idx, unsigned long tce) in kvmppc_tce_put() argument 412 if (!tce) in kvmppc_tce_put() 421 tbl[idx % TCES_PER_PAGE] = tce; in kvmppc_tce_put() [all …]
|
D | book3s_pr_papr.c | 289 unsigned long tce = kvmppc_get_gpr(vcpu, 6); in kvmppc_h_pr_put_tce() local 292 rc = kvmppc_h_put_tce(vcpu, liobn, ioba, tce); in kvmppc_h_pr_put_tce() 303 unsigned long tce = kvmppc_get_gpr(vcpu, 6); in kvmppc_h_pr_put_tce_indirect() local 308 tce, npages); in kvmppc_h_pr_put_tce_indirect()
|
/kernel/linux/linux-5.10/drivers/vfio/ |
D | vfio_iommu_spapr_tce.c | 390 unsigned long tce, unsigned long shift, in tce_iommu_prereg_ua_to_hpa() argument 396 mem = mm_iommu_lookup(container->mm, tce, 1ULL << shift); in tce_iommu_prereg_ua_to_hpa() 400 ret = mm_iommu_ua_to_hpa(mem, tce, shift, phpa); in tce_iommu_prereg_ua_to_hpa() 484 static int tce_iommu_use_page(unsigned long tce, unsigned long *hpa) in tce_iommu_use_page() argument 487 enum dma_data_direction direction = iommu_tce_direction(tce); in tce_iommu_use_page() 489 if (pin_user_pages_fast(tce & PAGE_MASK, 1, in tce_iommu_use_page() 501 unsigned long entry, unsigned long tce, unsigned long pages, in tce_iommu_build() argument 509 unsigned long offset = tce & IOMMU_PAGE_MASK(tbl) & ~PAGE_MASK; in tce_iommu_build() 511 ret = tce_iommu_use_page(tce, &hpa); in tce_iommu_build() 529 tce, ret); in tce_iommu_build() [all …]
|
/kernel/linux/linux-5.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 | 13 obj-$(CONFIG_PCI) += pci.o pci-ioda.o npu-dma.o pci-ioda-tce.o
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
D | iommu.c | 158 u64 proto_tce, tce; in tce_build_pSeriesLP() local 169 tce = proto_tce | (rpn & TCE_RPN_MASK) << tceshift; in tce_build_pSeriesLP() 170 rc = plpar_tce_put((u64)liobn, (u64)tcenum << tceshift, tce); in tce_build_pSeriesLP() 183 printk("\ttce val = 0x%llx\n", tce ); in tce_build_pSeriesLP() 653 long *tce, enum dma_data_direction *direction, in tce_exchange_pseries() argument 660 unsigned long newtce = *tce | proto_tce; in tce_exchange_pseries() 670 *tce = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in tce_exchange_pseries()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | iommu.c | 965 enum dma_data_direction iommu_tce_direction(unsigned long tce) in iommu_tce_direction() argument 967 if ((tce & TCE_PCI_READ) && (tce & TCE_PCI_WRITE)) in iommu_tce_direction() 969 else if (tce & TCE_PCI_READ) in iommu_tce_direction() 971 else if (tce & TCE_PCI_WRITE) in iommu_tce_direction()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | iommu.h | 316 extern enum dma_data_direction iommu_tce_direction(unsigned long tce);
|
D | kvm_ppc.h | 186 unsigned long ioba, unsigned long tce); 747 unsigned long ioba, unsigned long tce);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/ |
D | cnic_defs.h | 3311 struct ustorm_fcoe_tce tce; member 3602 struct xstorm_fcoe_tce tce; member
|
/kernel/linux/linux-5.10/Documentation/virt/kvm/ |
D | api.rst | 3682 IBM pSeries (sPAPR) guest starts using them if "hcall-multi-tce" is
|
/kernel/linux/patches/linux-5.10/hispark_taurus_patch/ |
D | hispark_taurus.patch | 57104 -#include <asm/tce.h> 57107 +/* #include <linux/tce.h> */
|
/kernel/linux/patches/linux-4.19/hispark_taurus_patch/ |
D | hispark_taurus.patch | 359434 -#include <asm/tce.h> 359437 +/* #include <linux/tce.h> */
|