Home
last modified time | relevance | path

Searched refs:fence (Results 1 – 25 of 74) sorted by relevance

123

/hardware/intel/common/libwsbm/src/
Dwsbm_fencemgr.c110 wsbmFenceType(struct _WsbmFenceObject *fence) in wsbmFenceType() argument
112 return fence->fence_type; in wsbmFenceType()
163 struct _WsbmFenceObject *fence = *pFence; in wsbmFenceUnreference() local
167 if (fence == NULL) in wsbmFenceUnreference()
170 mgr = fence->mgr; in wsbmFenceUnreference()
171 if (wsbmAtomicDecZero(&fence->refCount)) { in wsbmFenceUnreference()
172 struct _WsbmFenceClass *fc = &mgr->classes[fence->fence_class]; in wsbmFenceUnreference()
175 WSBMLISTDELINIT(&fence->head); in wsbmFenceUnreference()
177 if (fence->private) in wsbmFenceUnreference()
178 mgr->info.unreference(mgr, &fence->private); in wsbmFenceUnreference()
[all …]
Dwsbm_fencemgr.h47 extern uint32_t wsbmFenceSignaledTypeCached(struct _WsbmFenceObject *fence);
55 extern int wsbmFenceSignaledType(struct _WsbmFenceObject *fence,
63 wsbmFenceSignaled(struct _WsbmFenceObject *fence, uint32_t flush_type) in wsbmFenceSignaled() argument
66 int ret = wsbmFenceSignaledType(fence, flush_type, &signaled_types); in wsbmFenceSignaled()
74 wsbmFenceSignaledCached(struct _WsbmFenceObject *fence, uint32_t flush_type) in wsbmFenceSignaledCached() argument
76 uint32_t signaled_types = wsbmFenceSignaledTypeCached(fence); in wsbmFenceSignaledCached()
85 *fence);
98 extern int wsbmFenceFinish(struct _WsbmFenceObject *fence,
127 extern uint32_t wsbmFenceType(struct _WsbmFenceObject *fence);
Dwsbm_userpool.c80 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()
[all …]
Dwsbm_slabpool.c97 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()
[all …]
Dwsbm_pool.h74 void (*fence) (struct _WsbmBufStorage * buf, member
75 struct _WsbmFenceObject * fence);
Dwsbm_mallocpool.c143 pool_fence(struct _WsbmBufStorage *buf __attribute__ ((unused)), struct _WsbmFenceObject *fence __a… in pool_fence() argument
181 pool->fence = &pool_fence; in wsbmMallocPoolInit()
Dwsbm_manager.h142 struct _WsbmFenceObject *fence);
149 struct _WsbmFenceObject *fence);
/hardware/interfaces/graphics/mapper/2.0/vts/functional/
DVtsHalGraphicsMapperV2_0TargetTest.cpp260 int fence = -1; in TEST_F() local
263 bufferHandle, info.usage, region, fence))); in TEST_F()
274 ASSERT_NO_FATAL_FAILURE(fence = mGralloc->unlock(bufferHandle)); in TEST_F()
278 bufferHandle, info.usage, region, fence))); in TEST_F()
286 ASSERT_NO_FATAL_FAILURE(fence = mGralloc->unlock(bufferHandle)); in TEST_F()
287 if (fence >= 0) { in TEST_F()
288 close(fence); in TEST_F()
308 int fence = -1; in TEST_F() local
311 layout = mGralloc->lockYCbCr(bufferHandle, info.usage, region, fence)); in TEST_F()
328 ASSERT_NO_FATAL_FAILURE(fence = mGralloc->unlock(bufferHandle)); in TEST_F()
[all …]
/hardware/intel/img/psb_video/src/mrst/
Dlnc_cmdbuf.c447 struct _WsbmFenceObject *fence = NULL;
458 fence = wsbmFenceCreate(driver_data->fence_mgr, fence_rep->fence_class,
462 if (fence)
463 *status = wsbmFenceFinish(fence, fence_rep->fence_type, 0);
465 return fence;
578 struct _WsbmFenceObject *fence = NULL; in lnc_context_flush_cmdbuf()
580 fence = lnc_fence_wait(driver_data, &fence_rep, &status); in lnc_context_flush_cmdbuf()
581 … drv_debug_msg(VIDEO_DEBUG_GENERAL, "psb_fence_wait returns: %d (fence=0x%08x)\n", status, fence); in lnc_context_flush_cmdbuf()
583 if (fence) in lnc_context_flush_cmdbuf()
584 wsbmFenceUnreference(fence); in lnc_context_flush_cmdbuf()
/hardware/qcom/display/msm8994/liboverlay/
DoverlayRotator.h55 void setCurrBufReleaseFd(const int& fence);
56 void setPrevBufReleaseFd(const int& fence);
100 inline void setCurrBufReleaseFd(const int& fence) { in setCurrBufReleaseFd() argument
101 mMem.setCurrBufReleaseFd(fence); in setCurrBufReleaseFd()
103 inline void setPrevBufReleaseFd(const int& fence) { in setPrevBufReleaseFd() argument
104 mMem.setPrevBufReleaseFd(fence); in setPrevBufReleaseFd()
DoverlayRotator.cpp126 void RotMem::setCurrBufReleaseFd(const int& fence) { in setCurrBufReleaseFd() argument
141 mRelFence[mCurrIndex] = fence; in setCurrBufReleaseFd()
144 void RotMem::setPrevBufReleaseFd(const int& fence) { in setPrevBufReleaseFd() argument
155 mRelFence[prevIndex] = fence; in setPrevBufReleaseFd()
/hardware/qcom/display/msm8909/liboverlay/
DoverlayRotator.h55 void setCurrBufReleaseFd(const int& fence);
56 void setPrevBufReleaseFd(const int& fence);
100 inline void setCurrBufReleaseFd(const int& fence) { in setCurrBufReleaseFd() argument
101 mMem.setCurrBufReleaseFd(fence); in setCurrBufReleaseFd()
103 inline void setPrevBufReleaseFd(const int& fence) { in setPrevBufReleaseFd() argument
104 mMem.setPrevBufReleaseFd(fence); in setPrevBufReleaseFd()
DoverlayRotator.cpp126 void RotMem::setCurrBufReleaseFd(const int& fence) { in setCurrBufReleaseFd() argument
141 mRelFence[mCurrIndex] = fence; in setCurrBufReleaseFd()
144 void RotMem::setPrevBufReleaseFd(const int& fence) { in setPrevBufReleaseFd() argument
155 mRelFence[prevIndex] = fence; in setPrevBufReleaseFd()
/hardware/qcom/display/msm8960/liboverlay/
DoverlayRotator.h58 void setReleaseFd(const int& fence);
74 void setReleaseFd(const int& fence) { curr().setReleaseFd(fence); } in setReleaseFd()
98 void setReleaseFd(const int& fence) { mMem.setReleaseFd(fence); } in setReleaseFd() argument
DoverlayRotator.cpp93 void RotMem::Mem::setReleaseFd(const int& fence) { in setReleaseFd() argument
108 mRelFence[mCurrOffset] = fence; in setReleaseFd()
/hardware/intel/img/psb_video/src/
Dpnw_cmdbuf.c500 struct _WsbmFenceObject *fence = NULL;
511 fence = wsbmFenceCreate(driver_data->fence_mgr, fence_rep->fence_class,
515 if (fence)
516 *status = wsbmFenceFinish(fence, fence_rep->fence_type, 0);
518 return fence;
618 struct _WsbmFenceObject *fence = NULL; in pnw_context_flush_cmdbuf()
620 fence = lnc_fence_wait(driver_data, &fence_rep, &status); in pnw_context_flush_cmdbuf()
621 … drv_debug_msg(VIDEO_DEBUG_GENERAL, "psb_fence_wait returns: %d (fence=0x%08x)\n", status, fence); in pnw_context_flush_cmdbuf()
623 if (fence) in pnw_context_flush_cmdbuf()
624 wsbmFenceUnreference(fence); in pnw_context_flush_cmdbuf()
Dtng_cmdbuf.c663 struct _WsbmFenceObject *fence = NULL;
674 fence = wsbmFenceCreate(driver_data->fence_mgr, fence_rep->fence_class,
678 if (fence)
679 *status = wsbmFenceFinish(fence, fence_rep->fence_type, 0);
681 return fence;
796 struct _WsbmFenceObject *fence = NULL; in tng_context_flush_cmdbuf()
798 fence = lnc_fence_wait(driver_data, &fence_rep, &status); in tng_context_flush_cmdbuf()
799 … drv_debug_msg(VIDEO_DEBUG_GENERAL, "psb_fence_wait returns: %d (fence=0x%08x)\n", status, fence); in tng_context_flush_cmdbuf()
801 if (fence) in tng_context_flush_cmdbuf()
802 wsbmFenceUnreference(fence); in tng_context_flush_cmdbuf()
/hardware/interfaces/media/omx/1.0/
DIOmxNode.hal270 * Pass \p fence to the node if it supports fences. Otherwise, it waits on
271 * \p fence before calling OMX_FillThisBuffer(). The node will take
272 * ownership of the fence even if this call fails.
280 * @param fence Fence to wait for (if not null).
288 Fence fence
294 * Pass \p fence to the node if it supports fences. Otherwise, wait on
295 * \p fence before calling OMX_EmptyThisBuffer(). The node will take
296 * ownership of the fence even if this call fails.
306 * @param fence Fence to wait for (if not null).
316 Fence fence
DIOmxBufferSource.hal64 * @param[in] fence is the fence associated with the buffer.
66 oneway onInputBufferEmptied(BufferId buffer, Fence fence);
/hardware/qcom/display/msm8084/liboverlay/
DoverlayRotator.h56 void setReleaseFd(const int& fence);
84 void setReleaseFd(const int& fence) { mMem.setReleaseFd(fence); } in setReleaseFd() argument
DoverlayRotator.cpp89 void RotMem::setReleaseFd(const int& fence) { in setReleaseFd() argument
104 mRelFence[mCurrIndex] = fence; in setReleaseFd()
/hardware/qcom/display/msm8226/liboverlay/
DoverlayRotator.h56 void setReleaseFd(const int& fence);
89 void setReleaseFd(const int& fence) { mMem.setReleaseFd(fence); } in setReleaseFd() argument
DoverlayRotator.cpp90 void RotMem::setReleaseFd(const int& fence) { in setReleaseFd() argument
105 mRelFence[mCurrIndex] = fence; in setReleaseFd()
/hardware/interfaces/graphics/composer/2.1/default/
DComposerClient.cpp193 for (auto fence : releaseFences) { in ~ComposerClient() local
194 if (fence >= 0) { in ~ComposerClient()
195 close(fence); in ~ComposerClient()
657 auto fence = readFence(); in parseSetClientTarget() local
665 err = mHal.setClientTarget(mDisplay, clientTarget, fence, in parseSetClientTarget()
675 close(fence); in parseSetClientTarget()
693 auto fence = readFence(); in parseSetOutputBuffer() local
699 err = mHal.setOutputBuffer(mDisplay, outputBuffer, fence); in parseSetOutputBuffer()
708 close(fence); in parseSetOutputBuffer()
843 auto fence = readFence(); in parseSetLayerBuffer() local
[all …]
/hardware/interfaces/graphics/bufferqueue/1.0/
DIGraphicBufferProducer.hal53 Fence fence;
133 /** A fence that the consumer must wait on before reading the buffer;
135 Fence fence;
250 * The fence parameter will be updated to hold the fence associated with
252 * fence signals. If the fence is Fence::NO_FENCE, the buffer may be written
304 Fence fence,
342 * equivalent to buffer from the requestBuffer call, and fence is
343 * equivalent to fence from the dequeueBuffer call.
356 Fence fence
418 * * fence was NULL
[all …]

123