• Home
  • Raw
  • Download

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()
218 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) { in gralloc_map_and_invalidate()
227 hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_map_and_invalidate()
231 hnd->flags |= private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_map_and_invalidate()
241 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock()
253 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock_ycbcr()
282 if (private_handle_t::validate(handle) < 0) in gralloc_unlock()
285 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unlock()
287 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) { in gralloc_unlock()
289 if (hnd->flags & private_handle_t::PRIV_FLAGS_NEEDS_FLUSH) { in gralloc_unlock()
293 hnd->flags &= ~private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_unlock()
294 } else if(hnd->flags & private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH) { in gralloc_unlock()
295 hnd->flags &= ~private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_unlock()
329 private_handle_t* hnd = (private_handle_t*)native_handle_create( in gralloc_perform()
330 private_handle_t::sNumFds, private_handle_t::sNumInts); in gralloc_perform()
331 hnd->magic = private_handle_t::sMagic; in gralloc_perform()
333 hnd->flags = private_handle_t::PRIV_FLAGS_USES_ION; in gralloc_perform()
352 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
353 if (private_handle_t::validate(hnd)) { in gralloc_perform()
373 private_handle_t* hnd = va_arg(args, private_handle_t*); in gralloc_perform()
375 if (private_handle_t::validate(hnd)) { in gralloc_perform()