Searched refs:tce (Results 1 - 13 of 13) sorted by relevance

/linux-master/arch/powerpc/kvm/
H A Dbook3s_64_vio.c33 #include <asm/tce.h>
336 ret = anon_inode_getfd("kvm-spapr-tce", &kvm_spapr_tce_fops,
355 static long kvmppc_tce_to_ua(struct kvm *kvm, unsigned long tce, argument
358 unsigned long gfn = tce >> PAGE_SHIFT;
366 (tce & ~(PAGE_MASK | TCE_PCI_READ | TCE_PCI_WRITE));
372 unsigned long tce)
374 unsigned long gpa = tce & ~(TCE_PCI_READ | TCE_PCI_WRITE);
375 enum dma_data_direction dir = iommu_tce_direction(tce);
386 if (kvmppc_tce_to_ua(stt->kvm, tce, &ua))
412 unsigned long idx, unsigned long tce)
371 kvmppc_tce_validate(struct kvmppc_spapr_tce_table *stt, unsigned long tce) argument
411 kvmppc_tce_put(struct kvmppc_spapr_tce_table *stt, unsigned long idx, unsigned long tce) argument
573 kvmppc_h_put_tce(struct kvm_vcpu *vcpu, unsigned long liobn, unsigned long ioba, unsigned long tce) argument
640 u64 tce; local
[all...]
H A Dbook3s_pr_papr.c305 unsigned long tce = kvmppc_get_gpr(vcpu, 6); local
308 rc = kvmppc_h_put_tce(vcpu, liobn, ioba, tce);
319 unsigned long tce = kvmppc_get_gpr(vcpu, 6); local
324 tce, npages);
/linux-master/arch/powerpc/platforms/powernv/
H A DMakefile7 KASAN_SANITIZE_pci-ioda-tce.o := n
22 obj-$(CONFIG_PCI) += pci.o pci-ioda.o pci-ioda-tce.o
H A Dpci-ioda-tce.c17 #include <asm/tce.h>
28 count = of_property_count_u32_elems(dn, "ibm,supported-tce-sizes");
39 rc = of_property_read_u32_index(dn, "ibm,supported-tce-sizes",
92 unsigned long oldtce, tce = be64_to_cpu(READ_ONCE(tmp[n])); local
94 if (!tce) {
105 tce = __pa(tmp2) | TCE_PCI_READ | TCE_PCI_WRITE;
107 cpu_to_be64(tce)));
111 tce = oldtce;
115 tmp = __va(tce & ~(TCE_PCI_READ | TCE_PCI_WRITE));
H A Dpci.c28 #include <asm/tce.h>
H A Dpci-ioda.c35 #include <asm/tce.h>
/linux-master/drivers/vfio/
H A Dvfio_iommu_spapr_tce.c27 #include <asm/tce.h>
391 unsigned long tce, unsigned long shift,
397 mem = mm_iommu_lookup(container->mm, tce, 1ULL << shift);
401 ret = mm_iommu_ua_to_hpa(mem, tce, shift, phpa);
424 pr_debug("%s: tce %llx at #%lx was not cached, ret=%d\n",
485 static int tce_iommu_use_page(unsigned long tce, unsigned long *hpa) argument
488 enum dma_data_direction direction = iommu_tce_direction(tce);
490 if (pin_user_pages_fast(tce & PAGE_MASK, 1,
502 unsigned long entry, unsigned long tce, unsigned long pages,
510 unsigned long offset = tce
390 tce_iommu_prereg_ua_to_hpa(struct tce_container *container, unsigned long tce, unsigned long shift, unsigned long *phpa, struct mm_iommu_table_group_mem_t **pmem) argument
500 tce_iommu_build(struct tce_container *container, struct iommu_table *tbl, unsigned long entry, unsigned long tce, unsigned long pages, enum dma_data_direction direction) argument
548 tce_iommu_build_v2(struct tce_container *container, struct iommu_table *tbl, unsigned long entry, unsigned long tce, unsigned long pages, enum dma_data_direction direction) argument
[all...]
/linux-master/arch/powerpc/kernel/
H A Diommu.c36 #include <asm/tce.h>
722 * is used to manage allocation of the tce space.
927 * the tce tables.
1022 enum dma_data_direction iommu_tce_direction(unsigned long tce) argument
1024 if ((tce & TCE_PCI_READ) && (tce & TCE_PCI_WRITE))
1026 else if (tce & TCE_PCI_READ)
1028 else if (tce & TCE_PCI_WRITE)
1402 .name = "spapr-tce-iommu",
/linux-master/arch/powerpc/platforms/pseries/
H A Diommu.c35 #include <asm/tce.h>
174 u64 proto_tce, tce; local
185 tce = proto_tce | rpn << tceshift;
186 rc = plpar_tce_put((u64)liobn, (u64)tcenum << tceshift, tce);
199 printk("\ttce val = 0x%llx\n", tce );
366 __be32 liobn; /* tce table number */
413 /* round back to the beginning of the tce page size */
482 /* round back to the beginning of the tce page size */
557 basep = of_get_property(node, "linux,tce-base", NULL);
558 sizep = of_get_property(node, "linux,tce
664 tce_exchange_pseries(struct iommu_table *tbl, long index, unsigned long *tce, enum dma_data_direction *direction) argument
[all...]
H A Dvio.c33 #include <asm/tce.h>
1174 /* TCE table size - measured in tce entries */
/linux-master/arch/powerpc/include/asm/
H A Diommu.h52 * @tce is a physical address.
101 unsigned long it_base; /* mapped address of tce table */
307 extern enum dma_data_direction iommu_tce_direction(unsigned long tce);
H A Dkvm_ppc.h191 unsigned long ioba, unsigned long tce);
814 unsigned long ioba, unsigned long tce);
/linux-master/drivers/net/ethernet/broadcom/
H A Dcnic_defs.h3311 struct ustorm_fcoe_tce tce; member in struct:ustorm_fcoe_cache_ctx
3602 struct xstorm_fcoe_tce tce; member in struct:xstorm_fcoe_context_section

Completed in 212 milliseconds