Home
last modified time | relevance | path

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

12

/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
618 ret = wsbmFenceFinish(sBuf->fence, sBuf->fenceType, 0); in wsbmSlabCheckFreeLocked()
625 wsbmFenceSignaled(sBuf->fence, sBuf->fenceType); in wsbmSlabCheckFreeLocked()
633 wsbmFenceUnreference(&sBuf->fence); in wsbmSlabCheckFreeLocked()
638 } else if (wsbmFenceSignaledCached(sBuf->fence, sBuf->fenceType)) { in wsbmSlabCheckFreeLocked()
639 wsbmFenceUnreference(&sBuf->fence); in wsbmSlabCheckFreeLocked()
834 if (sBuf->fence && !wsbmFenceSignaledCached(sBuf->fence, sBuf->fenceType)) { in pool_destroy()
838 if (sBuf->fence) in pool_destroy()
839 wsbmFenceUnreference(&sBuf->fence); in pool_destroy()
851 while (sBuf->unFenced || sBuf->fence != NULL) { in waitIdleLocked()
[all …]
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_pool.h74 void (*fence) (struct _WsbmBufStorage * buf, member
75 struct _WsbmFenceObject * fence);
Dwsbm_manager.h142 struct _WsbmFenceObject *fence);
149 struct _WsbmFenceObject *fence);
Dwsbm_manager.c1156 wsbmBOFence(struct _WsbmBufferObject *buf, struct _WsbmFenceObject *fence) in wsbmBOFence() argument
1161 if (storage->pool->fence) in wsbmBOFence()
1162 storage->pool->fence(storage, fence); in wsbmBOFence()
1195 struct _WsbmFenceObject *fence) in wsbmBOFenceUserList() argument
1209 storage->pool->fence(storage, fence); in wsbmBOFenceUserList()
/hardware/intel/img/libdrm/libdrm/intel/
Dintel_bufmgr_fake.c107 unsigned fence; /* Split to read_fence, write_fence */ member
157 void (*fence_wait)(unsigned int fence, void *private);
242 void (*wait)(unsigned int fence, in drm_intel_bufmgr_fake_set_fence_callback() argument
400 _fence_test(drm_intel_bufmgr_fake *bufmgr_fake, unsigned fence) in _fence_test() argument
404 return fence == 0 || FENCE_LTE(fence, bufmgr_fake->last_fence); in _fence_test()
536 if (block->fence && max_fence && !FENCE_LTE(block->fence, max_fence)) in evict_lru()
585 if (_fence_test(bufmgr_fake, block->fence)) { in clear_fenced()
610 block->mem->ofs, block->mem->size, block->fence, bufmgr_fake->last_fence); in clear_fenced()
619 static void fence_blocks(drm_intel_bufmgr_fake *bufmgr_fake, unsigned fence) in fence_blocks() argument
625 block->mem->size, block->mem->ofs, block->bo, fence); in fence_blocks()
[all …]
Dintel_bufmgr.h141 void (*wait)(unsigned int fence,
/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/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()
Dpsb_cmdbuf.c593 struct _WsbmFenceObject *fence = NULL;
604 fence = wsbmFenceCreate(driver_data->fence_mgr, fence_rep->fence_class,
608 if (fence)
609 *status = wsbmFenceFinish(fence, fence_rep->fence_type, 0);
611 return fence;
963 struct _WsbmFenceObject *fence = NULL; in psb_context_flush_cmdbuf()
964 fence = psb_fence_wait(driver_data, &fence_rep, &status); in psb_context_flush_cmdbuf()
965 … drv_debug_msg(VIDEO_DEBUG_GENERAL, "psb_fence_wait returns: %d (fence=0x%08x)\n", status, fence); in psb_context_flush_cmdbuf()
1078 if (fence) in psb_context_flush_cmdbuf()
1079 psb_fence_destroy(fence); in psb_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/msm8974/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/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);
84 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/samsung_slsi/exynos5/include/
Ds3c-fb.h94 int fence; member
/hardware/samsung_slsi/exynos5/original-kernel-headers/linux/
Ds3c-fb.h91 int fence; member
/hardware/samsung_slsi/exynos5/libhwc/
Dhwc.cpp202 static int dup_or_warn(int fence) in dup_or_warn() argument
204 int dup_fd = dup(fence); in dup_or_warn()
1430 int fence = gsc.dst_cfg.releaseFenceFd; in exynos5_post_fimd() local
1432 layer.displayFrame, layer.blending, fence, config[i], in exynos5_post_fimd()
1467 return win_data.fence; in exynos5_post_fimd()
1481 return win_data.fence; in exynos5_clear_fimd()
1509 int fence; in exynos5_set_fimd() local
1511 fence = exynos5_post_fimd(pdev, contents); in exynos5_set_fimd()
1512 if (fence < 0) in exynos5_set_fimd()
1513 err = fence; in exynos5_set_fimd()
[all …]

12