Lines Matching refs:m
106 private_module_t* m = reinterpret_cast<private_module_t*>( in gralloc_alloc_framebuffer_locked() local
110 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked()
113 int err = mapFrameBufferLocked(m, format); in gralloc_alloc_framebuffer_locked()
119 const uint32_t bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked()
120 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked()
121 const size_t bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked()
136 intptr_t vaddr = intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
137 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked()
143 m->bufferMask |= (1LU<<i); in gralloc_alloc_framebuffer_locked()
150 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
159 private_module_t* m = reinterpret_cast<private_module_t*>( in gralloc_alloc_framebuffer() local
161 pthread_mutex_lock(&m->lock); in gralloc_alloc_framebuffer()
163 pthread_mutex_unlock(&m->lock); in gralloc_alloc_framebuffer()
261 private_module_t* m = reinterpret_cast<private_module_t*>( in gralloc_free() local
263 const size_t bufferSize = m->finfo.line_length * m->info.yres; in gralloc_free()
264 int index = (hnd->base - m->framebuffer->base) / bufferSize; in gralloc_free()
265 m->bufferMask &= ~(1<<index); in gralloc_free()