Lines Matching refs:info
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()
149 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) in fb_post()
172 0, 0, m->info.xres, m->info.yres, &fb_vaddr); 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()
223 struct fb_var_screeninfo info; in init_frame_buffer_locked() local
225 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) in init_frame_buffer_locked()
230 info.reserved[0] = 0; in init_frame_buffer_locked()
231 info.reserved[1] = 0; in init_frame_buffer_locked()
232 info.reserved[2] = 0; in init_frame_buffer_locked()
233 info.xoffset = 0; in init_frame_buffer_locked()
234 info.yoffset = 0; in init_frame_buffer_locked()
235 info.activate = FB_ACTIVATE_NOW; in init_frame_buffer_locked()
241 info.bits_per_pixel = 16; in init_frame_buffer_locked()
242 info.red.offset = 11; in init_frame_buffer_locked()
243 info.red.length = 5; in init_frame_buffer_locked()
244 info.green.offset = 5; in init_frame_buffer_locked()
245 info.green.length = 6; in init_frame_buffer_locked()
246 info.blue.offset = 0; in init_frame_buffer_locked()
247 info.blue.length = 5; in init_frame_buffer_locked()
248 info.transp.offset = 0; in init_frame_buffer_locked()
249 info.transp.length = 0; in init_frame_buffer_locked()
254 info.bits_per_pixel = 32; in init_frame_buffer_locked()
255 info.red.offset = 16; in init_frame_buffer_locked()
256 info.red.length = 8; in init_frame_buffer_locked()
257 info.green.offset = 8; in init_frame_buffer_locked()
258 info.green.length = 8; in init_frame_buffer_locked()
259 info.blue.offset = 0; in init_frame_buffer_locked()
260 info.blue.length = 8; in init_frame_buffer_locked()
261 info.transp.offset = 0; in init_frame_buffer_locked()
262 info.transp.length = 0; in init_frame_buffer_locked()
268 info.yres_virtual = info.yres * NUM_BUFFERS; in init_frame_buffer_locked()
272 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) in init_frame_buffer_locked()
274 info.yres_virtual = info.yres; in init_frame_buffer_locked()
279 if (info.yres_virtual < info.yres * 2) in init_frame_buffer_locked()
282 info.yres_virtual = info.yres; in init_frame_buffer_locked()
284 …AWAR("page flipping not supported (yres_virtual=%d, requested=%d)", info.yres_virtual, info.yres *… in init_frame_buffer_locked()
287 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) in init_frame_buffer_locked()
294 if (info.pixclock > 0) in init_frame_buffer_locked()
298 uint64_t(info.upper_margin + info.lower_margin + info.yres + info.hsync_len) in init_frame_buffer_locked()
299 * (info.left_margin + info.right_margin + info.xres + info.vsync_len) in init_frame_buffer_locked()
300 * info.pixclock in init_frame_buffer_locked()
313 if (int(info.width) <= 0 || int(info.height) <= 0) in init_frame_buffer_locked()
317 info.width = ((info.xres * 25.4f) / 160.0f + 0.5f); in init_frame_buffer_locked()
318 info.height = ((info.yres * 25.4f) / 160.0f + 0.5f); in init_frame_buffer_locked()
321 float xdpi = (info.xres * 25.4f) / info.width; in init_frame_buffer_locked()
322 float ydpi = (info.yres * 25.4f) / info.height; in init_frame_buffer_locked()
337 info.xres, in init_frame_buffer_locked()
338 info.yres, in init_frame_buffer_locked()
339 info.xres_virtual, in init_frame_buffer_locked()
340 info.yres_virtual, in init_frame_buffer_locked()
341 info.bits_per_pixel, in init_frame_buffer_locked()
342 info.red.offset, info.red.length, in init_frame_buffer_locked()
343 info.green.offset, info.green.length, in init_frame_buffer_locked()
344 info.blue.offset, info.blue.length); in init_frame_buffer_locked()
349 info.width, xdpi, in init_frame_buffer_locked()
350 info.height, ydpi, in init_frame_buffer_locked()
364 module->info = info; in init_frame_buffer_locked()
373 size_t fbSize = round_up_to_page_size(finfo.line_length * info.yres_virtual); in init_frame_buffer_locked()
392 module->numBuffers = info.yres_virtual / info.yres; in init_frame_buffer_locked()
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()