Lines Matching refs:hnd

151         private_handle_t *hnd = new private_handle_t(data.fd, size, flags,  in gralloc_alloc_buffer()  local
155 hnd->offset = data.offset; in gralloc_alloc_buffer()
156 hnd->base = int(data.base) + data.offset; in gralloc_alloc_buffer()
157 hnd->gpuaddr = 0; in gralloc_alloc_buffer()
159 *pHandle = hnd; in gralloc_alloc_buffer()
219 private_handle_t* hnd = new private_handle_t( in gralloc_alloc_framebuffer_locked() local
234 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked()
235 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
236 *pHandle = hnd; in gralloc_alloc_framebuffer_locked()
322 int gpu_context_t::free_impl(private_handle_t const* hnd) { in free_impl() argument
324 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in free_impl()
326 int index = (hnd->base - m->framebuffer->base) / bufferSize; in free_impl()
330 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()
331 IMemAlloc* memalloc = mAllocCtrl->getAllocator(hnd->flags); in free_impl()
332 int err = memalloc->free_buffer((void*)hnd->base, (size_t) hnd->size, in free_impl()
333 hnd->offset, hnd->fd); in free_impl()
338 err = memalloc->free_buffer((void*)hnd->base_metadata, in free_impl()
339 (size_t) size, hnd->offset_metadata, in free_impl()
340 hnd->fd_metadata); in free_impl()
344 delete hnd; in free_impl()
377 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); in gralloc_free() local
379 return gpu->free_impl(hnd); in gralloc_free()