Lines Matching refs:m
195 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 unsigned int bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked()
205 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked()
206 unsigned int 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 uint64_t vaddr = uint64_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
230 dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked()
233 BUFFER_TYPE_UI, m->fbFormat, m->info.xres, in gralloc_alloc_framebuffer_locked()
234 m->info.yres); in gralloc_alloc_framebuffer_locked()
239 m->bufferMask |= (uint32_t)(1LU<<i); in gralloc_alloc_framebuffer_locked()
245 hnd->offset = (unsigned int)(vaddr - m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
254 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer() local
255 pthread_mutex_lock(&m->lock); in gralloc_alloc_framebuffer()
257 pthread_mutex_unlock(&m->lock); in gralloc_alloc_framebuffer()
351 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in free_impl() local
353 const unsigned int bufferSize = m->finfo.line_length * m->info.yres; in free_impl()
354 unsigned int index = (unsigned int) ((hnd->base - m->framebuffer->base) in free_impl()
356 m->bufferMask &= (uint32_t)~(1LU<<index); in free_impl()
359 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()