Lines Matching refs:hnd
50 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local
51 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map()
52 size_t size = hnd->size; in gralloc_map()
54 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0); in gralloc_map()
59 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
63 *vaddr = (void*)hnd->base; in gralloc_map()
70 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap() local
71 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
72 void* base = (void*)hnd->base; in gralloc_unmap()
73 size_t size = hnd->size; in gralloc_unmap()
79 hnd->base = 0; in gralloc_unmap()
130 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer() local
131 ALOGD_IF(hnd->pid == getpid(), in gralloc_register_buffer()
145 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer() local
146 if (hnd->base) in gralloc_unregister_buffer()
153 private_handle_t* hnd) in mapBuffer() argument
156 return gralloc_map(module, hnd, &vaddr); in mapBuffer()
160 private_handle_t* hnd) in terminateBuffer() argument
162 if (hnd->base) { in terminateBuffer()
164 gralloc_unmap(module, hnd); in terminateBuffer()
186 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock() local
187 *vaddr = (void*)hnd->base; in gralloc_lock()