Lines Matching refs:pslot

295 status_t VirtualDisplaySurface::requestBuffer(int pslot,  in requestBuffer()  argument
298 return mSource[SOURCE_SINK]->requestBuffer(pslot, outBuf); in requestBuffer()
302 pslot, ftl::enum_string(mDebugState).c_str()); in requestBuffer()
304 *outBuf = mProducerBuffers[pslot]; in requestBuffer()
326 int pslot = mapSource2ProducerSlot(source, *sslot); in dequeueBuffer() local
328 *sslot, pslot, result); in dequeueBuffer()
329 uint64_t sourceBit = static_cast<uint64_t>(source) << pslot; in dequeueBuffer()
332 mProducerSlotNeedReallocation &= ~(1ULL << pslot); in dequeueBuffer()
334 if ((mProducerSlotSource & (1ULL << pslot)) != sourceBit) { in dequeueBuffer()
337 mProducerSlotNeedReallocation |= 1ULL << pslot; in dequeueBuffer()
339 mProducerSlotSource &= ~(1ULL << pslot); in dequeueBuffer()
350 result = mSource[source]->requestBuffer(*sslot, &mProducerBuffers[pslot]); in dequeueBuffer()
352 mProducerBuffers[pslot].clear(); in dequeueBuffer()
357 ftl::enum_string(source).c_str(), pslot, mProducerBuffers[pslot].get(), in dequeueBuffer()
358 mProducerBuffers[pslot]->getPixelFormat(), mProducerBuffers[pslot]->getUsage()); in dequeueBuffer()
361 mProducerSlotNeedReallocation |= 1ULL << pslot; in dequeueBuffer()
367 status_t VirtualDisplaySurface::dequeueBuffer(int* pslot, sp<Fence>* fence, uint32_t w, uint32_t h, in dequeueBuffer() argument
372 return mSource[SOURCE_SINK]->dequeueBuffer(pslot, fence, w, h, format, usage, outBufferAge, in dequeueBuffer()
423 *pslot = mOutputProducerSlot; in dequeueBuffer()
429 *pslot = mapSource2ProducerSlot(source, sslot); in dequeueBuffer()
436 if ((mProducerSlotNeedReallocation & (1ULL << *pslot)) != 0) { in dequeueBuffer()
455 status_t VirtualDisplaySurface::queueBuffer(int pslot, in queueBuffer() argument
458 return mSource[SOURCE_SINK]->queueBuffer(pslot, input, output); in queueBuffer()
462 pslot, ftl::enum_string(mDebugState).c_str()); in queueBuffer()
465 VDS_LOGV("%s pslot=%d", __func__, pslot); in queueBuffer()
471 int sslot = mapProducer2SourceSlot(SOURCE_SCRATCH, pslot); in queueBuffer()
504 mFbProducerSlot = pslot; in queueBuffer()
513 status_t VirtualDisplaySurface::cancelBuffer(int pslot, in cancelBuffer() argument
516 … return mSource[SOURCE_SINK]->cancelBuffer(mapProducer2SourceSlot(SOURCE_SINK, pslot), fence); in cancelBuffer()
520 pslot, ftl::enum_string(mDebugState).c_str()); in cancelBuffer()
521 VDS_LOGV("%s pslot=%d", __func__, pslot); in cancelBuffer()
524 mapProducer2SourceSlot(source, pslot), fence); in cancelBuffer()
656 int VirtualDisplaySurface::mapProducer2SourceSlot(Source source, int pslot) { in mapProducer2SourceSlot() argument
657 return mapSource2ProducerSlot(source, pslot); in mapProducer2SourceSlot()