Home | History | Annotate | Download | only in framebuffer

Lines Matching refs:info

49     struct fb_var_screeninfo info;
50 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
53 info.reserved[0] = 0;
54 info.reserved[1] = 0;
55 info.reserved[2] = 0;
56 info.xoffset = 0;
57 info.yoffset = 0;
58 info.bits_per_pixel = 16;
59 info.activate = FB_ACTIVATE_NOW;
61 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) {
63 info.xres_virtual, info.yres_virtual);
67 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
70 uint64_t denominator = (uint64_t)( info.upper_margin + info.lower_margin + info.yres )
71 * ( info.left_margin + info.right_margin + info.xres )
72 * info.pixclock;
75 float xdpi = (info.xres * 25.4f) / info.width;
76 float ydpi = (info.yres * 25.4f) / info.height;
91 info.xres,
92 info.yres,
93 info.xres_virtual,
94 info.yres_virtual,
95 info.bits_per_pixel,
96 info.red.offset, info.red.length,
97 info.green.offset, info.green.length,
98 info.blue.offset, info.blue.length
104 info.width, xdpi,
105 info.height, ydpi,
110 info.upper_margin, info.lower_margin, info.left_margin, info.right_margin, info.pixclock, finfo.smem_len);
133 memset(buffer, 0xff, 320*(info.yres_virtual/2)*2);
140 info.reserved[0] = 0x54445055; // "UPDT";
141 info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16);
142 info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16);
149 info.activate = FB_ACTIVATE_VBL;
150 info.yoffset = 0;
151 ioctl(fd, FBIOPUT_VSCREENINFO, &info);
153 info.activate = FB_ACTIVATE_VBL;
154 info.yoffset = info.yres_virtual/2;
155 err = ioctl(fd, FBIOPUT_VSCREENINFO, &info);