Home | History | Annotate | Download | only in libgralloc

Lines Matching refs:info

82     m->info.reserved[0] = 0x54445055; // "UPDT";
83 m->info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16);
84 m->info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16);
101 m->info.activate = FB_ACTIVATE_VBL;
102 m->info.yoffset = offset / m->finfo.line_length;
103 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
119 0, 0, m->info.xres, m->info.yres,
124 0, 0, m->info.xres, m->info.yres,
127 //memcpy(fb_vaddr, buffer_vaddr, m->finfo.line_length * m->info.yres);
130 m->info.xres, m->info.yres,
131 m->info.xoffset, m->info.yoffset,
132 m->info.width, m->info.height);
171 struct fb_var_screeninfo info;
172 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
175 info.reserved[0] = 0;
176 info.reserved[1] = 0;
177 info.reserved[2] = 0;
178 info.xoffset = 0;
179 info.yoffset = 0;
180 info.activate = FB_ACTIVATE_NOW;
185 info.bits_per_pixel = 16;
186 info.red.offset = 11;
187 info.red.length = 5;
188 info.green.offset = 5;
189 info.green.length = 6;
190 info.blue.offset = 0;
191 info.blue.length = 5;
192 info.transp.offset = 0;
193 info.transp.length = 0;
198 info.yres_virtual = info.yres * NUM_BUFFERS;
202 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) {
203 info.yres_virtual = info.yres;
208 if (info.yres_virtual < info.yres * 2) {
210 info.yres_virtual = info.yres;
213 info.yres_virtual, info.yres*2);
216 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
221 uint64_t( info.upper_margin + info.lower_margin + info.yres )
222 * ( info.left_margin + info.right_margin + info.xres )
223 * info.pixclock
227 // bleagh, bad info from the driver
231 if (int(info.width) <= 0 || int(info.height) <= 0) {
234 info.width = ((info.xres * 25.4f)/160.0f + 0.5f);
235 info.height = ((info.yres * 25.4f)/160.0f + 0.5f);
238 float xdpi = (info.xres * 25.4f) / info.width;
239 float ydpi = (info.yres * 25.4f) / info.height;
254 info.xres,
255 info.yres,
256 info.xres_virtual,
257 info.yres_virtual,
258 info.bits_per_pixel,
259 info.red.offset, info.red.length,
260 info.green.offset, info.green.length,
261 info.blue.offset, info.blue.length
267 info.width, xdpi,
268 info.height, ydpi,
281 module->info = info;
292 size_t fbSize = roundUpToPageSize(finfo.line_length * info.yres_virtual);
296 module->numBuffers = info.yres_virtual / info.yres;
355 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
357 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
358 const_cast<uint32_t&>(dev->device.height) = m->info.yres;