Home | History | Annotate | Download | only in libgralloc

Lines Matching defs:hnd

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