Lines Matching refs:private_handle_t
60 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
63 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
94 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
95 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
129 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
141 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
156 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
165 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
176 private_handle_t* hnd) in terminateBuffer()
185 if (hnd->flags & (private_handle_t::PRIV_FLAGS_USES_PMEM | in terminateBuffer()
186 private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP | in terminateBuffer()
187 private_handle_t::PRIV_FLAGS_USES_ASHMEM | in terminateBuffer()
188 private_handle_t::PRIV_FLAGS_USES_ION)) { in terminateBuffer()
204 if (private_handle_t::validate(handle) < 0) in gralloc_map_and_invalidate()
208 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_and_invalidate()
224 !(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_and_invalidate()
226 hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_map_and_invalidate()
229 hnd->flags |= private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_map_and_invalidate()
239 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock()
251 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock_ycbcr()
304 if (private_handle_t::validate(handle) < 0) in gralloc_unlock()
307 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unlock()
310 if (hnd->flags & private_handle_t::PRIV_FLAGS_NEEDS_FLUSH) { in gralloc_unlock()
314 hnd->flags &= ~private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_unlock()
315 } else if(hnd->flags & private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH) { in gralloc_unlock()
316 hnd->flags &= ~private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_unlock()
349 private_handle_t* hnd = (private_handle_t*)native_handle_create( in gralloc_perform()
350 private_handle_t::sNumFds, private_handle_t::sNumInts); in gralloc_perform()
351 hnd->magic = private_handle_t::sMagic; in gralloc_perform()
353 hnd->flags = private_handle_t::PRIV_FLAGS_USES_ION; in gralloc_perform()
372 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
373 if (private_handle_t::validate(hnd)) { in gralloc_perform()
393 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
395 if (private_handle_t::validate(hnd)) { in gralloc_perform()