Lines Matching refs:buffer

123 Return<Error> QtiMapper::freeBuffer(void *buffer) {  in freeBuffer()  argument
124 if (!buffer) { in freeBuffer()
127 return buf_mgr_->ReleaseBuffer(PRIV_HANDLE_CONST(buffer)); in freeBuffer()
156 Error QtiMapper::LockBuffer(void *buffer, uint64_t usage, const hidl_handle &acquire_fence) { in LockBuffer() argument
157 if (!buffer) { in LockBuffer()
170 auto hnd = PRIV_HANDLE_CONST(buffer); in LockBuffer()
175 Return<void> QtiMapper::lock(void *buffer, uint64_t cpu_usage, in lock() argument
178 auto err = LockBuffer(buffer, cpu_usage, acquire_fence); in lock()
184 auto hnd = PRIV_HANDLE_CONST(buffer); in lock()
190 Return<void> QtiMapper::lockYCbCr(void *buffer, uint64_t cpu_usage, in lockYCbCr() argument
194 auto err = LockBuffer(buffer, cpu_usage, acquire_fence); in lockYCbCr()
200 auto hnd = PRIV_HANDLE_CONST(buffer); in lockYCbCr()
215 Return<void> QtiMapper::unlock(void *buffer, unlock_cb hidl_cb) { in unlock() argument
217 if (buffer != nullptr) { in unlock()
218 err = buf_mgr_->UnlockBuffer(PRIV_HANDLE_CONST(buffer)); in unlock()
225 Return<Error> QtiMapper::validateBufferSize(void* buffer, in validateBufferSize() argument
229 auto hnd = static_cast<private_handle_t *>(buffer); in validateBufferSize()
230 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in validateBufferSize()
243 Return<void> QtiMapper::getTransportSize(void *buffer, in getTransportSize() argument
246 auto hnd = static_cast<private_handle_t *>(buffer); in getTransportSize()
248 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getTransportSize()
268 Return<void> QtiMapper::getMapSecureBufferFlag(void *buffer, getMapSecureBufferFlag_cb hidl_cb) { in getMapSecureBufferFlag() argument
270 auto hnd = static_cast<private_handle_t *>(buffer); in getMapSecureBufferFlag()
272 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getMapSecureBufferFlag()
283 Return<void> QtiMapper::getInterlacedFlag(void *buffer, getInterlacedFlag_cb hidl_cb) { in getInterlacedFlag() argument
285 auto hnd = static_cast<private_handle_t *>(buffer); in getInterlacedFlag()
287 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getInterlacedFlag()
298 Return<void> QtiMapper::getCustomDimensions(void *buffer, getCustomDimensions_cb hidl_cb) { in getCustomDimensions() argument
300 auto hnd = static_cast<private_handle_t *>(buffer); in getCustomDimensions()
303 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getCustomDimensions()
313 Return<void> QtiMapper::getRgbDataAddress(void *buffer, getRgbDataAddress_cb hidl_cb) { in getRgbDataAddress() argument
315 auto hnd = static_cast<private_handle_t *>(buffer); in getRgbDataAddress()
317 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getRgbDataAddress()
337 Return<void> QtiMapper::getColorSpace(void *buffer, getColorSpace_cb hidl_cb) { in getColorSpace() argument
339 auto hnd = static_cast<private_handle_t *>(buffer); in getColorSpace()
341 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getColorSpace()
349 Return<void> QtiMapper::getYuvPlaneInfo(void *buffer, getYuvPlaneInfo_cb hidl_cb) { in getYuvPlaneInfo() argument
351 auto hnd = static_cast<private_handle_t *>(buffer); in getYuvPlaneInfo()
355 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getYuvPlaneInfo()
372 Return<Error> QtiMapper::setSingleBufferMode(void *buffer, bool enable) { in setSingleBufferMode() argument
374 auto hnd = static_cast<private_handle_t *>(buffer); in setSingleBufferMode()
375 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in setSingleBufferMode()