Lines Matching refs:private_handle_t
65 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
71 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
72 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
87 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map()
110 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
111 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
146 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
158 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
174 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
183 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
194 private_handle_t* hnd) in terminateBuffer()
207 if (hnd->flags & (private_handle_t::PRIV_FLAGS_USES_PMEM | in terminateBuffer()
208 private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP | in terminateBuffer()
209 private_handle_t::PRIV_FLAGS_USES_ASHMEM | in terminateBuffer()
210 private_handle_t::PRIV_FLAGS_USES_ION)) { in terminateBuffer()
226 if (!module || private_handle_t::validate(handle) < 0) in gralloc_map_and_invalidate()
230 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_and_invalidate()
239 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION and in gralloc_map_and_invalidate()
240 hnd->flags & private_handle_t::PRIV_FLAGS_CACHED) { in gralloc_map_and_invalidate()
245 (hnd->flags & private_handle_t::PRIV_FLAGS_NON_CPU_WRITER)) in gralloc_map_and_invalidate()
254 hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_map_and_invalidate()
268 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock()
281 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock_ycbcr()
292 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unlock()
296 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unlock()
299 if (hnd->flags & private_handle_t::PRIV_FLAGS_NEEDS_FLUSH) { in gralloc_unlock()
303 hnd->flags &= ~private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_unlock()
332 private_handle_t* hnd = (private_handle_t*)native_handle_create( in gralloc_perform()
333 private_handle_t::sNumFds, private_handle_t::sNumInts()); in gralloc_perform()
335 hnd->magic = private_handle_t::sMagic; in gralloc_perform()
337 hnd->flags = private_handle_t::PRIV_FLAGS_USES_ION; in gralloc_perform()
365 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
367 if (private_handle_t::validate(hnd)) { in gralloc_perform()
381 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
384 if (private_handle_t::validate(hnd)) { in gralloc_perform()
416 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
418 if (private_handle_t::validate(hnd)) { in gralloc_perform()
429 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
431 if (!private_handle_t::validate(hnd)) { in gralloc_perform()