Lines Matching refs:fence
80 struct _WsbmFenceObject *fence; member
125 while (vBuf->unFenced || vBuf->fence != NULL) { in waitIdleLocked()
129 if (vBuf->fence != NULL) { in waitIdleLocked()
130 if (!wsbmFenceSignaled(vBuf->fence, vBuf->kBuf.fence_type_mask)) { in waitIdleLocked()
131 struct _WsbmFenceObject *fence = in waitIdleLocked() local
132 wsbmFenceReference(vBuf->fence); in waitIdleLocked()
135 (void)wsbmFenceFinish(fence, vBuf->kBuf.fence_type_mask, in waitIdleLocked()
139 if (vBuf->fence == fence) in waitIdleLocked()
140 wsbmFenceUnreference(&vBuf->fence); in waitIdleLocked()
142 wsbmFenceUnreference(&fence); in waitIdleLocked()
144 wsbmFenceUnreference(&vBuf->fence); in waitIdleLocked()
185 (void)wsbmFenceFinish(vBuf->fence, vBuf->kBuf.fence_type_mask, 0); in evict_lru()
186 wsbmFenceUnreference(&vBuf->fence); in evict_lru()
395 if (!vBuf->fence in release_delayed_buffers()
396 || wsbmFenceSignaled(vBuf->fence, vBuf->kBuf.fence_type_mask)) { in release_delayed_buffers()
397 if (vBuf->fence) in release_delayed_buffers()
398 wsbmFenceUnreference(&vBuf->fence); in release_delayed_buffers()
425 if ((vBuf->fence in pool_destroy()
426 && !wsbmFenceSignaled(vBuf->fence, vBuf->kBuf.fence_type_mask))) { in pool_destroy()
434 if (vBuf->fence) in pool_destroy()
435 wsbmFenceUnreference(&vBuf->fence); in pool_destroy()
490 if ((vBuf->fence == NULL) || in pool_syncForCpu()
491 wsbmFenceSignaled(vBuf->fence, vBuf->kBuf.fence_type_mask)) { in pool_syncForCpu()
492 wsbmFenceUnreference(&vBuf->fence); in pool_syncForCpu()
525 pool_fence(struct _WsbmBufStorage *buf, struct _WsbmFenceObject *fence) in pool_fence() argument
532 if (vBuf->fence) in pool_fence()
533 wsbmFenceUnreference(&vBuf->fence); in pool_fence()
535 vBuf->fence = wsbmFenceReference(fence); in pool_fence()
669 pool->fence = &pool_fence; in wsbmUserPoolInit()