Home | History | Annotate | Download | only in gralloc

Lines Matching refs:hnd

50     private_handle_t* hnd = (private_handle_t*)handle;
51 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
52 size_t size = hnd->size;
54 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0);
59 hnd->base = intptr_t(mappedAddress) + hnd->offset;
61 // hnd->fd, hnd->offset, hnd->size, mappedAddress);
63 *vaddr = (void*)hnd->base;
70 private_handle_t* hnd = (private_handle_t*)handle;
71 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
72 void* base = (void*)hnd->base;
73 size_t size = hnd->size;
79 hnd->base = 0;
97 private_handle_t* hnd = (private_handle_t*)handle;
98 if (hnd->pid != getpid()) {
112 private_handle_t* hnd = (private_handle_t*)handle;
113 if (hnd->pid != getpid()) {
114 if (hnd->base) {
122 private_handle_t* hnd)
125 return gralloc_map(module, hnd, &vaddr);
129 private_handle_t* hnd)
131 if (hnd->base) {
133 gralloc_unmap(module, hnd);
155 private_handle_t* hnd = (private_handle_t*)handle;
156 *vaddr = (void*)hnd->base;