Lines Matching refs:private_handle_t
82 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size,
83 private_handle_t::PRIV_FLAGS_USES_PMEM |
84 private_handle_t::PRIV_FLAGS_FRAMEBUFFER);
130 flags |= private_handle_t::PRIV_FLAGS_USES_PMEM;
134 flags |= private_handle_t::PRIV_FLAGS_USES_PMEM;
138 flags |= private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP;
139 flags &= ~private_handle_t::PRIV_FLAGS_USES_PMEM;
144 if ((flags & private_handle_t::PRIV_FLAGS_USES_PMEM) != 0 ||
145 (flags & private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP) != 0) {
149 if ((flags & private_handle_t::PRIV_FLAGS_USES_PMEM) != 0) {
150 if ((flags & private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP) != 0) {
154 flags &= ~private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP;
157 } else { // (flags & private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP) != 0
162 lockState |= private_handle_t::LOCK_STATE_MAPPED;
170 flags &= ~private_handle_t::PRIV_FLAGS_USES_PMEM;
187 private_handle_t* hnd = new private_handle_t(fd, size, flags);
275 int gpu_context_t::free_impl(private_handle_t const* hnd) {
277 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
284 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_PMEM) {
286 } else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP) {
293 deps.terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd));
318 if (private_handle_t::validate(handle) < 0)
321 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle);