Lines Matching refs:hnd
157 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, in gralloc_alloc_buffer() local
161 hnd->offset = data.offset; in gralloc_alloc_buffer()
162 hnd->base = (uintptr_t)(data.base) + data.offset; in gralloc_alloc_buffer()
163 hnd->gpuaddr = 0; in gralloc_alloc_buffer()
164 setMetaData(hnd, UPDATE_COLOR_SPACE, (void*) &colorSpace); in gralloc_alloc_buffer()
166 *pHandle = hnd; in gralloc_alloc_buffer()
226 private_handle_t* hnd = new private_handle_t( in gralloc_alloc_framebuffer_locked() local
241 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked()
242 hnd->offset = vaddr - uintptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
243 *pHandle = hnd; in gralloc_alloc_framebuffer_locked()
320 int gpu_context_t::free_impl(private_handle_t const* hnd) { in free_impl() argument
322 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in free_impl()
324 size_t index = (hnd->base - m->framebuffer->base) / bufferSize; in free_impl()
328 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()
329 IMemAlloc* memalloc = mAllocCtrl->getAllocator(hnd->flags); in free_impl()
330 int err = memalloc->free_buffer((void*)hnd->base, (size_t) hnd->size, in free_impl()
331 hnd->offset, hnd->fd); in free_impl()
336 err = memalloc->free_buffer((void*)hnd->base_metadata, in free_impl()
337 size, hnd->offset_metadata, in free_impl()
338 hnd->fd_metadata); in free_impl()
342 delete hnd; in free_impl()
375 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); in gralloc_free() local
377 return gpu->free_impl(hnd); in gralloc_free()