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()
98 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
99 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
133 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
145 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
160 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
169 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
180 private_handle_t* hnd) in terminateBuffer()
192 if (hnd->flags & (private_handle_t::PRIV_FLAGS_USES_PMEM | in terminateBuffer()
193 private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP | in terminateBuffer()
194 private_handle_t::PRIV_FLAGS_USES_ASHMEM | in terminateBuffer()
195 private_handle_t::PRIV_FLAGS_USES_ION)) { in terminateBuffer()
210 if (!module || private_handle_t::validate(handle) < 0) in gralloc_map_and_invalidate()
214 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_and_invalidate()
223 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) { in gralloc_map_and_invalidate()
232 hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_map_and_invalidate()
236 hnd->flags |= private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_map_and_invalidate()
246 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock()
258 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock_ycbcr()
268 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unlock()
272 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unlock()
274 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) { in gralloc_unlock()
276 if (hnd->flags & private_handle_t::PRIV_FLAGS_NEEDS_FLUSH) { in gralloc_unlock()
280 hnd->flags &= ~private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_unlock()
281 } else if(hnd->flags & private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH) { in gralloc_unlock()
282 hnd->flags &= ~private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_unlock()
318 private_handle_t* hnd = (private_handle_t*)native_handle_create( in gralloc_perform()
319 private_handle_t::sNumFds, private_handle_t::sNumInts()); in gralloc_perform()
320 hnd->magic = private_handle_t::sMagic; in gralloc_perform()
322 hnd->flags = private_handle_t::PRIV_FLAGS_USES_ION; in gralloc_perform()
341 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
342 if (private_handle_t::validate(hnd)) { in gralloc_perform()
366 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
368 if (private_handle_t::validate(hnd)) { in gralloc_perform()
382 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
385 if (private_handle_t::validate(hnd)) { in gralloc_perform()
417 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
419 if (private_handle_t::validate(hnd)) { in gralloc_perform()
430 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
432 if (!private_handle_t::validate(hnd)) { in gralloc_perform()