Home | History | Annotate | Download | only in gralloc

Lines Matching refs:info

79     m->info.reserved[0] = 0x54445055; // "UPDT";
80 m->info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16);
81 m->info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16);
98 m->info.activate = FB_ACTIVATE_VBL;
99 m->info.yoffset = offset / m->finfo.line_length;
100 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
116 0, 0, m->info.xres, m->info.yres,
121 0, 0, m->info.xres, m->info.yres,
124 memcpy(fb_vaddr, buffer_vaddr, m->finfo.line_length * m->info.yres);
163 struct fb_var_screeninfo info;
164 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
167 info.reserved[0] = 0;
168 info.reserved[1] = 0;
169 info.reserved[2] = 0;
170 info.xoffset = 0;
171 info.yoffset = 0;
172 info.activate = FB_ACTIVATE_NOW;
177 info.yres_virtual = info.yres * NUM_BUFFERS;
181 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) {
182 info.yres_virtual = info.yres;
187 if (info.yres_virtual < info.yres * 2) {
189 info.yres_virtual = info.yres;
192 info.yres_virtual, info.yres*2);
195 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
200 uint64_t( info.upper_margin + info.lower_margin + info.yres )
201 * ( info.left_margin + info.right_margin + info.xres )
202 * info.pixclock
205 /* Beware, info.pixclock might be 0 under emulation, so avoid a
210 // bleagh, bad info from the driver
214 if (int(info.width) <= 0 || int(info.height) <= 0) {
217 info.width = ((info.xres * 25.4f)/160.0f + 0.5f);
218 info.height = ((info.yres * 25.4f)/160.0f + 0.5f);
221 float xdpi = (info.xres * 25.4f) / info.width;
222 float ydpi = (info.yres * 25.4f) / info.height;
237 info.xres,
238 info.yres,
239 info.xres_virtual,
240 info.yres_virtual,
241 info.bits_per_pixel,
242 info.red.offset, info.red.length,
243 info.green.offset, info.green.length,
244 info.blue.offset, info.blue.length
250 info.width, xdpi,
251 info.height, ydpi,
264 module->info = info;
275 size_t fbSize = roundUpToPageSize(finfo.line_length * info.yres_virtual);
278 module->numBuffers = info.yres_virtual / info.yres;
331 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
332 int format = (m->info.bits_per_pixel == 32)
336 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
337 const_cast<uint32_t&>(dev->device.height) = m->info.yres;