Lines Matching refs:sync
188 static void __sync_cmd_start(struct pkvm_iommu *sync) in __sync_cmd_start() argument
190 writel_relaxed(SYNC_CMD_SYNC, sync->va + REG_NS_SYNC_CMD); in __sync_cmd_start()
193 static void __invalidation_barrier_slow(struct pkvm_iommu *sync) in __invalidation_barrier_slow() argument
208 __sync_cmd_start(sync); in __invalidation_barrier_slow()
209 if (__wait_until(sync->va + REG_NS_SYNC_COMP, SYNC_COMP_COMPLETE, timeout)) in __invalidation_barrier_slow()
218 struct pkvm_iommu *sync; in __invalidation_barrier_init() local
220 for_each_child(sync, dev) in __invalidation_barrier_init()
221 __sync_cmd_start(sync); in __invalidation_barrier_init()
227 struct pkvm_iommu *sync; in __invalidation_barrier_complete() local
233 for_each_child(sync, dev) { in __invalidation_barrier_complete()
234 if (!(readl_relaxed(sync->va + REG_NS_SYNC_COMP) & SYNC_COMP_COMPLETE)) in __invalidation_barrier_complete()
235 __invalidation_barrier_slow(sync); in __invalidation_barrier_complete()