• Home
  • Raw
  • Download

Lines Matching refs:m

47     private_module_t* m = reinterpret_cast<private_module_t*>(common.module);  in gralloc_alloc_framebuffer_locked()  local
55 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked()
58 int err = deps.mapFrameBufferLocked(m); in gralloc_alloc_framebuffer_locked()
64 const uint32_t bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked()
65 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked()
66 const size_t bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked()
81 intptr_t vaddr = intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
82 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked()
89 m->bufferMask |= (1LU<<i); in gralloc_alloc_framebuffer_locked()
96 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
106 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer() local
107 pthread_mutex_lock(&m->lock); in gralloc_alloc_framebuffer()
109 pthread_mutex_unlock(&m->lock); in gralloc_alloc_framebuffer()
142 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_buffer() local
276 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in free_impl() local
279 const size_t bufferSize = m->finfo.line_length * m->info.yres; in free_impl()
280 int index = (hnd->base - m->framebuffer->base) / bufferSize; in free_impl()
281 m->bufferMask &= ~(1<<index); in free_impl()
293 deps.terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()