Lines Matching refs:m

76 	private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module);  in fb_post()  local
78 if (m->currentBuffer) in fb_post()
80 m->base.unlock(&m->base, m->currentBuffer); in fb_post()
81 m->currentBuffer = 0; in fb_post()
86 m->base.lock(&m->base, buffer, private_module_t::PRIV_USAGE_LOCKED_FOR_POST, in fb_post()
87 0, 0, m->info.xres, m->info.yres, NULL); in fb_post()
90 m->info.activate = FB_ACTIVATE_VBL; in fb_post()
91 m->info.yoffset = hnd->offset / m->finfo.line_length; in fb_post()
97 if (ioctl(m->framebuffer->fd, FBIOPAN_DISPLAY, &m->info) == -1) in fb_post()
99 AERR("FBIOPAN_DISPLAY failed for fd: %d", m->framebuffer->fd); in fb_post()
100 m->base.unlock(&m->base, buffer); in fb_post()
109 if (ioctl(m->framebuffer->fd, S3CFB_SET_VSYNC_INT, &interrupt) < 0) in fb_post()
121 if (ioctl(m->framebuffer->fd, FBIO_WAITFORVSYNC, &crtc) < 0) in fb_post()
123 AERR("FBIO_WAITFORVSYNC failed for fd: %d", m->framebuffer->fd); in fb_post()
136 if (ioctl(m->framebuffer->fd, S3CFB_SET_VSYNC_INT, &interrupt) < 0) in fb_post()
138 AERR("S3CFB_SET_VSYNC_INT disable failed for fd: %d", m->framebuffer->fd); in fb_post()
149 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) in fb_post()
151 AERR("FBIOPUT_VSCREENINFO failed for fd: %d", m->framebuffer->fd); in fb_post()
155 m->base.unlock(&m->base, buffer); in fb_post()
164 m->currentBuffer = buffer; in fb_post()
171 m->base.lock(&m->base, m->framebuffer, GRALLOC_USAGE_SW_WRITE_RARELY, in fb_post()
172 0, 0, m->info.xres, m->info.yres, &fb_vaddr); in fb_post()
174 m->base.lock(&m->base, buffer, GRALLOC_USAGE_SW_READ_RARELY, in fb_post()
175 0, 0, m->info.xres, m->info.yres, &buffer_vaddr); in fb_post()
177 memcpy(fb_vaddr, buffer_vaddr, m->finfo.line_length * m->info.yres); in fb_post()
179 m->base.unlock(&m->base, buffer); in fb_post()
180 m->base.unlock(&m->base, m->framebuffer); in fb_post()
465 private_module_t *m = (private_module_t *)module; in framebuffer_device_open() local
466 status = init_frame_buffer(m); in framebuffer_device_open()
488 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3); in framebuffer_device_open()
490 const_cast<uint32_t &>(dev->width) = m->info.xres; in framebuffer_device_open()
491 const_cast<uint32_t &>(dev->height) = m->info.yres; in framebuffer_device_open()
498 const_cast<float &>(dev->xdpi) = m->xdpi; in framebuffer_device_open()
499 const_cast<float &>(dev->ydpi) = m->ydpi; in framebuffer_device_open()
500 const_cast<float &>(dev->fps) = m->fps; in framebuffer_device_open()