Lines Matching full:info
86 m->info.reserved[0] = 0x54445055; // "UPDT";
87 m->info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16);
88 m->info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16);
105 m->info.activate = FB_ACTIVATE_VBL;
106 m->info.yoffset = offset / m->finfo.line_length;
107 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
123 0, 0, m->info.xres, m->info.yres,
128 0, 0, m->info.xres, m->info.yres,
131 memcpy(fb_vaddr, buffer_vaddr, m->finfo.line_length * m->info.yres);
170 struct fb_var_screeninfo info;
171 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
174 info.reserved[0] = 0;
175 info.reserved[1] = 0;
176 info.reserved[2] = 0;
177 info.xoffset = 0;
178 info.yoffset = 0;
179 info.activate = FB_ACTIVATE_NOW;
184 info.yres_virtual = info.yres * NUM_BUFFERS;
189 if (ioctl(fd, FBIOPAN_DISPLAY, &info) == -1) {
192 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) {
195 info.yres_virtual = info.yres;
199 if (info.yres_virtual < info.yres * 2) {
201 info.yres_virtual = info.yres;
204 info.yres_virtual, info.yres*2);
207 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
212 uint64_t( info.upper_margin + info.lower_margin + info.yres )
213 * ( info.left_margin + info.right_margin + info.xres )
214 * info.pixclock
217 /* Beware, info.pixclock might be 0 under emulation, so avoid a
222 // bleagh, bad info from the driver
226 if (int(info.width) <= 0 || int(info.height) <= 0) {
229 info.width = ((info.xres * 25.4f)/160.0f + 0.5f);
230 info.height = ((info.yres * 25.4f)/160.0f + 0.5f);
233 float xdpi = (info.xres * 25.4f) / info.width;
234 float ydpi = (info.yres * 25.4f) / info.height;
249 info.xres,
250 info.yres,
251 info.xres_virtual,
252 info.yres_virtual,
253 info.bits_per_pixel,
254 info.red.offset, info.red.length,
255 info.green.offset, info.green.length,
256 info.blue.offset, info.blue.length
262 info.width, xdpi,
263 info.height, ydpi,
276 module->info = info;
287 size_t fbSize = roundUpToPageSize(finfo.line_length * info.yres_virtual);
290 module->numBuffers = info.yres_virtual / info.yres;
343 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
344 int format = (m->info.bits_per_pixel == 32)
345 ? (m->info.red.offset ? HAL_PIXEL_FORMAT_BGRA_8888 : HAL_PIXEL_FORMAT_RGBX_8888)
348 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
349 const_cast<uint32_t&>(dev->device.height) = m->info.yres;