• Home
  • Raw
  • Download

Lines Matching refs:hnd

145         private_handle_t *hnd = new private_handle_t(data.fd, size, flags,  in gralloc_alloc_buffer()  local
149 hnd->offset = data.offset; in gralloc_alloc_buffer()
150 hnd->base = int(data.base) + data.offset; in gralloc_alloc_buffer()
151 hnd->gpuaddr = 0; in gralloc_alloc_buffer()
153 *pHandle = hnd; in gralloc_alloc_buffer()
213 private_handle_t* hnd = new private_handle_t( in gralloc_alloc_framebuffer_locked() local
228 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked()
229 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
230 *pHandle = hnd; in gralloc_alloc_framebuffer_locked()
307 int gpu_context_t::free_impl(private_handle_t const* hnd) { in free_impl() argument
309 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in free_impl()
311 int index = (hnd->base - m->framebuffer->base) / bufferSize; in free_impl()
315 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()
316 IMemAlloc* memalloc = mAllocCtrl->getAllocator(hnd->flags); in free_impl()
317 int err = memalloc->free_buffer((void*)hnd->base, (size_t) hnd->size, in free_impl()
318 hnd->offset, hnd->fd); in free_impl()
323 err = memalloc->free_buffer((void*)hnd->base_metadata, in free_impl()
324 (size_t) size, hnd->offset_metadata, in free_impl()
325 hnd->fd_metadata); in free_impl()
329 delete hnd; in free_impl()
362 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); in gralloc_free() local
364 return gpu->free_impl(hnd); in gralloc_free()