Home
last modified time | relevance | path

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

1234

/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()
/hardware/interfaces/graphics/mapper/2.0/vts/functional/
DVtsHalGraphicsMapperV2_0TargetTest.cpp265 int fence = -1; in TEST_F() local
268 data = static_cast<uint8_t*>(mGralloc->lock(bufferHandle, info.usage, region, fence))); in TEST_F()
279 ASSERT_NO_FATAL_FAILURE(fence = mGralloc->unlock(bufferHandle)); in TEST_F()
283 data = static_cast<uint8_t*>(mGralloc->lock(bufferHandle, info.usage, region, fence))); in TEST_F()
291 ASSERT_NO_FATAL_FAILURE(fence = mGralloc->unlock(bufferHandle)); in TEST_F()
292 if (fence >= 0) { in TEST_F()
293 close(fence); in TEST_F()
312 int fence = -1; in TEST_F() local
314 ASSERT_NO_FATAL_FAILURE(layout = mGralloc->lockYCbCr(bufferHandle, info.usage, region, fence)); in TEST_F()
331 ASSERT_NO_FATAL_FAILURE(fence = mGralloc->unlock(bufferHandle)); in TEST_F()
[all …]
/hardware/google/av/codec2/vndk/v4l2/
DC2VdaBqBlockPool.cpp100 sp<Fence> fence = new Fence(); in fetchGraphicBlock() local
108 [&status, &slot, &fence](int32_t tStatus, int32_t tSlot, hidl_handle const& tFence, in fetchGraphicBlock()
112 if (!android::conversion::convertTo(fence.get(), tFence) && in fetchGraphicBlock()
134 if (fence) { in fetchGraphicBlock()
135 android::conversion::wrapAs(&fenceHandle, &nh, *fence); in fetchGraphicBlock()
136 status_t fenceStatus = fence->wait(kFenceWaitTimeMs); in fetchGraphicBlock()
293 sp<Fence> fence(Fence::NO_FENCE); in cancelAllBuffers() local
296 android::conversion::wrapAs(&fenceHandle, &nh, *fence); in cancelAllBuffers()
/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/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/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/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/google/av/codec2/vndk/
DC2AllocatorIon.cpp127 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence,
230 c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map() argument
231 (void)fence; // TODO: wait for fence in map()
290 c2_status_t unmap(void *addr, size_t size, C2Fence *fence) { in unmap() argument
305 if (fence) { in unmap()
306 *fence = C2Fence(); // not using fences in unmap()
368 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map() argument
369 return mImpl->map(offset, size, usage, fence, addr); in map()
372 c2_status_t C2AllocationIon::unmap(void *addr, size_t size, C2Fence *fence) { in unmap() argument
373 return mImpl->unmap(addr, size, fence); in unmap()
DC2Buffer.cpp270 …k::C2ConstLinearBlock(std::shared_ptr<Impl> impl, const _C2LinearRangeAspect &range, C2Fence fence) in C2ConstLinearBlock() argument
271 : C2Block1D(impl, range), mFence(fence) { } in C2ConstLinearBlock()
322 C2ConstLinearBlock C2LinearBlock::share(size_t offset_, size_t size_, C2Fence fence) { in share() argument
323 return ConstLinearBlockBuddy(mImpl, C2LinearRange(*this, offset_, size_), fence); in share()
846 Mapped(const std::shared_ptr<_C2Block2DImpl> &impl, bool writable, C2Fence *fence __unused) in Mapped()
928 std::shared_ptr<Mapped> map(bool writable, C2Fence *fence) { in map() argument
932 existing = std::shared_ptr<Mapped>(new Mapped(shared_from_this(), writable, fence)); in map()
939 if (fence != nullptr) { in map()
940 *fence = C2Fence(); in map()
1032 std::shared_ptr<Impl> impl, const _C2PlanarSectionAspect &section, C2Fence fence) in C2ConstGraphicBlock() argument
[all …]
/hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/
DComposerCommandEngine.h192 auto fence = readFence(); in executeSetClientTarget() local
202 err = mHal->setClientTarget(mCurrentDisplay, clientTarget, fence, dataspace, damage); in executeSetClientTarget()
208 close(fence); in executeSetClientTarget()
225 auto fence = readFence(); in executeSetOutputBuffer() local
233 err = mHal->setOutputBuffer(mCurrentDisplay, outputBuffer, fence); in executeSetOutputBuffer()
239 close(fence); in executeSetOutputBuffer()
364 auto fence = readFence(); in executeSetLayerBuffer() local
372 err = mHal->setLayerBuffer(mCurrentDisplay, mCurrentLayer, buffer, fence); in executeSetLayerBuffer()
378 close(fence); in executeSetLayerBuffer()
/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/google/av/codec2/include/
DC2Buffer.h147 C2Fence fence() const;
231 …C2Acquirable(c2_status_t error, C2Fence fence, T t) : C2Fence(fence), mInitialError(error), mT(t) … in C2Acquirable() argument
780 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence /* nullable */,
803 virtual c2_status_t unmap(void *addr, size_t size, C2Fence *fence /* nullable */) = 0;
1131 C2Fence fence() const { return mFence; } in fence() function
1164 C2ConstLinearBlock share(size_t offset, size_t size, C2Fence fence);
1231 c2_status_t reserve(size_t size, C2Fence *fence /* nullable */);
1261 c2_status_t share(size_t size, C2Fence fence, std::vector<C2ConstLinearBlock> &blocks);
1316 c2_status_t commit(size_t size, C2Fence fence);
1751 C2Rect rect, C2MemoryUsage usage, C2Fence *fence,
[all …]
/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()

1234