Lines Matching refs:base
71 hnd->base = 0; in gralloc_map()
75 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
97 void* base = (void*)hnd->base; in gralloc_unmap() local
101 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
103 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
105 base = (void*)hnd->base_metadata; in gralloc_unmap()
107 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
109 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
115 hnd->base = 0; in gralloc_unmap()
142 hnd->base = 0; in gralloc_register_buffer()
167 if (hnd->base != 0) { in gralloc_unregister_buffer()
170 hnd->base = 0; in gralloc_unregister_buffer()
183 if (hnd->base != 0) { in terminateBuffer()
210 if (hnd->base == 0) { in gralloc_map_and_invalidate()
220 err = memalloc->clean_buffer((void*)hnd->base, in gralloc_map_and_invalidate()
242 *vaddr = (void*)hnd->base; in gralloc_lock()
260 ycbcr->y = (void*)hnd->base; in gralloc_lock_ycbcr()
261 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height); in gralloc_lock_ycbcr()
262 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height + 1); in gralloc_lock_ycbcr()
271 ycbcr->y = (void*)hnd->base; in gralloc_lock_ycbcr()
272 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height); in gralloc_lock_ycbcr()
273 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1); in gralloc_lock_ycbcr()
283 ycbcr->y = (void*)hnd->base; in gralloc_lock_ycbcr()
284 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height); in gralloc_lock_ycbcr()
285 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height in gralloc_lock_ycbcr()
311 err = memalloc->clean_buffer((void*)hnd->base, in gralloc_unlock()
320 err = memalloc->clean_buffer((void*)hnd->base, in gralloc_unlock()
342 void* base = va_arg(args, void*); in gralloc_perform() local
356 hnd->base = intptr_t(base) + offset; in gralloc_perform()