Home | History | Annotate | Download | only in framebuffer

Lines Matching refs:info

48     struct fb_var_screeninfo info;
49 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
52 info.reserved[0] = 0;
53 info.reserved[1] = 0;
54 info.reserved[2] = 0;
55 info.xoffset = 0;
56 info.yoffset = 0;
57 info.bits_per_pixel = 16;
58 info.activate = FB_ACTIVATE_NOW;
60 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) {
62 info.xres_virtual, info.yres_virtual);
66 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
69 uint64_t denominator = (uint64_t)( info.upper_margin + info.lower_margin + info.yres )
70 * ( info.left_margin + info.right_margin + info.xres )
71 * info.pixclock;
74 float xdpi = (info.xres * 25.4f) / info.width;
75 float ydpi = (info.yres * 25.4f) / info.height;
90 info.xres,
91 info.yres,
92 info.xres_virtual,
93 info.yres_virtual,
94 info.bits_per_pixel,
95 info.red.offset, info.red.length,
96 info.green.offset, info.green.length,
97 info.blue.offset, info.blue.length
103 info.width, xdpi,
104 info.height, ydpi,
109 info.upper_margin, info.lower_margin, info.left_margin, info.right_margin, info.pixclock, finfo.smem_len);
132 memset(buffer, 0xff, 320*(info.yres_virtual/2)*2);
139 info.reserved[0] = 0x54445055; // "UPDT";
140 info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16);
141 info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16);
148 info.activate = FB_ACTIVATE_VBL;
149 info.yoffset = 0;
150 ioctl(fd, FBIOPUT_VSCREENINFO, &info);
152 info.activate = FB_ACTIVATE_VBL;
153 info.yoffset = info.yres_virtual/2;
154 err = ioctl(fd, FBIOPUT_VSCREENINFO, &info);