Lines Matching refs:fence
216 inline size_t getFenceFdCount(hidl_handle const& fence) { in getFenceFdCount() argument
217 return native_handle_read_fd(fence) == -1 ? 0 : 1; in getFenceFdCount()
235 inline status_t unflattenFence(hidl_handle* fence, native_handle_t** nh, in unflattenFence() argument
257 *fence = *nh; in unflattenFence()
262 *fence = hidl_handle(); in unflattenFence()
278 inline status_t flattenFence(hidl_handle const& fence, in flattenFence() argument
280 if (size < getFenceFlattenedSize(fence) || in flattenFence()
281 numFds < getFenceFdCount(fence)) { in flattenFence()
287 static_cast<uint32_t>(getFenceFdCount(fence))); in flattenFence()
288 int fd = native_handle_read_fd(fence); in flattenFence()
513 status_t status = unflattenFence(&(t->fence), nh, in unflatten()
589 return min + getFenceFlattenedSize(t.fence); in getFlattenedSize()
608 getFenceFdCount(t.fence) : 0; in getFdCount()
641 *nh = t.fence.getNativeHandle() == nullptr ? in flatten()
642 nullptr : native_handle_clone(t.fence); in flatten()
999 status_t H2BGraphicBufferProducer::dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, in dequeueBuffer() argument
1003 *fence = new Fence(); in dequeueBuffer()
1008 [&fnStatus, slot, fence, outTimestamps] ( in dequeueBuffer()
1015 if (!convertTo(fence->get(), tFence)) { in dequeueBuffer()
1102 status_t H2BGraphicBufferProducer::cancelBuffer(int slot, const sp<Fence>& fence) { in cancelBuffer() argument
1105 if ((fence == nullptr) || !wrapAs(&tFence, &nh, *fence)) { in cancelBuffer()
1203 hidl_handle const& fence, in getLastQueuedBuffer()
1213 if (!convertTo(outFence->get(), fence)) { in getLastQueuedBuffer()