Lines Matching refs:m
193 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer_locked() local
197 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked()
202 const unsigned int bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked()
203 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked()
204 unsigned int bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked()
215 m->fbFormat, m->info.xres, m->info.yres); in gralloc_alloc_framebuffer_locked()
224 uint64_t vaddr = uint64_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 |= (uint32_t)(1LU<<i); in gralloc_alloc_framebuffer_locked()
243 hnd->offset = (unsigned int)(vaddr - 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()
349 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in free_impl() local
351 const unsigned int bufferSize = m->finfo.line_length * m->info.yres; in free_impl()
352 unsigned int index = (unsigned int) ((hnd->base - m->framebuffer->base) in free_impl()
354 m->bufferMask &= (uint32_t)~(1LU<<index); in free_impl()
357 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()