Lines Matching refs:hnd
82 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked() local
95 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked()
96 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
97 *pHandle = hnd; in gralloc_alloc_framebuffer_locked()
187 private_handle_t* hnd = new private_handle_t(fd, size, flags); in gralloc_alloc_buffer() local
188 hnd->offset = offset; in gralloc_alloc_buffer()
189 hnd->base = int(base)+offset; in gralloc_alloc_buffer()
190 hnd->lockState = lockState; in gralloc_alloc_buffer()
191 *pHandle = hnd; in gralloc_alloc_buffer()
275 int gpu_context_t::free_impl(private_handle_t const* hnd) { in free_impl() argument
277 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in free_impl()
280 int index = (hnd->base - m->framebuffer->base) / bufferSize; in free_impl()
284 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_PMEM) { in free_impl()
286 } else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP) { in free_impl()
290 pmem_allocator->free_pmem_buffer(hnd->size, (void*)hnd->base, in free_impl()
291 hnd->offset, hnd->fd); in free_impl()
293 deps.terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()
296 deps.close(hnd->fd); in free_impl()
297 delete hnd; // XXX JMG: move this to the deps in free_impl()
321 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); in gralloc_free() local
323 return gpu->free_impl(hnd); in gralloc_free()