Home | History | Annotate | Download | only in libgralloc

Lines Matching defs:hnd

163         private_handle_t *hnd = new private_handle_t(data.fd, size, flags,
167 hnd->offset = data.offset;
168 hnd->base = (uint64_t)(data.base) + data.offset;
169 hnd->gpuaddr = 0;
171 setMetaData(hnd, UPDATE_COLOR_SPACE, (void*) &colorSpace);
172 *pHandle = hnd;
227 private_handle_t* hnd = new private_handle_t(
242 hnd->base = vaddr;
243 hnd->offset = (unsigned int)(vaddr - m->framebuffer->base);
244 *pHandle = hnd;
348 int gpu_context_t::free_impl(private_handle_t const* hnd) {
350 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
352 unsigned int index = (unsigned int) ((hnd->base - m->framebuffer->base)
357 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd));
358 IMemAlloc* memalloc = mAllocCtrl->getAllocator(hnd->flags);
359 int err = memalloc->free_buffer((void*)hnd->base, hnd->size,
360 hnd->offset, hnd->fd);
365 err = memalloc->free_buffer((void*)hnd->base_metadata,
366 size, hnd->offset_metadata,
367 hnd->fd_metadata);
372 delete hnd;
405 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle);
407 return gpu->free_impl(hnd);