Searched refs:oldtce (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | pci-ioda-tce.c | 92 unsigned long oldtce, tce = be64_to_cpu(READ_ONCE(tmp[n])); in pnv_tce() local 106 oldtce = be64_to_cpu(cmpxchg(&tmp[n], 0, in pnv_tce() 108 if (oldtce) { in pnv_tce() 111 tce = oldtce; in pnv_tce() 152 unsigned long newtce = *hpa | proto_tce, oldtce; in pnv_tce_xchg() local 175 oldtce = be64_to_cpu(xchg(ptce, cpu_to_be64(newtce))); in pnv_tce_xchg() 176 *hpa = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in pnv_tce_xchg() 177 *direction = iommu_tce_direction(oldtce); in pnv_tce_xchg()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | pci-ioda-tce.c | 92 unsigned long oldtce, tce = be64_to_cpu(READ_ONCE(tmp[n])); in pnv_tce() local 106 oldtce = be64_to_cpu(cmpxchg(&tmp[n], 0, in pnv_tce() 108 if (oldtce) { in pnv_tce() 111 tce = oldtce; in pnv_tce() 151 unsigned long newtce = *hpa | proto_tce, oldtce; in pnv_tce_xchg() local 174 oldtce = be64_to_cpu(xchg(ptce, cpu_to_be64(newtce))); in pnv_tce_xchg() 175 *hpa = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in pnv_tce_xchg() 176 *direction = iommu_tce_direction(oldtce); in pnv_tce_xchg()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | iommu.c | 658 unsigned long flags, oldtce = 0; in tce_exchange_pseries() local 664 rc = plpar_tce_get((u64)tbl->it_index, ioba, &oldtce); in tce_exchange_pseries() 669 *direction = iommu_tce_direction(oldtce); in tce_exchange_pseries() 670 *tce = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in tce_exchange_pseries()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | iommu.c | 669 unsigned long flags, oldtce = 0; in tce_exchange_pseries() local 675 rc = plpar_tce_get((u64)tbl->it_index, ioba, &oldtce); in tce_exchange_pseries() 680 *direction = iommu_tce_direction(oldtce); in tce_exchange_pseries() 681 *tce = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in tce_exchange_pseries()
|
Completed in 6 milliseconds