| /linux-6.15/arch/powerpc/kvm/ |
| H A D | book3s_64_vio.c | 369 unsigned long tce) in kvmppc_tce_validate() argument 421 if (!tce) in kvmppc_tce_put() 430 tbl[idx % TCES_PER_PAGE] = tce; in kvmppc_tce_put() 596 dir = iommu_tce_direction(tce); in kvmppc_h_put_tce() 620 kvmppc_tce_put(stt, entry, tce); in kvmppc_h_put_tce() 637 u64 tce; in kvmppc_h_put_tce_indirect() local 667 if (get_user(tce, tces + i)) { in kvmppc_h_put_tce_indirect() 671 tce = be64_to_cpu(tce); in kvmppc_h_put_tce_indirect() 689 if (get_user(tce, tces + i)) { in kvmppc_h_put_tce_indirect() 693 tce = be64_to_cpu(tce); in kvmppc_h_put_tce_indirect() [all …]
|
| H A 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-6.15/drivers/vfio/ |
| H A D | vfio_iommu_spapr_tce.c | 390 unsigned long tce, unsigned long shift, in tce_iommu_prereg_ua_to_hpa() argument 400 ret = mm_iommu_ua_to_hpa(mem, tce, shift, phpa); in tce_iommu_prereg_ua_to_hpa() 489 if (pin_user_pages_fast(tce & PAGE_MASK, 1, in tce_iommu_use_page() 511 ret = tce_iommu_use_page(tce, &hpa); in tce_iommu_build() 529 tce, ret); in tce_iommu_build() 536 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build() 561 tce, tbl->it_page_shift, &hpa, &mem); in tce_iommu_build_v2() 572 hpa |= tce & IOMMU_PAGE_MASK(tbl) & ~PAGE_MASK; in tce_iommu_build_v2() 586 tce, ret); in tce_iommu_build_v2() 593 *pua = cpu_to_be64(tce); in tce_iommu_build_v2() [all …]
|
| /linux-6.15/arch/powerpc/platforms/powernv/ |
| H A 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()
|
| H A D | Makefile | 7 KASAN_SANITIZE_pci-ioda-tce.o := n 22 obj-$(CONFIG_PCI) += pci.o pci-ioda.o pci-ioda-tce.o
|
| /linux-6.15/arch/powerpc/kernel/ |
| H A D | iommu.c | 1040 enum dma_data_direction iommu_tce_direction(unsigned long tce) in iommu_tce_direction() argument 1042 if ((tce & TCE_PCI_READ) && (tce & TCE_PCI_WRITE)) in iommu_tce_direction() 1044 else if (tce & TCE_PCI_READ) in iommu_tce_direction() 1046 else if (tce & TCE_PCI_WRITE) in iommu_tce_direction()
|
| /linux-6.15/arch/powerpc/platforms/pseries/ |
| H A D | iommu.c | 213 u64 proto_tce, tce; in tce_build_pSeriesLP() local 224 tce = proto_tce | rpn << tceshift; in tce_build_pSeriesLP() 225 rc = plpar_tce_put((u64)liobn, (u64)tcenum << tceshift, tce); in tce_build_pSeriesLP() 238 printk("\ttce val = 0x%llx\n", tce ); in tce_build_pSeriesLP() 704 long *tce, enum dma_data_direction *direction) in tce_exchange_pseries() argument 710 unsigned long newtce = *tce | proto_tce; in tce_exchange_pseries() 720 *tce = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in tce_exchange_pseries()
|
| /linux-6.15/arch/powerpc/include/asm/ |
| H A D | iommu.h | 317 extern enum dma_data_direction iommu_tce_direction(unsigned long tce);
|
| H A D | kvm_ppc.h | 191 unsigned long ioba, unsigned long tce); 813 unsigned long ioba, unsigned long tce);
|
| /linux-6.15/drivers/net/ethernet/broadcom/ |
| H A D | cnic_defs.h | 3311 struct ustorm_fcoe_tce tce; member 3602 struct xstorm_fcoe_tce tce; member
|
| /linux-6.15/tools/arch/x86/kcpuid/ |
| H A D | cpuid.csv | 659 0x80000001, 0, ecx, 17, tce , Translation cache extension
|
| /linux-6.15/Documentation/virt/kvm/ |
| H A D | api.rst | 8890 IBM pSeries (sPAPR) guest starts using them if "hcall-multi-tce" is
|