Lines Matching refs:m
75 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_post() local
77 if (m->currentBuffer) in fb_post()
79 m->base.unlock(&m->base, m->currentBuffer); in fb_post()
80 m->currentBuffer = 0; in fb_post()
85 m->base.lock(&m->base, buffer, private_module_t::PRIV_USAGE_LOCKED_FOR_POST, in fb_post()
86 0, 0, m->info.xres, m->info.yres, NULL); in fb_post()
88 const size_t offset = (uintptr_t)hnd->base - (uintptr_t)m->framebuffer->base; in fb_post()
90 m->info.activate = FB_ACTIVATE_VBL; in fb_post()
91 m->info.yoffset = offset / m->finfo.line_length; in fb_post()
97 int fbdev_fd = m->framebuffer->shallow_fbdev_fd; in fb_post()
99 if (ioctl(fbdev_fd, FBIOPAN_DISPLAY, &m->info) == -1) in fb_post()
102 m->base.unlock(&m->base, buffer); in fb_post()
151 if (ioctl(fbdev_fd, FBIOPUT_VSCREENINFO, &m->info) == -1) in fb_post()
157 m->base.unlock(&m->base, buffer); in fb_post()
166 m->currentBuffer = buffer; in fb_post()
173 m->base.lock(&m->base, m->framebuffer, GRALLOC_USAGE_SW_WRITE_RARELY, in fb_post()
174 0, 0, m->info.xres, m->info.yres, &fb_vaddr); in fb_post()
176 m->base.lock(&m->base, buffer, GRALLOC_USAGE_SW_READ_RARELY, in fb_post()
177 0, 0, m->info.xres, m->info.yres, &buffer_vaddr); in fb_post()
179 memcpy(fb_vaddr, buffer_vaddr, m->finfo.line_length * m->info.yres); in fb_post()
181 m->base.unlock(&m->base, buffer); in fb_post()
182 m->base.unlock(&m->base, m->framebuffer); in fb_post()
463 private_module_t *m = (private_module_t *)module; in framebuffer_device_open() local
464 status = init_frame_buffer(m); in framebuffer_device_open()
492 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3); in framebuffer_device_open()
494 const_cast<uint32_t &>(dev->width) = m->info.xres; in framebuffer_device_open()
495 const_cast<uint32_t &>(dev->height) = m->info.yres; in framebuffer_device_open()
502 const_cast<float &>(dev->xdpi) = m->xdpi; in framebuffer_device_open()
503 const_cast<float &>(dev->ydpi) = m->ydpi; in framebuffer_device_open()
504 const_cast<float &>(dev->fps) = m->fps; in framebuffer_device_open()