Lines Matching refs:m

192     private_module_t* m = reinterpret_cast<private_module_t*>(common.module);  in gralloc_alloc_framebuffer_locked()  local
199 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked()
204 const size_t bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked()
205 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked()
206 size_t bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked()
217 m->fbFormat, m->info.xres, m->info.yres); in gralloc_alloc_framebuffer_locked()
226 uintptr_t vaddr = uintptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
228 dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked()
231 BUFFER_TYPE_UI, m->fbFormat, m->info.xres, in gralloc_alloc_framebuffer_locked()
232 m->info.yres); in gralloc_alloc_framebuffer_locked()
237 m->bufferMask |= (1LU<<i); in gralloc_alloc_framebuffer_locked()
243 hnd->offset = vaddr - uintptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
252 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer() local
253 pthread_mutex_lock(&m->lock); in gralloc_alloc_framebuffer()
255 pthread_mutex_unlock(&m->lock); in gralloc_alloc_framebuffer()
327 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in free_impl() local
329 const size_t bufferSize = m->finfo.line_length * m->info.yres; in free_impl()
330 size_t index = (hnd->base - m->framebuffer->base) / bufferSize; in free_impl()
331 m->bufferMask &= ~(1LU<<index); in free_impl()
334 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()