Lines Matching defs:fi
70 static struct fb_fix_screeninfo fi;
124 if (ioctl(fd, FBIOGET_FSCREENINFO, &fi) < 0) {
130 bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
143 fb->stride = fi.line_length/PIXEL_SIZE;
146 memset(fb->data, 0, vi.yres * fi.line_length);
151 if (vi.yres * fi.line_length * 2 > fi.smem_len)
159 fb->stride = fi.line_length/PIXEL_SIZE;
160 fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length);
162 memset(fb->data, 0, vi.yres * fi.line_length);
171 ms->stride = fi.line_length/PIXEL_SIZE;
172 ms->data = malloc(fi.line_length * vi.yres);
198 fi.line_length * vi.yres);