Lines Matching refs:info

88     m->info.activate = FB_ACTIVATE_VBL;  in fb_post()
89 m->info.yoffset = (int)(offset / m->finfo.line_length); in fb_post()
90 if (ioctl(ctx->fbFd, FBIOPUT_VSCREENINFO, &m->info) == -1) { in fb_post()
144 struct fb_var_screeninfo info; in mapFrameBufferLocked() local
145 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) { in mapFrameBufferLocked()
150 info.reserved[0] = 0; in mapFrameBufferLocked()
151 info.reserved[1] = 0; in mapFrameBufferLocked()
152 info.reserved[2] = 0; in mapFrameBufferLocked()
153 info.xoffset = 0; in mapFrameBufferLocked()
154 info.yoffset = 0; in mapFrameBufferLocked()
155 info.activate = FB_ACTIVATE_NOW; in mapFrameBufferLocked()
165 if(info.bits_per_pixel == 32) { in mapFrameBufferLocked()
169 info.bits_per_pixel = 32; in mapFrameBufferLocked()
170 info.red.offset = 24; in mapFrameBufferLocked()
171 info.red.length = 8; in mapFrameBufferLocked()
172 info.green.offset = 16; in mapFrameBufferLocked()
173 info.green.length = 8; in mapFrameBufferLocked()
174 info.blue.offset = 8; in mapFrameBufferLocked()
175 info.blue.length = 8; in mapFrameBufferLocked()
176 info.transp.offset = 0; in mapFrameBufferLocked()
177 info.transp.length = 8; in mapFrameBufferLocked()
194 info.bits_per_pixel = 16; in mapFrameBufferLocked()
195 info.red.offset = 11; in mapFrameBufferLocked()
196 info.red.length = 5; in mapFrameBufferLocked()
197 info.green.offset = 5; in mapFrameBufferLocked()
198 info.green.length = 6; in mapFrameBufferLocked()
199 info.blue.offset = 0; in mapFrameBufferLocked()
200 info.blue.length = 5; in mapFrameBufferLocked()
201 info.transp.offset = 0; in mapFrameBufferLocked()
202 info.transp.length = 0; in mapFrameBufferLocked()
207 unsigned int size = roundUpToPageSize(info.yres * info.xres * in mapFrameBufferLocked()
208 (info.bits_per_pixel/8)); in mapFrameBufferLocked()
228 uint32_t line_length = (info.xres * info.bits_per_pixel / 8); in mapFrameBufferLocked()
229 info.yres_virtual = (uint32_t) ((size * numberOfBuffers) / line_length); in mapFrameBufferLocked()
233 if (info.yres_virtual < ((size * 2) / line_length) ) { in mapFrameBufferLocked()
235 info.yres_virtual = (int)(size / line_length); in mapFrameBufferLocked()
238 info.yres_virtual, info.yres*2); in mapFrameBufferLocked()
241 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) { in mapFrameBufferLocked()
246 if (int(info.width) <= 0 || int(info.height) <= 0) { in mapFrameBufferLocked()
249 info.width = (uint32_t)(((float)(info.xres) * 25.4f)/160.0f + 0.5f); in mapFrameBufferLocked()
250 info.height = (uint32_t)(((float)(info.yres) * 25.4f)/160.0f + 0.5f); in mapFrameBufferLocked()
253 float xdpi = ((float)(info.xres) * 25.4f) / (float)info.width; in mapFrameBufferLocked()
254 float ydpi = ((float)(info.yres) * 25.4f) / (float)info.height; in mapFrameBufferLocked()
269 float fps = info.reserved[3] & 0xFF; in mapFrameBufferLocked()
283 info.xres, in mapFrameBufferLocked()
284 info.yres, in mapFrameBufferLocked()
285 info.xres_virtual, in mapFrameBufferLocked()
286 info.yres_virtual, in mapFrameBufferLocked()
287 info.bits_per_pixel, in mapFrameBufferLocked()
288 info.red.offset, info.red.length, in mapFrameBufferLocked()
289 info.green.offset, info.green.length, in mapFrameBufferLocked()
290 info.blue.offset, info.blue.length in mapFrameBufferLocked()
296 info.width, xdpi, in mapFrameBufferLocked()
297 info.height, ydpi, in mapFrameBufferLocked()
313 module->info = info; in mapFrameBufferLocked()
326 module->numBuffers = info.yres_virtual / info.yres; in mapFrameBufferLocked()
329 unsigned int fbSize = roundUpToPageSize(finfo.line_length * info.yres)* in mapFrameBufferLocked()
360 module->fbFormat, info.xres, info.yres); in mapFrameBufferLocked()
434 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3); in fb_device_open()
436 const_cast<uint32_t&>(dev->device.width) = m->info.xres; in fb_device_open()
437 const_cast<uint32_t&>(dev->device.height) = m->info.yres; in fb_device_open()