Lines Matching refs:tce
101 long kvmppc_tce_validate(struct kvmppc_spapr_tce_table *stt, unsigned long tce) in kvmppc_tce_validate() argument
103 unsigned long gpa = tce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in kvmppc_tce_validate()
104 enum dma_data_direction dir = iommu_tce_direction(tce); in kvmppc_tce_validate()
154 unsigned long idx, unsigned long tce) in kvmppc_tce_put() argument
163 tbl[idx % TCES_PER_PAGE] = tce; in kvmppc_tce_put()
348 unsigned long ioba, unsigned long tce) in kvmppc_rm_h_put_tce() argument
371 ret = kvmppc_tce_validate(stt, tce); in kvmppc_rm_h_put_tce()
375 dir = iommu_tce_direction(tce); in kvmppc_rm_h_put_tce()
377 tce & ~(TCE_PCI_READ | TCE_PCI_WRITE), &ua, NULL)) in kvmppc_rm_h_put_tce()
400 kvmppc_tce_put(stt, entry, tce); in kvmppc_rm_h_put_tce()
522 unsigned long tce = be64_to_cpu(((u64 *)tces)[i]); in kvmppc_rm_h_put_tce_indirect() local
524 ret = kvmppc_tce_validate(stt, tce); in kvmppc_rm_h_put_tce_indirect()
530 tce & ~(TCE_PCI_READ | TCE_PCI_WRITE), in kvmppc_rm_h_put_tce_indirect()
537 iommu_tce_direction(tce)); in kvmppc_rm_h_put_tce_indirect()
549 kvmppc_tce_put(stt, entry + i, tce); in kvmppc_rm_h_put_tce_indirect()