Lines Matching refs:m
195 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer_locked() local
202 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked()
207 const unsigned int bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked()
208 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked()
209 unsigned int bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked()
220 m->fbFormat, m->info.xres, m->info.yres); in gralloc_alloc_framebuffer_locked()
229 uint64_t vaddr = uint64_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
231 dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked()
234 BUFFER_TYPE_UI, m->fbFormat, m->info.xres, in gralloc_alloc_framebuffer_locked()
235 m->info.yres); in gralloc_alloc_framebuffer_locked()
240 m->bufferMask |= (uint32_t)(1LU<<i); in gralloc_alloc_framebuffer_locked()
246 hnd->offset = (unsigned int)(vaddr - m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
255 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer() local
256 pthread_mutex_lock(&m->lock); in gralloc_alloc_framebuffer()
258 pthread_mutex_unlock(&m->lock); in gralloc_alloc_framebuffer()
329 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in free_impl() local
331 const unsigned int bufferSize = m->finfo.line_length * m->info.yres; in free_impl()
332 unsigned int index = (unsigned int) ((hnd->base - m->framebuffer->base) in free_impl()
334 m->bufferMask &= (uint32_t)~(1LU<<index); in free_impl()
337 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()