Lines Matching refs:hnd
151 private_handle_t *hnd = new private_handle_t(data.fd, size, flags,
155 hnd->offset = data.offset;
156 hnd->base = int(data.base) + data.offset;
157 hnd->gpuaddr = 0;
159 *pHandle = hnd;
219 private_handle_t* hnd = new private_handle_t(
234 hnd->base = vaddr;
235 hnd->offset = vaddr - intptr_t(m->framebuffer->base);
236 *pHandle = hnd;
316 int gpu_context_t::free_impl(private_handle_t const* hnd) {
318 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
320 int index = (hnd->base - m->framebuffer->base) / bufferSize;
324 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd));
325 IMemAlloc* memalloc = mAllocCtrl->getAllocator(hnd->flags);
326 int err = memalloc->free_buffer((void*)hnd->base, (size_t) hnd->size,
327 hnd->offset, hnd->fd);
332 err = memalloc->free_buffer((void*)hnd->base_metadata,
333 (size_t) size, hnd->offset_metadata,
334 hnd->fd_metadata);
338 delete hnd;
371 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle);
373 return gpu->free_impl(hnd);