Lines Matching refs:hnd

161         private_handle_t *hnd = new private_handle_t(data.fd, size, flags,  in gralloc_alloc_buffer()  local
165 hnd->offset = data.offset; in gralloc_alloc_buffer()
166 hnd->base = (uint64_t)(data.base) + data.offset; in gralloc_alloc_buffer()
167 hnd->gpuaddr = 0; in gralloc_alloc_buffer()
168 setMetaData(hnd, UPDATE_COLOR_SPACE, (void*) &colorSpace); in gralloc_alloc_buffer()
170 *pHandle = hnd; in gralloc_alloc_buffer()
230 private_handle_t* hnd = new private_handle_t( in gralloc_alloc_framebuffer_locked() local
245 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked()
246 hnd->offset = (unsigned int)(vaddr - m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
247 *pHandle = hnd; in gralloc_alloc_framebuffer_locked()
324 int gpu_context_t::free_impl(private_handle_t const* hnd) { in free_impl() argument
326 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in free_impl()
328 unsigned int index = (unsigned int) ((hnd->base - m->framebuffer->base) in free_impl()
333 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()
334 IMemAlloc* memalloc = mAllocCtrl->getAllocator(hnd->flags); in free_impl()
335 int err = memalloc->free_buffer((void*)hnd->base, hnd->size, in free_impl()
336 hnd->offset, hnd->fd); in free_impl()
341 err = memalloc->free_buffer((void*)hnd->base_metadata, in free_impl()
342 size, hnd->offset_metadata, in free_impl()
343 hnd->fd_metadata); in free_impl()
347 delete hnd; in free_impl()
380 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); in gralloc_free() local
382 return gpu->free_impl(hnd); in gralloc_free()