Lines Matching refs:private_handle_t
61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
95 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
96 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
130 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
142 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
157 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
166 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
177 private_handle_t* hnd) in terminateBuffer()
186 if (hnd->flags & (private_handle_t::PRIV_FLAGS_USES_PMEM | in terminateBuffer()
187 private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP | in terminateBuffer()
188 private_handle_t::PRIV_FLAGS_USES_ASHMEM | in terminateBuffer()
189 private_handle_t::PRIV_FLAGS_USES_ION)) { in terminateBuffer()
205 if (private_handle_t::validate(handle) < 0) in gralloc_map_and_invalidate()
209 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_and_invalidate()
225 !(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_and_invalidate()
227 hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_map_and_invalidate()
230 hnd->flags |= private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_map_and_invalidate()
240 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock()
252 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock_ycbcr()
281 if (private_handle_t::validate(handle) < 0) in gralloc_unlock()
284 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unlock()
287 if (hnd->flags & private_handle_t::PRIV_FLAGS_NEEDS_FLUSH) { in gralloc_unlock()
291 hnd->flags &= ~private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_unlock()
292 } else if(hnd->flags & private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH) { in gralloc_unlock()
293 hnd->flags &= ~private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_unlock()
326 private_handle_t* hnd = (private_handle_t*)native_handle_create( in gralloc_perform()
327 private_handle_t::sNumFds, private_handle_t::sNumInts); in gralloc_perform()
328 hnd->magic = private_handle_t::sMagic; in gralloc_perform()
330 hnd->flags = private_handle_t::PRIV_FLAGS_USES_ION; in gralloc_perform()
349 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
350 if (private_handle_t::validate(hnd)) { in gralloc_perform()
370 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
372 if (private_handle_t::validate(hnd)) { in gralloc_perform()