Lines Matching full:private_handle_t
60 private_handle_t* hnd = (private_handle_t*)handle;
62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) &&
63 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) {
94 private_handle_t* hnd = (private_handle_t*)handle;
95 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
129 if (private_handle_t::validate(handle) < 0)
141 private_handle_t* hnd = (private_handle_t*)handle;
156 if (private_handle_t::validate(handle) < 0)
165 private_handle_t* hnd = (private_handle_t*)handle;
176 private_handle_t* hnd)
185 if (hnd->flags & (private_handle_t::PRIV_FLAGS_USES_PMEM |
186 private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP |
187 private_handle_t::PRIV_FLAGS_USES_ASHMEM |
188 private_handle_t::PRIV_FLAGS_USES_ION)) {
204 if (private_handle_t::validate(handle) < 0)
208 private_handle_t* hnd = (private_handle_t*)handle;
224 !(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
226 hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH;
229 hnd->flags |= private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH;
239 private_handle_t* hnd = (private_handle_t*)handle;
251 private_handle_t* hnd = (private_handle_t*)handle;
304 if (private_handle_t::validate(handle) < 0)
307 private_handle_t* hnd = (private_handle_t*)handle;
310 if (hnd->flags & private_handle_t::PRIV_FLAGS_NEEDS_FLUSH) {
314 hnd->flags &= ~private_handle_t::PRIV_FLAGS_NEEDS_FLUSH;
315 } else if(hnd->flags & private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH) {
316 hnd->flags &= ~private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH;
349 private_handle_t* hnd = (private_handle_t*)native_handle_create(
350 private_handle_t::sNumFds, private_handle_t::sNumInts);
351 hnd->magic = private_handle_t::sMagic;
353 hnd->flags = private_handle_t::PRIV_FLAGS_USES_ION;
372 private_handle_t* hnd = va_arg(args, private_handle_t*);
373 if (private_handle_t::validate(hnd)) {
393 private_handle_t* hnd = va_arg(args, private_handle_t*);
395 if (private_handle_t::validate(hnd)) {