Lines Matching refs:fence
97 struct _WsbmFenceObject *fence; member
622 ret = wsbmFenceFinish(sBuf->fence, sBuf->fenceType, 0); in wsbmSlabCheckFreeLocked()
629 wsbmFenceSignaled(sBuf->fence, sBuf->fenceType); in wsbmSlabCheckFreeLocked()
637 wsbmFenceUnreference(&sBuf->fence); in wsbmSlabCheckFreeLocked()
642 } else if (wsbmFenceSignaledCached(sBuf->fence, sBuf->fenceType)) { in wsbmSlabCheckFreeLocked()
643 wsbmFenceUnreference(&sBuf->fence); in wsbmSlabCheckFreeLocked()
838 if (sBuf->fence && !wsbmFenceSignaledCached(sBuf->fence, sBuf->fenceType)) { in pool_destroy()
842 if (sBuf->fence) in pool_destroy()
843 wsbmFenceUnreference(&sBuf->fence); in pool_destroy()
855 while (sBuf->unFenced || sBuf->fence != NULL) { in waitIdleLocked()
860 if (sBuf->fence != NULL) { in waitIdleLocked()
861 if (!wsbmFenceSignaled(sBuf->fence, sBuf->fenceType)) { in waitIdleLocked()
862 struct _WsbmFenceObject *fence = in waitIdleLocked() local
863 wsbmFenceReference(sBuf->fence); in waitIdleLocked()
866 (void)wsbmFenceFinish(fence, sBuf->fenceType, lazy); in waitIdleLocked()
868 if (sBuf->fence == fence) in waitIdleLocked()
869 wsbmFenceUnreference(&sBuf->fence); in waitIdleLocked()
871 wsbmFenceUnreference(&fence); in waitIdleLocked()
873 wsbmFenceUnreference(&sBuf->fence); in waitIdleLocked()
926 signaled = (sBuf->fence == NULL) || in pool_syncForCpu()
927 wsbmFenceSignaledCached(sBuf->fence, sBuf->fenceType); in pool_syncForCpu()
929 signaled = (sBuf->fence == NULL) || in pool_syncForCpu()
930 wsbmFenceSignaled(sBuf->fence, sBuf->fenceType); in pool_syncForCpu()
934 wsbmFenceUnreference(&sBuf->fence); in pool_syncForCpu()
987 pool_fence(struct _WsbmBufStorage *buf, struct _WsbmFenceObject *fence) in pool_fence() argument
993 if (sBuf->fence) in pool_fence()
994 wsbmFenceUnreference(&sBuf->fence); in pool_fence()
998 if (!wsbmFenceSignaledCached(fence, sBuf->fenceType)) in pool_fence()
999 sBuf->fence = wsbmFenceReference(fence); in pool_fence()
1111 if (sBuf->fence) { in wsbmFinishSizeHeader()
1112 (void)wsbmFenceFinish(sBuf->fence, sBuf->fenceType, 0); in wsbmFinishSizeHeader()
1113 wsbmFenceUnreference(&sBuf->fence); in wsbmFinishSizeHeader()
1190 pool->fence = &pool_fence; in wsbmSlabPoolInit()