Home
last modified time | relevance | path

Searched refs:oldtce (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/arch/powerpc/platforms/powernv/
Dpci-ioda-tce.c115 unsigned long newtce = *hpa | proto_tce, oldtce; in pnv_tce_xchg() local
138 oldtce = be64_to_cpu(xchg(ptce, cpu_to_be64(newtce))); in pnv_tce_xchg()
139 *hpa = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in pnv_tce_xchg()
140 *direction = iommu_tce_direction(oldtce); in pnv_tce_xchg()
/Linux-v4.19/arch/powerpc/platforms/pseries/
Diommu.c664 unsigned long flags, oldtce = 0; in tce_exchange_pseries() local
670 rc = plpar_tce_get((u64)tbl->it_index, ioba, &oldtce); in tce_exchange_pseries()
675 *direction = iommu_tce_direction(oldtce); in tce_exchange_pseries()
676 *tce = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in tce_exchange_pseries()