Lines Matching refs:flags
47 static IMemAlloc* getAllocator(int flags) in getAllocator() argument
51 memalloc = alloc_ctrl->getAllocator(flags); in getAllocator()
63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
66 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map()
99 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
103 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_unmap()
192 if (hnd->flags & (private_handle_t::PRIV_FLAGS_USES_PMEM | in terminateBuffer()
199 hnd->flags); in terminateBuffer()
223 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) { in gralloc_map_and_invalidate()
226 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map_and_invalidate()
232 hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_map_and_invalidate()
236 hnd->flags |= private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_map_and_invalidate()
274 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) { in gralloc_unlock()
275 IMemAlloc* memalloc = getAllocator(hnd->flags); in gralloc_unlock()
276 if (hnd->flags & private_handle_t::PRIV_FLAGS_NEEDS_FLUSH) { in gralloc_unlock()
280 hnd->flags &= ~private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_unlock()
281 } else if(hnd->flags & private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH) { in gralloc_unlock()
282 hnd->flags &= ~private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_unlock()
322 hnd->flags = private_handle_t::PRIV_FLAGS_USES_ION; in gralloc_perform()