Lines Matching refs:private_handle_t
64 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
71 private_handle_t *hnd = (private_handle_t *)handle; in gralloc_register_buffer()
97 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) in gralloc_register_buffer()
101 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP) in gralloc_register_buffer()
113 hnd->lockState &= ~(private_handle_t::LOCK_STATE_UNREGISTERED); in gralloc_register_buffer()
133 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) in gralloc_register_buffer()
180 hnd->lockState &= ~(private_handle_t::LOCK_STATE_UNREGISTERED); in gralloc_register_buffer()
195 static void unmap_buffer(private_handle_t *hnd) in unmap_buffer()
197 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP) in unmap_buffer()
207 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) in unmap_buffer()
237 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
243 private_handle_t *hnd = (private_handle_t *)handle; in gralloc_unregister_buffer()
245 …AERR_IF(hnd->lockState & private_handle_t::LOCK_STATE_READ_MASK, "[unregister] handle %p still loc… in gralloc_unregister_buffer()
247 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) in gralloc_unregister_buffer()
255 hnd->lockState &= ~(private_handle_t::LOCK_STATE_MAPPED); in gralloc_unregister_buffer()
258 if (!(hnd->lockState & private_handle_t::LOCK_STATE_WRITE)) in gralloc_unregister_buffer()
263 hnd->lockState |= private_handle_t::LOCK_STATE_UNREGISTERED; in gralloc_unregister_buffer()
277 if (private_handle_t::validate(handle) < 0) in gralloc_lock()
283 private_handle_t *hnd = (private_handle_t *)handle; in gralloc_lock()
287 if (hnd->lockState & private_handle_t::LOCK_STATE_UNREGISTERED) in gralloc_lock()
294 …if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP || hnd->flags & private_handle_t::PRIV_FLAG… in gralloc_lock()
299 hnd->lockState |= private_handle_t::LOCK_STATE_WRITE; in gralloc_lock()
320 if (private_handle_t::validate(handle) < 0) in gralloc_unlock()
326 private_handle_t *hnd = (private_handle_t *)handle; in gralloc_unlock()
331 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP && hnd->writeOwner) in gralloc_unlock()
339 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION && hnd->writeOwner) in gralloc_unlock()
360 hnd->lockState &= ~(private_handle_t::LOCK_STATE_WRITE); in gralloc_unlock()
363 if (hnd->lockState & private_handle_t::LOCK_STATE_UNREGISTERED) in gralloc_unlock()