Lines Matching refs:hnd
138 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked() local
150 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked()
151 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
152 *pHandle = hnd; in gralloc_alloc_framebuffer_locked()
183 private_handle_t* hnd = new private_handle_t(fd, size, 0); in gralloc_alloc_buffer() local
186 err = mapBuffer(module, hnd); in gralloc_alloc_buffer()
188 *pHandle = hnd; in gralloc_alloc_buffer()
252 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); in gralloc_free() local
253 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in gralloc_free()
258 int index = (hnd->base - m->framebuffer->base) / bufferSize; in gralloc_free()
263 terminateBuffer(module, const_cast<private_handle_t*>(hnd)); in gralloc_free()
266 close(hnd->fd); in gralloc_free()
267 delete hnd; in gralloc_free()