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 = uintptr_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()
126 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer() local
127 ALOGD_IF(hnd->pid == getpid(), in gralloc_register_buffer()
141 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer() local
142 if (hnd->base) in gralloc_unregister_buffer()
149 private_handle_t* hnd) in mapBuffer() argument
152 return gralloc_map(module, hnd, &vaddr); in mapBuffer()
156 private_handle_t* hnd) in terminateBuffer() argument
158 if (hnd->base) { in terminateBuffer()
160 gralloc_unmap(module, hnd); in terminateBuffer()
182 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock() local
183 *vaddr = (void*)hnd->base; in gralloc_lock()