Home
last modified time | relevance | path

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

/arch/powerpc/kvm/
Dbook3s_64_vio_hv.c98 long kvmppc_tce_validate(struct kvmppc_spapr_tce_table *stt, unsigned long tce) in kvmppc_tce_validate() argument
103 if (tce & mask) in kvmppc_tce_validate()
147 unsigned long idx, unsigned long tce) in kvmppc_tce_put() argument
156 tbl[idx % TCES_PER_PAGE] = tce; in kvmppc_tce_put()
184 unsigned long ioba, unsigned long tce) in kvmppc_rm_h_put_tce() argument
199 ret = kvmppc_tce_validate(stt, tce); in kvmppc_rm_h_put_tce()
203 kvmppc_tce_put(stt, ioba >> stt->page_shift, tce); in kvmppc_rm_h_put_tce()
283 unsigned long tce = be64_to_cpu(((u64 *)tces)[i]); in kvmppc_rm_h_put_tce_indirect() local
285 ret = kvmppc_tce_validate(stt, tce); in kvmppc_rm_h_put_tce_indirect()
289 kvmppc_tce_put(stt, entry + i, tce); in kvmppc_rm_h_put_tce_indirect()
Dbook3s_64_vio.c224 unsigned long ioba, unsigned long tce) in kvmppc_h_put_tce() argument
239 ret = kvmppc_tce_validate(stt, tce); in kvmppc_h_put_tce()
243 kvmppc_tce_put(stt, ioba >> stt->page_shift, tce); in kvmppc_h_put_tce()
257 u64 tce; in kvmppc_h_put_tce_indirect() local
286 if (get_user(tce, tces + i)) { in kvmppc_h_put_tce_indirect()
290 tce = be64_to_cpu(tce); in kvmppc_h_put_tce_indirect()
292 ret = kvmppc_tce_validate(stt, tce); in kvmppc_h_put_tce_indirect()
296 kvmppc_tce_put(stt, entry + i, tce); in kvmppc_h_put_tce_indirect()
Dbook3s_pr_papr.c269 unsigned long tce = kvmppc_get_gpr(vcpu, 6); in kvmppc_h_pr_put_tce() local
272 rc = kvmppc_h_put_tce(vcpu, liobn, ioba, tce); in kvmppc_h_pr_put_tce()
305 unsigned long tce = kvmppc_get_gpr(vcpu, 6); in kvmppc_h_pr_put_tce_indirect() local
310 tce, npages); in kvmppc_h_pr_put_tce_indirect()
/arch/powerpc/include/asm/
Diommu.h295 unsigned long ioba, unsigned long tce);
301 extern enum dma_data_direction iommu_tce_direction(unsigned long tce);
Dkvm_ppc.h174 unsigned long tce);
178 unsigned long idx, unsigned long tce);
180 unsigned long ioba, unsigned long tce);
/arch/powerpc/kernel/
Diommu.c921 enum dma_data_direction iommu_tce_direction(unsigned long tce) in iommu_tce_direction() argument
923 if ((tce & TCE_PCI_READ) && (tce & TCE_PCI_WRITE)) in iommu_tce_direction()
925 else if (tce & TCE_PCI_READ) in iommu_tce_direction()
927 else if (tce & TCE_PCI_WRITE) in iommu_tce_direction()
968 unsigned long ioba, unsigned long tce) in iommu_tce_put_param_check() argument
970 if (tce & ~IOMMU_PAGE_MASK(tbl)) in iommu_tce_put_param_check()
/arch/powerpc/platforms/pseries/
Diommu.c179 u64 proto_tce, tce; in tce_build_pSeriesLP() local
190 tce = proto_tce | (rpn & TCE_RPN_MASK) << TCE_RPN_SHIFT; in tce_build_pSeriesLP()
191 rc = plpar_tce_put((u64)tbl->it_index, (u64)tcenum << 12, tce); in tce_build_pSeriesLP()
204 printk("\ttce val = 0x%llx\n", tce ); in tce_build_pSeriesLP()
/arch/powerpc/platforms/powernv/
Dpci.c694 unsigned long tce = be64_to_cpu(tmp[n]); in pnv_tce() local
696 tmp = __va(tce & ~(TCE_PCI_READ | TCE_PCI_WRITE)); in pnv_tce()