Lines Matching full:private_handle_t
65 private_handle_t* hnd = (private_handle_t*)handle;
71 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) &&
72 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) {
87 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
110 private_handle_t* hnd = (private_handle_t*)handle;
111 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
146 if (!module || private_handle_t::validate(handle) < 0)
158 private_handle_t* hnd = (private_handle_t*)handle;
174 if (!module || private_handle_t::validate(handle) < 0)
183 private_handle_t* hnd = (private_handle_t*)handle;
194 private_handle_t* hnd)
207 if (hnd->flags & (private_handle_t::PRIV_FLAGS_USES_PMEM |
208 private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP |
209 private_handle_t::PRIV_FLAGS_USES_ASHMEM |
210 private_handle_t::PRIV_FLAGS_USES_ION)) {
226 if (!module || private_handle_t::validate(handle) < 0)
230 private_handle_t* hnd = (private_handle_t*)handle;
239 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION and
240 hnd->flags & private_handle_t::PRIV_FLAGS_CACHED) {
245 (hnd->flags & private_handle_t::PRIV_FLAGS_NON_CPU_WRITER))
254 hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH;
268 private_handle_t* hnd = (private_handle_t*)handle;
281 private_handle_t* hnd = (private_handle_t*)handle;
292 if (!module || private_handle_t::validate(handle) < 0)
296 private_handle_t* hnd = (private_handle_t*)handle;
299 if (hnd->flags & private_handle_t::PRIV_FLAGS_NEEDS_FLUSH) {
303 hnd->flags &= ~private_handle_t::PRIV_FLAGS_NEEDS_FLUSH;
332 private_handle_t* hnd = (private_handle_t*)native_handle_create(
333 private_handle_t::sNumFds, private_handle_t::sNumInts());
335 hnd->magic = private_handle_t::sMagic;
337 hnd->flags = private_handle_t::PRIV_FLAGS_USES_ION;
365 private_handle_t* hnd = va_arg(args, private_handle_t*);
367 if (private_handle_t::validate(hnd)) {
381 private_handle_t* hnd = va_arg(args, private_handle_t*);
384 if (private_handle_t::validate(hnd)) {
416 private_handle_t* hnd = va_arg(args, private_handle_t*);
418 if (private_handle_t::validate(hnd)) {
429 private_handle_t* hnd = va_arg(args, private_handle_t*);
431 if (!private_handle_t::validate(hnd)) {