Home | History | Annotate | Download | only in gralloc

Lines Matching full:private_handle_t

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