Lines Matching refs:m
211 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer_locked() local
218 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked()
223 const unsigned int bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked()
224 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked()
225 unsigned int bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked()
236 m->fbFormat, m->info.xres, m->info.yres); in gralloc_alloc_framebuffer_locked()
245 uint64_t vaddr = uint64_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
249 dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked()
252 BUFFER_TYPE_UI, m->fbFormat, m->info.xres, in gralloc_alloc_framebuffer_locked()
253 m->info.yres); in gralloc_alloc_framebuffer_locked()
258 m->bufferMask |= (uint32_t)(1LU<<i); in gralloc_alloc_framebuffer_locked()
264 hnd->offset = (unsigned int)(vaddr - m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
273 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer() local
274 pthread_mutex_lock(&m->lock); in gralloc_alloc_framebuffer()
276 pthread_mutex_unlock(&m->lock); in gralloc_alloc_framebuffer()
356 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in free_impl() local
358 const unsigned int bufferSize = m->finfo.line_length * m->info.yres; in free_impl()
359 unsigned int index = (unsigned int) ((hnd->base - m->framebuffer->base) in free_impl()
361 m->bufferMask &= (uint32_t)~(1LU<<index); in free_impl()
364 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()