• Home
  • Raw
  • Download

Lines Matching refs:private_handle_t

57     private_handle_t* hnd = (private_handle_t*)handle;  in gralloc_map()
58 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map()
82 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
83 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
108 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
121 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
133 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
142 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
144 ALOGE_IF(hnd->lockState & private_handle_t::LOCK_STATE_READ_MASK, in gralloc_unregister_buffer()
150 if (hnd->lockState & private_handle_t::LOCK_STATE_MAPPED) { in gralloc_unregister_buffer()
161 private_handle_t* hnd) in terminateBuffer()
168 ALOGE_IF(hnd->lockState & private_handle_t::LOCK_STATE_READ_MASK, in terminateBuffer()
172 if (hnd->lockState & private_handle_t::LOCK_STATE_MAPPED) { in terminateBuffer()
174 if ((hnd->flags & private_handle_t::PRIV_FLAGS_USES_PMEM) || in terminateBuffer()
175 (hnd->flags & private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP)) { in terminateBuffer()
195 if (private_handle_t::validate(handle) < 0) in gralloc_lock()
199 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock()
207 if (current_value & private_handle_t::LOCK_STATE_WRITE) { in gralloc_lock()
211 } else if (current_value & private_handle_t::LOCK_STATE_READ_MASK) { in gralloc_lock()
226 new_value |= private_handle_t::LOCK_STATE_WRITE; in gralloc_lock()
234 if (new_value & private_handle_t::LOCK_STATE_WRITE) { in gralloc_lock()
243 private_handle_t::PRIV_FLAGS_USES_PMEM | in gralloc_lock()
244 private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP; in gralloc_lock()
248 !(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_lock()
249 hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_lock()
253 if (!(current_value & private_handle_t::LOCK_STATE_MAPPED)) { in gralloc_lock()
257 if (!(hnd->lockState & private_handle_t::LOCK_STATE_MAPPED)) { in gralloc_lock()
260 android_atomic_or(private_handle_t::LOCK_STATE_MAPPED, in gralloc_lock()
275 if (private_handle_t::validate(handle) < 0) in gralloc_unlock()
278 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unlock()
281 if (hnd->flags & private_handle_t::PRIV_FLAGS_NEEDS_FLUSH) { in gralloc_unlock()
290 hnd->flags &= ~private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_unlock()
297 if (current_value & private_handle_t::LOCK_STATE_WRITE) { in gralloc_unlock()
301 new_value &= ~private_handle_t::LOCK_STATE_WRITE; in gralloc_unlock()
305 if ((new_value & private_handle_t::LOCK_STATE_READ_MASK) == 0) { in gralloc_unlock()