Home
last modified time | relevance | path

Searched refs:tce (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/arch/powerpc/kvm/
Dbook3s_64_vio.c354 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 …]
Dbook3s_pr_papr.c305 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.6.21/drivers/vfio/
Dvfio_iommu_spapr_tce.c391 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-6.6.21/arch/powerpc/platforms/powernv/
Dpci-ioda-tce.c92 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()
DMakefile7 KASAN_SANITIZE_pci-ioda-tce.o := n
22 obj-$(CONFIG_PCI) += pci.o pci-ioda.o pci-ioda-tce.o
/linux-6.6.21/arch/powerpc/platforms/pseries/
Diommu.c174 u64 proto_tce, tce; in tce_build_pSeriesLP() local
185 tce = proto_tce | rpn << tceshift; in tce_build_pSeriesLP()
186 rc = plpar_tce_put((u64)liobn, (u64)tcenum << tceshift, tce); in tce_build_pSeriesLP()
199 printk("\ttce val = 0x%llx\n", tce ); in tce_build_pSeriesLP()
665 long *tce, enum dma_data_direction *direction) in tce_exchange_pseries() argument
671 unsigned long newtce = *tce | proto_tce; in tce_exchange_pseries()
681 *tce = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in tce_exchange_pseries()
/linux-6.6.21/arch/powerpc/kernel/
Diommu.c1022 enum dma_data_direction iommu_tce_direction(unsigned long tce) in iommu_tce_direction() argument
1024 if ((tce & TCE_PCI_READ) && (tce & TCE_PCI_WRITE)) in iommu_tce_direction()
1026 else if (tce & TCE_PCI_READ) in iommu_tce_direction()
1028 else if (tce & TCE_PCI_WRITE) in iommu_tce_direction()
/linux-6.6.21/arch/powerpc/include/asm/
Diommu.h307 extern enum dma_data_direction iommu_tce_direction(unsigned long tce);
Dkvm_ppc.h191 unsigned long ioba, unsigned long tce);
778 unsigned long ioba, unsigned long tce);
/linux-6.6.21/tools/arch/x86/kcpuid/
Dcpuid.csv370 0x80000001, 0, ECX, 17, tce, Translation cache extension
/linux-6.6.21/drivers/net/ethernet/broadcom/
Dcnic_defs.h3311 struct ustorm_fcoe_tce tce; member
3602 struct xstorm_fcoe_tce tce; member
/linux-6.6.21/Documentation/virt/kvm/
Dapi.rst8314 IBM pSeries (sPAPR) guest starts using them if "hcall-multi-tce" is