Home
last modified time | relevance | path

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

/linux/arch/powerpc/kvm/
A Dbook3s_64_vio_hv.c78 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()
102 unsigned long tce) in kvmppc_rm_tce_validate() argument
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()
386 unsigned long ioba, unsigned long tce) in kvmppc_rm_h_put_tce() argument
405 ret = kvmppc_rm_tce_validate(stt, tce); in kvmppc_rm_h_put_tce()
409 dir = iommu_tce_direction(tce); in kvmppc_rm_h_put_tce()
431 kvmppc_rm_tce_put(stt, entry, tce); in kvmppc_rm_h_put_tce()
[all …]
A Dbook3s_64_vio.c359 unsigned long tce) in kvmppc_tce_validate() argument
411 if (!tce) in kvmppc_tce_put()
420 tbl[idx % TCES_PER_PAGE] = tce; in kvmppc_tce_put()
576 dir = iommu_tce_direction(tce); in kvmppc_h_put_tce()
601 kvmppc_tce_put(stt, entry, tce); in kvmppc_h_put_tce()
618 u64 tce; in kvmppc_h_put_tce_indirect() local
648 if (get_user(tce, tces + i)) { in kvmppc_h_put_tce_indirect()
652 tce = be64_to_cpu(tce); in kvmppc_h_put_tce_indirect()
670 if (get_user(tce, tces + i)) { in kvmppc_h_put_tce_indirect()
674 tce = be64_to_cpu(tce); in kvmppc_h_put_tce_indirect()
[all …]
A Dbook3s_pr_papr.c289 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()
/linux/drivers/vfio/
A Dvfio_iommu_spapr_tce.c391 unsigned long tce, unsigned long shift, in tce_iommu_prereg_ua_to_hpa() argument
401 ret = mm_iommu_ua_to_hpa(mem, tce, shift, phpa); in tce_iommu_prereg_ua_to_hpa()
490 if (pin_user_pages_fast(tce & PAGE_MASK, 1, in tce_iommu_use_page()
512 ret = tce_iommu_use_page(tce, &hpa); in tce_iommu_build()
530 tce, ret); in tce_iommu_build()
537 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build()
562 tce, tbl->it_page_shift, &hpa, &mem); in tce_iommu_build_v2()
573 hpa |= tce & IOMMU_PAGE_MASK(tbl) & ~PAGE_MASK; in tce_iommu_build_v2()
587 tce, ret); in tce_iommu_build_v2()
594 *pua = cpu_to_be64(tce); in tce_iommu_build_v2()
[all …]
/linux/arch/powerpc/platforms/powernv/
A 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()
A DMakefile13 obj-$(CONFIG_PCI) += pci.o pci-ioda.o pci-ioda-tce.o
/linux/arch/powerpc/platforms/pseries/
A Diommu.c163 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
676 unsigned long newtce = *tce | proto_tce; in tce_exchange_pseries()
686 *tce = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in tce_exchange_pseries()
/linux/arch/powerpc/kernel/
A Diommu.c1005 enum dma_data_direction iommu_tce_direction(unsigned long tce) in iommu_tce_direction() argument
1007 if ((tce & TCE_PCI_READ) && (tce & TCE_PCI_WRITE)) in iommu_tce_direction()
1009 else if (tce & TCE_PCI_READ) in iommu_tce_direction()
1011 else if (tce & TCE_PCI_WRITE) in iommu_tce_direction()
/linux/arch/powerpc/include/asm/
A Diommu.h311 extern enum dma_data_direction iommu_tce_direction(unsigned long tce);
A Dkvm_ppc.h187 unsigned long ioba, unsigned long tce);
748 unsigned long ioba, unsigned long tce);
/linux/drivers/net/ethernet/broadcom/
A Dcnic_defs.h3311 struct ustorm_fcoe_tce tce; member
3602 struct xstorm_fcoe_tce tce; member
/linux/Documentation/virt/kvm/
A Dapi.rst7439 IBM pSeries (sPAPR) guest starts using them if "hcall-multi-tce" is

Completed in 62 milliseconds